gns3-server/gns3server/static/web-ui/main.123149e4bf7e0712.js
2023-10-18 17:51:41 +10:00

1 line
4.1 MiB

(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(Ae,K,m){"use strict";m.d(K,{o:function(){return P}});var G=m(5671),W=m(3144),A=m(591),H=m(8929),P=function(){function I(){(0,G.Z)(this,I),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new H.xQ}return(0,W.Z)(I,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(E){this.findIndex(E)>=0?this.update(E):(this.data.push(E),this.dataChange.next(this.data))}},{key:"set",value:function(E){var j=this;E.forEach(function(v){var x=j.findIndex(v);if(x>=0){var w=Object.assign(j.data[x],v);j.data[x]=w}else j.data.push(v)}),this.data.filter(function(v){return 0===E.filter(function(x){return j.getItemKey(x)===j.getItemKey(v)}).length}).forEach(function(v){return j.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(E){var j=this,R=this.data.findIndex(function(v){return j.getItemKey(v)===E});if(R>=0)return this.data[R]}},{key:"update",value:function(E){var j=this.findIndex(E);if(j>=0){var R=Object.assign(this.data[j],E);this.data[j]=R,this.dataChange.next(this.data),this.itemUpdated.next(R)}}},{key:"remove",value:function(E){var j=this.findIndex(E);j>=0&&(this.data.splice(j,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(E){var j=this;return this.data.findIndex(function(R){return j.getItemKey(R)===j.getItemKey(E)})}}]),I}()},6215:function(Ae,K,m){"use strict";m.d(K,{F:function(){return T}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=m(5735),I=m(5e3),T=function(E){(0,A.Z)(R,E);var j=(0,H.Z)(R);function R(){return(0,G.Z)(this,R),j.apply(this,arguments)}return(0,W.Z)(R,[{key:"getItemKey",value:function(x){return x.link_id}}]),R}(P.o);T.\u0275fac=function(){var E;return function(R){return(E||(E=I.n5z(T)))(R||T)}}(),T.\u0275prov=I.Yz7({token:T,factory:T.\u0275fac})},5366:function(Ae,K,m){"use strict";m.d(K,{G:function(){return T}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=m(5735),I=m(5e3),T=function(E){(0,A.Z)(R,E);var j=(0,H.Z)(R);function R(){return(0,G.Z)(this,R),j.apply(this,arguments)}return(0,W.Z)(R,[{key:"getItemKey",value:function(x){return x.node_id}}]),R}(P.o);T.\u0275fac=function(){var E;return function(R){return(E||(E=I.n5z(T)))(R||T)}}(),T.\u0275prov=I.Yz7({token:T,factory:T.\u0275fac})},5542:function(Ae,K,m){"use strict";m.d(K,{X:function(){return I}});var G=m(5671),W=m(3144),A=m(4766),H=m(5e3),P=m(2437),I=function(){function T(E){(0,G.Z)(this,T),this.httpController=E}return(0,W.Z)(T,[{key:"getComputes",value:function(j){return this.httpController.get(j,"/computes")}},{key:"getUploadPath",value:function(j,R,v){return"".concat(j.protocol,"//").concat(j.host,":").concat(j.port,"/").concat(A.N.current_version,"/").concat(R,"/images/").concat(v)}},{key:"getStatistics",value:function(j){return this.httpController.get(j,"/statistics")}}]),T}();I.\u0275fac=function(E){return new(E||I)(H.LFG(P.zw))},I.\u0275prov=H.Yz7({token:I,factory:I.\u0275fac})},2437:function(Ae,K,m){"use strict";m.d(K,{CJ:function(){return x},zw:function(){return w}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=m(5724),I=m(5e3),T=m(4766),E=m(1737),j=m(7221),R=m(520),v=function(Z){(0,A.Z)(b,Z);var D=(0,H.Z)(b);function b(S){return(0,G.Z)(this,b),D.call(this,S)}return(0,W.Z)(b,null,[{key:"fromError",value:function(k,M){var N=new b(k);return N.originalError=M,N}}]),b}((0,P.Z)(Error)),x=function(){function Z(){(0,G.Z)(this,Z)}return(0,W.Z)(Z,[{key:"handleError",value:function(b){var S=b;return"HttpErrorResponse"===b.name&&0===b.status&&(S=v.fromError("Controller is unreachable",b)),401===b.status&&window.location.reload(),(0,E._)(S)}}]),Z}();x.\u0275fac=function(D){return new(D||x)},x.\u0275prov=I.Yz7({token:x,factory:x.\u0275fac});var w=function(){function Z(D,b){(0,G.Z)(this,Z),this.http=D,this.errorHandler=b,this.requestsNotificationEmitter=new I.vpe}return(0,W.Z)(Z,[{key:"get",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getText",value:function(b,S,k){k=this.getTextOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(b,S,k){k=this.getBlobOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("GET ".concat(M.url)),this.http.get(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"post",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,k,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"put",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,k,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"delete",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.requestsNotificationEmitter.emit("DELETE ".concat(M.url)),this.http.delete(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"patch",value:function(b,S,k,M){M=this.getJsonOptions(M);var N=this.getOptionsForController(b,S,M);return this.http.patch(N.url,k,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"head",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.http.head(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"options",value:function(b,S,k){k=this.getJsonOptions(k);var M=this.getOptionsForController(b,S,k);return this.http.options(M.url,M.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(b){return b||{responseType:"json"}}},{key:"getTextOptions",value:function(b){return b||{responseType:"text"}}},{key:"getBlobOptions",value:function(b){return b||{responseType:"blob"}}},{key:"getOptionsForController",value:function(b,S,k){return b&&b.host&&b.port?(b.protocol||(b.protocol=location.protocol),S="".concat(b.protocol,"//").concat(b.host,":").concat(b.port,"/").concat(T.N.current_version).concat(S)):S="/".concat(T.N.current_version).concat(S),k.headers||(k.headers={}),b&&b.authToken&&!b.tokenExpired&&(k.headers.Authorization="Bearer ".concat(b.authToken)),{url:S,options:k}}}]),Z}();w.\u0275fac=function(D){return new(D||w)(I.LFG(R.eN),I.LFG(x))},w.\u0275prov=I.Yz7({token:w,factory:w.\u0275fac})},9971:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(5671),W=m(3144),A=m(4766),H=m(8929),P=m(5e3),I=m(2437),T=m(9449),E=m(9740),j=function(){function R(v,x,w){(0,G.Z)(this,R),this.httpController=v,this.settingsService=x,this.recentlyOpenedProjectService=w,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new H.xQ,this.projectLockIconSubject=new H.xQ}return(0,W.Z)(R,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(x,w){return this.httpController.getText(x,"/projects/".concat(w,"/files/README.txt"))}},{key:"postReadmeFile",value:function(x,w,Z){return this.httpController.post(x,"/projects/".concat(w,"/files/README.txt"),Z)}},{key:"get",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w))}},{key:"open",value:function(x,w){return this.httpController.post(x,"/projects/".concat(w,"/open"),{})}},{key:"close",value:function(x,w){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(x,"/projects/".concat(w,"/close"),{})}},{key:"list",value:function(x){return this.httpController.get(x,"/projects")}},{key:"nodes",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/nodes"))}},{key:"links",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/links"))}},{key:"drawings",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/drawings"))}},{key:"add",value:function(x,w,Z){return this.httpController.post(x,"/projects",{name:w,project_id:Z})}},{key:"update",value:function(x,w){return this.httpController.put(x,"/projects/".concat(w.project_id),{auto_close:w.auto_close,auto_open:w.auto_open,auto_start:w.auto_start,drawing_grid_size:w.drawing_grid_size,grid_size:w.grid_size,name:w.name,scene_width:w.scene_width,scene_height:w.scene_height,show_interface_labels:w.show_interface_labels})}},{key:"delete",value:function(x,w){return this.httpController.delete(x,"/projects/".concat(w))}},{key:"getUploadPath",value:function(x,w,Z){return"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/import?name=").concat(Z)}},{key:"getExportPath",value:function(x,w){return"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w.project_id,"/export")}},{key:"export",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/export"))}},{key:"getStatistics",value:function(x,w){return this.httpController.get(x,"/projects/".concat(w,"/stats"))}},{key:"duplicate",value:function(x,w,Z){return this.httpController.post(x,"/projects/".concat(w,"/duplicate"),{name:Z})}},{key:"isReadOnly",value:function(x){return!!x.readonly&&x.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=Z.compression_level&&""!=Z.compression_level?"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/export?include_snapshots=").concat(Z.include_snapshots,"&include_images=").concat(Z.include_base_image,"&reset_mac_addresses=").concat(Z.reset_mac_address,"&compression=").concat(Z.compression,"&compression_level=").concat(Z.compression_level,"&token=").concat(x.authToken):"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/").concat(A.N.current_version,"/projects/").concat(w,"/export?include_snapshots=").concat(Z.include_snapshots,"&include_images=").concat(Z.include_base_image,"&reset_mac_addresses=").concat(Z.reset_mac_address,"&compression=").concat(Z.compression,"&token=").concat(x.authToken)}},{key:"getProjectStatus",value:function(x,w){return this.get(x,"".concat(w,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),R}();j.\u0275fac=function(v){return new(v||j)(P.LFG(I.zw),P.LFG(T.g),P.LFG(E.p))},j.\u0275prov=P.Yz7({token:j,factory:j.\u0275fac})},9740:function(Ae,K,m){"use strict";m.d(K,{p:function(){return H}});var G=m(5671),W=m(3144),A=m(5e3),H=function(){function P(){(0,G.Z)(this,P)}return(0,W.Z)(P,[{key:"setcontrollerId",value:function(T){this.controllerId=T}},{key:"setProjectId",value:function(T){this.projectId=T}},{key:"setcontrollerIdProjectList",value:function(T){this.controllerIdProjectList=T}},{key:"getcontrollerId",value:function(){return this.controllerId}},{key:"getProjectId",value:function(){return this.projectId}},{key:"getcontrollerIdProjectList",value:function(){return this.controllerIdProjectList}},{key:"removeData",value:function(){this.controllerId="",this.projectId=""}}]),P}();H.\u0275fac=function(I){return new(I||H)},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac})},9449:function(Ae,K,m){"use strict";m.d(K,{g:function(){return H}});var G=m(5671),W=m(3144),A=m(5e3),H=function(){function P(){(0,G.Z)(this,P),this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return(0,W.Z)(P,[{key:"setReportsSettings",value:function(T){this.settings.crash_reports=T,this.removeItem(this.reportsSettings),T?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(T){this.settings.anonymous_statistics=T,this.removeItem(this.statisticsSettings),T?this.setItem(this.statisticsSettings,"true"):this.setItem(this.statisticsSettings,"false")}},{key:"getReportsSettings",value:function(){return"true"===this.getItem(this.reportsSettings)}},{key:"getStatisticsSettings",value:function(){return"true"===this.getItem(this.statisticsSettings)}},{key:"setConsoleSettings",value:function(T){this.settings.console_command=T,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,T)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(T){localStorage.removeItem(T)}},{key:"setItem",value:function(T,E){localStorage.setItem(T,E)}},{key:"getItem",value:function(T){return localStorage.getItem(T)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(T){this.settings=T,this.setConsoleSettings(T.console_command),this.setReportsSettings(T.crash_reports),this.setStatisticsSettings(T.anonymous_statistics)}}]),P}();H.\u0275fac=function(I){return new(I||H)},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})},4068:function(Ae,K,m){"use strict";m.d(K,{f:function(){return P}});var G=m(5671),W=m(3144),A=m(5e3),H=m(591),P=function(){function I(){(0,G.Z)(this,I),this._darkMode$=new H.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new A.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,W.Z)(I,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(E){E?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),I}();P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})},4766:function(Ae,K,m){"use strict";m.d(K,{N:function(){return G}});var G={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},9189:function(Ae,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return kSe},arc:function(){return f1e},area:function(){return wee},areaRadial:function(){return See},ascending:function(){return $y},axisBottom:function(){return pce},axisLeft:function(){return hce},axisRight:function(){return fce},axisTop:function(){return dce},bisect:function(){return X1},bisectLeft:function(){return Hue},bisectRight:function(){return JY},bisector:function(){return w7},brush:function(){return Spe},brushSelection:function(){return kpe},brushX:function(){return Tpe},brushY:function(){return Mpe},chord:function(){return xpe},clientPoint:function(){return kN},cluster:function(){return nge},color:function(){return iZ},contourDensity:function(){return phe},contours:function(){return Lq},create:function(){return NCe},creator:function(){return CN},cross:function(){return Gue},csvFormat:function(){return whe},csvFormatRows:function(){return khe},csvParse:function(){return bhe},csvParseRows:function(){return Che},cubehelix:function(){return Pq},curveBasis:function(){return O1e},curveBasisClosed:function(){return I1e},curveBasisOpen:function(){return P1e},curveBundle:function(){return R1e},curveCardinal:function(){return L1e},curveCardinalClosed:function(){return Z1e},curveCardinalOpen:function(){return N1e},curveCatmullRom:function(){return B1e},curveCatmullRomClosed:function(){return F1e},curveCatmullRomOpen:function(){return U1e},curveLinear:function(){return SN},curveLinearClosed:function(){return H1e},curveMonotoneX:function(){return j1e},curveMonotoneY:function(){return G1e},curveNatural:function(){return z1e},curveStep:function(){return W1e},curveStepAfter:function(){return Y1e},curveStepBefore:function(){return V1e},customEvent:function(){return ICe},descending:function(){return zue},deviation:function(){return $Y},dispatch:function(){return t0},drag:function(){return gg},dragDisable:function(){return ZL},dragEnable:function(){return NL},dsvFormat:function(){return b9},easeBack:function(){return Wq},easeBackIn:function(){return qhe},easeBackInOut:function(){return Wq},easeBackOut:function(){return Jhe},easeBounce:function(){return ax},easeBounceIn:function(){return Yhe},easeBounceInOut:function(){return Khe},easeBounceOut:function(){return ax},easeCircle:function(){return zq},easeCircleIn:function(){return Nhe},easeCircleInOut:function(){return zq},easeCircleOut:function(){return Bhe},easeCubic:function(){return QL},easeCubicIn:function(){return fpe},easeCubicInOut:function(){return QL},easeCubicOut:function(){return ppe},easeElastic:function(){return Vq},easeElasticIn:function(){return Qhe},easeElasticInOut:function(){return Xhe},easeElasticOut:function(){return Vq},easeExp:function(){return Gq},easeExpIn:function(){return Lhe},easeExpInOut:function(){return Gq},easeExpOut:function(){return Zhe},easeLinear:function(){return xhe},easePoly:function(){return Fq},easePolyIn:function(){return Ohe},easePolyInOut:function(){return Fq},easePolyOut:function(){return Ihe},easeQuad:function(){return Bq},easeQuadIn:function(){return Dhe},easeQuadInOut:function(){return Bq},easeQuadOut:function(){return Ahe},easeSin:function(){return jq},easeSinIn:function(){return Phe},easeSinInOut:function(){return jq},easeSinOut:function(){return Rhe},entries:function(){return Gpe},event:function(){return sm},extent:function(){return k7},forceCenter:function(){return $he},forceCollide:function(){return vme},forceLink:function(){return bme},forceManyBody:function(){return Sme},forceRadial:function(){return Eme},forceSimulation:function(){return Mme},forceX:function(){return xme},forceY:function(){return Dme},format:function(){return nJ},formatDefaultLocale:function(){return iJ},formatLocale:function(){return tJ},formatPrefix:function(){return rJ},formatSpecifier:function(){return pZ},geoAlbers:function(){return gQ},geoAlbersUsa:function(){return Z_e},geoArea:function(){return Hme},geoAzimuthalEqualArea:function(){return N_e},geoAzimuthalEqualAreaRaw:function(){return dH},geoAzimuthalEquidistant:function(){return B_e},geoAzimuthalEquidistantRaw:function(){return fH},geoBounds:function(){return Wme},geoCentroid:function(){return Qme},geoCircle:function(){return Xme},geoClipAntimeridian:function(){return z9},geoClipCircle:function(){return FJ},geoClipExtent:function(){return o_e},geoClipRectangle:function(){return NZ},geoConicConformal:function(){return U_e},geoConicConformalRaw:function(){return bQ},geoConicEqualArea:function(){return KZ},geoConicEqualAreaRaw:function(){return _Q},geoConicEquidistant:function(){return j_e},geoConicEquidistantRaw:function(){return CQ},geoContains:function(){return f_e},geoDistance:function(){return fx},geoEquirectangular:function(){return H_e},geoEquirectangularRaw:function(){return Cx},geoGnomonic:function(){return G_e},geoGnomonicRaw:function(){return pH},geoGraticule:function(){return qJ},geoGraticule10:function(){return p_e},geoIdentity:function(){return z_e},geoInterpolate:function(){return h_e},geoLength:function(){return UJ},geoMercator:function(){return F_e},geoMercatorRaw:function(){return bx},geoNaturalEarth1:function(){return W_e},geoNaturalEarth1Raw:function(){return hH},geoOrthographic:function(){return V_e},geoOrthographicRaw:function(){return mH},geoPath:function(){return S_e},geoProjection:function(){return im},geoProjectionMutator:function(){return uH},geoRotation:function(){return OJ},geoStereographic:function(){return Y_e},geoStereographicRaw:function(){return _H},geoStream:function(){return jd},geoTransform:function(){return E_e},geoTransverseMercator:function(){return K_e},geoTransverseMercatorRaw:function(){return gH},hcl:function(){return xq},hierarchy:function(){return vH},histogram:function(){return Kue},hsl:function(){return yq},interpolate:function(){return OH},interpolateArray:function(){return QQ},interpolateBasis:function(){return YQ},interpolateBasisClosed:function(){return KQ},interpolateBlues:function(){return $0e},interpolateBrBG:function(){return I0e},interpolateBuGn:function(){return H0e},interpolateBuPu:function(){return j0e},interpolateCool:function(){return cbe},interpolateCubehelix:function(){return yve},interpolateCubehelixDefault:function(){return lbe},interpolateCubehelixLong:function(){return bve},interpolateDate:function(){return XQ},interpolateGnBu:function(){return G0e},interpolateGreens:function(){return ebe},interpolateGreys:function(){return tbe},interpolateHcl:function(){return _ve},interpolateHclLong:function(){return gve},interpolateHsl:function(){return fve},interpolateHslLong:function(){return pve},interpolateInferno:function(){return hbe},interpolateLab:function(){return mve},interpolateMagma:function(){return pbe},interpolateNumber:function(){return gp},interpolateObject:function(){return $Q},interpolateOrRd:function(){return z0e},interpolateOranges:function(){return ibe},interpolatePRGn:function(){return P0e},interpolatePiYG:function(){return R0e},interpolatePlasma:function(){return mbe},interpolatePuBu:function(){return V0e},interpolatePuBuGn:function(){return W0e},interpolatePuOr:function(){return L0e},interpolatePuRd:function(){return Y0e},interpolatePurples:function(){return nbe},interpolateRainbow:function(){return dbe},interpolateRdBu:function(){return Z0e},interpolateRdGy:function(){return N0e},interpolateRdPu:function(){return K0e},interpolateRdYlBu:function(){return B0e},interpolateRdYlGn:function(){return F0e},interpolateReds:function(){return rbe},interpolateRgb:function(){return xH},interpolateRgbBasis:function(){return $ge},interpolateRgbBasisClosed:function(){return eve},interpolateRound:function(){return rve},interpolateSpectral:function(){return U0e},interpolateString:function(){return eX},interpolateTransformCss:function(){return ave},interpolateTransformSvg:function(){return sve},interpolateViridis:function(){return fbe},interpolateWarm:function(){return ube},interpolateYlGn:function(){return J0e},interpolateYlGnBu:function(){return q0e},interpolateYlOrBr:function(){return Q0e},interpolateYlOrRd:function(){return X0e},interpolateZoom:function(){return dve},interrupt:function(){return ine},interval:function(){return Bke},isoFormat:function(){return Rke},isoParse:function(){return Nke},keys:function(){return Hpe},lab:function(){return Eq},line:function(){return EN},lineRadial:function(){return Mee},linkHorizontal:function(){return C1e},linkRadial:function(){return k1e},linkVertical:function(){return w1e},local:function(){return vee},map:function(){return mg},matcher:function(){return oee},max:function(){return tK},mean:function(){return Que},median:function(){return Xue},merge:function(){return D7},min:function(){return nK},mouse:function(){return FCe},namespace:function(){return fj},namespaces:function(){return dj},nest:function(){return Npe},now:function(){return hg},pack:function(){return Ege},packEnclose:function(){return kQ},packSiblings:function(){return Tge},pairs:function(){return jue},partition:function(){return xge},path:function(){return Hd},permute:function(){return $ue},pie:function(){return m1e},pointRadial:function(){return Gx},polygonArea:function(){return wve},polygonCentroid:function(){return kve},polygonContains:function(){return Eve},polygonHull:function(){return Sve},polygonLength:function(){return xve},precisionFixed:function(){return Lme},precisionPrefix:function(){return Zme},precisionRound:function(){return Nme},quadtree:function(){return dZ},quantile:function(){return zE},quantize:function(){return Cve},radialArea:function(){return See},radialLine:function(){return Mee},randomBates:function(){return Ove},randomExponential:function(){return Ive},randomIrwinHall:function(){return SX},randomLogNormal:function(){return Ave},randomNormal:function(){return MX},randomUniform:function(){return Dve},range:function(){return mc},rgb:function(){return gq},ribbon:function(){return Zpe},scaleBand:function(){return YH},scaleIdentity:function(){return FX},scaleImplicit:function(){return WH},scaleLinear:function(){return BX},scaleLog:function(){return zX},scaleOrdinal:function(){return VH},scalePoint:function(){return Pve},scalePow:function(){return XH},scaleQuantile:function(){return WX},scaleQuantize:function(){return VX},scaleSequential:function(){return T$},scaleSqrt:function(){return eye},scaleThreshold:function(){return YX},scaleTime:function(){return v0e},scaleUtc:function(){return w0e},scan:function(){return ece},schemeAccent:function(){return T0e},schemeBlues:function(){return V$},schemeBrBG:function(){return M$},schemeBuGn:function(){return R$},schemeBuPu:function(){return L$},schemeCategory10:function(){return k0e},schemeDark2:function(){return M0e},schemeGnBu:function(){return Z$},schemeGreens:function(){return Y$},schemeGreys:function(){return K$},schemeOrRd:function(){return N$},schemeOranges:function(){return Q$},schemePRGn:function(){return S$},schemePaired:function(){return S0e},schemePastel1:function(){return E0e},schemePastel2:function(){return x0e},schemePiYG:function(){return E$},schemePuBu:function(){return F$},schemePuBuGn:function(){return B$},schemePuOr:function(){return x$},schemePuRd:function(){return U$},schemePurples:function(){return q$},schemeRdBu:function(){return D$},schemeRdGy:function(){return A$},schemeRdPu:function(){return H$},schemeRdYlBu:function(){return O$},schemeRdYlGn:function(){return I$},schemeReds:function(){return J$},schemeSet1:function(){return D0e},schemeSet2:function(){return A0e},schemeSet3:function(){return O0e},schemeSpectral:function(){return P$},schemeYlGn:function(){return G$},schemeYlGnBu:function(){return j$},schemeYlOrBr:function(){return z$},schemeYlOrRd:function(){return W$},select:function(){return gee},selectAll:function(){return UCe},selection:function(){return ZCe},selector:function(){return pj},selectorAll:function(){return ree},set:function(){return Upe},shuffle:function(){return tce},stack:function(){return q1e},stackOffsetDiverging:function(){return Q1e},stackOffsetExpand:function(){return J1e},stackOffsetNone:function(){return Rw},stackOffsetSilhouette:function(){return X1e},stackOffsetWiggle:function(){return $1e},stackOrderAscending:function(){return qee},stackOrderDescending:function(){return ewe},stackOrderInsideOut:function(){return twe},stackOrderNone:function(){return Lw},stackOrderReverse:function(){return nwe},stratify:function(){return Ige},style:function(){return lee},sum:function(){return nce},symbol:function(){return A1e},symbolCircle:function(){return Mj},symbolCross:function(){return Eee},symbolDiamond:function(){return Dee},symbolSquare:function(){return Iee},symbolStar:function(){return Oee},symbolTriangle:function(){return Pee},symbolWye:function(){return Ree},symbols:function(){return D1e},thresholdFreedmanDiaconis:function(){return que},thresholdScott:function(){return Jue},thresholdSturges:function(){return x7},tickIncrement:function(){return GE},tickStep:function(){return e0},ticks:function(){return E7},timeDay:function(){return swe},timeDays:function(){return lwe},timeFormat:function(){return Nte},timeFormatDefaultLocale:function(){return Fte},timeFormatLocale:function(){return Ste},timeFriday:function(){return dte},timeFridays:function(){return pwe},timeHour:function(){return owe},timeHours:function(){return awe},timeInterval:function(){return ys},timeMillisecond:function(){return Qee},timeMilliseconds:function(){return Xee},timeMinute:function(){return rwe},timeMinutes:function(){return iwe},timeMonday:function(){return ste},timeMondays:function(){return uwe},timeMonth:function(){return mwe},timeMonths:function(){return _we},timeParse:function(){return Bte},timeSaturday:function(){return fte},timeSaturdays:function(){return hwe},timeSecond:function(){return nte},timeSeconds:function(){return rte},timeSunday:function(){return Lj},timeSundays:function(){return pte},timeThursday:function(){return cte},timeThursdays:function(){return fwe},timeTuesday:function(){return lte},timeTuesdays:function(){return cwe},timeWednesday:function(){return ute},timeWednesdays:function(){return dwe},timeWeek:function(){return Lj},timeWeeks:function(){return pte},timeYear:function(){return gwe},timeYears:function(){return vwe},timeout:function(){return $E},timer:function(){return XE},timerFlush:function(){return HK},touch:function(){return HCe},touches:function(){return jCe},transition:function(){return Mne},transpose:function(){return rK},tree:function(){return Bge},treemap:function(){return Fge},treemapBinary:function(){return Uge},treemapDice:function(){return kx},treemapResquarify:function(){return jge},treemapSlice:function(){return tN},treemapSliceDice:function(){return Hge},treemapSquarify:function(){return NQ},tsvFormat:function(){return She},tsvFormatRows:function(){return Ehe},tsvParse:function(){return The},tsvParseRows:function(){return Mhe},utcDay:function(){return kwe},utcDays:function(){return Twe},utcFormat:function(){return Fj},utcFriday:function(){return wte},utcFridays:function(){return Dwe},utcHour:function(){return Cwe},utcHours:function(){return wwe},utcMillisecond:function(){return Qee},utcMilliseconds:function(){return Xee},utcMinute:function(){return ywe},utcMinutes:function(){return bwe},utcMonday:function(){return vte},utcMondays:function(){return Mwe},utcMonth:function(){return Owe},utcMonths:function(){return Iwe},utcParse:function(){return Uj},utcSaturday:function(){return kte},utcSaturdays:function(){return Awe},utcSecond:function(){return nte},utcSeconds:function(){return rte},utcSunday:function(){return Nj},utcSundays:function(){return Tte},utcThursday:function(){return Cte},utcThursdays:function(){return xwe},utcTuesday:function(){return yte},utcTuesdays:function(){return Swe},utcWednesday:function(){return bte},utcWednesdays:function(){return Ewe},utcWeek:function(){return Nj},utcWeeks:function(){return Tte},utcYear:function(){return Pwe},utcYears:function(){return Rwe},values:function(){return jpe},variance:function(){return XY},voronoi:function(){return jSe},window:function(){return hj},zip:function(){return ice},zoom:function(){return Fne},zoomIdentity:function(){return qN},zoomTransform:function(){return Nne}});var W={};m.r(W),m.d(W,{safe:function(){return foe},spec:function(){return kLe}});var A={};m.r(A),m.d(A,{angle:function(){return lZe},decibel:function(){return pZe},flex:function(){return fZe},frequency:function(){return cZe},length:function(){return sZe},resolution:function(){return dZe},semitones:function(){return hZe},time:function(){return uZe}});var H={};m.r(H),m.d(H,{getTrace:function(){return Qoe},isKeyword:function(){return $Ze},isProperty:function(){return XZe},isType:function(){return QZe}});var P={};m.r(P),m.d(P,{generate:function(){return dNe},name:function(){return uNe},parse:function(){return oae},structure:function(){return cNe}});var I={};m.r(I),m.d(I,{generate:function(){return _Ne},name:function(){return pNe},parse:function(){return sae},structure:function(){return mNe},walkContext:function(){return hNe}});var T={};m.r(T),m.d(T,{generate:function(){return bNe},name:function(){return gNe},parse:function(){return lae},structure:function(){return yNe},walkContext:function(){return vNe}});var E={};m.r(E),m.d(E,{generate:function(){return xNe},name:function(){return SNe},parse:function(){return cae},structure:function(){return ENe}});var j={};m.r(j),m.d(j,{generate:function(){return RNe},name:function(){return ONe},parse:function(){return hae},structure:function(){return PNe},walkContext:function(){return INe}});var R={};m.r(R),m.d(R,{generate:function(){return NNe},name:function(){return LNe},parse:function(){return mae},structure:function(){return ZNe}});var v={};m.r(v),m.d(v,{generate:function(){return UNe},name:function(){return BNe},parse:function(){return _ae},structure:function(){return FNe}});var x={};m.r(x),m.d(x,{generate:function(){return GNe},name:function(){return HNe},parse:function(){return gae},structure:function(){return jNe}});var w={};m.r(w),m.d(w,{generate:function(){return YNe},name:function(){return WNe},parse:function(){return vae},structure:function(){return VNe}});var Z={};m.r(Z),m.d(Z,{generate:function(){return $Ne},name:function(){return QNe},parse:function(){return bae},structure:function(){return XNe}});var D={};m.r(D),m.d(D,{generate:function(){return iBe},name:function(){return nBe},parse:function(){return Cae},structure:function(){return rBe}});var b={};m.r(b),m.d(b,{generate:function(){return _Be},name:function(){return pBe},parse:function(){return Tae},structure:function(){return mBe},walkContext:function(){return hBe}});var S={};m.r(S),m.d(S,{generate:function(){return wBe},name:function(){return bBe},parse:function(){return Mae},structure:function(){return CBe}});var k={};m.r(k),m.d(k,{generate:function(){return MBe},name:function(){return kBe},parse:function(){return Sae},structure:function(){return TBe}});var M={};m.r(M),m.d(M,{generate:function(){return DBe},name:function(){return SBe},parse:function(){return Eae},structure:function(){return xBe},walkContext:function(){return EBe}});var N={};m.r(N),m.d(N,{generate:function(){return PBe},name:function(){return OBe},parse:function(){return xae},structure:function(){return IBe},xxx:function(){return ABe}});var F={};m.r(F),m.d(F,{generate:function(){return ZBe},name:function(){return RBe},parse:function(){return Dae},structure:function(){return LBe}});var X={};m.r(X),m.d(X,{generate:function(){return FBe},name:function(){return NBe},parse:function(){return Aae},structure:function(){return BBe}});var $={};m.r($),m.d($,{generate:function(){return jBe},name:function(){return UBe},parse:function(){return Oae},structure:function(){return HBe}});var V={};m.r(V),m.d(V,{generate:function(){return WBe},name:function(){return GBe},parse:function(){return Iae},structure:function(){return zBe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return KBe},name:function(){return VBe},parse:function(){return Pae},structure:function(){return YBe}});var te={};m.r(te),m.d(te,{generate:function(){return XBe},name:function(){return JBe},parse:function(){return Rae},structure:function(){return QBe}});var be={};m.r(be),m.d(be,{generate:function(){return t5e},name:function(){return $Be},parse:function(){return Lae},structure:function(){return e5e}});var pe={};m.r(pe),m.d(pe,{generate:function(){return i5e},name:function(){return n5e},parse:function(){return Zae},structure:function(){return r5e}});var fe={};m.r(fe),m.d(fe,{generate:function(){return s5e},name:function(){return o5e},parse:function(){return Nae},structure:function(){return a5e}});var ue={};m.r(ue),m.d(ue,{generate:function(){return c5e},name:function(){return l5e},parse:function(){return Bae},structure:function(){return u5e}});var de={};m.r(de),m.d(de,{generate:function(){return p5e},name:function(){return d5e},parse:function(){return Fae},structure:function(){return f5e}});var ge={};m.r(ge),m.d(ge,{generate:function(){return g5e},name:function(){return h5e},parse:function(){return Uae},structure:function(){return _5e},walkContext:function(){return m5e}});var je={};m.r(je),m.d(je,{generate:function(){return C5e},name:function(){return v5e},parse:function(){return Hae},structure:function(){return b5e},walkContext:function(){return y5e}});var ot={};m.r(ot),m.d(ot,{generate:function(){return S5e},name:function(){return T5e},parse:function(){return Gae},structure:function(){return M5e}});var St={};m.r(St),m.d(St,{generate:function(){return A5e},name:function(){return x5e},parse:function(){return zae},structure:function(){return D5e}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return L5e},name:function(){return I5e},parse:function(){return Vae},structure:function(){return R5e},walkContext:function(){return P5e}});var Dt={};m.r(Dt),m.d(Dt,{generate:function(){return B5e},name:function(){return Z5e},parse:function(){return Yae},structure:function(){return N5e}});var Rt={};m.r(Rt),m.d(Rt,{generate:function(){return j5e},name:function(){return F5e},parse:function(){return Kae},structure:function(){return H5e},walkContext:function(){return U5e}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return V5e},name:function(){return z5e},parse:function(){return Xae},structure:function(){return W5e}});var $t={};m.r($t),m.d($t,{generate:function(){return Q5e},name:function(){return K5e},parse:function(){return ese},structure:function(){return J5e},walkContext:function(){return q5e}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return tFe},name:function(){return $5e},parse:function(){return nse},structure:function(){return eFe}});var pn={};m.r(pn),m.d(pn,{generate:function(){return aFe},name:function(){return iFe},parse:function(){return ose},structure:function(){return oFe}});var rt={};m.r(rt),m.d(rt,{generate:function(){return mFe},name:function(){return pFe},parse:function(){return sse},structure:function(){return hFe}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return vFe},name:function(){return _Fe},parse:function(){return lse},structure:function(){return gFe}});var _t={};m.r(_t),m.d(_t,{generate:function(){return wFe},name:function(){return bFe},parse:function(){return use},structure:function(){return CFe}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return P},Atrule:function(){return I},AtrulePrelude:function(){return T},AttributeSelector:function(){return E},Block:function(){return j},Brackets:function(){return R},CDC:function(){return v},CDO:function(){return x},ClassSelector:function(){return w},Combinator:function(){return Z},Comment:function(){return D},Declaration:function(){return b},DeclarationList:function(){return S},Dimension:function(){return k},Function:function(){return M},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return F},MediaFeature:function(){return $},MediaQuery:function(){return V},MediaQueryList:function(){return Q},NestingSelector:function(){return te},Nth:function(){return be},Number:function(){return pe},Operator:function(){return fe},Parentheses:function(){return ue},Percentage:function(){return de},PseudoClassSelector:function(){return ge},PseudoElementSelector:function(){return je},Ratio:function(){return ot},Raw:function(){return St},Rule:function(){return Tt},Selector:function(){return Dt},SelectorList:function(){return Rt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return pn},Url:function(){return rt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var Ve={};m.r(Ve),m.d(Ve,{AtrulePrelude:function(){return DFe},Selector:function(){return UFe},Value:function(){return GFe}});var at={};m.r(at),m.d(at,{AnPlusB:function(){return oae},Atrule:function(){return sae},AtrulePrelude:function(){return lae},AttributeSelector:function(){return cae},Block:function(){return hae},Brackets:function(){return mae},CDC:function(){return _ae},CDO:function(){return gae},ClassSelector:function(){return vae},Combinator:function(){return bae},Comment:function(){return Cae},Declaration:function(){return Tae},DeclarationList:function(){return Mae},Dimension:function(){return Sae},Function:function(){return Eae},Hash:function(){return xae},IdSelector:function(){return Aae},Identifier:function(){return Dae},MediaFeature:function(){return Oae},MediaQuery:function(){return Iae},MediaQueryList:function(){return Pae},NestingSelector:function(){return Rae},Nth:function(){return Lae},Number:function(){return Zae},Operator:function(){return Nae},Parentheses:function(){return Bae},Percentage:function(){return Fae},PseudoClassSelector:function(){return Uae},PseudoElementSelector:function(){return Hae},Ratio:function(){return Gae},Raw:function(){return zae},Rule:function(){return Vae},Selector:function(){return Yae},SelectorList:function(){return Kae},String:function(){return Xae},StyleSheet:function(){return ese},TypeSelector:function(){return nse},UnicodeRange:function(){return ose},Url:function(){return sse},Value:function(){return lse},WhiteSpace:function(){return use}});var ht={};m.r(ht),m.d(ht,{Hooks:function(){return lA},Lexer:function(){return tT},Parser:function(){return nT},Renderer:function(){return x5},Slugger:function(){return tW},TextRenderer:function(){return eW},Tokenizer:function(){return E5},defaults:function(){return ov},getDefaults:function(){return $z},lexer:function(){return m8e},marked:function(){return Nr},options:function(){return l8e},parse:function(){return p8e},parseInline:function(){return f8e},parser:function(){return h8e},setOptions:function(){return u8e},use:function(){return c8e},walkTokens:function(){return d8e}});var vn,Ut=m(3237),Wt=m(1120),U=m(3144),B=m(5671),qe=m(136),Be=m(9388),le=m(9808),t=m(5e3),Lt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,U.Z)(e)}(le.w_),zt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"onAndCancel",value:function(o,a,s){return o.addEventListener(a,s,!1),function(){o.removeEventListener(a,s,!1)}}},{key:"dispatchEvent",value:function(o,a){o.dispatchEvent(a)}},{key:"remove",value:function(o){o.parentNode&&o.parentNode.removeChild(o)}},{key:"createElement",value:function(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(o){return o.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(o){return o instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}},{key:"getBaseHref",value:function(o){var a=function Qt(){return(an=an||document.querySelector("base"))?an.getAttribute("href"):null}();return null==a?null:function Vt(n){(vn=vn||document.createElement("a")).setAttribute("href",n);var r=vn.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){an=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,le.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,le.HT)(new e)}}]),e}(Lt),an=null;var Jt=new t.OlP("TRANSITION_ID");var Fe=[{provide:t.ip1,useFactory:function Qe(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,le.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a<o.length;a++)i.remove(o[a])})}},deps:[Jt,le.K0,t.zs3],multi:!0}],ne=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"addToWindow",value:function(e){t.dqk.getAngularTestability=function(o){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=e.findTestabilityInTree(o,a);if(null==s)throw new Error("Could not find testability for element.");return s},t.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},t.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()};t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(function(a){var s=t.dqk.getAllAngularTestabilities(),l=s.length,u=!1,d=function(g){u=u||g,0==--l&&a(u)};s.forEach(function(h){h.whenStable(d)})})}},{key:"findTestabilityInTree",value:function(e,i,o){if(null==i)return null;var a=e.getTestability(i);return null!=a?a:o?(0,le.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),ye=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();ye.\u0275fac=function(r){return new(r||ye)},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac});var he=new t.OlP("EventManagerPlugins"),Le=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this._zone=e,this._eventNameToPlugin=new Map,r.forEach(function(o){return o.manager=i}),this._plugins=r.slice().reverse()}return(0,U.Z)(n,[{key:"addEventListener",value:function(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}},{key:"addGlobalEventListener",value:function(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var i=this._eventNameToPlugin.get(e);if(i)return i;for(var o=this._plugins,a=0;a<o.length;a++){var s=o[a];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error("No event manager plugin found for event ".concat(e))}}]),n}();Le.\u0275fac=function(r){return new(r||Le)(t.LFG(he),t.LFG(t.R0b))},Le.\u0275prov=t.Yz7({token:Le,factory:Le.\u0275fac});var lt=function(){function n(r){(0,B.Z)(this,n),this._doc=r}return(0,U.Z)(n,[{key:"addGlobalEventListener",value:function(e,i,o){var a=(0,le.q)().getGlobalEventTarget(this._doc,e);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(i));return this.addEventListener(a,i,o)}}]),n}(),ut=function(){function n(){(0,B.Z)(this,n),this._stylesSet=new Set}return(0,U.Z)(n,[{key:"addStyles",value:function(e){var i=this,o=new Set;e.forEach(function(a){i._stylesSet.has(a)||(i._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),n}();ut.\u0275fac=function(r){return new(r||ut)},ut.\u0275prov=t.Yz7({token:ut,factory:ut.\u0275fac});var Nt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._doc=i,o._hostNodes=new Map,o._hostNodes.set(i.head,[]),o}return(0,U.Z)(e,[{key:"_addStylesToHost",value:function(o,a,s){var l=this;o.forEach(function(u){var d=l._doc.createElement("style");d.textContent=u,s.push(a.appendChild(d))})}},{key:"addHost",value:function(o){var a=[];this._addStylesToHost(this._stylesSet,o,a),this._hostNodes.set(o,a)}},{key:"removeHost",value:function(o){var a=this._hostNodes.get(o);a&&a.forEach(jt),this._hostNodes.delete(o)}},{key:"onStylesAdded",value:function(o){var a=this;this._hostNodes.forEach(function(s,l){a._addStylesToHost(o,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(o){return o.forEach(jt)})}}]),e}(ut);function jt(n){(0,le.q)().remove(n)}Nt.\u0275fac=function(r){return new(r||Nt)(t.LFG(le.K0))},Nt.\u0275prov=t.Yz7({token:Nt,factory:Nt.\u0275fac});var sn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},yn=/%COMP%/g,hn="_nghost-".concat("%COMP%"),mn="_ngcontent-".concat("%COMP%");function tt(n,r,e){for(var i=0;i<r.length;i++){var o=r[i];Array.isArray(o)?tt(n,o,e):(o=o.replace(yn,n),e.push(o))}return e}function Et(n){return function(r){if("__ngUnwrap__"===r)return n;!1===n(r)&&(r.preventDefault(),r.returnValue=!1)}}var Ye=function(){function n(r,e,i){(0,B.Z)(this,n),this.eventManager=r,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Re(r)}return(0,U.Z)(n,[{key:"createRenderer",value:function(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case t.ifc.Emulated:var o=this.rendererByCompId.get(i.id);return o||(o=new Un(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o;case 1:case t.ifc.ShadowDom:return new Kt(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){var a=tt(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),n}();Ye.\u0275fac=function(r){return new(r||Ye)(t.LFG(Le),t.LFG(Nt),t.LFG(t.AFp))},Ye.\u0275prov=t.Yz7({token:Ye,factory:Ye.\u0275fac});var Re=function(){function n(r){(0,B.Z)(this,n),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return(0,U.Z)(n,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,i){return i?document.createElementNS(sn[i]||i,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,i){(dn(e)?e.content:e).appendChild(i)}},{key:"insertBefore",value:function(e,i,o){e&&(dn(e)?e.content:e).insertBefore(i,o)}},{key:"removeChild",value:function(e,i){e&&e.removeChild(i)}},{key:"selectRootElement",value:function(e,i){var o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error('The selector "'.concat(e,'" did not match any elements'));return i||(o.textContent=""),o}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,i,o,a){if(a){i=a+":"+i;var s=sn[a];s?e.setAttributeNS(s,i,o):e.setAttribute(i,o)}else e.setAttribute(i,o)}},{key:"removeAttribute",value:function(e,i,o){if(o){var a=sn[o];a?e.removeAttributeNS(a,i):e.removeAttribute("".concat(o,":").concat(i))}else e.removeAttribute(i)}},{key:"addClass",value:function(e,i){e.classList.add(i)}},{key:"removeClass",value:function(e,i){e.classList.remove(i)}},{key:"setStyle",value:function(e,i,o,a){a&(t.JOm.DashCase|t.JOm.Important)?e.style.setProperty(i,o,a&t.JOm.Important?"important":""):e.style[i]=o}},{key:"removeStyle",value:function(e,i,o){o&t.JOm.DashCase?e.style.removeProperty(i):e.style[i]=""}},{key:"setProperty",value:function(e,i,o){e[i]=o}},{key:"setValue",value:function(e,i){e.nodeValue=i}},{key:"listen",value:function(e,i,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,i,Et(o)):this.eventManager.addEventListener(e,i,Et(o))}}]),n}();"@".charCodeAt(0);function dn(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}var Un=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this,i)).component=a;var u=tt(s+"-"+a.id,a.styles,[]);return o.addStyles(u),l.contentAttr=function At(n){return mn.replace(yn,n)}(s+"-"+a.id),l.hostAttr=function xt(n){return hn.replace(yn,n)}(s+"-"+a.id),l}return(0,U.Z)(e,[{key:"applyToHost",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"setAttribute",this).call(this,o,this.hostAttr,"")}},{key:"createElement",value:function(o,a){var s=(0,Ut.Z)((0,Wt.Z)(e.prototype),"createElement",this).call(this,o,a);return(0,Ut.Z)((0,Wt.Z)(e.prototype),"setAttribute",this).call(this,s,this.contentAttr,""),s}}]),e}(Re),Kt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this,i)).sharedStylesHost=o,l.hostEl=a,l.shadowRoot=a.attachShadow({mode:"open"}),l.sharedStylesHost.addHost(l.shadowRoot);for(var u=tt(s.id,s.styles,[]),d=0;d<u.length;d++){var h=document.createElement("style");h.textContent=u[d],l.shadowRoot.appendChild(h)}return l}return(0,U.Z)(e,[{key:"nodeOrShadowRoot",value:function(o){return o===this.hostEl?this.shadowRoot:o}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(o,a){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"insertBefore",value:function(o,a,s){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(o),a,s)}},{key:"removeChild",value:function(o,a){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"parentNode",value:function(o){return this.nodeOrShadowRoot((0,Ut.Z)((0,Wt.Z)(e.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(o)))}}]),e}(Re),yt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e,[{key:"supports",value:function(o){return!0}},{key:"addEventListener",value:function(o,a,s){var l=this;return o.addEventListener(a,s,!1),function(){return l.removeEventListener(o,a,s)}}},{key:"removeEventListener",value:function(o,a,s){return o.removeEventListener(a,s)}}]),e}(lt);yt.\u0275fac=function(r){return new(r||yt)(t.LFG(le.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac});var et=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wt={alt:function(r){return r.altKey},control:function(r){return r.ctrlKey},meta:function(r){return r.metaKey},shift:function(r){return r.shiftKey}},nn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e,[{key:"supports",value:function(o){return null!=e.parseEventName(o)}},{key:"addEventListener",value:function(o,a,s){var l=e.parseEventName(a),u=e.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,le.q)().onAndCancel(o,l.domEventName,u)})}}],[{key:"parseEventName",value:function(o){var a=o.toLowerCase().split("."),s=a.shift();if(0===a.length||"keydown"!==s&&"keyup"!==s)return null;var l=e._normalizeKey(a.pop()),u="",d=a.indexOf("code");if(d>-1&&(a.splice(d,1),u="code."),et.forEach(function(g){var y=a.indexOf(g);y>-1&&(a.splice(y,1),u+=g+".")}),u+=l,0!=a.length||0===l.length)return null;var h={};return h.domEventName=s,h.fullKey=u,h}},{key:"matchEventFullKeyCode",value:function(o,a){var s=gt[o.key]||o.key,l="";return a.indexOf("code.")>-1&&(s=o.code,l="code."),!(null==s||!s)&&(" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),et.forEach(function(u){u!==s&&((0,wt[u])(o)&&(l+=u+"."))}),(l+=s)===a)}},{key:"eventCallback",value:function(o,a,s){return function(l){e.matchEventFullKeyCode(l,o)&&s.runGuarded(function(){return a(l)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),e}(lt);nn.\u0275fac=function(r){return new(r||nn)(t.LFG(le.K0))},nn.\u0275prov=t.Yz7({token:nn,factory:nn.\u0275fac});var Ca=[{provide:t.Lbi,useValue:le.bD},{provide:t.g9A,useValue:function yi(){zt.makeCurrent()},multi:!0},{provide:le.K0,useFactory:function Va(){return(0,t.RDi)(document),document},deps:[]}],wa=(0,t.eFA)(t._c5,"browser",Ca),ls=new t.OlP(""),ta=[{provide:t.rWj,useClass:ne,deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Di=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function zi(){return new t.qLn},deps:[]},{provide:he,useClass:yt,multi:!0,deps:[le.K0,t.R0b,t.Lbi]},{provide:he,useClass:nn,multi:!0,deps:[le.K0]},{provide:Ye,useClass:Ye,deps:[Le,Nt,t.AFp]},{provide:t.FYo,useExisting:Ye},{provide:ut,useExisting:Nt},{provide:Nt,useClass:Nt,deps:[le.K0]},{provide:Le,useClass:Le,deps:[he,t.R0b]},{provide:le.JF,useClass:ye,deps:[]},[]],na=function(){function n(r){(0,B.Z)(this,n),false}return(0,U.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Jt,useExisting:t.AFp},Fe]}}}]),n}();na.\u0275fac=function(r){return new(r||na)(t.LFG(ls,12))},na.\u0275mod=t.oAB({type:na}),na.\u0275inj=t.cJS({providers:[].concat(Di,ta),imports:[le.ez,t.hGG]});var Gn=function(){function n(r){(0,B.Z)(this,n),this._doc=r,this._dom=(0,le.q)()}return(0,U.Z)(n,[{key:"addTag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,i):null}},{key:"addTags",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(a,s){return s&&a.push(i._getOrCreateElement(s,o)),a},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var i=this._doc.querySelectorAll("meta[".concat(e,"]"));return i?[].slice.call(i):[]}},{key:"updateTag",value:function(e,i){if(!e)return null;i=i||this._parseSelector(e);var o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!o){var a=this._parseSelector(e),s=this.getTags(a).filter(function(d){return i._containsAttributes(e,d)})[0];if(void 0!==s)return s}var l=this._dom.createElement("meta");this._setMetaElementAttributes(e,l);var u=this._doc.getElementsByTagName("head")[0];return u.appendChild(l),l}},{key:"_setMetaElementAttributes",value:function(e,i){var o=this;return Object.keys(e).forEach(function(a){return i.setAttribute(o._getMetaKeyMap(a),e[a])}),i}},{key:"_parseSelector",value:function(e){var i=e.name?"name":"property";return"".concat(i,'="').concat(e[i],'"')}},{key:"_containsAttributes",value:function(e,i){var o=this;return Object.keys(e).every(function(a){return i.getAttribute(o._getMetaKeyMap(a))===e[a]})}},{key:"_getMetaKeyMap",value:function(e){return vr[e]||e}}]),n}();Gn.\u0275fac=function(r){return new(r||Gn)(t.LFG(le.K0))},Gn.\u0275prov=t.Yz7({token:Gn,factory:function(r){return r?new r:function _o(){return new Gn((0,t.LFG)(le.K0))}()},providedIn:"root"});var vr={httpEquiv:"http-equiv"};var ni=function(){function n(r){(0,B.Z)(this,n),this._doc=r}return(0,U.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();ni.\u0275fac=function(r){return new(r||ni)(t.LFG(le.K0))},ni.\u0275prov=t.Yz7({token:ni,factory:function(r){return r?new r:function fi(){return new ni((0,t.LFG)(le.K0))}()},providedIn:"root"});function So(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var so="undefined"!=typeof window&&window||{},xr=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Vi=function(){function n(r){(0,B.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,U.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=so.console.profile;i&&a&&so.console.profile(o);for(var s=Eo(),l=0;l<5||Eo()-s<500;)this.appRef.tick(),l++;var u=Eo();i&&a&&so.console.profileEnd(o);var d=(u-s)/l;return so.console.log("ran ".concat(l," change detection cycles")),so.console.log("".concat(d.toFixed(2)," ms per check")),new xr(d,l)}}]),n}();function Eo(){return so.performance&&so.performance.now?so.performance.now():(new Date).getTime()}var ca="profiler";var Ui=function(){function n(){(0,B.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,U.Z)(n,[{key:"get",value:function(e,i){return void 0!==this.store[e]?this.store[e]:i}},{key:"set",value:function(e,i){this.store[e]=i}},{key:"remove",value:function(e){delete this.store[e]}},{key:"hasKey",value:function(e){return this.store.hasOwnProperty(e)}},{key:"isEmpty",get:function(){return 0===Object.keys(this.store).length}},{key:"onSerialize",value:function(e,i){this.onSerializeCallbacks[e]=i}},{key:"toJson",value:function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}]),n}();Ui.\u0275fac=function(r){return new(r||Ui)},Ui.\u0275prov=t.Yz7({token:Ui,factory:function(){return r=(0,t.f3M)(le.K0),e=(0,t.f3M)(t.AFp),(i=new Ui).store=function Ks(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function Ya(n){var r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return n.replace(/&[^;]+;/g,function(e){return r[e]})}(e.textContent))}catch(o){console.warn("Exception while restoring TransferState for app "+r,o)}return i}(r,e),i;var r,e,i},providedIn:"root"});var ii=(0,U.Z)(function n(){(0,B.Z)(this,n)});ii.\u0275fac=function(r){return new(r||ii)},ii.\u0275mod=t.oAB({type:ii}),ii.\u0275inj=t.cJS({});var to={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Ai=new t.OlP("HammerGestureConfig"),pu=new t.OlP("HammerLoader"),Yi=function(){function n(){(0,B.Z)(this,n),this.events=[],this.overrides={}}return(0,U.Z)(n,[{key:"buildHammer",value:function(e){var i=new Hammer(e,this.options);for(var o in i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0}),this.overrides)i.get(o).set(this.overrides[o]);return i}}]),n}();Yi.\u0275fac=function(r){return new(r||Yi)},Yi.\u0275prov=t.Yz7({token:Yi,factory:Yi.\u0275fac});var tn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,U.Z)(e,[{key:"supports",value:function(o){return!(!to.hasOwnProperty(o.toLowerCase())&&!this.isCustomEvent(o)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(o,a,s){var l=this,u=this.manager.getZone();if(a=a.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||u.runOutsideAngular(function(){return l.loader()});var d=!1,h=function(){d=!0};return u.runOutsideAngular(function(){return l._loaderPromise.then(function(){window.Hammer?d||(h=l.addEventListener(o,a,s)):h=function(){}}).catch(function(){h=function(){}})}),function(){h()}}return u.runOutsideAngular(function(){var g=l._config.buildHammer(o),y=function(z){u.runGuarded(function(){s(z)})};return g.on(a,y),function(){g.off(a,y),"function"==typeof g.destroy&&g.destroy()}})}},{key:"isCustomEvent",value:function(o){return this._config.events.indexOf(o)>-1}}]),e}(lt);tn.\u0275fac=function(r){return new(r||tn)(t.LFG(le.K0),t.LFG(Ai),t.LFG(t.c2e),t.LFG(pu,8))},tn.\u0275prov=t.Yz7({token:tn,factory:tn.\u0275fac});var en=(0,U.Z)(function n(){(0,B.Z)(this,n)});en.\u0275fac=function(r){return new(r||en)},en.\u0275mod=t.oAB({type:en}),en.\u0275inj=t.cJS({providers:[{provide:he,useClass:tn,multi:!0,deps:[le.K0,Ai,t.c2e,[new t.FiY,pu]]},{provide:Ai,useClass:Yi,deps:[]}]});var Dr=(0,U.Z)(function n(){(0,B.Z)(this,n)});Dr.\u0275fac=function(r){return new(r||Dr)},Dr.\u0275prov=t.Yz7({token:Dr,factory:function(r){return r?new(r||Dr):t.LFG(Ki)},providedIn:"root"});var Ki=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,U.Z)(e,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case t.q3G.NONE:return a;case t.q3G.HTML:return(0,t.qzn)(a,"HTML")?(0,t.z3N)(a):(0,t.EiD)(this._doc,String(a)).toString();case t.q3G.STYLE:return(0,t.qzn)(a,"Style")?(0,t.z3N)(a):a;case t.q3G.SCRIPT:if((0,t.qzn)(a,"Script"))return(0,t.z3N)(a);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.qzn)(a,"URL")?(0,t.z3N)(a):(0,t.mCW)(String(a));case t.q3G.RESOURCE_URL:if((0,t.qzn)(a,"ResourceURL"))return(0,t.z3N)(a);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(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return(0,t.JVY)(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return(0,t.L6k)(o)}},{key:"bypassSecurityTrustScript",value:function(o){return(0,t.eBb)(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return(0,t.LAX)(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return(0,t.pB0)(o)}}]),e}(Dr);Ki.\u0275fac=function(r){return new(r||Ki)(t.LFG(le.K0))},Ki.\u0275prov=t.Yz7({token:Ki,factory:function(r){return r?new r:function no(n){return new Ki(n.get(le.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ti=m(2963),ro=m(1002);function Rn(){Rn=function(){return n};var n={},r=Object.prototype,e=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(bt,$e,Pe){return Object.defineProperty(bt,$e,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),bt[$e]}try{l({},"")}catch(bt){l=function(Pe,ct,Bt){return Pe[ct]=Bt}}function u(bt,$e,Pe,ct){var Tn,jn,zn,ar,Bt=$e&&$e.prototype instanceof g?$e:g,Ht=Object.create(Bt.prototype),Pt=new De(ct||[]);return Ht._invoke=(Tn=bt,jn=Pe,zn=Pt,ar="suspendedStart",function(kr,_r){if("executing"===ar)throw new Error("Generator is already running");if("completed"===ar){if("throw"===kr)throw _r;return{value:void 0,done:!0}}for(zn.method=kr,zn.arg=_r;;){var Wr=zn.delegate;if(Wr){var Hr=Ee(Wr,zn);if(Hr){if(Hr===h)continue;return Hr}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===ar)throw ar="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);ar="executing";var Kr=d(Tn,jn,zn);if("normal"===Kr.type){if(ar=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(ar="completed",zn.method="throw",zn.arg=Kr.arg)}}),Ht}function d(bt,$e,Pe){try{return{type:"normal",arg:bt.call($e,Pe)}}catch(ct){return{type:"throw",arg:ct}}}n.wrap=u;var h={};function g(){}function y(){}function L(){}var z={};l(z,o,function(){return this});var q=Object.getPrototypeOf,re=q&&q(q(it([])));re&&re!==r&&e.call(re,o)&&(z=re);var ae=L.prototype=g.prototype=Object.create(z);function Se(bt){["next","throw","return"].forEach(function($e){l(bt,$e,function(Pe){return this._invoke($e,Pe)})})}function Ce(bt,$e){function Pe(Bt,Ht,Pt,Tn){var jn=d(bt[Bt],bt,Ht);if("throw"!==jn.type){var zn=jn.arg,ar=zn.value;return ar&&"object"==(0,ro.Z)(ar)&&e.call(ar,"__await")?$e.resolve(ar.__await).then(function(kr){Pe("next",kr,Pt,Tn)},function(kr){Pe("throw",kr,Pt,Tn)}):$e.resolve(ar).then(function(kr){zn.value=kr,Pt(zn)},function(kr){return Pe("throw",kr,Pt,Tn)})}Tn(jn.arg)}var ct;this._invoke=function(Bt,Ht){function Pt(){return new $e(function(Tn,jn){Pe(Bt,Ht,Tn,jn)})}return ct=ct?ct.then(Pt,Pt):Pt()}}function Ee(bt,$e){var Pe=bt.iterator[$e.method];if(void 0===Pe){if($e.delegate=null,"throw"===$e.method){if(bt.iterator.return&&($e.method="return",$e.arg=void 0,Ee(bt,$e),"throw"===$e.method))return h;$e.method="throw",$e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var ct=d(Pe,bt.iterator,$e.arg);if("throw"===ct.type)return $e.method="throw",$e.arg=ct.arg,$e.delegate=null,h;var Bt=ct.arg;return Bt?Bt.done?($e[bt.resultName]=Bt.value,$e.next=bt.nextLoc,"return"!==$e.method&&($e.method="next",$e.arg=void 0),$e.delegate=null,h):Bt:($e.method="throw",$e.arg=new TypeError("iterator result is not an object"),$e.delegate=null,h)}function Ke(bt){var $e={tryLoc:bt[0]};1 in bt&&($e.catchLoc=bt[1]),2 in bt&&($e.finallyLoc=bt[2],$e.afterLoc=bt[3]),this.tryEntries.push($e)}function st(bt){var $e=bt.completion||{};$e.type="normal",delete $e.arg,bt.completion=$e}function De(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ke,this),this.reset(!0)}function it(bt){if(bt){var $e=bt[o];if($e)return $e.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Pe=-1,ct=function Bt(){for(;++Pe<bt.length;)if(e.call(bt,Pe))return Bt.value=bt[Pe],Bt.done=!1,Bt;return Bt.value=void 0,Bt.done=!0,Bt};return ct.next=ct}}return{next:ft}}function ft(){return{value:void 0,done:!0}}return y.prototype=L,l(ae,"constructor",L),l(L,"constructor",y),y.displayName=l(L,s,"GeneratorFunction"),n.isGeneratorFunction=function(bt){var $e="function"==typeof bt&&bt.constructor;return!!$e&&($e===y||"GeneratorFunction"===($e.displayName||$e.name))},n.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,L):(bt.__proto__=L,l(bt,s,"GeneratorFunction")),bt.prototype=Object.create(ae),bt},n.awrap=function(bt){return{__await:bt}},Se(Ce.prototype),l(Ce.prototype,a,function(){return this}),n.AsyncIterator=Ce,n.async=function(bt,$e,Pe,ct,Bt){void 0===Bt&&(Bt=Promise);var Ht=new Ce(u(bt,$e,Pe,ct),Bt);return n.isGeneratorFunction($e)?Ht:Ht.next().then(function(Pt){return Pt.done?Pt.value:Ht.next()})},Se(ae),l(ae,s,"Generator"),l(ae,o,function(){return this}),l(ae,"toString",function(){return"[object Generator]"}),n.keys=function(bt){var $e=[];for(var Pe in bt)$e.push(Pe);return $e.reverse(),function ct(){for(;$e.length;){var Bt=$e.pop();if(Bt in bt)return ct.value=Bt,ct.done=!1,ct}return ct.done=!0,ct}},n.values=it,De.prototype={constructor:De,reset:function($e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(st),!$e)for(var Pe in this)"t"===Pe.charAt(0)&&e.call(this,Pe)&&!isNaN(+Pe.slice(1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var $e=this.tryEntries[0].completion;if("throw"===$e.type)throw $e.arg;return this.rval},dispatchException:function($e){if(this.done)throw $e;var Pe=this;function ct(zn,ar){return Pt.type="throw",Pt.arg=$e,Pe.next=zn,ar&&(Pe.method="next",Pe.arg=void 0),!!ar}for(var Bt=this.tryEntries.length-1;Bt>=0;--Bt){var Ht=this.tryEntries[Bt],Pt=Ht.completion;if("root"===Ht.tryLoc)return ct("end");if(Ht.tryLoc<=this.prev){var Tn=e.call(Ht,"catchLoc"),jn=e.call(Ht,"finallyLoc");if(Tn&&jn){if(this.prev<Ht.catchLoc)return ct(Ht.catchLoc,!0);if(this.prev<Ht.finallyLoc)return ct(Ht.finallyLoc)}else if(Tn){if(this.prev<Ht.catchLoc)return ct(Ht.catchLoc,!0)}else{if(!jn)throw new Error("try statement without catch or finally");if(this.prev<Ht.finallyLoc)return ct(Ht.finallyLoc)}}}},abrupt:function($e,Pe){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var Bt=this.tryEntries[ct];if(Bt.tryLoc<=this.prev&&e.call(Bt,"finallyLoc")&&this.prev<Bt.finallyLoc){var Ht=Bt;break}}Ht&&("break"===$e||"continue"===$e)&&Ht.tryLoc<=Pe&&Pe<=Ht.finallyLoc&&(Ht=null);var Pt=Ht?Ht.completion:{};return Pt.type=$e,Pt.arg=Pe,Ht?(this.method="next",this.next=Ht.finallyLoc,h):this.complete(Pt)},complete:function($e,Pe){if("throw"===$e.type)throw $e.arg;return"break"===$e.type||"continue"===$e.type?this.next=$e.arg:"return"===$e.type?(this.rval=this.arg=$e.arg,this.method="return",this.next="end"):"normal"===$e.type&&Pe&&(this.next=Pe),h},finish:function($e){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var ct=this.tryEntries[Pe];if(ct.finallyLoc===$e)return this.complete(ct.completion,ct.afterLoc),st(ct),h}},catch:function($e){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var ct=this.tryEntries[Pe];if(ct.tryLoc===$e){var Bt=ct.completion;if("throw"===Bt.type){var Ht=Bt.arg;st(ct)}return Ht}}throw new Error("illegal catch attempt")},delegateYield:function($e,Pe,ct){return this.delegate={iterator:it($e),resultName:Pe,nextLoc:ct},"next"===this.method&&(this.arg=void 0),h}},n}var qi,n,hu=m(4506),Jr=m(5647),Yn=m(7685),An=m(7762),cn=m(4902);function Oi(n){if(":"!=n[0])return[null,n];var r=n.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(n,'" expecting ":namespace:name"'));return[n.slice(1,r),n.slice(r+1)]}function Ji(n){return"ng-container"===Oi(n)[1]}function Ii(n){return"ng-content"===Oi(n)[1]}function Mi(n){return null===n?null:Oi(n)[0]}function Hi(n,r){return n?":".concat(n,":").concat(r):r}(n=qi||(qi={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var co,fa,hr=function(){function n(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.closedByChildren,o=e.implicitNamespacePrefix,a=e.contentType,s=void 0===a?qi.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,y=void 0!==g&&g,L=e.preventNamespaceInheritance,z=void 0!==L&&L;(0,B.Z)(this,n),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(q){return r.closedByChildren[q]=!0}),this.isVoid=h,this.closedByParent=u||h,this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=y,this.preventNamespaceInheritance=z}return(0,U.Z)(n,[{key:"isClosedByChild",value:function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}},{key:"getContentType",value:function(e){if("object"==typeof this.contentType){var i=void 0===e?void 0:this.contentType[e];return null!=i?i:this.contentType.default}return this.contentType}}]),n}();function ka(n){var r,e;return fa||(co=new hr,fa={base:new hr({isVoid:!0}),meta:new hr({isVoid:!0}),area:new hr({isVoid:!0}),embed:new hr({isVoid:!0}),link:new hr({isVoid:!0}),img:new hr({isVoid:!0}),input:new hr({isVoid:!0}),param:new hr({isVoid:!0}),hr:new hr({isVoid:!0}),br:new hr({isVoid:!0}),source:new hr({isVoid:!0}),track:new hr({isVoid:!0}),wbr:new hr({isVoid:!0}),p:new hr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new hr({closedByChildren:["tbody","tfoot"]}),tbody:new hr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new hr({closedByChildren:["tbody"],closedByParent:!0}),tr:new hr({closedByChildren:["tr"],closedByParent:!0}),td:new hr({closedByChildren:["td","th"],closedByParent:!0}),th:new hr({closedByChildren:["td","th"],closedByParent:!0}),col:new hr({isVoid:!0}),svg:new hr({implicitNamespacePrefix:"svg"}),foreignObject:new hr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new hr({implicitNamespacePrefix:"math"}),li:new hr({closedByChildren:["li"],closedByParent:!0}),dt:new hr({closedByChildren:["dt","dd"]}),dd:new hr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new hr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new hr({closedByChildren:["optgroup"],closedByParent:!0}),option:new hr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new hr({ignoreFirstLf:!0}),listing:new hr({ignoreFirstLf:!0}),style:new hr({contentType:qi.RAW_TEXT}),script:new hr({contentType:qi.RAW_TEXT}),title:new hr({contentType:{default:qi.ESCAPABLE_RAW_TEXT,svg:qi.PARSABLE_DATA}}),textarea:new hr({contentType:qi.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=fa[n])&&void 0!==r?r:fa[n.toLowerCase()])&&void 0!==e?e:co}var Jo,Qo,go=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),fo=function(){function n(){(0,B.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,U.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a<e.length;a++){var s=e.charAt(a);if("\\"!==s){if("$"===s&&!o)throw new Error('Error in attribute selector "'.concat(e,'". ')+'Unescaped "$" is not supported. Please escape with "\\$".');o=!1,i+=s}else o=!0}return i}},{key:"escapeAttribute",value:function(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}},{key:"isElementSelector",value:function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}},{key:"hasElementSelector",value:function(){return!!this.element}},{key:"setElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.element=e}},{key:"getMatchingElementTemplate",value:function(){for(var e=this.element||"div",i=this.classNames.length>0?' class="'.concat(this.classNames.join(" "),'"'):"",o="",a=0;a<this.attrs.length;a+=2){var s=this.attrs[a],l=""!==this.attrs[a+1]?'="'.concat(this.attrs[a+1],'"'):"";o+=" ".concat(s).concat(l)}return ka(e).isVoid?"<".concat(e).concat(i).concat(o,"/>"):"<".concat(e).concat(i).concat(o,"></").concat(e,">")}},{key:"getAttrs",value:function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}},{key:"addAttribute",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.attrs.push(e,i&&i.toLowerCase()||"")}},{key:"addClassName",value:function(e){this.classNames.push(e.toLowerCase())}},{key:"toString",value:function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(s){return e+=".".concat(s)}),this.attrs)for(var i=0;i<this.attrs.length;i+=2){var o=this.escapeAttribute(this.attrs[i]),a=this.attrs[i+1];e+="[".concat(o).concat(a?"="+a:"","]")}return this.notSelectors.forEach(function(s){return e+=":not(".concat(s,")")}),e}}],[{key:"parse",value:function(e){var s,i=[],o=function(L,z){z.notSelectors.length>0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),L.push(z)},a=new n,l=a,u=!1;for(go.lastIndex=0;s=go.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new n,a.notSelectors.push(l)}var d=s[2];if(d){var h=s[3];"#"===h?l.addAttribute("id",d.slice(1)):"."===h?l.addClassName(d.slice(1)):l.setElement(d)}var g=s[4];if(g&&l.addAttribute(l.unescapeAttribute(g),s[6]),s[7]&&(u=!1,l=a),s[8]){if(u)throw new Error("Multiple selectors in :not are not supported");o(i,a),a=l=new n}}return o(i,a),i}}]),n}();!function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Jo||(Jo={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(Qo||(Qo={}));var Br,_u,mu={name:"custom-elements"},ec={name:"no-errors-schema"};function _l(n){var r=function ml(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function mf(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.attrs.length?[3].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,cn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,cn.Z)(e))}function gu(n){return n?fo.parse(n).map(_l):[]}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(Br||(Br={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(_u||(_u={}));var ks=/-+([a-z0-9])/g;function vu(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function pa(n){throw new Error("Internal Error: ".concat(n))}function bd(n){for(var r=[],e=0;e<n.length;e++){var i=n.charCodeAt(e);if(i>=55296&&i<=56319&&n.length>e+1){var o=n.charCodeAt(e+1);o>=56320&&o<=57343&&(e++,i=(i-55296<<10)+o-56320+65536)}i<=127?r.push(i):i<=2047?r.push(i>>6&31|192,63&i|128):i<=65535?r.push(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&r.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128)}return r}function Ts(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ts).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return"".concat(n.overriddenName);if(n.name)return"".concat(n.name);if(!n.toString)return"object";var r=n.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var Xm=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ja=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var Cr=function(){function n(r){(0,B.Z)(this,n),this.digits=r}return(0,U.Z)(n,[{key:"clone",value:function(){return new n(this.digits.slice())}},{key:"add",value:function(e){var i=this.clone();return i.addToSelf(e),i}},{key:"addToSelf",value:function(e){for(var i=Math.max(this.digits.length,e.digits.length),o=0,a=0;a<i;a++){var s=o;a<this.digits.length&&(s+=this.digits[a]),a<e.digits.length&&(s+=e.digits[a]),s>=10?(this.digits[a]=s-10,o=1):(this.digits[a]=s,o=0)}o>0&&(this.digits[i]=1)}},{key:"toString",value:function(){for(var e="",i=this.digits.length-1;i>=0;i--)e+=this.digits[i];return e}}],[{key:"zero",value:function(){return new n([0])}},{key:"one",value:function(){return new n([1])}}]),n}(),us=function(){function n(r){(0,B.Z)(this,n),this.powerOfTwos=[r]}return(0,U.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Cr.zero();return this.multiplyByAndAddTo(e,i),i}},{key:"multiplyByAndAddTo",value:function(e,i){for(var o=0;0!==e;e>>>=1,o++)if(1&e){var a=this.getMultipliedByPowerOfTwo(o);i.addToSelf(a)}}},{key:"getMultipliedByPowerOfTwo",value:function(e){for(var i=this.powerOfTwos.length;i<=e;i++){var o=this.powerOfTwos[i-1];this.powerOfTwos[i]=o.add(o)}return this.powerOfTwos[e]}}]),n}(),rh=function(){function n(r){(0,B.Z)(this,n),this.base=r,this.exponents=[new us(Cr.one())]}return(0,U.Z)(n,[{key:"toThePowerOf",value:function(e){for(var i=this.exponents.length;i<=e;i++){var o=this.exponents[i-1].multiplyBy(this.base);this.exponents[i]=new us(o)}return this.exponents[e]}}]),n}();function ih(n){return function ke(n){var r=bd(n),e=function Qa(n,r){for(var e=n.length+3>>>2,i=[],o=0;o<e;o++)i[o]=Ta(n,4*o,r);return i}(r,Pn.Big),i=8*r.length,o=function nh(n,r){for(var e=[],i=0;i<n;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,d=3285377520;e[i>>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h<e.length;h+=16){for(var g=a,y=s,L=l,z=u,q=d,re=0;re<80;re++){o[re]=re<16?e[h+re]:Xs(o[re-3]^o[re-8]^o[re-14]^o[re-16],1);var ae=se(re,s,l,u),Se=ae[0],Ce=ae[1],Ee=[Xs(a,5),Se,d,Ce,o[re]].reduce(Qn);d=u,u=l,l=Xs(s,30),s=a,a=Ee}a=Qn(a,g),s=Qn(s,y),l=Qn(l,L),u=Qn(u,z),d=Qn(d,q)}return function e_(n){for(var r="",e=0;e<n.length;e++){var i=nc(n,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function cs(n){return n.reduce(function(r,e){return r.concat(function $m(n){for(var r=[],e=0;e<4;e++)r.push(n>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,d]))}(function xn(n){return n.map(function(r){return r.visit(Hl,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function _f(n){return n.id||Js(n)}function Js(n){var r=new we;return Oe(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var yu=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitText",value:function(e,i){return e.value}},{key:"visitContainer",value:function(e,i){var o=this;return"[".concat(e.children.map(function(a){return a.visit(o)}).join(", "),"]")}},{key:"visitIcu",value:function(e,i){var o=this,a=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(o),"}")});return"{".concat(e.expression,", ").concat(e.type,", ").concat(a.join(", "),"}")}},{key:"visitTagPlaceholder",value:function(e,i){var o=this;return e.isVoid?'<ph tag name="'.concat(e.startName,'"/>'):'<ph tag name="'.concat(e.startName,'">').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'</ph name="').concat(e.closeName,'">')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'<ph name="'.concat(e.name,'">').concat(e.value,"</ph>"):'<ph name="'.concat(e.name,'"/>')}},{key:"visitIcuPlaceholder",value:function(e,i){return'<ph icu name="'.concat(e.name,'">').concat(e.value.visit(this),"</ph>")}}]),n}(),Hl=new yu;var Pn,we=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"visitIcu",value:function(o,a){var s=this,l=Object.keys(o.cases).map(function(u){return"".concat(u," {").concat(o.cases[u].visit(s),"}")});return"{".concat(o.type,", ").concat(l.join(", "),"}")}}]),e}(yu);function se(n,r,e,i){return n<20?[r&e|~r&i,1518500249]:n<40?[r^e^i,1859775393]:n<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function Me(n){var r=bd(n),e=pt(r,0),i=pt(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Oe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=Me(n);if(r){var i=Me(r);e=tc(Xo(e,1),i)}var o=e[0],a=e[1];return t_(2147483647&o,a)}function pt(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=Yt(e=Qn(e,Ta(n,o,Pn.Little)),i=Qn(i,Ta(n,o+4,Pn.Little)),r=Qn(r,Ta(n,o+8,Pn.Little)));e=s[0],i=s[1],r=s[2]}return e=Qn(e,Ta(n,o,Pn.Little)),i=Qn(i,Ta(n,o+4,Pn.Little)),r=Qn(r,a),Yt(e,i,r=Qn(r,Ta(n,o+8,Pn.Little)<<8))[2]}function Yt(n,r,e){return n=Go(n,r),n=Go(n,e),n^=e>>>13,r=Go(r,e),r=Go(r,n),r^=n<<8,e=Go(e,n),e=Go(e,r),e^=r>>>13,n=Go(n,r),n=Go(n,e),n^=e>>>12,r=Go(r,e),r=Go(r,n),r^=n<<16,e=Go(e,n),e=Go(e,r),e^=r>>>5,n=Go(n,r),n=Go(n,e),n^=e>>>3,r=Go(r,e),r=Go(r,n),r^=n<<10,e=Go(e,n),e=Go(e,r),[n,r,e^=r>>>15]}function Qn(n,r){return Qs(n,r)[1]}function Qs(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function tc(n,r){var e=n[0],i=n[1],o=r[0],s=Qs(i,r[1]),l=s[0],u=s[1];return[Qn(Qn(e,o),l),u]}function Go(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function Xs(n,r){return n<<r|n>>>32-r}function Xo(n,r){var e=n[0],i=n[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function nc(n,r){return r>=n.length?0:n[r]}function Ta(n,r,e){var i=0;if(e===Pn.Big)for(var o=0;o<4;o++)i+=nc(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=nc(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(Pn||(Pn={}));var Ac,oh=new rh(256);function t_(n,r){var e=oh.toThePowerOf(0).multiplyBy(r);return oh.toThePowerOf(4).multiplyByAndAddTo(n,e),e.toString()}!function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(Ac||(Ac={}));var Ss,rc=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ac.None;(0,B.Z)(this,n),this.modifiers=r}return(0,U.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),n}();!function(n){n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None"}(Ss||(Ss={}));var mt,Mt,Es=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,U.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(rc),gl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,B.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,U.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(rc),vl=new Es(Ss.Dynamic),Ma=new Es(Ss.Inferred),Ie=new Es(Ss.Bool),_e=(new Es(Ss.Int),new Es(Ss.Number)),xe=new Es(Ss.String),ze=(new Es(Ss.Function),new Es(Ss.None));function wn(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Rr(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}function ai(n,r){return Rr(n,r,function(e,i){return e.isEquivalent(i)})}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(mt||(mt={})),function(n){n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseAnd=11]="BitwiseAnd",n[n.Lower=12]="Lower",n[n.LowerEquals=13]="LowerEquals",n[n.Bigger=14]="Bigger",n[n.BiggerEquals=15]="BiggerEquals",n[n.NullishCoalesce=16]="NullishCoalesce"}(Mt||(Mt={}));var si=function(){function n(r,e){(0,B.Z)(this,n),this.type=r||null,this.sourceSpan=e||null}return(0,U.Z)(n,[{key:"prop",value:function(e,i){return new fC(this,e,null,i)}},{key:"key",value:function(e,i,o){return new CP(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new ah(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new ce(this,e,i,o)}},{key:"conditional",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new ic(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new Ao(Mt.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new Ao(Mt.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new Ao(Mt.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new Ao(Mt.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new Ao(Mt.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new Ao(Mt.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new Ao(Mt.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new Ao(Mt.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new Ao(Mt.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new Ao(Mt.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Ao(Mt.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new Ao(Mt.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new Ao(Mt.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new Ao(Mt.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new Ao(Mt.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new Ao(Mt.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(yf,e)}},{key:"nullishCoalesce",value:function(e,i){return new Ao(Mt.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new uh(this,null)}}]),n}(),$s=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadVarExpr(this,a)}},{key:"set",value:function(o){return new vf(this.name,o,null,this.sourceSpan)}}]),e}(si),gf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,U.Z)(e,[{key:"visitExpression",value:function(o,a){return o.visitTypeofExpr(this,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&o.expr.isEquivalent(this.expr)}},{key:"isConstant",value:function(){return this.expr.isConstant()}}]),e}(si),Ar=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.node===o.node}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWrappedNodeExpr(this,a)}}]),e}(si),vf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteVarExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new bf(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ma,xs.Final)}}]),e}(si),n_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteKeyExpr(this,a)}}]),e}(si),Iv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWritePropExpr(this,a)}}]),e}(si),ah=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,B.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&ai(this.args,o.args)&&this.pure===o.pure}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInvokeFunctionExpr(this,a)}}]),e}(si),ie=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Rr(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&ai(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(si),ce=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&ai(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(si),me=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value===o.value}},{key:"isConstant",value:function(){return!0}},{key:"visitExpression",value:function(o,a){return o.visitLiteralExpr(this,a)}}]),e}(si),Ue=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.elements=r,this.expressions=e}),Xe=(0,U.Z)(function n(r,e,i){var o;(0,B.Z)(this,n),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:ds(Qr(r))}),It=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.text=r,this.sourceSpan=e}),rn=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),li=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,xe,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return!1}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitLocalizedString(this,a)}},{key:"serializeI18nHead",value:function(){var o=this.metaBlock.description||"";return this.metaBlock.meaning&&(o="".concat(this.metaBlock.meaning).concat("|").concat(o)),this.metaBlock.customId&&(o="".concat(o).concat("@@").concat(this.metaBlock.customId)),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(function(a){o="".concat(o).concat("\u241f").concat(a)}),ha(o,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}},{key:"getMessagePartSourceSpan",value:function(o){var a,s;return null!==(s=null===(a=this.messageParts[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:this.sourceSpan}},{key:"getPlaceholderSourceSpan",value:function(o){var a,s,l,u;return null!==(u=null!==(s=null===(a=this.placeHolderNames[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:null===(l=this.expressions[o])||void 0===l?void 0:l.sourceSpan)&&void 0!==u?u:this.sourceSpan}},{key:"serializeI18nTemplatePart",value:function(o){var a,s=this.placeHolderNames[o-1],l=this.messageParts[o],u=s.text;return 0===(null===(a=s.associatedMessage)||void 0===a?void 0:a.legacyIds.length)&&(u+="".concat("@@").concat(Oe(s.associatedMessage.messageString,s.associatedMessage.meaning))),ha(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(si),Qr=function(r){return r.replace(/\\/g,"\\\\")},Do=function(r){return r.replace(/^:/,"\\:")},Ra=function(r){return r.replace(/:/g,"\\:")},ds=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function ha(n,r,e){return""===n?{cooked:r,raw:ds(Do(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:ds(":".concat(Ra(Qr(n)),":").concat(Qr(r))),range:e}}var xs,fs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;return(0,B.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.name===o.value.name&&this.value.moduleName===o.value.moduleName&&this.value.runtime===o.value.runtime}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitExternalExpr(this,a)}}]),e}(si),ic=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,B.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&wn(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(si),bu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,Ie,o)).condition=i,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitNotExpr(this,a)}}]),e}(si),ma=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,B.Z)(this,n),this.name=r,this.type=e}return(0,U.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),Cu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&ai(this.params,o.params)&&ai(this.statements,o.statements)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitFunctionExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new fM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(si),Pv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,B.Z)(this,e),(l=r.call(this,a||_e,s)).operator=i,l.expr=o,l.parens=u,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.expr.isEquivalent(o.expr)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitUnaryOperatorExpr(this,a)}}]),e}(si),Ao=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,B.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=d,u.lhs=o,u}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.lhs.isEquivalent(o.lhs)&&this.rhs.isEquivalent(o.rhs)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitBinaryOperatorExpr(this,a)}}]),e}(si),fC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadPropExpr(this,a)}},{key:"set",value:function(o){return new Iv(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(si),CP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadKeyExpr(this,a)}},{key:"set",value:function(o){return new n_(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(si),jl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,U.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&ai(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(si),uM=function(){function n(r,e,i){(0,B.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,U.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&ai(this.entries,o.entries)}},{key:"isConstant",value:function(){return this.entries.every(function(o){return o.value.isConstant()})}},{key:"visitExpression",value:function(o,a){return o.visitLiteralMapExpr(this,a)}}]),e}(si),r_=new me(null,null,null),yf=new me(null,Ma,null);!function(n){n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static"}(xs||(xs={}));var dM=function(){function n(r,e,i){(0,B.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,U.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),pC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,U.Z)(e,[{key:"toString",value:function(){return function WW(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(io(n[0])," ");var i,r="*\n",e=(0,An.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=io(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(dM),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xs.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,B.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,U.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}},{key:"addLeadingComment",value:function(e){var i;this.leadingComments=null!==(i=this.leadingComments)&&void 0!==i?i:[],this.leadingComments.push(e)}}]),n}(),bf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,s,l,u)).name=i,d.value=o,d.type=a||o&&o.type||null,d}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&(this.value?!!o.value&&this.value.isEquivalent(o.value):!o.value)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareVarStmt(this,a)}}]),e}(lh),fM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,l,u,d)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&ai(this.params,o.params)&&ai(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),uh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,xs.None,o,a)).expr=i,s}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.expr.isEquivalent(o.expr)}},{key:"visitStatement",value:function(o,a){return o.visitExpressionStmt(this,a)}}]),e}(lh),Sa=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2?arguments[2]:void 0;return(0,B.Z)(this,e),(o=r.call(this,xs.None,a,s)).value=i,o}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.isEquivalent(o.value)}},{key:"visitStatement",value:function(o,a){return o.visitReturnStmt(this,a)}}]),e}(lh),i_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,B.Z)(this,e),(a=r.call(this,xs.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,U.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&ai(this.trueCase,o.trueCase)&&ai(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function pM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new pC(n)}function qr(n,r,e){return new $s(n,r,e)}function Xn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new fs(n,null,r,e)}function ps(n,r,e){return new gl(n,r,e)}function hC(n){return new gf(n)}function pi(n,r,e){return new jl(n,r,e)}function Ds(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new sh(n.map(function(e){return new uM(e.key,e.value,e.quoted)}),r,null)}function ch(n,r){return new bu(n,r)}function oa(n,r,e,i,o){return new Cu(n,r,e,i,o)}function Cf(n,r,e,i,o){return new i_(n,r,e,i,o)}function Rv(n,r,e,i){return new ie(n,r,e,i)}function on(n,r,e){return new me(n,r,e)}function kd(n,r,e,i,o){return new li(n,r,e,i,o)}function mC(n){return n instanceof me&&null===n.value}function io(n){var r="";if(n.tagName&&(r+=" @".concat(n.tagName)),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+n.text.replace(/@/g,"\\@")}return r}var TP=qr("<unknown>"),MP={},SP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,U.Z)(e,[{key:"visitExpression",value:function(o,a){return a===MP?this.original.visitExpression(o,a):this.resolved.visitExpression(o,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&this.resolved.isEquivalent(o.resolved)}},{key:"isConstant",value:function(){return!0}},{key:"fixup",value:function(o){this.resolved=o,this.shared=!0}}]),e}(si),wf=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,B.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,U.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof me&&!Lv(e)||e instanceof SP)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new SP(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Lv(e)?(u=qr(l).set(new Cu([],[new Sa(e)])),d=qr(l).callFn([])):(u=qr(l).set(e),d=qr(l)),this.statements.push(u.toDeclStmt(Ma,xs.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof jl){var i=e.entries.map(function(l){return l.isConstant()?l:TP}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=Ds(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:TP,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Ds(l.map(function(u,d){return{key:e.entries[d].key,value:u,quoted:e.entries[d].quoted}}))})}},{key:"_getLiteralFactory",value:function(e,i,o){var a=this,s=this.literalFactories.get(e),l=i.filter(function(y){return!y.isConstant()});if(!s){var u=i.map(function(y,L){return y.isConstant()?a.getConstLiteral(y,!0):qr("a".concat(L))}),h=oa(u.filter(Za).map(function(y){return new ma(y.name,vl)}),[new Sa(o(u))],Ma),g=this.freshName();this.statements.push(qr(g).set(h).toDeclStmt(Ma,xs.Final)),s=qr(g),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments:l}}},{key:"uniqueName",value:function(e){return"".concat(e).concat(this.nextNameIndex++)}},{key:"freshName",value:function(){return this.uniqueName("_c")}},{key:"keyOf",value:function(e){return e.visitExpression(new EP,MP)}}]),n}(),EP=function(){function n(){(0,B.Z)(this,n),this.visitWrappedNodeExpr=La,this.visitWriteVarExpr=La,this.visitWriteKeyExpr=La,this.visitWritePropExpr=La,this.visitInvokeFunctionExpr=La,this.visitTaggedTemplateExpr=La,this.visitInstantiateExpr=La,this.visitConditionalExpr=La,this.visitNotExpr=La,this.visitAssertNotNullExpr=La,this.visitCastExpr=La,this.visitFunctionExpr=La,this.visitUnaryOperatorExpr=La,this.visitBinaryOperatorExpr=La,this.visitReadPropExpr=La,this.visitReadKeyExpr=La,this.visitCommaExpr=La,this.visitLocalizedString=La}return(0,U.Z)(n,[{key:"visitLiteralExpr",value:function(e){return"".concat("string"==typeof e.value?'"'+e.value+'"':e.value)}},{key:"visitLiteralArrayExpr",value:function(e,i){var o=this;return"[".concat(e.entries.map(function(a){return a.visitExpression(o,i)}).join(","),"]")}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return"{".concat(e.entries.map(function(u){return"".concat(function(u){var d=u.quoted?'"':"";return"".concat(d).concat(u.key).concat(d)}(u),":").concat(u.value.visitExpression(o,i))}).join(","))}},{key:"visitExternalExpr",value:function(e){return e.value.moduleName?"EX:".concat(e.value.moduleName,":").concat(e.value.name):"EX:".concat(e.value.runtime.name)}},{key:"visitReadVarExpr",value:function(e){return"VAR:".concat(e.name)}},{key:"visitTypeofExpr",value:function(e,i){return"TYPEOF:".concat(e.expr.visitExpression(this,i))}}]),n}();function La(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Za(n){return n instanceof $s}function Lv(n){return n instanceof me&&"string"==typeof n.value&&n.value.length>=50}var qt="@angular/core",Ne=(0,U.Z)(function n(){(0,B.Z)(this,n)});Ne.NEW_METHOD="factory",Ne.TRANSFORM_METHOD="transform",Ne.PATCH_DEPS="patchedDeps",Ne.core={name:null,moduleName:qt},Ne.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:qt},Ne.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:qt},Ne.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:qt},Ne.element={name:"\u0275\u0275element",moduleName:qt},Ne.elementStart={name:"\u0275\u0275elementStart",moduleName:qt},Ne.elementEnd={name:"\u0275\u0275elementEnd",moduleName:qt},Ne.advance={name:"\u0275\u0275advance",moduleName:qt},Ne.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:qt},Ne.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:qt},Ne.attribute={name:"\u0275\u0275attribute",moduleName:qt},Ne.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:qt},Ne.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:qt},Ne.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:qt},Ne.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:qt},Ne.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:qt},Ne.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:qt},Ne.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:qt},Ne.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:qt},Ne.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:qt},Ne.classProp={name:"\u0275\u0275classProp",moduleName:qt},Ne.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:qt},Ne.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:qt},Ne.elementContainer={name:"\u0275\u0275elementContainer",moduleName:qt},Ne.styleMap={name:"\u0275\u0275styleMap",moduleName:qt},Ne.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:qt},Ne.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:qt},Ne.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:qt},Ne.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:qt},Ne.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:qt},Ne.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:qt},Ne.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:qt},Ne.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:qt},Ne.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:qt},Ne.classMap={name:"\u0275\u0275classMap",moduleName:qt},Ne.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:qt},Ne.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:qt},Ne.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:qt},Ne.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:qt},Ne.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:qt},Ne.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:qt},Ne.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:qt},Ne.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:qt},Ne.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:qt},Ne.styleProp={name:"\u0275\u0275styleProp",moduleName:qt},Ne.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:qt},Ne.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:qt},Ne.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:qt},Ne.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:qt},Ne.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:qt},Ne.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:qt},Ne.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:qt},Ne.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:qt},Ne.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:qt},Ne.nextContext={name:"\u0275\u0275nextContext",moduleName:qt},Ne.resetView={name:"\u0275\u0275resetView",moduleName:qt},Ne.templateCreate={name:"\u0275\u0275template",moduleName:qt},Ne.text={name:"\u0275\u0275text",moduleName:qt},Ne.enableBindings={name:"\u0275\u0275enableBindings",moduleName:qt},Ne.disableBindings={name:"\u0275\u0275disableBindings",moduleName:qt},Ne.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:qt},Ne.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:qt},Ne.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:qt},Ne.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:qt},Ne.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:qt},Ne.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:qt},Ne.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:qt},Ne.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:qt},Ne.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:qt},Ne.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:qt},Ne.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:qt},Ne.restoreView={name:"\u0275\u0275restoreView",moduleName:qt},Ne.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:qt},Ne.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:qt},Ne.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:qt},Ne.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:qt},Ne.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:qt},Ne.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:qt},Ne.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:qt},Ne.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:qt},Ne.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:qt},Ne.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:qt},Ne.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:qt},Ne.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:qt},Ne.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:qt},Ne.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:qt},Ne.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:qt},Ne.hostProperty={name:"\u0275\u0275hostProperty",moduleName:qt},Ne.property={name:"\u0275\u0275property",moduleName:qt},Ne.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:qt},Ne.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:qt},Ne.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:qt},Ne.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:qt},Ne.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:qt},Ne.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:qt},Ne.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:qt},Ne.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:qt},Ne.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:qt},Ne.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:qt},Ne.i18n={name:"\u0275\u0275i18n",moduleName:qt},Ne.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:qt},Ne.i18nExp={name:"\u0275\u0275i18nExp",moduleName:qt},Ne.i18nStart={name:"\u0275\u0275i18nStart",moduleName:qt},Ne.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:qt},Ne.i18nApply={name:"\u0275\u0275i18nApply",moduleName:qt},Ne.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:qt},Ne.pipe={name:"\u0275\u0275pipe",moduleName:qt},Ne.projection={name:"\u0275\u0275projection",moduleName:qt},Ne.projectionDef={name:"\u0275\u0275projectionDef",moduleName:qt},Ne.reference={name:"\u0275\u0275reference",moduleName:qt},Ne.inject={name:"\u0275\u0275inject",moduleName:qt},Ne.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:qt},Ne.directiveInject={name:"\u0275\u0275directiveInject",moduleName:qt},Ne.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:qt},Ne.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:qt},Ne.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:qt},Ne.forwardRef={name:"forwardRef",moduleName:qt},Ne.resolveForwardRef={name:"resolveForwardRef",moduleName:qt},Ne.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:qt},Ne.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:qt},Ne.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:qt},Ne.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:qt},Ne.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:qt},Ne.resolveBody={name:"\u0275\u0275resolveBody",moduleName:qt},Ne.defineComponent={name:"\u0275\u0275defineComponent",moduleName:qt},Ne.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:qt},Ne.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:qt},Ne.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:qt},Ne.ViewEncapsulation={name:"ViewEncapsulation",moduleName:qt},Ne.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:qt},Ne.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:qt},Ne.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:qt},Ne.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:qt},Ne.defineDirective={name:"\u0275\u0275defineDirective",moduleName:qt},Ne.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:qt},Ne.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:qt},Ne.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:qt},Ne.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:qt},Ne.defineInjector={name:"\u0275\u0275defineInjector",moduleName:qt},Ne.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:qt},Ne.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:qt},Ne.ModuleWithProviders={name:"ModuleWithProviders",moduleName:qt},Ne.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:qt},Ne.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:qt},Ne.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:qt},Ne.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:qt},Ne.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:qt},Ne.definePipe={name:"\u0275\u0275definePipe",moduleName:qt},Ne.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:qt},Ne.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:qt},Ne.setClassMetadata={name:"\u0275setClassMetadata",moduleName:qt},Ne.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:qt},Ne.viewQuery={name:"\u0275\u0275viewQuery",moduleName:qt},Ne.loadQuery={name:"\u0275\u0275loadQuery",moduleName:qt},Ne.contentQuery={name:"\u0275\u0275contentQuery",moduleName:qt},Ne.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:qt},Ne.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:qt},Ne.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:qt},Ne.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:qt},Ne.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:qt},Ne.listener={name:"\u0275\u0275listener",moduleName:qt},Ne.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:qt},Ne.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:qt},Ne.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:qt},Ne.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:qt},Ne.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:qt},Ne.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:qt},Ne.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:qt},Ne.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:qt},Ne.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:qt},Ne.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:qt};var Td=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,B.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,U.Z)(n,[{key:"addSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.sourcesContent.has(e)||this.sourcesContent.set(e,i),this}},{key:"addLine",value:function(){return this.lines.push([]),this.lastCol0=0,this}},{key:"addMapping",value:function(e,i,o,a){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=i&&!this.sourcesContent.has(i))throw new Error('Unknown source file "'.concat(i,'"'));if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(i&&(null==o||null==a))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:i,sourceLine0:o,sourceCol0:a}),this}},{key:"currentLine",get:function(){return this.lines.slice(-1)[0]}},{key:"toJSON",value:function(){var e=this;if(!this.hasMappings)return null;var i=new Map,o=[],a=[];Array.from(this.sourcesContent.keys()).forEach(function(g,y){i.set(g,y),o.push(g),a.push(e.sourcesContent.get(g)||null)});var s="",l=0,u=0,d=0,h=0;return this.lines.forEach(function(g){l=0,s+=g.map(function(y){var L=dh(y.col0-l);return l=y.col0,null!=y.sourceUrl&&(L+=dh(i.get(y.sourceUrl)-u),u=i.get(y.sourceUrl),L+=dh(y.sourceLine0-d),d=y.sourceLine0,L+=dh(y.sourceCol0-h),h=y.sourceCol0),L}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:o,sourcesContent:a,mappings:s}}},{key:"toJsComment",value:function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function xP(n){for(var r="",e=bd(n),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=a_(o>>2),r+=a_((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":a_((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":a_(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function dh(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=a_(e)}while(n>0);return r}function a_(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var dF=/'|\\|\n|\r|\$/g,fF=/^[$A-Z_][0-9A-Z_$]*$/i,pF=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),AP=function(){function n(r){(0,B.Z)(this,n),this._indent=r,this._lines=[new pF(r)]}return(0,U.Z)(n,[{key:"_currentLine",get:function(){return this._lines[this._lines.length-1]}},{key:"println",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.print(e||null,i,!0)}},{key:"lineIsEmpty",value:function(){return 0===this._currentLine.parts.length}},{key:"lineLength",value:function(){return this._currentLine.indent*" ".length+this._currentLine.partsLength}},{key:"print",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.length>0&&(this._currentLine.parts.push(i),this._currentLine.partsLength+=i.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),o&&this._lines.push(new pF(this._indent))}},{key:"removeEmptyLastLine",value:function(){this.lineIsEmpty()&&this._lines.pop()}},{key:"incIndent",value:function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"decIndent",value:function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"toSource",value:function(){return this.sourceLines.map(function(e){return e.parts.length>0?fh(e.indent)+e.parts.join(""):""}).join("\n")}},{key:"toSourceMapGenerator",value:function(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=new Td(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;l<i;l++)o.addLine(),s();return this.sourceLines.forEach(function(u,d){o.addLine();for(var h=u.srcSpans,g=u.parts,y=u.indent*" ".length,L=0;L<h.length&&!h[L];)y+=g[L].length,L++;for(L<h.length&&0===d&&0===y?a=!0:s();L<h.length;){var z=h[L],q=z.start.file,re=z.start.line,ae=z.start.col;for(o.addSource(q.url,q.content).addMapping(y,q.url,re,ae),y+=g[L].length,L++;L<h.length&&(z===h[L]||!h[L]);)y+=g[L].length,L++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-fh(o.indent).length,s=0;s<o.parts.length;s++){var l=o.parts[s];if(l.length>a)return o.srcSpans[s];a-=l.length}return null}},{key:"sourceLines",get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}],[{key:"createRoot",value:function(){return new n(0)}}]),n}(),zl=function(){function n(r){(0,B.Z)(this,n),this._escapeDollarInStrings=r}return(0,U.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,An.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof pC?i.print(e,"/*".concat(s.toString(),"*/"),s.trailingNewline):s.multiline?i.print(e,"/* ".concat(s.text," */"),s.trailingNewline):s.text.split("\n").forEach(function(l){i.println(e,"// ".concat(l))})}}catch(l){o.e(l)}finally{o.f()}}}},{key:"visitExpressionStmt",value:function(e,i){return this.printLeadingComments(e,i),e.expr.visitExpression(this,i),i.println(e,";"),null}},{key:"visitReturnStmt",value:function(e,i){return this.printLeadingComments(e,i),i.print(e,"return "),e.value.visitExpression(this,i),i.println(e,";"),null}},{key:"visitIfStmt",value:function(e,i){this.printLeadingComments(e,i),i.print(e,"if ("),e.condition.visitExpression(this,i),i.print(e,") {");var o=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!o?(i.print(e," "),this.visitAllStatements(e.trueCase,i),i.removeEmptyLastLine(),i.print(e," ")):(i.println(),i.incIndent(),this.visitAllStatements(e.trueCase,i),i.decIndent(),o&&(i.println(e,"} else {"),i.incIndent(),this.visitAllStatements(e.falseCase,i),i.decIndent())),i.println(e,"}"),null}},{key:"visitWriteVarExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),i.print(e,"".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWriteKeyExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"] = "),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWritePropExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,".".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitInvokeFunctionExpr",value:function(e,i){return e.fn.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitTaggedTemplateExpr",value:function(e,i){e.tag.visitExpression(this,i),i.print(e,"`"+e.template.elements[0].rawText);for(var o=1;o<e.template.elements.length;o++)i.print(e,"${"),e.template.expressions[o-1].visitExpression(this,i),i.print(e,"}".concat(e.template.elements[o].rawText));return i.print(e,"`"),null}},{key:"visitWrappedNodeExpr",value:function(e,i){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}},{key:"visitTypeofExpr",value:function(e,i){i.print(e,"typeof "),e.expr.visitExpression(this,i)}},{key:"visitReadVarExpr",value:function(e,i){return i.print(e,e.name),null}},{key:"visitInstantiateExpr",value:function(e,i){return i.print(e,"new "),e.classExpr.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitLiteralExpr",value:function(e,i){var o=e.value;return"string"==typeof o?i.print(e,Md(o,this._escapeDollarInStrings)):i.print(e,"".concat(o)),null}},{key:"visitLocalizedString",value:function(e,i){var o=e.serializeI18nHead();i.print(e,"$localize `"+o.raw);for(var a=1;a<e.messageParts.length;a++)i.print(e,"${"),e.expressions[a-1].visitExpression(this,i),i.print(e,"}".concat(e.serializeI18nTemplatePart(a).raw));return i.print(e,"`"),null}},{key:"visitConditionalExpr",value:function(e,i){return i.print(e,"("),e.condition.visitExpression(this,i),i.print(e,"? "),e.trueCase.visitExpression(this,i),i.print(e,": "),e.falseCase.visitExpression(this,i),i.print(e,")"),null}},{key:"visitNotExpr",value:function(e,i){return i.print(e,"!"),e.condition.visitExpression(this,i),null}},{key:"visitUnaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case mt.Plus:o="+";break;case mt.Minus:o="-";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),i.print(e,o),e.expr.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitBinaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case Mt.Equals:o="==";break;case Mt.Identical:o="===";break;case Mt.NotEquals:o="!=";break;case Mt.NotIdentical:o="!==";break;case Mt.And:o="&&";break;case Mt.BitwiseAnd:o="&";break;case Mt.Or:o="||";break;case Mt.Plus:o="+";break;case Mt.Minus:o="-";break;case Mt.Divide:o="/";break;case Mt.Multiply:o="*";break;case Mt.Modulo:o="%";break;case Mt.Lower:o="<";break;case Mt.LowerEquals:o="<=";break;case Mt.Bigger:o=">";break;case Mt.BiggerEquals:o=">=";break;case Mt.NullishCoalesce:o="??";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),e.lhs.visitExpression(this,i),i.print(e," ".concat(o," ")),e.rhs.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitReadPropExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"."),i.print(e,e.name),null}},{key:"visitReadKeyExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"]"),null}},{key:"visitLiteralArrayExpr",value:function(e,i){return i.print(e,"["),this.visitAllExpressions(e.entries,i,","),i.print(e,"]"),null}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return i.print(e,"{"),this.visitAllObjects(function(a){i.print(e,"".concat(Md(a.key,o._escapeDollarInStrings,a.quoted),":")),a.value.visitExpression(o,i)},e.entries,i,","),i.print(e,"}"),null}},{key:"visitCommaExpr",value:function(e,i){return i.print(e,"("),this.visitAllExpressions(e.parts,i,","),i.print(e,")"),null}},{key:"visitAllExpressions",value:function(e,i,o){var a=this;this.visitAllObjects(function(s){return s.visitExpression(a,i)},e,i,o)}},{key:"visitAllObjects",value:function(e,i,o,a){for(var s=!1,l=0;l<i.length;l++)l>0&&(o.lineLength()>80?(o.print(null,a,!0),s||(o.incIndent(),o.incIndent(),s=!0)):o.print(null,a,!1)),e(i[l]);s&&(o.decIndent(),o.decIndent())}},{key:"visitAllStatements",value:function(e,i){var o=this;e.forEach(function(a){return a.visitStatement(o,i)})}}]),n}();function Md(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(dF,function(){return"$"==(arguments.length<=0?void 0:arguments[0])?r?"\\$":"$":"\n"==(arguments.length<=0?void 0:arguments[0])?"\\n":"\r"==(arguments.length<=0?void 0:arguments[0])?"\\r":"\\".concat(arguments.length<=0?void 0:arguments[0])}),o=e||!fF.test(i);return o?"'".concat(i,"'"):i}function fh(n){for(var r="",e=0;e<n;e++)r+=" ";return r}function hM(n,r){if(0===r)return ps(n);for(var e=[],i=0;i<r;i++)e.push(vl);return ps(n,void 0,e)}var Bv,ac;function OP(n){return"".concat("@").concat(n)}function hF(n,r){return"".concat("@").concat(n,".").concat(r)}function IP(n,r){return"animation_".concat(n,"_").concat(r)}function gC(n,r){var e=new fs({name:n,moduleName:null}),i=new Ao(Mt.Identical,new gf(e),on("undefined")),o=new Ao(Mt.Or,i,e,void 0,void 0,!0);return new Ao(Mt.And,o,r)}function Na(n){var r=new Ar(n);return{value:r,type:r}}function oc(n,r){var e=pi(n.map(function(i){return i.value}));return r?oa([],[new Sa(e)]):e}function Oc(n,r){return{expression:n,forwardRef:r}}function kf(n){var r=n.expression;switch(n.forwardRef){case 0:case 1:return r;case 2:return Nv(r)}}function Nv(n){return Xn(Ne.forwardRef).callFn([oa([],[new Sa(n)])])}function ph(n){var r=qr("t"),e=null,i=gM(n)?r:new Ao(Mt.Or,r,n.internalType),o=null;null!==n.deps?"invalid"!==n.deps&&(o=new ce(i,s_(n.deps,n.target))):(e=qr("\u0275".concat(n.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(L){var z=qr("r");a.push(z.set(r_).toDeclStmt());var q=null!==o?z.set(o).toStmt():Xn(Ne.invalidFactory).callFn([]).toStmt();return a.push(Cf(r,[q],[z.set(L).toStmt()])),z}if(gM(n)){var u=s_(n.delegateDeps,n.target);s=l(new(n.delegateType===Bv.Class?ce:ah)(n.delegate,u))}else s=function PP(n){return void 0!==n.expression}(n)?l(n.expression):o;if(null===s)a.push(Xn(Ne.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=Xn(Ne.getInheritedFactory).callFn([n.internalType]),g=new Ao(Mt.Or,e,e.set(h));a.push(new Sa(g.callFn([i])))}else a.push(new Sa(s));var y=oa([new ma("t",vl)],a,Ma,void 0,"".concat(n.name,"_Factory"));return null!==e&&(y=oa([],[new bf(e.name),new Sa(y)]).callFn([],void 0,!0)),{expression:y,statements:[],type:_M(n)}}function _M(n){var r=null!==n.deps&&"invalid"!==n.deps?function vF(n){var r=!1,e=n.map(function(i){var o=function Ea(n){var r=[];return null!==n.attributeNameType&&r.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&r.push({key:"optional",value:on(!0),quoted:!1}),n.host&&r.push({key:"host",value:on(!0),quoted:!1}),n.self&&r.push({key:"self",value:on(!0),quoted:!1}),n.skipSelf&&r.push({key:"skipSelf",value:on(!0),quoted:!1}),r.length>0?Ds(r):null}(i);return null!==o?(r=!0,o):on(null)});return r?ps(pi(e)):ze}(n.deps):ze;return ps(Xn(Ne.FactoryDeclaration,[hM(n.type.type,n.typeArgumentCount),r]))}function s_(n,r){return n.map(function(e,i){return function l_(n,r,e){if(null===n.token)return Xn(Ne.invalidFactoryDep).callFn([on(e)]);if(null===n.attributeNameType){var i=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(r===ac.Pipe?16:0),o=0!==i||n.optional?on(i):null,a=[n.token];o&&a.push(o);var s=function vM(n){switch(n){case ac.Component:case ac.Directive:case ac.Pipe:return Ne.directiveInject;case ac.NgModule:case ac.Injectable:default:return Ne.inject}}(r);return Xn(s).callFn(a)}return Xn(Ne.injectAttribute).callFn([n.token])}(e,r,i)})}function gM(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(Bv||(Bv={})),function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(ac||(ac={}));var Fv=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),vC=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),yM=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),bM=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),Uv=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u,this.i18n=d}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitBoundAttribute(this)}}],[{key:"fromBoundElementProperty",value:function(e,i){if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound attributes but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),n}(),u_=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.name=r,this.type=e,this.handler=i,this.target=o,this.phase=a,this.sourceSpan=s,this.handlerSpan=l,this.keySpan=u}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitBoundEvent(this)}}],[{key:"fromParsedEvent",value:function(e){var i=0===e.type?e.targetOrPhase:null,o=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound event but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),n}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.name=r,this.attributes=e,this.inputs=i,this.outputs=o,this.children=a,this.references=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d,this.i18n=h}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),Sd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){(0,B.Z)(this,n),this.tagName=r,this.attributes=e,this.inputs=i,this.outputs=o,this.templateAttrs=a,this.children=s,this.references=l,this.variables=u,this.sourceSpan=d,this.startSourceSpan=h,this.endSourceSpan=g,this.i18n=y}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),RP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),CM=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),Hv=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),jv=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,U.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function mh(n,r){var e=[];if(n.visit){var o,i=(0,An.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.visit(a)||a.visit(n)}}catch(g){i.e(g)}finally{i.f()}}else{var u,l=(0,An.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(n);h&&e.push(h)}}catch(g){l.e(g)}finally{l.f()}}return e}var Tf=(0,U.Z)(function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.nodes=r,this.placeholders=e,this.placeholderToMessage=i,this.meaning=o,this.description=a,this.customId=s,this.id=this.customId,this.legacyIds=[],this.messageString=function NP(n){var r=new bF,e=n.map(function(i){return i.visit(r)}).join("");return e}(this.nodes),r.length?this.sources=[{filePath:r[0].sourceSpan.start.file.url,startLine:r[0].sourceSpan.start.line+1,startCol:r[0].sourceSpan.start.col+1,endLine:r[r.length-1].sourceSpan.end.line+1,endCol:r[0].sourceSpan.start.col+1}]:this.sources=[]}),wM=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),c_=function(){function n(r,e){(0,B.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),LP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),KW=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.tag=r,this.attrs=e,this.startName=i,this.closeName=o,this.children=a,this.isVoid=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),ZP=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),bC=function(){function n(r,e,i){(0,B.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var bF=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(a){return"".concat(a," {").concat(e.cases[a].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this,o=e.children.map(function(a){return a.visit(i)}).join("");return"{$".concat(e.startName,"}").concat(o,"{$").concat(e.closeName,"}")}},{key:"visitPlaceholder",value:function(e){return"{$".concat(e.name,"}")}},{key:"visitIcuPlaceholder",value:function(e){return"{$".concat(e.name,"}")}}]),n}(),BP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitTag",value:function(e){var i=this,o=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<".concat(e.name).concat(o,"/>");var a=e.children.map(function(s){return s.visit(i)});return"<".concat(e.name).concat(o,">").concat(a.join(""),"</").concat(e.name,">")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"<?xml".concat(this._serializeAttributes(e.attrs)," ?>")}},{key:"_serializeAttributes",value:function(e){var i=Object.keys(e).map(function(o){return"".concat(o,'="').concat(e[o],'"')}).join(" ");return i.length>0?" "+i:""}},{key:"visitDoctype",value:function(e){return"<!DOCTYPE ".concat(e.rootTag," [\n").concat(e.dtd,"\n]>")}}]),n}();new BP;function MF(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Gv="i18n-";function MM(n){return"i18n"===n||n.startsWith(Gv)}function zv(n){return n instanceof Tf}function wC(n){return zv(n)&&1===n.nodes.length&&n.nodes[0]instanceof LP}function wu(n){return!!n.i18n}function EM(n){return n.nodes[0]}function d_(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(n).concat(e).concat("\ufffd")}function Wv(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function xM(n){var r={};return n.forEach(function(e,i){r[i]=on(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function kC(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];e.push.apply(e,o),n.set(r,e)}function zP(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=new Map,a=n instanceof Tf?n.nodes.find(function(s){return s instanceof c_}):n;return a&&a.children.filter(function(s){return s instanceof ZP}).forEach(function(s,l){var u=d_(i+l,e);kC(o,s.name,u)}),o}function TC(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return n&&Object.keys(n).length&&Object.keys(n).forEach(function(i){return e[Vv(i,r)]=n[i]}),e}function Vv(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=MF(n);if(!r)return e;var o,i=e.split("_");if(1===i.length)return n.toLowerCase();/^\d+$/.test(i[i.length-1])&&(o=i.pop());var a=i.shift().toLowerCase();return i.length&&(a+=i.map(function(s){return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}).join("")),o?"".concat(a,"_").concat(o):a}function DM(n){return"".concat("MSG_").concat(n).toUpperCase()}function AF(n){return new bf(n.name,void 0,Ma,void 0,n.sourceSpan)}var WP=/[-.]/,AM="_t",sc="ctx",_h="rf",YP="restoredCtx",IF=new Set([Ne.element,Ne.elementStart,Ne.elementEnd,Ne.elementContainer,Ne.elementContainerStart,Ne.elementContainerEnd,Ne.i18nExp,Ne.listener,Ne.classProp,Ne.syntheticHostListener,Ne.hostProperty,Ne.syntheticHostProperty,Ne.property,Ne.propertyInterpolate1,Ne.propertyInterpolate2,Ne.propertyInterpolate3,Ne.propertyInterpolate4,Ne.propertyInterpolate5,Ne.propertyInterpolate6,Ne.propertyInterpolate7,Ne.propertyInterpolate8,Ne.propertyInterpolateV,Ne.attribute,Ne.attributeInterpolate1,Ne.attributeInterpolate2,Ne.attributeInterpolate3,Ne.attributeInterpolate4,Ne.attributeInterpolate5,Ne.attributeInterpolate6,Ne.attributeInterpolate7,Ne.attributeInterpolate8,Ne.attributeInterpolateV,Ne.styleProp,Ne.stylePropInterpolate1,Ne.stylePropInterpolate2,Ne.stylePropInterpolate3,Ne.stylePropInterpolate4,Ne.stylePropInterpolate5,Ne.stylePropInterpolate6,Ne.stylePropInterpolate7,Ne.stylePropInterpolate8,Ne.stylePropInterpolateV,Ne.textInterpolate,Ne.textInterpolate1,Ne.textInterpolate2,Ne.textInterpolate3,Ne.textInterpolate4,Ne.textInterpolate5,Ne.textInterpolate6,Ne.textInterpolate7,Ne.textInterpolate8,Ne.textInterpolateV]);function gh(n,r,e){return Xn(r,null,n).callFn(e,n)}function MC(n,r){var e=null;return function(){return e||(n.push(new bf("_t",void 0,vl)),e=qr(r)),e}}function vh(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Wl(n){return Array.isArray(n)?pi(n.map(Wl)):on(n,Ma)}function IM(n,r){return Object.getOwnPropertyNames(n).length>0?function f_(n,r){return Ds(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Yn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:WP.test(s),value:r&&l?pi([Wl(a),Wl(o)]):Wl(a)}}))}(n,r):null}function Kv(n){for(;mC(n[n.length-1]);)n.pop();return n}function KP(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return on(a.trim())});e.push.apply(e,(0,cn.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Xn(Ne.resolveForwardRef).callFn([n.predicate.expression])}}var Ba=function(){function n(){(0,B.Z)(this,n),this.values=[]}return(0,U.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Ds(this.values)}}]),n}();function yh(n){var r=n.expressions,e=n.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function SC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,An.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(d)?d:[d];a<500&&o===u.reference&&IF.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=gh(u.span,u.reference,h),o=u.reference,a=0)}}catch(g){s.e(g)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function JP(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ac.Injectable};if(void 0!==n.useClass){var o=n.useClass.expression.isEquivalent(n.internalType),a=void 0;void 0!==n.deps&&(a=n.deps),e=void 0!==a?ph(Object.assign(Object.assign({},i),{delegate:n.useClass.expression,delegateDeps:a,delegateType:Bv.Class})):o?ph(i):{statements:[],expression:XP(n.type.value,n.useClass.expression,r)}}else e=void 0!==n.useFactory?void 0!==n.deps?ph(Object.assign(Object.assign({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:Bv.Function})):{statements:[],expression:oa([],[new Sa(n.useFactory.callFn([]))])}:void 0!==n.useValue?ph(Object.assign(Object.assign({},i),{expression:n.useValue.expression})):void 0!==n.useExisting?ph(Object.assign(Object.assign({},i),{expression:Xn(Ne.inject).callFn([n.useExisting.expression])})):{statements:[],expression:XP(n.type.value,n.internalType,r)};var s=n.internalType,l=new Ba;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",kf(n.providedIn)),{expression:Xn(Ne.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:QP(n),statements:e.statements}}function QP(n){return new gl(Xn(Ne.InjectableDeclaration,[hM(n.type.type,n.typeArgumentCount)]))}function XP(n,r,e){return n.node===r.node?r.prop("\u0275fac"):$P(e?Xn(Ne.resolveForwardRef).callFn([r]):r)}function $P(n){return oa([new ma("t",vl)],[new Sa(n.prop("\u0275fac").callFn([qr("t")]))])}var e3=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var RM=function(){function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}return(0,U.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function PM(n,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(n,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];e3.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new n(e[0],e[1])):Vl}}]),n}(),Vl=new RM("{{","}}"),Rf=123,Rc=125;function HM(n){return n>=9&&n<=32||160==n}function Lf(n){return 48<=n&&n<=57}function y_(n){return n>=97&&n<=122||n>=65&&n<=90}function b_(n){return 10===n||13===n}function jM(n){return 48<=n&&n<=55}function PC(n){return 39===n||34===n||96===n}var Dd,C_=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,U.Z)(n,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(e){for(var i=this.file.content,o=i.length,a=this.offset,s=this.line,l=this.col;a>0&&e<0;){if(a--,e++,10==i.charCodeAt(a)){s--;var d=i.substring(0,a-1).lastIndexOf(String.fromCharCode(10));l=d>0?a-d:a}else l--}for(;a<o&&e>0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new n(this.file,a,s,l)}},{key:"getContext",value:function(e,i){var o=this.file.content,a=this.offset;if(null!=a){a>o.length-1&&(a=o.length-1);for(var s=a,l=0,u=0;l<e&&a>0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l<e&&s<o.length-1&&(l++,"\n"!=o[++s]||++u!=i););return{before:o.substring(a,this.offset),after:o.substring(this.offset,s+1)}}return null}}]),n}(),GM=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.content=r,this.url=e}),Xa=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,B.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,U.Z)(n,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),n}();!function(n){n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR"}(Dd||(Dd={}));var kh=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,B.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,U.Z)(n,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(Dd[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),n}();var BF=0;function Th(n){return n.replace(/\W/g,"_")}var RC,f3='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',UF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this,!1)}return(0,U.Z)(e,[{key:"visitWrappedNodeExpr",value:function(o,a){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}},{key:"visitDeclareVarStmt",value:function(o,a){return a.print(o,"var ".concat(o.name)),o.value&&(a.print(o," = "),o.value.visitExpression(this,a)),a.println(o,";"),null}},{key:"visitTaggedTemplateExpr",value:function(o,a){var s=this,l=o.template.elements;return o.tag.visitExpression(this,a),a.print(o,"(".concat(f3,"(")),a.print(o,"[".concat(l.map(function(u){return Md(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Md(u.rawText,!1)}).join(", "),"])")),o.template.expressions.forEach(function(u){a.print(o,", "),u.visitExpression(s,a)}),a.print(o,")"),null}},{key:"visitFunctionExpr",value:function(o,a){return a.print(o,"function".concat(o.name?" "+o.name:"","(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.print(o,"}"),null}},{key:"visitDeclareFunctionStmt",value:function(o,a){return a.print(o,"function ".concat(o.name,"(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.println(o,"}"),null}},{key:"visitLocalizedString",value:function(o,a){var s=this;a.print(o,"$localize(".concat(f3,"("));for(var l=[o.serializeI18nHead()],u=1;u<o.messageParts.length;u++)l.push(o.serializeI18nTemplatePart(u));return a.print(o,"[".concat(l.map(function(d){return Md(d.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(d){return Md(d.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(d){a.print(o,", "),d.visitExpression(s,a)}),a.print(o,")"),null}},{key:"_visitParams",value:function(o,a){this.visitAllObjects(function(s){return a.print(null,s.name)},o,a,",")}}]),e}(zl);function p3(n){var r;return(null===(r=function HF(){if(void 0===RC&&(RC=null,Ja.trustedTypes))try{RC=Ja.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(n){}return RC}())||void 0===r?void 0:r.createScript(n))||n}function $v(){for(var n=arguments.length,r=new Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!Ja.trustedTypes)return(0,Jr.Z)(Function,r);var i=r.slice(0,-1).join(","),o=r[r.length-1],a="(function anonymous(".concat(i,"\n) { ").concat(o,"\n})"),s=Ja.eval(p3(a));return void 0===s.bind?(0,Jr.Z)(Function,r):(s.toString=function(){return a},s.bind(Ja))}var h3=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new WM(o),l=AP.createRoot();return i.length>0&&!function jF(n){return n.isEquivalent(on("use strict").toStmt())}(i[0])&&(i=[on("use strict").toStmt()].concat((0,cn.Z)(i))),s.visitAllStatements(i,l),s.createReturnStmt(l),this.evaluateCode(e,l,s.getArgs(),a)}},{key:"evaluateCode",value:function(e,i,o,a){var s='"use strict";'.concat(i.toSource(),"\n//# sourceURL=").concat(e),l=[],u=[];for(var d in o)u.push(o[d]),l.push(d);if(a){var h=$v.apply(void 0,(0,cn.Z)(l.concat("return null;"))).toString(),g=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,g).toJsComment())}var y=$v.apply(void 0,(0,cn.Z)(l.concat(s)));return this.executeFunction(y,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,cn.Z)(i))}}]),n}(),WM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,U.Z)(e,[{key:"createReturnStmt",value:function(o){new Sa(new sh(this._evalExportedVars.map(function(s){return new uM(s,qr(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a<this._evalArgNames.length;a++)o[this._evalArgNames[a]]=this._evalArgValues[a];return o}},{key:"visitExternalExpr",value:function(o,a){return this._emitReferenceToExternal(o,this.refResolver.resolveExternalReference(o.value),a),null}},{key:"visitWrappedNodeExpr",value:function(o,a){return this._emitReferenceToExternal(o,o.node,a),null}},{key:"visitDeclareVarStmt",value:function(o,a){return o.hasModifier(xs.Exported)&&this._evalExportedVars.push(o.name),(0,Ut.Z)((0,Wt.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(xs.Exported)&&this._evalExportedVars.push(o.name),(0,Ut.Z)((0,Wt.Z)(e.prototype),"visitDeclareFunctionStmt",this).call(this,o,a)}},{key:"_emitReferenceToExternal",value:function(o,a,s){var l=this._evalArgValues.indexOf(a);if(-1===l){l=this._evalArgValues.length,this._evalArgValues.push(a);var u=function FF(n){if(!n||!n.reference)return null;var r=n.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Ts(r);return e.indexOf("(")>=0?(e="anonymous_".concat(BF++),r.__anonymousType=e):e=Th(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(UF);function Ad(n){var r=new Ba;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",pi(n.imports)),{expression:Xn(Ne.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:VM(n),statements:[]}}function VM(n){return new gl(Xn(Ne.InjectorDeclaration,[new gl(n.type.type)]))}var Mh,ku,m3=function(){function n(r){(0,B.Z)(this,n),this.context=r}return(0,U.Z)(n,[{key:"resolveExternalReference",value:function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to ".concat(e.moduleName,", only references to @angular/core are supported."));if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '".concat(e.name,"'."));return this.context[e.name]}}]),n}();function _3(n){var r=n.adjacentType,e=n.internalType,i=n.bootstrap,o=n.declarations,a=n.imports,s=n.exports,l=n.schemas,u=n.containsForwardDecls,d=n.selectorScopeMode,h=n.id,g=[],y=new Ba;if(y.set("type",e),i.length>0&&y.set("bootstrap",oc(i,u)),d===Mh.Inline)o.length>0&&y.set("declarations",oc(o,u)),a.length>0&&y.set("imports",oc(a,u)),s.length>0&&y.set("exports",oc(s,u));else if(d===Mh.SideEffect){var L=function zF(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Ba;if(e.length>0&&s.set("declarations",oc(e,a)),i.length>0&&s.set("imports",oc(i,a)),o.length>0&&s.set("exports",oc(o,a)),0===Object.keys(s.values).length)return null;var u=function _F(n){return gC("ngJitMode",n)}(new ah(Xn(Ne.setNgModuleScope),[r,s.toLiteralMap()])),d=new Cu([],[u.toStmt()]);return new ah(d,[]).toStmt()}(n);null!==L&&g.push(L)}return null!==l&&l.length>0&&y.set("schemas",pi(l.map(function(re){return re.value}))),null!==h&&(y.set("id",h),g.push(Xn(Ne.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Xn(Ne.defineNgModule).callFn([y.toLiteralMap()],void 0,!0),type:g3(n),statements:g}}function g3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new gl(Xn(Ne.NgModuleDeclaration,[new gl(r.type),null===s?YM(e):WF(s),a?YM(o):ze,YM(i)]))}function YM(n){var r=n.map(function(e){return hC(e.type)});return n.length>0?ps(pi(r)):ze}function WF(n){var r=n.map(function(e){return hC(e)});return n.length>0?ps(pi(r)):ze}function VF(n){var r=[];return r.push({key:"name",value:on(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:on(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:on(!0),quoted:!1}),{expression:Xn(Ne.definePipe).callFn([Ds(r)],void 0,!0),type:YF(n),statements:[]}}function YF(n){return new gl(Xn(Ne.PipeDeclaration,[hM(n.type.type,n.typeArgumentCount),new gl(new me(n.pipeName)),new gl(new me(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(Mh||(Mh={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(ku||(ku={}));var Eh,ey=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),w_=function(){function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}return(0,U.Z)(n,[{key:"toAbsolute",value:function(e){return new Ps(e+this.start,e+this.end)}}]),n}(),Fa=function(){function n(r,e){(0,B.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),ty=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,U.Z)(e)}(Fa),Tu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Fa),k_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitImplicitReceiver(this,a)}}]),e}(Fa),LC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"visit",value:function(o){var s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===(s=o.visitThisReceiver)||void 0===s?void 0:s.call(o,this,a)}}]),e}(k_),ny=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitChain(this,a)}}]),e}(Fa),v3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitConditional(this,a)}}]),e}(Fa),Zf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyRead(this,a)}}]),e}(ty),ry=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyWrite(this,a)}}]),e}(ty),ZC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafePropertyRead(this,a)}}]),e}(ty),iy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedRead(this,a)}}]),e}(Fa),Lc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeKeyedRead(this,a)}}]),e}(Fa),KM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedWrite(this,a)}}]),e}(Fa),T_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPipe(this,a)}}]),e}(ty),Os=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralPrimitive(this,a)}}]),e}(Fa),NC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralArray(this,a)}}]),e}(Fa),oy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralMap(this,a)}}]),e}(Fa),$a=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitInterpolation(this,a)}}]),e}(Fa),Is=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitBinary(this,a)}}]),e}(Fa),Sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,i,o,l,u,d)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==o.visitUnary?o.visitUnary(this,a):o.visitBinary(this,a)}}],[{key:"createMinus",value:function(o,a,s){return new e(o,a,"-",s,"-",new Os(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Os(o,a,0))}}]),e}(Is),ay=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPrefixNot(this,a)}}]),e}(Fa),qM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitNonNullAssert(this,a)}}]),e}(Fa),M_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitCall(this,a)}}]),e}(Fa),sy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeCall(this,a)}}]),e}(Fa),Ps=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.start=r,this.end=e}),Nf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,new w_(0,null===o?0:o.length),new Ps(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,U.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitASTWithSource?o.visitASTWithSource(this,a):this.ast.visit(o,a)}},{key:"toString",value:function(){return"".concat(this.source," in ").concat(this.location)}}]),e}(Fa),JM=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),KF=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),qF=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visit",value:function(e,i){e.visit(this,i)}},{key:"visitUnary",value:function(e,i){this.visit(e.expr,i)}},{key:"visitBinary",value:function(e,i){this.visit(e.left,i),this.visit(e.right,i)}},{key:"visitChain",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){this.visit(e.condition,i),this.visit(e.trueExp,i),this.visit(e.falseExp,i)}},{key:"visitPipe",value:function(e,i){this.visit(e.exp,i),this.visitAll(e.args,i)}},{key:"visitImplicitReceiver",value:function(e,i){}},{key:"visitThisReceiver",value:function(e,i){}},{key:"visitInterpolation",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitKeyedWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i),this.visit(e.value,i)}},{key:"visitLiteralArray",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitLiteralMap",value:function(e,i){this.visitAll(e.values,i)}},{key:"visitLiteralPrimitive",value:function(e,i){}},{key:"visitPrefixNot",value:function(e,i){this.visit(e.expression,i)}},{key:"visitNonNullAssert",value:function(e,i){this.visit(e.expression,i)}},{key:"visitPropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitPropertyWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.value,i)}},{key:"visitSafePropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitSafeKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitSafeCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitAll",value:function(e,i){var a,o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.visit(s,i)}}catch(l){o.e(l)}finally{o.f()}}}]),n}(),QM=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new $a(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new Os(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new Zf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new ry(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new ZC(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new NC(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new oy(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Sh.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Sh.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}},{key:"visitBinary",value:function(e,i){return new Is(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new ay(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new qM(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new v3(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new T_(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new iy(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new KM(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new M_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new sy(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitAll",value:function(e){for(var i=[],o=0;o<e.length;++o)i[o]=e[o].visit(this);return i}},{key:"visitChain",value:function(e,i){return new ny(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitSafeKeyedRead",value:function(e,i){return new Lc(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),n}(),JF=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new $a(e.span,e.sourceSpan,e.strings,o):e}},{key:"visitLiteralPrimitive",value:function(e,i){return e}},{key:"visitPropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new Zf(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitPropertyWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.value.visit(this);return o!==e.receiver||a!==e.value?new ry(e.span,e.sourceSpan,e.nameSpan,o,e.name,a):e}},{key:"visitSafePropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new ZC(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitLiteralArray",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new NC(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new oy(e.span,e.sourceSpan,e.keys,o):e}},{key:"visitUnary",value:function(e,i){var o=e.expr.visit(this);if(o!==e.expr)switch(e.operator){case"+":return Sh.createPlus(e.span,e.sourceSpan,o);case"-":return Sh.createMinus(e.span,e.sourceSpan,o);default:throw new Error("Unknown unary operator ".concat(e.operator))}return e}},{key:"visitBinary",value:function(e,i){var o=e.left.visit(this),a=e.right.visit(this);return o!==e.left||a!==e.right?new Is(e.span,e.sourceSpan,e.operation,o,a):e}},{key:"visitPrefixNot",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new ay(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new qM(e.span,e.sourceSpan,o):e}},{key:"visitConditional",value:function(e,i){var o=e.condition.visit(this),a=e.trueExp.visit(this),s=e.falseExp.visit(this);return o!==e.condition||a!==e.trueExp||s!==e.falseExp?new v3(e.span,e.sourceSpan,o,a,s):e}},{key:"visitPipe",value:function(e,i){var o=e.exp.visit(this),a=this.visitAll(e.args);return o!==e.exp||a!==e.args?new T_(e.span,e.sourceSpan,o,e.name,a,e.nameSpan):e}},{key:"visitKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new iy(e.span,e.sourceSpan,o,a):e}},{key:"visitKeyedWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this),s=e.value.visit(this);return o!==e.receiver||a!==e.key||s!==e.value?new KM(e.span,e.sourceSpan,o,a,s):e}},{key:"visitAll",value:function(e){for(var i=[],o=!1,a=0;a<e.length;++a){var s=e[a],l=s.visit(this);i[a]=l,o=o||l!==s}return o?i:e}},{key:"visitChain",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new ny(e.span,e.sourceSpan,o):e}},{key:"visitCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new M_(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new sy(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new Lc(e.span,e.sourceSpan,o,a):e}}]),n}(),BC=(0,U.Z)(function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===Eh.LITERAL_ATTR,this.isAnimation=this.type===Eh.ANIMATION});!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION"}(Eh||(Eh={}));var XM=(0,U.Z)(function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),iV=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),y3=(0,U.Z)(function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u}),Bf=(0,U.Z)(function n(){(0,B.Z)(this,n)});function QF(n,r,e,i,o,a,s){n||(n=new T3(s));var l=function S_(n,r){return function C3(n,r){var e=new nS(n);return r.visit(e)}(n,r)}({createLiteralArrayConverter:function(L){return function(z){return pi(z)}},createLiteralMapConverter:function(L){return function(z){return Ds(L.map(function(re,ae){return{key:re.key,value:z[ae],quoted:re.quoted}}))}},createPipeConverter:function(L){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(L))}},e),u=new xh(n,r,i,!1,o,a),d=[];k3(l.visit(u,ji.Statement),d),function w3(n,r,e){for(var i=n-1;i>=0;i--)e.unshift(FC(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof uh&&(d[h]=new Sa(g.expr))}return d}Bf.event=qr("$event");var ji,E_=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.stmts=r,this.currValExpr=e});function b3(n,r,e,i){n||(n=new T3);var o=new xh(n,r,i,!1),a=e.visit(o,ji.Expression),s=$M(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new E_(s,a)}function $M(n,r){for(var e=[],i=0;i<n.temporaryCount;i++)e.push(FC(r,i));return e}function eS(n,r){return"tmp_".concat(n,"_").concat(r)}function FC(n,r){return new bf(eS(n,r))}function UC(n,r){if(n!==ji.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function el(n,r){return n===ji.Statement?r.toStmt():r}!function(n){n[n.Statement=0]="Statement",n[n.Expression=1]="Expression"}(ji||(ji={}));var nS=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,U.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,cn.Z)(o.args)).map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createPipeConverter(o.name,l.length))}},{key:"visitLiteralArray",value:function(o,a){var s=this,l=o.expressions.map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createLiteralArrayConverter(o.expressions.length))}},{key:"visitLiteralMap",value:function(o,a){var s=this,l=o.values.map(function(u){return u.visit(s,a)});return new Dh(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(QM),xh=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this._localResolver=r,this._implicitReceiver=e,this.bindingId=i,this.supportsInterpolation=o,this.baseSourceSpan=a,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}return(0,U.Z)(n,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=mt.Plus;break;case"-":o=mt.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return el(i,new Pv(o,this._visit(e.expr,ji.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=Mt.Plus;break;case"-":o=Mt.Minus;break;case"*":o=Mt.Multiply;break;case"/":o=Mt.Divide;break;case"%":o=Mt.Modulo;break;case"&&":o=Mt.And;break;case"||":o=Mt.Or;break;case"==":o=Mt.Equals;break;case"!=":o=Mt.NotEquals;break;case"===":o=Mt.Identical;break;case"!==":o=Mt.NotIdentical;break;case"<":o=Mt.Lower;break;case">":o=Mt.Bigger;break;case"<=":o=Mt.LowerEquals;break;case">=":o=Mt.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return el(i,new Ao(o,this._visit(e.left,ji.Expression),this._visit(e.right,ji.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function tS(n,r){if(n!==ji.Statement)throw new Error("Expected a statement, but saw ".concat(r))}(i,e),this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){return el(i,this._visit(e.condition,ji.Expression).conditional(this._visit(e.trueExp,ji.Expression),this._visit(e.falseExp,ji.Expression),this.convertSourceSpan(e.span)))}},{key:"visitPipe",value:function(e,i){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: ".concat(e.name))}},{key:"visitImplicitReceiver",value:function(e,i){return UC(i,e),this.usesImplicitReceiver=!0,this._implicitReceiver}},{key:"visitThisReceiver",value:function(e,i){return this.visitImplicitReceiver(e,i)}},{key:"visitInterpolation",value:function(e,i){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");UC(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(on(e.strings[a])),o.push(this._visit(e.expressions[a],ji.Expression));o.push(on(e.strings[e.strings.length-1]));var s=e.strings;return 2===s.length&&""===s[0]&&""===s[1]?o=[o[1]]:e.expressions.length>=9&&(o=[pi(o)]),new XF(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):el(i,this._visit(e.receiver,ji.Expression).key(this._visit(e.key,ji.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,ji.Expression),a=this._visit(e.key,ji.Expression),s=this._visit(e.value,ji.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),el(i,o.key(a).set(s))}},{key:"visitLiteralArray",value:function(e,i){throw new Error("Illegal State: literal arrays should have been converted into functions")}},{key:"visitLiteralMap",value:function(e,i){throw new Error("Illegal State: literal maps should have been converted into functions")}},{key:"visitLiteralPrimitive",value:function(e,i){var o=null===e.value||void 0===e.value||!0===e.value||!0===e.value?Ma:void 0;return el(i,on(e.value,o,this.convertSourceSpan(e.span)))}},{key:"_getLocal",value:function(e,i){var o;return(null===(o=this._localResolver.globals)||void 0===o?void 0:o.has(e))&&i instanceof LC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return el(i,ch(this._visit(e.expression,ji.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return el(i,this._visit(e.expression,ji.Expression))}},{key:"visitPropertyRead",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=null,s=this.usesImplicitReceiver,l=this._visit(e.receiver,ji.Expression);return l===this._implicitReceiver&&((a=this._getLocal(e.name,e.receiver))&&(this.usesImplicitReceiver=s,this.addImplicitReceiverAccess(e.name))),null==a&&(a=l.prop(e.name,this.convertSourceSpan(e.span))),el(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,ji.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof fC)){var u=e.name,d=e.value instanceof Zf?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(d,'" to template variable "').concat(u,'". Template variables are read-only.'))}s=l,this.usesImplicitReceiver=a,this.addImplicitReceiverAccess(e.name)}}return null===s&&(s=o.prop(e.name,this.convertSourceSpan(e.span))),el(i,s.set(this._visit(e.value,ji.Expression)))}},{key:"visitSafePropertyRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitSafeKeyedRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitAll",value:function(e,i){var o=this;return e.map(function(a){return o._visit(a,i)})}},{key:"visitCall",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=this.visitAll(e.args,ji.Expression);if(e instanceof Dh)return el(i,e.converter(a));var s=e.receiver;if(s instanceof Zf&&s.receiver instanceof k_&&!(s.receiver instanceof LC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return el(i,a[0])}return el(i,this._visit(s,ji.Expression).callFn(a,this.convertSourceSpan(e.span)))}},{key:"visitSafeCall",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"_visit",value:function(e,i){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,i)}},{key:"convertSafeAccess",value:function(e,i,o){var a=this._visit(i.receiver,ji.Expression),s=void 0;this.needsTemporaryInSafeAccess(i.receiver)&&(a=(s=this.allocateTemporary()).set(a),this._resultMap.set(i.receiver,s));var l=a.isBlank();i instanceof sy?this._nodeMap.set(i,new M_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Lc?this._nodeMap.set(i,new iy(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new Zf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,ji.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),el(o,l.conditional(r_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,ji.Expression),a=this._visit(e.right,ji.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),el(i,s.set(o).notIdentical(r_).and(s.notIdentical(on(void 0))).conditional(s,a))}},{key:"leftMostSafeNode",value:function(e){var i=this,o=function(s,l){return(i._nodeMap.get(l)||l).visit(s)};return e.visit({visitUnary:function(s){return null},visitBinary:function(s){return null},visitChain:function(s){return null},visitConditional:function(s){return null},visitCall:function(s){return o(this,s.receiver)},visitSafeCall:function(s){return o(this,s.receiver)||s},visitImplicitReceiver:function(s){return null},visitThisReceiver:function(s){return null},visitInterpolation:function(s){return null},visitKeyedRead:function(s){return o(this,s.receiver)},visitKeyedWrite:function(s){return null},visitLiteralArray:function(s){return null},visitLiteralMap:function(s){return null},visitLiteralPrimitive:function(s){return null},visitPipe:function(s){return null},visitPrefixNot:function(s){return null},visitNonNullAssert:function(s){return null},visitPropertyRead:function(s){return o(this,s.receiver)},visitPropertyWrite:function(s){return null},visitSafePropertyRead:function(s){return o(this,s.receiver)||s},visitSafeKeyedRead:function(s){return o(this,s.receiver)||s}})}},{key:"needsTemporaryInSafeAccess",value:function(e){var i=this,o=function(l,u){return u&&(i._nodeMap.get(u)||u).visit(l)};return e.visit({visitUnary:function(l){return o(this,l.expr)},visitBinary:function(l){return o(this,l.left)||o(this,l.right)},visitChain:function(l){return!1},visitConditional:function(l){return o(this,l.condition)||o(this,l.trueExp)||o(this,l.falseExp)},visitCall:function(l){return!0},visitSafeCall:function(l){return!0},visitImplicitReceiver:function(l){return!1},visitThisReceiver:function(l){return!1},visitInterpolation:function(l){return function(l,u){return u.some(function(d){return o(l,d)})}(this,l.expressions)},visitKeyedRead:function(l){return!1},visitKeyedWrite:function(l){return!1},visitLiteralArray:function(l){return!0},visitLiteralMap:function(l){return!0},visitLiteralPrimitive:function(l){return!1},visitPipe:function(l){return!0},visitPrefixNot:function(l){return o(this,l.expression)},visitNonNullAssert:function(l){return o(this,l.expression)},visitPropertyRead:function(l){return!1},visitPropertyWrite:function(l){return!1},visitSafePropertyRead:function(l){return!1},visitSafeKeyedRead:function(l){return!1}})}},{key:"allocateTemporary",value:function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new $s(eS(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=eS(this.bindingId,this._currentTemporary))throw new Error("Temporary ".concat(e.name," released out of order"))}},{key:"convertSourceSpan",value:function(e){if(this.baseSourceSpan){var i=this.baseSourceSpan.start.moveBy(e.start),o=this.baseSourceSpan.start.moveBy(e.end),a=this.baseSourceSpan.fullStart.moveBy(e.start);return new Xa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function k3(n,r){Array.isArray(n)?n.forEach(function(e){return k3(e,r)}):r.push(n)}function rS(){throw new Error("Unsupported operation")}var ly,XF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=rS,o.isEquivalent=rS,o.visitExpression=rS,o}return(0,U.Z)(e)}(si),T3=function(){function n(r){(0,B.Z)(this,n),this.globals=r}return(0,U.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Bf.event.name?Bf.event:null}}]),n}(),Dh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,new Tu(i,o),a,null)).converter=s,l}return(0,U.Z)(e)}(M_);function M3(){return ly||(ly={},Od(Br.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Od(Br.STYLE,["*|style"]),Od(Br.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Od(Br.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ly}function Od(n,r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;ly[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var Id=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function S3(n){return Id.has(n.toLowerCase())}var $F=function(){function n(){(0,B.Z)(this,n),this.strictStyling=!0}return(0,U.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=u4(e);e=s4(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,cn.Z)(a)).join("\n")}},{key:"_insertDirectives",value:function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}},{key:"_insertPolyfillDirectivesInCssText",value:function(e){return e.replace(sV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(E3,function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0].replace(o[1],"").replace(o[2],"");return o[4]+s})}},{key:"_scopeCssText",value:function(e,i,o){var a=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),i&&(e=this._scopeSelectors(e,i,o)),(e=e+"\n"+a).trim()}},{key:"_extractUnscopedRulesFromCssText",value:function(e){var o,i="";for(e4.lastIndex=0;null!==(o=e4.exec(e));){i+=o[0].replace(o[2],"").replace(o[1],o[4])+"\n\n"}return i}},{key:"_convertColonHost",value:function(e){return e.replace(t4,function(i,o,a){if(o){var d,s=[],l=o.split(",").map(function(y){return y.trim()}),u=(0,An.Z)(l);try{for(u.s();!(d=u.n()).done;){var h=d.value;if(!h)break;var g=Ah+h.replace(uy,"")+a;s.push(g)}}catch(y){u.e(y)}finally{u.f()}return s.join(",")}return Ah+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(D3,function(i){for(var o,s,a=[[]];s=n4.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(g){return g.trim()}).filter(function(g){return""!==g}),u=a.length;p4(a,l.length);for(var d=0;d<l.length;d++)for(var h=0;h<u;h++)a[h+d*u].push(l[d]);i=s[2]}return a.map(function(g){return function f4(n,r){var e=Ah;x_.lastIndex=0;var i=x_.test(r);if(0===n.length)return e+r;for(var o=[n.pop()||""];n.length>0;)for(var a=o.length,s=n.pop(),l=0;l<a;l++){var u=o[l];o[2*a+l]=u+" "+s,o[a+l]=s+" "+u,o[l]=s+u}return o.map(function(d){return i?"".concat(d).concat(r):"".concat(d).concat(e).concat(r,", ").concat(d," ").concat(e).concat(r)}).join(",")}(g,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return r4.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return R3(e,function(s){var l=s.selector,u=s.content;return"@"!==s.selector[0]?l=a._scopeSelector(s.selector,i,o,a.strictStyling):s.selector.startsWith("@media")||s.selector.startsWith("@supports")||s.selector.startsWith("@document")||s.selector.startsWith("@layer")?u=a._scopeSelectors(s.content,i,o):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(u=a._stripScopingSelectors(s.content)),new jC(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return R3(e,function(i){var o=i.selector.replace(iS," ").replace(Mu," ");return new jC(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(iS)}).map(function(l){var L,u=(0,hu.Z)(l),d=u[0],h=u.slice(1);return[(L=d,s._selectorNeedsScoping(L,i)?a?s._applyStrictSelectorScope(L,i,o):s._applySelectorScope(L,i,o):L)].concat((0,cn.Z)(h)).join(" ")}).join(", ")}},{key:"_selectorNeedsScoping",value:function(e,i){return!this._makeScopeMatcher(i).test(e)}},{key:"_makeScopeMatcher",value:function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+i4,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(x_.lastIndex=0,x_.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(Mu,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,d,h,g){return d+a+h+g})}).replace(x_,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(Ee){return arguments.length<=1?void 0:arguments[1]});for(var y,l="["+i+"]",u=function(Ke){var st=Ke.trim();if(!st)return"";if(Ke.indexOf(Ah)>-1)st=a._applySimpleSelectorScope(Ke,i,o);else{var De=Ke.replace(x_,"");if(De.length>0){var it=De.match(/([^:]*)(:*)(.*)/);it&&(st=it[1]+l+it[2]+it[3])}}return st},d=new aV(e),h="",g=0,L=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Ah)>-1);null!==(y=L.exec(e));){var re=y[1],ae=e.slice(g,y.index).trim(),Se=(q=q||ae.indexOf(Ah)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=L.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Ah)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(a4,x3).replace(o4,uy)}}]),n}(),aV=function(){function n(r){var e=this;(0,B.Z)(this,n),this.placeholders=[],this.index=0,r=this._escapeRegexMatches(r,/(\[[^\]]*\])/g),r=this._escapeRegexMatches(r,/(\\.)/g),this._content=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(i,o,a){var s="__ph-".concat(e.index,"__");return e.placeholders.push(a),e.index++,o+s})}return(0,U.Z)(n,[{key:"restore",value:function(e){var i=this;return e.replace(/__ph-(\d+)__/g,function(o,a){return i.placeholders[+a]})}},{key:"content",value:function(){return this._content}},{key:"_escapeRegexMatches",value:function(e,i){var o=this;return e.replace(i,function(a,s){var l="__ph-".concat(o.index,"__");return o.placeholders.push(s),o.index++,l})}}]),n}(),sV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,E3=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,e4=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,uy="-shadowcsshost",x3="-shadowcsscontext",HC="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",t4=new RegExp(uy+HC,"gim"),D3=new RegExp(x3+HC,"gim"),n4=new RegExp(x3+HC,"im"),Ah=uy+"-no-combinator",Mu=/-shadowcsshost-no-combinator([^\s]*)/,r4=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],iS=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,i4="([>\\s~+[.,{:][\\s\\S]*)?$",x_=/-shadowcsshost/gim,o4=/:host/gim,a4=/:host-context/gim,A3=/\/\*[\s\S]*?\*\//g;function s4(n){return n.replace(A3,"")}var l4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function u4(n){return n.match(l4)||[]}var jr="%BLOCK%",I3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,P3=/%QUOTED%/g,c4=new Map([["{","}"]]),d4=new Map([['"','"'],["'","'"]]),jC=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.selector=r,this.content=e});function R3(n,r){var e=Z3(n,d4,"%QUOTED%"),i=Z3(e.escapedString,c4,jr),o=0,a=0;return i.escapedString.replace(I3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+jr)&&(l=i.blocks[o++],u=u.substring(jr.length+1),d="{");var h=r(new jC(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(d).concat(h.content).concat(u)}).replace(P3,function(){return e.blocks[a++]})}var L3=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.escapedString=r,this.blocks=e});function Z3(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h<n.length;h++){var g=n[h];"\\"===g?h++:g===d?0===--a&&(o.push(n.substring(l,h)),i.push(e),s=h,l=-1,u=d=void 0):g===u?a++:0===a&&r.has(g)&&(u=g,d=r.get(g),a=1,l=h+1,i.push(n.substring(s,l)))}return-1!==l?(o.push(n.substring(l)),i.push(e)):i.push(n.substring(s)),new L3(i.join(""),o)}function p4(n,r){for(var e=n.length,i=1;i<r;i++)for(var o=0;o<e;o++)n[o+i*e]=n[o].slice(0)}function oS(n){var r=n.charCodeAt(0);if(r==n.charCodeAt(n.length-1)&&(39==r||34==r)){var i=n.substring(1,n.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(n=i)}return n}function bl(n){return n.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var Xr,GC=function(){function n(r){(0,B.Z)(this,n),this._directiveExpr=r,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}return(0,U.Z)(n,[{key:"registerBoundInput",value:function(e){var i=null,o=e.name;switch(e.type){case 0:i=this.registerInputBasedOnName(o,e.value,e.sourceSpan);break;case 3:i=this.registerStyleInput(o,!1,e.value,e.sourceSpan,e.unit);break;case 2:i=this.registerClassInput(o,!1,e.value,e.sourceSpan)}return!!i}},{key:"registerInputBasedOnName",value:function(e,i,o){var a=null,s=e.substring(0,6),l="style"===e||"style."===s||"style!"===s;if(l||!l&&("class"===e||"class."===s||"class!"===s)){var d="."!==e.charAt(5),h=e.slice(d?5:6);a=l?this.registerStyleInput(h,d,i,o):this.registerClassInput(h,d,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(H3(o))return null;(function U3(n){return n.startsWith("--")})(e)||(e=bl(e));var l=F3(e),u=l.property,d=l.hasOverrideFlag,h=l.suffix,g={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:d};return i?this._styleMapInput=g:((this._singleStyleInputs=this._singleStyleInputs||[]).push(g),B3(this._stylesIndex,u)),this._lastStylingInput=g,this._firstStylingInput=this._firstStylingInput||g,this._checkForPipes(o),this.hasBindings=!0,g}},{key:"registerClassInput",value:function(e,i,o,a){if(H3(o))return null;var s=F3(e),l=s.property,d={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=d:((this._singleClassInputs=this._singleClassInputs||[]).push(d),B3(this._classesIndex,l)),this._lastStylingInput=d,this._firstStylingInput=this._firstStylingInput||d,this._checkForPipes(o),this.hasBindings=!0,d}},{key:"_checkForPipes",value:function(e){e instanceof Nf&&e.ast instanceof T_&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function N3(n){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<n.length;)switch(n.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,0===o?o=39:39===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=bl(n.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=n.substring(a,e-1).trim();r.push(l,u?oS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?oS(g):g)}return r}(e),this._hasInitialValues=!0}},{key:"registerClassAttr",value:function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}},{key:"populateInitialStylingAttrs",value:function(e){if(this._initialClassValues.length){e.push(on(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(on(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(on(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(on(this._initialStyleValues[o]),on(this._initialStyleValues[o+1]))}}},{key:"assignHostAttrs",value:function(e,i){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),i.set("hostAttrs",pi(e)))}},{key:"buildClassMapInstruction",value:function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null}},{key:"buildStyleMapInstruction",value:function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null}},{key:"_buildMapBasedInstruction",value:function(e,i,o){var l,a=2,s=o.value.visit(e);return s instanceof $a?(a+=s.expressions.length,l=i?function m4(n){switch(yh(n)){case 1:return Ne.classMap;case 3:return Ne.classMapInterpolate1;case 5:return Ne.classMapInterpolate2;case 7:return Ne.classMapInterpolate3;case 9:return Ne.classMapInterpolate4;case 11:return Ne.classMapInterpolate5;case 13:return Ne.classMapInterpolate6;case 15:return Ne.classMapInterpolate7;case 17:return Ne.classMapInterpolate8;default:return Ne.classMapInterpolateV}}(s):function _4(n){switch(yh(n)){case 1:return Ne.styleMap;case 3:return Ne.styleMapInterpolate1;case 5:return Ne.styleMapInterpolate2;case 7:return Ne.styleMapInterpolate3;case 9:return Ne.styleMapInterpolate4;case 11:return Ne.styleMapInterpolate5;case 13:return Ne.styleMapInterpolate6;case 15:return Ne.styleMapInterpolate7;case 17:return Ne.styleMapInterpolate8;default:return Ne.styleMapInterpolateV}}(s)):l=i?Ne.classMap:Ne.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(d){var h=d(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var d=l[l.length-1],h=u.value.visit(o),g=e,y=2;h instanceof $a&&(y+=h.expressions.length,a&&(g=a(h)));var L={sourceSpan:u.sourceSpan,allocateBindingSlots:y,supportsInterpolation:!!a,params:function(q){var re=[];re.push(on(u.name));var ae=q(h);return Array.isArray(ae)?re.push.apply(re,(0,cn.Z)(ae)):re.push(ae),!s&&null!==u.suffix&&re.push(on(u.suffix)),re}};d&&d.reference===g?d.calls.push(L):l.push({reference:g,calls:[L]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(Ne.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(Ne.styleProp,this._singleStyleInputs,e,g4,!1):[]}},{key:"buildUpdateLevelInstructions",value:function(e){var i=[];if(this.hasBindings){var o=this.buildStyleMapInstruction(e);o&&i.push(o);var a=this.buildClassMapInstruction(e);a&&i.push(a),i.push.apply(i,(0,cn.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,cn.Z)(this._buildClassInputs(e)))}return i}}]),n}();function B3(n,r){n.has(r)||n.set(r,n.size)}function F3(n){var r=!1,e=n.indexOf("!important");-1!==e&&(n=e>0?n.substring(0,e):"",r=!0);var i=null,o=n,a=n.lastIndexOf(".");return a>0&&(i=n.slice(a+1),o=n.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function g4(n){switch(yh(n)){case 1:return Ne.styleProp;case 3:return Ne.stylePropInterpolate1;case 5:return Ne.stylePropInterpolate2;case 7:return Ne.stylePropInterpolate3;case 9:return Ne.stylePropInterpolate4;case 11:return Ne.stylePropInterpolate5;case 13:return Ne.stylePropInterpolate6;case 15:return Ne.stylePropInterpolate7;case 17:return Ne.stylePropInterpolate8;default:return Ne.stylePropInterpolateV}}function H3(n){return n instanceof Nf&&(n=n.ast),n instanceof Tu}!function(n){n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error"}(Xr||(Xr={}));var Ff=["var","let","as","null","undefined","true","false","if","else","this"],j3=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"tokenize",value:function(e){for(var i=new z3(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Zc=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,U.Z)(n,[{key:"isCharacter",value:function(e){return this.type==Xr.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==Xr.Number}},{key:"isString",value:function(){return this.type==Xr.String}},{key:"isOperator",value:function(e){return this.type==Xr.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==Xr.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==Xr.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==Xr.Keyword}},{key:"isKeywordLet",value:function(){return this.type==Xr.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==Xr.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==Xr.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==Xr.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==Xr.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==Xr.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==Xr.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==Xr.Error}},{key:"toNumber",value:function(){return this.type==Xr.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case Xr.Character:case Xr.Identifier:case Xr.Keyword:case Xr.Operator:case Xr.PrivateIdentifier:case Xr.String:case Xr.Error:return this.strValue;case Xr.Number:return this.numValue.toString();default:return null}}}]),n}();function aS(n,r,e){return new Zc(n,r,Xr.Character,e,String.fromCharCode(e))}function sS(n,r,e){return new Zc(n,r,Xr.Operator,0,e)}var zC=new Zc(-1,-1,Xr.Character,0,""),z3=function(){function n(r){(0,B.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,U.Z)(n,[{key:"advance",value:function(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}},{key:"scanToken",value:function(){for(var e=this.input,i=this.length,o=this.peek,a=this.index;o<=32;){if(++a>=i){o=0;break}o=e.charCodeAt(a)}if(this.peek=o,this.index=a,a>=i)return null;if(WC(o))return this.scanIdentifier();if(Lf(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),Lf(this.peek)?this.scanNumber(s):aS(s,this.index,46);case 40:case 41:case Rf:case Rc:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(s,o);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(o));case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;HM(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(o),"]"),0)}},{key:"scanCharacter",value:function(e,i){return this.advance(),aS(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),sS(e,this.index,i)}},{key:"scanComplexOperator",value:function(e,i,o,a,s,l){this.advance();var u=i;return this.peek==o&&(this.advance(),u+=a),null!=s&&this.peek==s&&(this.advance(),u+=l),sS(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();cy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Ff.indexOf(i)>-1?function y4(n,r,e){return new Zc(n,r,Xr.Keyword,0,e)}(e,this.index,i):function v4(n,r,e){return new Zc(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!WC(this.peek))return this.error("Invalid character [#]",-1);for(;cy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function G3(n,r,e){return new Zc(n,r,Xr.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!Lf(this.peek))if(95===this.peek){if(!Lf(this.input.charCodeAt(this.index-1))||!Lf(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!dy(this.peek))break;if(this.advance(),W3(this.peek)&&this.advance(),!Lf(this.peek))return this.error("Invalid exponent",-1);i=!1}this.advance()}var a=this.input.substring(e,this.index);o&&(a=a.replace(/_/g,""));var s=i?function T4(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function C4(n,r,e){return new Zc(n,r,Xr.Number,e,"")}(e,this.index,s)}},{key:"scanString",value:function(){var e=this.index,i=this.peek;this.advance();for(var o="",a=this.index,s=this.input;this.peek!=i;)if(92==this.peek){o+=s.substring(a,this.index),this.advance();var l=void 0;if(this.peek=this.peek,117==this.peek){var u=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(u))return this.error("Invalid unicode escape [\\u".concat(u,"]"),0);l=parseInt(u,16);for(var d=0;d<5;d++)this.advance()}else l=V3(this.peek),this.advance();o+=String.fromCharCode(l),a=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var h=s.substring(a,this.index);return this.advance(),function b4(n,r,e){return new Zc(n,r,Xr.String,0,e)}(e,this.index,o+h)}},{key:"scanQuestion",value:function(e){this.advance();var i="?";return(63===this.peek||46===this.peek)&&(i+=46===this.peek?".":"?",this.advance()),sS(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function w4(n,r,e){return new Zc(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function WC(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function cy(n){return y_(n)||Lf(n)||95==n||36==n}function dy(n){return 101==n||69==n}function W3(n){return 45==n||43==n}function V3(n){switch(n){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return n}}var Pd,A_=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),Y3=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),lS=function(){function n(r){(0,B.Z)(this,n),this._lexer=r,this.errors=[]}return(0,U.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new tl(e,o,a,u,d,this.errors,0).parseChain();return new Nf(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,s=this._parseBindingAst(e,i,o,a);return new Nf(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new K3;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,s=this._parseBindingAst(e,i,o,a),l=this.checkSimpleExpression(s);return l.length>0&&this._reportError("Host binding expression cannot contain ".concat(l.join(" ")),e,i),new Nf(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new ey(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){this._checkNoInterpolation(e,i,a);var s=this._stripComments(e),l=this._lexer.tokenize(s);return new tl(e,i,o,l,0,this.errors,0).parseChain()}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new tl(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Ps(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl,l=this.splitInterpolation(e,i,a,s),u=l.strings,d=l.expressions,h=l.offsets;if(0===d.length)return null;for(var g=[],y=0;y<d.length;++y){var L=d[y].text,z=this._stripComments(L),q=this._lexer.tokenize(z),re=new tl(e,i,o,q,0,this.errors,h[y]).parseChain();g.push(re)}return this.createInterpolationAst(u.map(function(ae){return ae.text}),g,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new tl(e,i,o,s,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[l],e,i,o)}},{key:"createInterpolationAst",value:function(e,i,o,a,s){var l=new w_(0,o.length),u=new $a(l,l.toAbsolute(s),e,i);return new Nf(u,o,a,s,this.errors)}},{key:"splitInterpolation",value:function(e,i,o){for(var s,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,l=[],u=[],d=[],h=o?M4(o):null,g=0,y=!1,L=!1,z=a.start,q=a.end;g<e.length;)if(y){var Se=g,Ce=Se+z.length,Ee=this._getInterpolationEndIndex(e,q,Ce);if(-1===Ee){y=!1,L=!0;break}var Ke=Ee+q.length,st=e.substring(Ce,Ee);0===st.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(g," in"),i),u.push({text:st,start:Se,end:Ke});var De=null!==(s=null==h?void 0:h.get(Se))&&void 0!==s?s:Se,it=De+z.length;d.push(it),g=Ke,y=!1}else{var re=g;-1===(g=e.indexOf(z,g))&&(g=e.length);var ae=e.substring(re,g);l.push({text:ae,start:re,end:g}),y=!0}if(!y)if(L){var ft=l[l.length-1];ft.text+=e.substring(g),ft.end=e.length}else l.push({text:e.substring(g),start:g,end:e.length});return new A_(l,u,d)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new w_(0,null==e?0:e.length);return new Nf(new Os(a,a.toAbsolute(o),e),e,i,o,this.errors)}},{key:"_stripComments",value:function(e){var i=this._commentStart(e);return null!=i?e.substring(0,i):e}},{key:"_commentStart",value:function(e){for(var i=null,o=0;o<e.length-1;o++){var a=e.charCodeAt(o),s=e.charCodeAt(o+1);if(47===a&&47==s&&null==i)return o;i===a?i=null:null==i&&PC(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,d=(0,An.Z)(this._forEachUnquotedChar(e,0));try{for(d.s();!(h=d.n()).done;){var g=h.value;if(-1===l)e.startsWith(a)&&(l=g);else if((u=this._getInterpolationEndIndex(e,s,g))>-1)break}}catch(y){d.e(y)}finally{d.f()}l>-1&&u>-1&&this._reportError("Got interpolation (".concat(a).concat(s,") where expression was expected"),e,"at column ".concat(l," in"),i)}},{key:"_getInterpolationEndIndex",value:function(e,i,o){var s,a=(0,An.Z)(this._forEachUnquotedChar(e,o));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(e.startsWith(i,l))return l;if(e.startsWith("//",l))return e.indexOf(i,l)}}catch(u){a.e(u)}finally{a.f()}return-1}},{key:"_forEachUnquotedChar",value:Rn().mark(function r(e,i){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o=null,a=0,s=i;case 3:if(!(s<e.length)){d.next=16;break}if(l=e[s],!PC(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){d.next=9;break}o=null===o?l:null,d.next=12;break;case 9:if(null!==o){d.next=12;break}return d.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,d.next=3;break;case 16:case"end":return d.stop()}},r)})}]),n}();!function(n){n[n.None=0]="None",n[n.Writable=1]="Writable"}(Pd||(Pd={}));var tl=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.input=r,this.location=e,this.absoluteOffset=i,this.tokens=o,this.parseFlags=a,this.errors=s,this.offset=l,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Pd.None,this.sourceSpanCache=new Map,this.index=0}return(0,U.Z)(n,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:zC}},{key:"next",get:function(){return this.peek(0)}},{key:"atEOF",get:function(){return this.index>=this.tokens.length}},{key:"inputIndex",get:function(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}},{key:"currentEndIndex",get:function(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}},{key:"currentAbsoluteOffset",get:function(){return this.absoluteOffset+this.inputIndex}},{key:"span",value:function(e,i){var o=this.currentEndIndex;if(void 0!==i&&i>this.currentEndIndex&&(o=i),e>o){var a=o;o=e,e=a}return new w_(e,o)}},{key:"sourceSpan",value:function(e,i){var o="".concat(e,"@").concat(this.inputIndex,":").concat(i);return this.sourceSpanCache.has(o)||this.sourceSpanCache.set(o,this.span(e,i).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(o)}},{key:"advance",value:function(){this.index++}},{key:"withContext",value:function(e,i){this.context|=e;var o=i();return this.context^=e,o}},{key:"consumeOptionalCharacter",value:function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}},{key:"peekKeywordLet",value:function(){return this.next.isKeywordLet()}},{key:"peekKeywordAs",value:function(){return this.next.isKeywordAs()}},{key:"expectCharacter",value:function(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}},{key:"consumeOptionalOperator",value:function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}},{key:"expectOperator",value:function(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}},{key:"prettyPrintToken",value:function(e){return e===zC?"end of input":"token ".concat(e)}},{key:"expectIdentifierOrKeyword",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null)}},{key:"expectIdentifierOrKeywordOrString",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),"")}},{key:"parseChain",value:function(){for(var e=[],i=this.inputIndex;this.index<this.tokens.length;){var o=this.parsePipe();if(e.push(o),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){var a=this.index;if(this.error("Unexpected token '".concat(this.next,"'")),this.index===a)break}}if(0===e.length){var s=this.offset,l=this.offset+this.input.length;return new Tu(this.span(s,l),this.sourceSpan(s,l))}return 1==e.length?e[0]:new ny(this.span(i),this.sourceSpan(i),e)}},{key:"parsePipe",value:function(){var e=this.inputIndex,i=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{var o=this.inputIndex,a=this.expectIdentifierOrKeyword(),s=void 0,l=void 0;null!==a?s=this.sourceSpan(o):(a="",l=-1!==this.next.index?this.next.index:this.input.length+this.offset,s=new w_(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new T_(this.span(e),this.sourceSpan(e,l),i,a,u,s)}while(this.consumeOptionalOperator("|"))}return i}},{key:"parseExpression",value:function(){return this.parseConditional()}},{key:"parseConditional",value:function(){var e=this.inputIndex,i=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){var a,o=this.parsePipe();if(this.consumeOptionalCharacter(58))a=this.parsePipe();else{var s=this.inputIndex,l=this.input.substring(e,s);this.error("Conditional expression ".concat(l," requires all 3 expressions")),a=new Tu(this.span(e),this.sourceSpan(e))}return new v3(this.span(e),this.sourceSpan(e),i,o,a)}return i}},{key:"parseLogicalOr",value:function(){for(var e=this.inputIndex,i=this.parseLogicalAnd();this.consumeOptionalOperator("||");){var o=this.parseLogicalAnd();i=new Is(this.span(e),this.sourceSpan(e),"||",i,o)}return i}},{key:"parseLogicalAnd",value:function(){for(var e=this.inputIndex,i=this.parseNullishCoalescing();this.consumeOptionalOperator("&&");){var o=this.parseNullishCoalescing();i=new Is(this.span(e),this.sourceSpan(e),"&&",i,o)}return i}},{key:"parseNullishCoalescing",value:function(){for(var e=this.inputIndex,i=this.parseEquality();this.consumeOptionalOperator("??");){var o=this.parseEquality();i=new Is(this.span(e),this.sourceSpan(e),"??",i,o)}return i}},{key:"parseEquality",value:function(){for(var e=this.inputIndex,i=this.parseRelational();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseRelational",value:function(){for(var e=this.inputIndex,i=this.parseAdditive();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseAdditive",value:function(){for(var e=this.inputIndex,i=this.parseMultiplicative();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseMultiplicative",value:function(){for(var e=this.inputIndex,i=this.parsePrefix();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==Xr.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Sh.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Sh.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new ay(this.span(e),this.sourceSpan(e),o)}}return this.parseCallChain()}},{key:"parseCallChain",value:function(){for(var e=this.inputIndex,i=this.parsePrimary();;)if(this.consumeOptionalCharacter(46))i=this.parseAccessMember(i,e,!1);else if(this.consumeOptionalOperator("?."))i=this.consumeOptionalCharacter(40)?this.parseCall(i,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(i,e,!0):this.parseAccessMember(i,e,!0);else if(this.consumeOptionalCharacter(91))i=this.parseKeyedReadOrWrite(i,e,!1);else if(this.consumeOptionalCharacter(40))i=this.parseCall(i,e,!1);else{if(!this.consumeOptionalOperator("!"))return i;i=new qM(this.span(e),this.sourceSpan(e),i)}}},{key:"parsePrimary",value:function(){var e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var i=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),i}if(this.next.isKeywordNull())return this.advance(),new Os(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Os(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Os(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Os(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new LC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new NC(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Rf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new k_(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new Os(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Os(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Tu(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Tu(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Tu(this.span(e),this.sourceSpan(e)))}},{key:"parseExpressionList",value:function(e){var i=[];do{if(this.next.isCharacter(e))break;i.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return i}},{key:"parseLiteralMap",value:function(){var e=[],i=[],o=this.inputIndex;if(this.expectCharacter(Rf),!this.consumeOptionalCharacter(Rc)){this.rbracesExpected++;do{var a=this.inputIndex,s=this.next.isString(),l=this.expectIdentifierOrKeywordOrString();if(e.push({key:l,quoted:s}),s)this.expectCharacter(58),i.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))i.push(this.parsePipe());else{var u=this.span(a),d=this.sourceSpan(a);i.push(new Zf(u,d,d,new k_(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Rc)}return new oy(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var d,a=this,s=this.inputIndex,l=this.withContext(Pd.Writable,function(){var g,y=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===y.length&&a.error("Expected identifier for property access",e.span.end),y}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Tu(this.span(i),this.sourceSpan(i))):d=new ZC(this.span(i),this.sourceSpan(i),u,e,l);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Tu(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new ry(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new Zf(this.span(i),this.sourceSpan(i),u,e,l);return d}},{key:"parseCall",value:function(e,i,o){var a=this.inputIndex;this.rparensExpected++;var s=this.parseCallArguments(),l=this.span(a,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;var u=this.span(i),d=this.sourceSpan(i);return o?new sy(u,d,e,s,l):new M_(u,d,e,s,l)}},{key:"consumeOptionalAssignment",value:function(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}},{key:"parseCallArguments",value:function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}},{key:"expectTemplateBindingKey",value:function(){var e="",i=!1,o=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(i=this.consumeOptionalOperator("-"))&&(e+="-")}while(i);return{source:e,span:new Ps(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,cn.Z)(this.parseDirectiveKeywordBindings(e)));this.index<this.tokens.length;){var o=this.parseLetBinding();if(o)i.push(o);else{var a=this.expectTemplateBindingKey(),s=this.parseAsBinding(a);s?i.push(s):(a.source=e.source+a.source.charAt(0).toUpperCase()+a.source.substring(1),i.push.apply(i,(0,cn.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new Y3(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Pd.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof Tu&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new Lc(a.span(i),a.sourceSpan(i),e,s):new iy(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new KM(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new Tu(a.span(i),a.sourceSpan(i))})}},{key:"parseDirectiveKeywordBindings",value:function(e){var i=[];this.consumeOptionalCharacter(58);var o=this.getDirectiveBoundTarget(),a=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),a=this.currentAbsoluteOffset);var l=new Ps(e.span.start,a);return i.push(new KF(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===zC||this.peekKeywordAs()||this.peekKeywordLet())return null;var e=this.parsePipe(),i=e.span,o=i.start,a=i.end,s=this.input.substring(o,a);return new Nf(e,s,this.location,this.absoluteOffset+o,this.errors)}},{key:"parseAsBinding",value:function(e){if(!this.peekKeywordAs())return null;this.advance();var i=this.expectTemplateBindingKey();this.consumeStatementTerminator();var o=new Ps(e.span.start,this.currentAbsoluteOffset);return new JM(o,i,e)}},{key:"parseLetBinding",value:function(){if(!this.peekKeywordLet())return null;var e=this.currentAbsoluteOffset;this.advance();var i=this.expectTemplateBindingKey(),o=null;this.consumeOptionalOperator("=")&&(o=this.expectTemplateBindingKey()),this.consumeStatementTerminator();var a=new Ps(e,this.currentAbsoluteOffset);return new JM(a,i,o)}},{key:"consumeStatementTerminator",value:function(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}},{key:"error",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new ey(e,this.input,this.locationText(i),this.location)),this.skip()}},{key:"locationText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null==e&&(e=this.index),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}},{key:"_reportErrorForPrivateIdentifier",value:function(e,i){var o="Private identifiers are not supported. Unexpected private identifier: ".concat(e);null!==i&&(o+=", ".concat(i)),this.error(o)}},{key:"skip",value:function(){for(var e=this.next;!(!(this.index<this.tokens.length)||e.isCharacter(59)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(41)||!(this.rbracesExpected<=0)&&e.isCharacter(Rc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Pd.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new ey(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),n}(),K3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,U.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(qF);function M4(n){for(var r=new Map,e=0,i=0,o=0;o<n.length;){var a=n[o];if(9===a.type){var s=(0,Yn.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var d=a.parts.reduce(function(h,g){return h+g.length},0);i+=d,e+=d}r.set(i,e),o++}return r}var Oh=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.sourceSpan=r,this.i18n=e}),Su=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(Oh),O_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,s,u)).switchValue=i,d.type=o,d.cases=a,d.switchValueSourceSpan=l,d}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(Oh),q3=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),n}(),uS=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,a,d)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(Oh),J3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,B.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=d,u}return(0,U.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Oh),fy=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,U.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function Nc(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=n.visit?function(a){return n.visit(a,e)||a.visit(n,e)}:function(a){return a.visit(n,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var Ih={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\ud835\udd44",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\ud835\udca9",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",rationals:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\ud835\udcb5",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\ud835\udd1e",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\ud835\udd1f",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\ud835\udd54",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\ud835\udcbb",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\ud835\udd58",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\ud835\udd26",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iquest:"\xbf",iscr:"\ud835\udcbe",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\ud835\udd29",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\ud835\udd5e",mscr:"\ud835\udcc2",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\ud835\udd2b",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\ud835\udd5f",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\ud835\udcc3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\ud835\udd61",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\ud835\udd2f",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\ud835\udcc7",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\ud835\udd30",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\ud835\udcc8",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\ud835\udd31",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\ud835\udd32",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\ud835\udd66",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\ud835\udd33",vopf:"\ud835\udd67",vscr:"\ud835\udccb",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wscr:"\ud835\udccc",xfr:"\ud835\udd35",xi:"\u03be",xnis:"\u22fb",xopf:"\ud835\udd69",xscr:"\ud835\udccd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};Ih.ngsp="\ue500";var py=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,U.Z)(e)}(kh),dS=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var my,S4=/\r\n?/g;function hy(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function Q3(n){return'Unknown entity "'.concat(n,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(my||(my={}));var X3=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.error=r}),x4=function(){function n(r,e,i){(0,B.Z)(this,n),this._getTagDefinition=e,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=i.tokenizeExpansionForms||!1,this._interpolationConfig=i.interpolationConfig||Vl,this._leadingTriviaCodePoints=i.leadingTriviaChars&&i.leadingTriviaChars.map(function(a){return a.codePointAt(0)||0});var o=i.range||{endPos:r.content.length,startPos:0,startLine:0,startCol:0};this._cursor=i.escapedString?new fV(r,o):new O4(r,o),this._preserveLineEndings=i.preserveLineEndings||!1,this._escapedString=i.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=i.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(a){this.handleError(a)}}return(0,U.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(S4,"\n")}},{key:"tokenize",value:function(){for(var e=this;0!==this._cursor.peek();){var i=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(i):this._attemptCharCode(45)?this._consumeComment(i):this._consumeDocType(i):this._attemptCharCode(47)?this._consumeTagClose(i):this._consumeTagOpen(i):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,function(){return e._isTextEnd()},function(){return e._isTagStart()})}catch(o){this.handleError(o)}}this._beginToken(24),this._endToken([])}},{key:"_tokenizeExpansionForm",value:function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function uV(n){return n!==Rc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Rc){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}},{key:"_beginToken",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=e}},{key:"_endToken",value:function(e,i){if(null===this._currentTokenStart)throw new py("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(null===this._currentTokenType)throw new py("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var o={type:this._currentTokenType,parts:e,sourceSpan:(null!=i?i:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(o),this._currentTokenStart=null,this._currentTokenType=null,o}},{key:"_createError",value:function(e,i){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var o=new py(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new X3(o)}},{key:"handleError",value:function(e){if(e instanceof e6&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof X3))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(e){return!!function cV(n,r){return A4(n)===A4(r)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}},{key:"_requireCharCode",value:function(e){var i=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()<i)return!1;for(var o=this._cursor.clone(),a=0;a<i;a++)if(!this._attemptCharCode(e.charCodeAt(a)))return this._cursor=o,!1;return!0}},{key:"_attemptStrCaseInsensitive",value:function(e){for(var i=0;i<e.length;i++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(i)))return!1;return!0}},{key:"_requireStr",value:function(e){var i=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptCharCodeUntilFn",value:function(e){for(;!e(this._cursor.peek());)this._cursor.advance()}},{key:"_requireCharCodeUntilFn",value:function(e,i){var o=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(o)<i)throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(o))}},{key:"_attemptUntilChar",value:function(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}},{key:"_readChar",value:function(){var e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}},{key:"_consumeEntity",value:function(e){this._beginToken(9);var i=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){var o=this._attemptCharCode(120)||this._attemptCharCode(88),a=this._cursor.clone();if(this._attemptCharCodeUntilFn(D4),59!=this._cursor.peek()){this._cursor.advance();var s=o?my.HEX:my.DEC;throw this._createError(function E4(n,r){return'Unable to parse entity "'.concat(r,'" - ').concat(n,' character reference entities must end with ";"')}(s,this._cursor.getChars(i)),this._cursor.getSpan())}var l=this._cursor.getChars(a);this._cursor.advance();try{var u=parseInt(l,o?16:10);this._endToken([String.fromCharCode(u),this._cursor.getChars(i)])}catch(y){throw this._createError(Q3(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var d=this._cursor.clone();if(this._attemptCharCodeUntilFn(pS),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=d,this._endToken(["&"]);else{var h=this._cursor.getChars(d);this._cursor.advance();var g=Ih[h];if(!g)throw this._createError(Q3(h),this._cursor.getSpan(i));this._endToken([g,"&".concat(h,";")])}}}},{key:"_consumeRawText",value:function(e,i){this._beginToken(e?6:7);for(var o=[];;){var a=this._cursor.clone(),s=i();if(this._cursor=a,s)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(o.join(""))]),o.length=0,this._consumeEntity(6),this._beginToken(6)):o.push(this._readChar())}this._endToken([this._processCarriageReturns(o.join(""))])}},{key:"_consumeComment",value:function(e){var i=this;this._beginToken(10,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("--\x3e")}),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}},{key:"_consumeCdata",value:function(e){var i=this;this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("]]>")}),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(e){this._beginToken(18,e);var i=this._cursor.clone();this._attemptUntilChar(62);var o=this._cursor.getChars(i);this._cursor.advance(),this._endToken([o])}},{key:"_consumePrefixAndName",value:function(){for(var e=this._cursor.clone(),i="";58!==this._cursor.peek()&&!$3(this._cursor.peek());)this._cursor.advance();var o;return 58===this._cursor.peek()?(i=this._cursor.getChars(e),this._cursor.advance(),o=this._cursor.clone()):o=e,this._requireCharCodeUntilFn(fS,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!y_(this._cursor.peek()))throw this._createError(hy(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(Eu);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Eu),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Eu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Eu);this._consumeTagOpenEnd()}catch(l){if(l instanceof X3)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===qi.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===qi.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(o,i,!0)}},{key:"_consumeRawTextWithTagClose",value:function(e,i,o){var a=this;this._consumeRawText(o,function(){return!!(a._attemptCharCode(60)&&a._attemptCharCode(47)&&(a._attemptCharCodeUntilFn(Eu),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(Eu),a._attemptCharCode(62))}),this._beginToken(3),this._requireCharCodeUntilFn(function(s){return 62===s},3),this._cursor.advance(),this._endToken([e,i])}},{key:"_consumeTagOpenStart",value:function(e){this._beginToken(0,e);var i=this._consumePrefixAndName();return this._endToken(i)}},{key:"_consumeAttributeName",value:function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(hy(e),this._cursor.getSpan());this._beginToken(14);var i=this._consumePrefixAndName();this._endToken(i)}},{key:"_consumeAttributeValue",value:function(){var e=this;if(39===this._cursor.peek()||34===this._cursor.peek()){var o=this._cursor.peek();this._consumeQuote(o);var a=function(){return e._cursor.peek()===o};this._consumeWithInterpolation(16,17,a,a),this._consumeQuote(o)}else{var s=function(){return fS(e._cursor.peek())};this._consumeWithInterpolation(16,17,s,s)}}},{key:"_consumeQuote",value:function(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}},{key:"_consumeTagOpenEnd",value:function(){var e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}},{key:"_consumeTagClose",value:function(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Eu);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Eu),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Rf),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);var e=this._readUntil(44),i=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([i]);else{var o=this._endToken([e]);i!==e&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Eu),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Eu)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Rf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Eu),this._beginToken(21),this._requireCharCode(Rf),this._endToken([]),this._attemptCharCodeUntilFn(Eu),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Rc),this._endToken([]),this._attemptCharCodeUntilFn(Eu),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Rc),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeWithInterpolation",value:function(e,i,o,a){this._beginToken(e);for(var s=[];!o();){var l=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],l),s.length=0,this._consumeInterpolation(i,l,a),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}},{key:"_consumeInterpolation",value:function(e,i,o){var a=[];this._beginToken(e,i),a.push(this._interpolationConfig.start);for(var s=this._cursor.clone(),l=null,u=!1;0!==this._cursor.peek()&&(null===o||!o());){var d=this._cursor.clone();if(this._isTagStart())return this._cursor=d,a.push(this._getProcessedChars(s,d)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,d)),a.push(this._interpolationConfig.end),void this._endToken(a);this._attemptStr("//")&&(u=!0)}var h=this._cursor.peek();this._cursor.advance(),92===h?this._cursor.advance():h===l?l=null:!u&&null===l&&PC(h)&&(l=h)}a.push(this._getProcessedChars(s,this._cursor)),this._endToken(a)}},{key:"_getProcessedChars",value:function(e,i){return this._processCarriageReturns(i.getChars(e))}},{key:"_isTextEnd",value:function(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Rc&&this._isInExpansionCase()))}},{key:"_isTagStart",value:function(){if(60===this._cursor.peek()){var e=this._cursor.clone();e.advance();var i=e.peek();if(97<=i&&i<=122||65<=i&&i<=90||47===i||33===i)return!0}return!1}},{key:"_readUntil",value:function(e){var i=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(i)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==Rf)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),n}();function Eu(n){return!HM(n)||0===n}function fS(n){return HM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function $3(n){return(n<97||122<n)&&(n<65||90<n)&&(n<48||n>57)}function D4(n){return 59===n||0===n||!function xd(n){return n>=97&&n<=102||n>=65&&n<=70||Lf(n)}(n)}function pS(n){return 59===n||0===n||!y_(n)}function A4(n){return n>=97&&n<=122?n-97+65:n}function dV(n){for(var r=[],e=void 0,i=0;i<n.length;i++){var o=n[i];e&&5===e.type&&5===o.type||e&&16===e.type&&16===o.type?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}var O4=function(){function n(r,e){if((0,B.Z)(this,n),r instanceof n){this.file=r.file,this.input=r.input,this.end=r.end;var i=r.state;this.state={peek:i.peek,offset:i.offset,line:i.line,column:i.column}}else{if(!e)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=r,this.input=r.content,this.end=e.endPos,this.state={peek:-1,offset:e.startPos,line:e.startLine,column:e.startCol}}}return(0,U.Z)(n,[{key:"clone",value:function(){return new n(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(e){return this.state.offset-e.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(e,i){var o=e=e||this;if(i)for(;this.diff(e)>0&&-1!==i.indexOf(e.peek());)o===e&&(e=e.clone()),e.advance();var a=this.locationFromCursor(e),s=this.locationFromCursor(this),l=o!==e?this.locationFromCursor(o):a;return new Xa(a,s,l)}},{key:"getChars",value:function(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function(e){if(e.offset>=this.end)throw this.state=e,new e6('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):b_(i)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}},{key:"locationFromCursor",value:function(e){return new C_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),fV=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),i instanceof e?(a=r.call(this,i)).internalState=Object.assign({},i.internalState):(a=r.call(this,i,o)).internalState=a.state,(0,Ti.Z)(a)}return(0,U.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ut.Z)((0,Wt.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new e(this)}},{key:"getChars",value:function(o){for(var a=o.clone(),s="";a.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(a.peek()),a.advance();return s}},{key:"processEscapeSequence",value:function(){var o=this,a=function(){return o.internalState.peek};if(92===a())if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),110===a())this.state.peek=10;else if(114===a())this.state.peek=13;else if(118===a())this.state.peek=11;else if(116===a())this.state.peek=9;else if(98===a())this.state.peek=8;else if(102===a())this.state.peek=12;else if(117===a())if(this.advanceState(this.internalState),a()===Rf){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==Rc;)this.advanceState(this.internalState),l++;this.state.peek=this.decodeHexDigits(s,l)}else{var u=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(u,4)}else if(120===a()){this.advanceState(this.internalState);var d=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(d,2)}else if(jM(a())){for(var h="",g=0,y=this.clone();jM(a())&&g<3;)y=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),g++;this.state.peek=parseInt(h,8),this.internalState=y.internalState}else b_(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}},{key:"decodeHexDigits",value:function(o,a){var s=this.input.slice(o.internalState.offset,o.internalState.offset+a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new e6("Invalid hexadecimal escape sequence",o);return l}}]),e}(O4),e6=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.msg=r,this.cursor=e}),Uf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,U.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(kh),t6=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.rootNodes=r,this.errors=e}),pV=function(){function n(r){(0,B.Z)(this,n),this.getTagDefinition=r}return(0,U.Z)(n,[{key:"parse",value:function(e,i,o){var a=function lV(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new x4(new GM(n,r),e,i);return o.tokenize(),new dS(dV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new Hf(a.tokens,this.getTagDefinition);return s.build(),new t6(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),Hf=function(){function n(r,e){(0,B.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,U.Z)(n,[{key:"build",value:function(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):this._advance()}},{key:"_advance",value:function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}},{key:"_advanceIf",value:function(e){return this._peek.type===e?this._advance():null}},{key:"_consumeCdata",value:function(e){this._consumeText(this._advance()),this._advanceIf(13)}},{key:"_consumeComment",value:function(e){var i=this._advanceIf(7);this._advanceIf(11);var o=null!=i?i.parts[0].trim():null;this._addToParent(new fy(o,e.sourceSpan))}},{key:"_consumeExpansion",value:function(e){for(var i=this._advance(),o=this._advance(),a=[];20===this._peek.type;){var s=this._parseExpansionCase();if(!s)return;a.push(s)}if(23===this._peek.type){var l=new Xa(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new O_(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(Uf.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))}},{key:"_parseExpansionCase",value:function(){var e=this._advance();if(21!==this._peek.type)return this.errors.push(Uf.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var i=this._advance(),o=this._collectExpansionExpTokens(i);if(!o)return null;var a=this._advance();o.push({type:24,parts:[],sourceSpan:a.sourceSpan});var s=new n(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new Xa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Xa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new q3(e.parts[0],s.rootNodes,l,e.sourceSpan,u)}},{key:"_collectExpansionExpTokens",value:function(e){for(var i=[],o=[21];;){if((19===this._peek.type||21===this._peek.type)&&o.push(this._peek.type),22===this._peek.type){if(!YC(o,21))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!YC(o,19))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;i.push(this._advance())}}},{key:"_consumeText",value:function(e){var i=[e],o=e.sourceSpan,a=e.parts[0];if(a.length>0&&"\n"===a[0]){var s=this._getParentElement();null!=s&&0===s.children.length&&this.getTagDefinition(s.name).ignoreFirstLf&&(a=a.substring(1),i[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[a]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),i.push(e),8===e.type?a+=e.parts.join("").replace(/&([^;]+);/g,n6):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new Su(a,new Xa(o.start,l.end,o.fullStart,o.details),i))}}},{key:"_closeVoidElement",value:function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(e){for(var i=(0,Yn.Z)(e.parts,2),o=i[0],a=i[1],s=[];14===this._peek.type;)s.push(this._consumeAttr(this._advance()));var l=this._getElementFullName(o,a,this._getParentElement()),u=!1;if(2===this._peek.type){this._advance(),u=!0;var d=this.getTagDefinition(l);d.canSelfClose||null!==Mi(l)||d.isVoid||this.errors.push(Uf.create(l,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else 1===this._peek.type&&(this._advance(),u=!1);var h=this._peek.sourceSpan.fullStart,g=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),y=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),L=new J3(l,s,[],g,y,void 0);this._pushElement(L),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(Uf.create(l,g,'Opening tag "'.concat(l,'" not terminated.'))))}},{key:"_pushElement",value:function(e){var i=this._getParentElement();i&&this.getTagDefinition(i.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function(e){var i=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(i).isVoid)this.errors.push(Uf.create(i,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(i,e.sourceSpan)){var o='Unexpected closing tag "'.concat(i,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this.errors.push(Uf.create(i,e.sourceSpan,o))}}},{key:"_popElement",value:function(e,i){for(var o=!1,a=this._elementStack.length-1;a>=0;a--){var s=this._elementStack[a];if(s.name===e)return s.endSourceSpan=i,s.sourceSpan.end=null!==i?i.end:s.sourceSpan.end,this._elementStack.splice(a,this._elementStack.length-a),!o;this.getTagDefinition(s.name).closedByParent||(o=!0)}return!1}},{key:"_consumeAttr",value:function(e){var i=Hi(e.parts[0],e.parts[1]),o=e.sourceSpan.end;15===this._peek.type&&this._advance();var a="",s=[],l=void 0,u=void 0;if(16===this._peek.type)for(l=this._peek.sourceSpan,u=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){var h=this._advance();s.push(h),17===h.type?a+=h.parts.join("").replace(/&([^;]+);/g,n6):9===h.type?a+=h.parts[0]:a+=h.parts.join(""),u=o=h.sourceSpan.end}15===this._peek.type&&(o=this._advance().sourceSpan.end);var y=l&&u&&new Xa(l.start,u,l.fullStart);return new uS(i,a,new Xa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,y,s.length>0?s:void 0,void 0)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_addToParent",value:function(e){var i=this._getParentElement();null!=i?i.children.push(e):this.rootNodes.push(e)}},{key:"_getElementFullName",value:function(e,i,o){if(""===e&&(""===(e=this.getTagDefinition(i).implicitNamespacePrefix||"")&&null!=o)){var a=Oi(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=Mi(o.name))}return Hi(e,i)}}]),n}();function YC(n,r){return n.length>0&&n[n.length-1]===r}function n6(n,r){return void 0!==Ih[r]?Ih[r]||n:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):n}var r6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this,ka)}return(0,U.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(pV),KC="ngPreserveWhitespaces",i6=new Set(["pre","template","textarea","script","style"]),qC=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",I4=new RegExp("[^".concat(qC,"]")),jf=new RegExp("[".concat(qC,"]{2,}"),"g");function a6(n){return n.replace(new RegExp("\ue500","g")," ")}var s6=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitElement",value:function(e,i){return i6.has(e.name)||function o6(n){return n.some(function(r){return r.name===KC})}(e.attrs)?new J3(e.name,Nc(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new J3(e.name,e.attrs,function JC(n,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(n,a);s&&e.push(s)}),e}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}},{key:"visitAttribute",value:function(e,i){return e.name!==KC?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(I4),a=i&&(i.prev instanceof O_||i.next instanceof O_);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function l6(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[u6(e[0])],sourceSpan:i}}(u):u}),l=u6(e.value);return new Su(l,e.sourceSpan,s,e.i18n)}return null}},{key:"visitComment",value:function(e,i){return e}},{key:"visitExpansion",value:function(e,i){return e}},{key:"visitExpansionCase",value:function(e,i){return e}}]),n}();function u6(n){return a6(n).replace(jf," ")}function I_(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ds(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var P_=(0,U.Z)(function n(){(0,B.Z)(this,n)}),mS=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,autocomplete,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],_S=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),gS=Array.from(_S).reduce(function(n,r){var e=(0,Yn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),p6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,mS.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Yn.Z)(l,2),d=u[0],g=u[1].split(","),y=d.split("^"),L=(0,Yn.Z)(y,2),z=L[0],q=L[1];z.split(",").forEach(function(ft){i._schema.set(ft.toLowerCase(),a),i._eventSchema.set(ft.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,An.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Yn.Z)(Se.value,2),Ee=Ce[0],Ke=Ce[1];a.set(Ee,Ke)}}catch(ft){ae.e(ft)}finally{ae.f()}var De,st=(0,An.Z)(i._eventSchema.get(q.toLowerCase()));try{for(st.s();!(De=st.n()).done;){var it=De.value;s.add(it)}}catch(ft){st.e(ft)}finally{st.f()}}g.forEach(function(ft){if(ft.length>0)switch(ft[0]){case"*":s.add(ft.substring(1));break;case"!":a.set(ft.substring(1),"boolean");break;case"#":a.set(ft.substring(1),"number");break;case"%":a.set(ft.substring(1),"object");break;default:a.set(ft,"string")}})}),i}return(0,U.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===ec.name}))return!0;if(o.indexOf("-")>-1){if(Ji(o)||Ii(o))return!1;if(s.some(function(u){return u.name===mu.name}))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(a)}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===ec.name})||o.indexOf("-")>-1&&(Ji(o)||Ii(o)||a.some(function(s){return s.name===mu.name})))||this._schema.has(o.toLowerCase())}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=M3()[o+"|"+a];return l||((l=M3()["*|"+a])||Br.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=_S.get(o))&&void 0!==a?a:o}},{key:"getDefaultComponentElementName",value:function(){return"ng-component"}},{key:"validateProperty",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")+"\nIf '".concat(o,"' is a directive input, make sure the directive is imported by the")+" current module."}:{error:!1}}},{key:"validateAttribute",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")}:{error:!1}}},{key:"allKnownElementNames",value:function(){return Array.from(this._schema.keys())}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(a.keys()).map(function(s){var l;return null!==(l=gS.get(s))&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema.get(o.toLowerCase()))&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function Ul(n){return n.replace(ks,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}(o)}},{key:"normalizeAnimationStyleValue",value:function(o,a,s){var l="",u=s.toString().trim(),d=null;if(function mV(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(o)&&0!==s&&"0"!==s)if("number"==typeof s)l="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&(d="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:d,value:u+l}}}]),e}(P_);var h6=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function vS(n,r){return n=n.toLowerCase(),r=r.toLowerCase(),h6.has(n+"|"+r)||h6.has("*|"+r)}var XC="animate-",R4=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,U.Z)(n,[{key:"interpolationConfig",get:function(){return this._interpolationConfig}},{key:"createBoundHostProperties",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parsePropertyBinding(l,u,!0,i,i.start.offset,void 0,[],o,i):this._reportError('Value of the host property binding "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"createDirectiveHostEventAsts",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parseEvent(l,u,!1,i,i,[],o,i):this._reportError('Value of the host listener "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"parseInterpolation",value:function(e,i,o){var a=i.start.toString(),s=i.fullStart.offset;try{var l=this._exprParser.parseInterpolation(e,a,s,o,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,i),l}catch(u){return this._reportError("".concat(u),i),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"parseInterpolationExpression",value:function(e,i){var o=i.start.toString(),a=i.start.offset;try{var s=this._exprParser.parseInterpolationExpression(e,o,a);return s&&this._reportExpressionParserErrors(s.errors,i),s}catch(l){return this._reportError("".concat(l),i),this._exprParser.wrapLiteralPrimitive("ERROR",o,a)}}},{key:"parseInlineTemplateBinding",value:function(e,i,o,a,s,l,u,d){var L,h=o.start.offset+"*".length,g=this._parseTemplateBindings(e,i,o,h,a),y=(0,An.Z)(g);try{for(y.s();!(L=y.n()).done;){var z=L.value,q=Rd(o,z.sourceSpan),re=z.key.source,ae=Rd(o,z.key.span);if(z instanceof JM){var Se=z.value?z.value.source:"$implicit",Ce=z.value?Rd(o,z.value.span):void 0;u.push(new iV(re,Se,q,ae,Ce))}else if(z.value){var Ee=d?q:o,Ke=Rd(o,z.value.ast.sourceSpan);this._parsePropertyAst(re,z.value,Ee,ae,Ke,s,l)}else s.push([re,""]),this.parseLiteralAttr(re,null,ae,a,void 0,s,l,ae)}}catch(st){y.e(st)}finally{y.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var d=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(d.errors,o),d.warnings.forEach(function(h){l._reportError(h,o,Dd.WARNING)}),d.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,d){yS(e)?(e=e.substring(1),void 0!==d&&(d=Rd(d,new Ps(d.start.offset+1,d.end.offset))),i&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',o,Dd.ERROR),this._parseAnimation(e,i,o,a,d,s,l,u)):u.push(new BC(e,this._exprParser.wrapLiteralPrimitive(i,"",a),Eh.LITERAL_ATTR,o,d,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,d,h){0===e.length&&this._reportError("Property name is missing in binding",a);var g=!1;e.startsWith(XC)?(g=!0,e=e.substring(XC.length),void 0!==h&&(h=Rd(h,new Ps(h.start.offset+XC.length,h.end.offset)))):yS(e)&&(g=!0,e=e.substring(1),void 0!==h&&(h=Rd(h,new Ps(h.start.offset+1,h.end.offset)))),g?this._parseAnimation(e,i,a,s,h,l,u,d):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,d)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,d){var h=this.parseInterpolation(i,a||o,d);return!!h&&(this._parsePropertyAst(e,h,o,u,a,s,l),!0)}},{key:"_parsePropertyAst",value:function(e,i,o,a,s,l,u){l.push([e,i.source]),u.push(new BC(e,i,Eh.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Animation trigger is missing",o);var h=this._parseBinding(i||"undefined",!1,l||o,a);u.push([e,h.source]),d.push(new BC(e,h,Eh.ANIMATION,o,s,l))}},{key:"_parseBinding",value:function(e,i,o,a){var s=(o&&o.start||"(unknown)").toString();try{var l=i?this._exprParser.parseSimpleBinding(e,s,a,this._interpolationConfig):this._exprParser.parseBinding(e,s,a,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",s,a)}}},{key:"createBoundElementProperty",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new y3(i.name,4,Br.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,d=i.name.split("."),h=void 0;if(d.length>1)if("attr"==d[0]){u=d.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=gy(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var y=u.substring(0,g),L=u.substring(g+1);u=Hi(y,L)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Br.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Br.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=gy(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new y3(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Event name is missing in binding",a),yS(e)?(e=e.slice(1),void 0!==d&&(d=Rd(d,new Ps(d.start.offset+1,d.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,d)):this._parseRegularEvent(e,i,o,a,s,l,u,d)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return gy(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function xo(n,r){return vu(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),y=this._parseAction(i,o,s);l.push(new XM(h,g,1,y,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),g?"start"!==g&&"done"!==g&&this._reportError('The provided animation output phase value "'.concat(g,'" for "@').concat(h,'" is not supported (use start or done)'),a):this._reportError("The animation trigger output event (@".concat(h,") is missing its phase value name (start or done are currently supported)"),a)}},{key:"_parseRegularEvent",value:function(e,i,o,a,s,l,u,d){var h=function Dc(n,r){return vu(n,":",r)}(e,[null,e]),g=(0,Yn.Z)(h,2),y=g[0],L=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new XM(L,y,0,z,a,s,d))}},{key:"_parseAction",value:function(e,i,o){var a=(o&&o.start||"(unknown").toString(),s=o&&o.start?o.start.offset:0;try{var l=this._exprParser.parseAction(e,i,a,s,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),!l||l.ast instanceof Tu?(this._reportError("Empty expressions are not allowed",o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)):l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"_reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new kh(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._reportError(s.message,i)}}catch(l){o.e(l)}finally{o.f()}}},{key:"_validatePropertyOrAttributeName",value:function(e,i,o){var a=o?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);a.error&&this._reportError(a.msg,i,Dd.ERROR)}}]),n}();function yS(n){return"@"==n[0]}function gy(n,r,e,i){var o=[];return fo.parse(r).forEach(function(a){var s=a.element?[a.element]:n.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(d){return d.isElementSelector()}).map(function(d){return d.element})),u=s.filter(function(d){return!l.has(d)});o.push.apply(o,(0,cn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Br.NONE]:Array.from(new Set(o)).sort()}function Rd(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Xa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var Rs,Z4=/^([^:/?#]+):/;function uc(n){var r=null,e=null,i=null,o=!1,a="";n.attrs.forEach(function(u){var d=u.name.toLowerCase();"select"==d?r=u.value:"href"==d?e=u.value:"rel"==d?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function G4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=Rs.OTHER;return Ii(s)?l=Rs.NG_CONTENT:"style"==s?l=Rs.STYLE:"script"==s?l=Rs.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Rs.STYLESHEET),new j4(l,r,e,o,a)}!function(n){n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER"}(Rs||(Rs={}));var j4=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var _V=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,cc_BANANA_BOX={start:"[(",end:")]"},cc_PROPERTY={start:"[",end:"]"},cc_EVENT={start:"(",end:")"};function t1(n,r,e){var i=new gV(r,e),s={nodes:Nc(i,n),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var es,gV=function(){function n(r,e){(0,B.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,U.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=zv(e.i18n);o&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var a=uc(e);if(a.type===Rs.SCRIPT)return null;if(a.type===Rs.STYLE){var s=function kS(n){return 1===n.children.length&&n.children[0]instanceof Su?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Rs.STYLESHEET&&function L4(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(Z4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function oi(n){return"ng-template"===Oi(n)[1]}(e.name),u=[],d=[],h=[],g=[],y=[],L={},z=[],q=[],re=!1,ae=(0,An.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,Ee=!1,Ke=wS(Ce.name),st=!1;if(Ce.i18n&&(L[Ce.name]=Ce.i18n),Ke.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),st=!0,re=!0;var De=Ce.value,it=Ke.substring("*".length),ft=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(it,De,Ce.sourceSpan,bt,[],z,ft,!0),q.push.apply(q,(0,cn.Z)(ft.map(function(_r){return new CM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!st&&y.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Pe,$e=Nc(a.nonBindable?vV:this,e.children);if(a.type===Rs.NG_CONTENT){e.children&&!e.children.every(function(_r){return function M6(n){return n instanceof Su&&0==n.value.trim().length}(_r)||function S6(n){return n instanceof fy}(_r)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var ct=a.selectAttr,Bt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Pe=new RP(ct,Bt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ct)}else if(l){var Ht=this.extractAttributes(e.name,u,L);Pe=new Sd(e.name,y,Ht.bound,d,[],$e,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var Pt=this.extractAttributes(e.name,u,L);Pe=new hh(e.name,y,Pt.bound,d,$e,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,L),jn=[];Tn.literal.forEach(function(_r){return jn.push(_r)}),Tn.bound.forEach(function(_r){return jn.push(_r)});var zn=Pe instanceof hh?{attributes:Pe.attributes,inputs:Pe.inputs,outputs:Pe.outputs}:{attributes:[],inputs:[],outputs:[]},ar=l&&o?void 0:e.i18n,kr=Pe instanceof Sd?null:Pe.name;Pe=new Sd(kr,zn.attributes,zn.inputs,zn.outputs,jn,[Pe],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,ar)}return o&&(this.inI18nBlock=!1),Pe}},{key:"visitAttribute",value:function(e){return new bM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}},{key:"visitExpansion",value:function(e){var i=this;if(!e.i18n)return null;if(!zv(e.i18n))throw new Error('Invalid type "'.concat(e.i18n.constructor,'" for "i18n" property of ').concat(e.sourceSpan.toString(),'. Expected a "Message"'));var o=e.i18n,a={},s={};return Object.keys(o.placeholders).forEach(function(l){var u=o.placeholders[l];if(l.startsWith("VAR_")){var d=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[d]=new yM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new jv(a,s,e.sourceSpan,o)}},{key:"visitExpansionCase",value:function(e){return null}},{key:"visitComment",value:function(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Fv(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var d=o[u.name];if(u.isLiteral)l.push(new bM(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(Uv.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=wS(i.name),g=i.value,y=i.sourceSpan,L=i.valueSpan?i.valueSpan.start.offset:y.start.offset;function z(jn,zn,ar){var kr=i.name.length-h.length,_r=jn.start.moveBy(zn.length+kr),Wr=_r.moveBy(ar.length);return new Xa(_r,Wr,_r,ar)}var q=h.match(_V);if(q){if(null!=q[1]){var re=q[7],ae=z(y,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,y,L,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(y,q[2],Se);this.parseVariable(Se,g,y,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',y);else if(q[3]){var Ee=q[7],Ke=z(y,q[3],Ee);this.parseReference(Ee,g,y,Ke,i.valueSpan,u)}else if(q[4]){var st=[],De=q[7],it=z(y,q[4],De);this.bindingParser.parseEvent(De,g,!1,y,i.valueSpan||y,o,st,it),n1(st,s)}else if(q[5]){var ft=q[7],bt=z(y,q[5],ft);this.bindingParser.parsePropertyBinding(ft,g,!1,y,L,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ft,g,y,i.valueSpan,o,s,bt)}else if(q[6]){var $e=z(y,"",h);this.bindingParser.parseLiteralAttr(h,g,y,L,i.valueSpan,o,a,$e)}return!0}var Pe=null;if(h.startsWith(cc_BANANA_BOX.start)?Pe=cc_BANANA_BOX:h.startsWith(cc_PROPERTY.start)?Pe=cc_PROPERTY:h.startsWith(cc_EVENT.start)&&(Pe=cc_EVENT),null!==Pe&&h.endsWith(Pe.end)&&h.length>Pe.start.length+Pe.end.length){var ct=h.substring(Pe.start.length,h.length-Pe.end.length),Bt=z(y,Pe.start,ct);if(Pe.start===cc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ct,g,!1,y,L,i.valueSpan,o,a,Bt),this.parseAssignmentEvent(ct,g,y,i.valueSpan,o,s,Bt);else if(Pe.start===cc_PROPERTY.start)this.bindingParser.parsePropertyBinding(ct,g,!1,y,L,i.valueSpan,o,a,Bt);else{var Ht=[];this.bindingParser.parseEvent(ct,g,!1,y,i.valueSpan||y,o,Ht,Bt),n1(Ht,s)}return!0}var Pt=z(y,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,y,i.valueSpan,o,a,Pt,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=a6(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new yM(l,i,a):new vC(s,i)}},{key:"parseVariable",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',o):0===e.length&&this.reportError("Variable does not have a name",o),l.push(new CM(e,i,o,a,s))}},{key:"parseReference",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',o):0===e.length?this.reportError("Reference does not have a name",o):l.some(function(u){return u.name===e})&&this.reportError('Reference "#'.concat(e,'" is defined more than once'),o),l.push(new Hv(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var d=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,d,u),n1(d,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new kh(i,e,o))}}]),n}(),CS=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitElement",value:function(e){var i=uc(e);if(i.type===Rs.SCRIPT||i.type===Rs.STYLE||i.type===Rs.STYLESHEET)return null;var o=Nc(this,e.children,null);return new hh(e.name,Nc(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new bM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new vC(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),vV=new CS;function wS(n){return/^data-/i.test(n)?n.substring(5):n}function n1(n,r){r.push.apply(r,(0,cn.Z)(n.map(function(e){return u_.fromParsedEvent(e)})))}function r1(){return{getUniqueId:Wv(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(es||(es={}));var i1=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;(0,B.Z)(this,n),this.index=r,this.ref=e,this.level=i,this.templateIndex=o,this.meta=a,this.registry=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||r1(),this.id=this._registry.getUniqueId()}return(0,U.Z)(n,[{key:"appendTag",value:function(e,i,o,a){if(!i.isVoid||!a){var s=i.isVoid||!a?i.startName:i.closeName,l={type:e,index:o,ctx:this.id,isVoid:i.isVoid,closed:a};kC(this.placeholders,s,l)}}},{key:"icus",get:function(){return this._registry.icus}},{key:"isRoot",get:function(){return 0===this.level}},{key:"isResolved",get:function(){return 0===this._unresolvedCtxCount}},{key:"getSerializedPlaceholders",value:function(){var e=new Map;return this.placeholders.forEach(function(i,o){return e.set(o,i.map(E6))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){kC(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;zP(e,this.bindings.size,this.id).forEach(function(a,s){return kC.apply(void 0,[i.placeholders,s].concat((0,cn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(es.TEMPLATE,e,i,!1),this.appendTag(es.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(es.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(es.ELEMENT,e,i,!1),this.appendTag(es.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new n(e,this.ref,this.level+1,i,o,this._registry)}},{key:"reconcileChildContext",value:function(e){var i=this;["start","close"].forEach(function(a){var s=e.meta["".concat(a,"Name")],u=(i.placeholders.get(s)||[]).find(o1(i.id,e.templateIndex));u&&(u.ctx=e.id)}),e.placeholders.forEach(function(a,s){var l=i.placeholders.get(s);if(l){var u=l.findIndex(o1(e.id,e.templateIndex));if(u>=0){var d=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(d?0:1),0].concat((0,cn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,cn.Z)(a)))}else l.push.apply(l,(0,cn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function Ph(n,r,e,i){var o=i?"/":"";return d_("".concat(o).concat(n).concat(r),e)}function TS(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?Ph(n,i,o)+Ph(n,i,o,!0):Ph(n,i,o,e)}function o1(n,r){return function(e){return"object"==typeof e&&e.type===es.TEMPLATE&&e.index===r&&e.ctx===n}}function E6(n){var r=function(a,s){return TS("#",a,s)},e=function(a,s){return TS("*",a,s)};switch(n.type){case es.ELEMENT:return n.closed?r(n,!0)+(n.tmpl?e(n.tmpl,!0):""):n.tmpl?e(n.tmpl)+r(n)+(n.isVoid?e(n.tmpl,!0):""):r(n);case es.TEMPLATE:return e(n,n.closed);default:return n}}var W4=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}},{key:"formatPh",value:function(e){return"{".concat(Vv(e,!1),"}")}}]),n}(),V4=new W4;function R_(n){return n.visit(V4)}var x6={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},yV=function(){function n(){(0,B.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,U.Z)(n,[{key:"getStartTagPlaceholderName",value:function(e,i,o){var a=this._hashTag(e,i,o);if(this._signatureToName[a])return this._signatureToName[a];var s=e.toUpperCase(),l=x6[s]||"TAG_".concat(s),u=this._generateUniqueName(o?l:"START_".concat(l));return this._signatureToName[a]=u,u}},{key:"getCloseTagPlaceholderName",value:function(e){var i=this._hashClosingTag(e);if(this._signatureToName[i])return this._signatureToName[i];var o=e.toUpperCase(),a=x6[o]||"TAG_".concat(o),s=this._generateUniqueName("CLOSE_".concat(a));return this._signatureToName[i]=s,s}},{key:"getPlaceholderName",value:function(e,i){var o=e.toUpperCase(),a="PH: ".concat(o,"=").concat(i);if(this._signatureToName[a])return this._signatureToName[a];var s=this._generateUniqueName(o);return this._signatureToName[a]=s,s}},{key:"getUniquePlaceholder",value:function(e){return this._generateUniqueName(e.toUpperCase())}},{key:"_hashTag",value:function(e,i,o){return"<".concat(e)+Object.keys(i).sort().map(function(u){return" ".concat(u,"=").concat(i[u])}).join("")+(o?"/>":"></".concat(e,">"))}},{key:"_hashClosingTag",value:function(e){return this._hashTag("/".concat(e),{},!1)}},{key:"_generateUniqueName",value:function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var o=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=o+1,"".concat(e,"_").concat(o)}}]),n}(),Y4=new lS(new j3);function bV(n){var r=new q4(Y4,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function K4(n,r){return r}var q4=function(){function n(r,e){(0,B.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,U.Z)(n,[{key:"toI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4?arguments[4]:void 0,l={isIcu:1==e.length&&e[0]instanceof O_,icuDepth:0,placeholderRegistry:new yV,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||K4},u=Nc(this,e,l);return new Tf(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=Nc(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=ka(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var d="";l||(d=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[d]={text:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new KW(e.name,s,u,d,a,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return i.visitNodeFn(e,h)}},{key:"visitAttribute",value:function(e,i){var o=void 0===e.valueTokens||1===e.valueTokens.length?new wM(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitText",value:function(e,i){var o=1===e.tokens.length?new wM(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitComment",value:function(e,i){return null}},{key:"visitExpansion",value:function(e,i){var o=this;i.icuDepth++;var a={},s=new LP(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new c_(h.expression.map(function(g){return g.visit(o,i)}),h.expSourceSpan)}),i.icuDepth--,i.isIcu||i.icuDepth>0){var l=i.placeholderRegistry.getUniquePlaceholder("VAR_".concat(e.type));return s.expressionPlaceholder=l,i.placeholderToContent[l]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},i.visitNodeFn(e,s)}var u=i.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());i.placeholderToMessage[u]=this.toI18nMessage([e],"","","",void 0);var d=new bC(s,u,e.sourceSpan);return i.visitNodeFn(e,d)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var d,s=[],l=!1,u=(0,An.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;switch(h.type){case 8:case 17:l=!0;var g=h.parts[1],y=SS(g)||"INTERPOLATION",L=o.placeholderRegistry.getPlaceholderName(y,g);o.placeholderToContent[L]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new ZP(g,L,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof wM?(z.value+=h.parts[0],z.sourceSpan=new Xa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new wM(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function J4(n,r){if(r instanceof Tf&&(function D6(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof c_))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof c_){!function MS(n,r){if(n.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(n.some(function(e,i){return r[i].constructor!==e.constructor}))throw new Error("The types of the i18n message children changed between first and second pass.")}(r.children,n);for(var e=0;e<n.length;e++)n[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new c_(s,i)):s[0]}}]),n}();var Q4=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function SS(n){return n.split(Q4)[2]}var X4=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){return(0,B.Z)(this,e),r.call(this,i,o)}return(0,U.Z)(e)}(kh),$4=function(r,e){return r instanceof Oh&&(e instanceof bC&&r.i18n instanceof Tf&&(e.previousMessage=r.i18n),r.i18n=e),e},A6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,B.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=bV(this.interpolationConfig)}return(0,U.Z)(n,[{key:"_generateI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=this._parseMetadata(i),s=a.meaning,l=a.description,u=a.customId,d=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(d,i),this._setLegacyIds(d,i),d}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new t6(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function SM(n){return n.attrs.some(function(r){return MM(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,An.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var d=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,d,$4)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(Gv)){var h=u.name.slice(Gv.length);vS(e.name,h)?this._reportError(u,"Translating attribute '".concat(h,"' is disallowed for security reasons.")):a[h]=u.value}else o.push(u)}}catch(q){s.e(q)}finally{s.f()}if(Object.keys(a).length){var y,g=(0,An.Z)(o);try{for(g.s();!(y=g.n()).done;){var L=y.value,z=a[L.name];void 0!==z&&L.value&&(L.i18n=this._generateI18nMessage([L],L.i18n||z))}}catch(q){g.e(q)}finally{g.f()}}this.keepI18nAttrs||(e.attrs=o)}return Nc(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof bC){var s=a.name;EM(o=this._generateI18nMessage([e],a)).name=s,null!==i&&(i.placeholderToMessage[s]=o)}else o=this._generateI18nMessage([e],i||a);return e.i18n=o,e}},{key:"visitText",value:function(e){return e}},{key:"visitAttribute",value:function(e){return e}},{key:"visitComment",value:function(e){return e}},{key:"visitExpansionCase",value:function(e){return e}},{key:"_parseMetadata",value:function(e){return"string"==typeof e?function n8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(n=n.trim()){var s,o=n.indexOf("@@"),a=n.indexOf("|"),l=o>-1?[n.slice(0,o),n.slice(o+2)]:[n,""],u=(0,Yn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Yn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof Tf?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof Tf&&i.id||_f(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[ih(e),Js(e)];else if("string"!=typeof i){var o=i instanceof Tf?i:i instanceof bC?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new X4(e.sourceSpan,i))}}]),n}();function CV(n,r,e,i){var o=function i8(n){return n.nodes.map(function(r){return r.visit(r8,null)}).join("")}(r),a=[on(o)];Object.keys(i).length&&(a.push(I_(TC(i,!0),!0)),a.push(I_({original_code:Ds(Object.keys(i).map(function(u){return{key:Vv(u),quoted:!0,value:r.placeholders[u]?on(r.placeholders[u].sourceSpan.toString()):on(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(qr("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function a1(n){var r=[];return n.description?r.push({tagName:"desc",text:n.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&r.push({tagName:"meaning",text:n.meaning}),pM(r)}(r)),[s,new uh(n.set(e))]}var yy=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(Vv(e),"}")}},{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){return R_(e)}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}}]),n}(),r8=new yy;function ES(n,r,e){var i=function Bc(n){var r=[],e=new o8(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function Ls(n){var r=[],e=[];n[0]instanceof rn&&r.push(Ld(n[0].sourceSpan.start));for(var i=0;i<n.length;i++){var o=n[i];o instanceof It?r.push(o):(e.push(o),n[i-1]instanceof rn&&r.push(Ld(n[i-1].sourceSpan.end)))}return n[n.length-1]instanceof rn&&r.push(Ld(n[n.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function by(n){var r=n.nodes[0],e=n.nodes[n.nodes.length-1];return new Xa(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=kd(r,o,a,l,s),d=n.set(u);return[new uh(d)]}var o8=function(){function n(r,e){(0,B.Z)(this,n),this.placeholderToMessage=r,this.pieces=e}return(0,U.Z)(n,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof It)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new Xa(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new It(e.value,i))}}},{key:"visitContainer",value:function(e){var i=this;e.children.forEach(function(o){return o.visit(i)})}},{key:"visitIcu",value:function(e){this.pieces.push(new It(R_(e),e.sourceSpan))}},{key:"visitTagPlaceholder",value:function(e){var o,a,i=this;this.pieces.push(this.createPlaceholderPiece(e.startName,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan)),e.isVoid||(e.children.forEach(function(s){return s.visit(i)}),this.pieces.push(this.createPlaceholderPiece(e.closeName,null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan)))}},{key:"visitPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}},{key:"visitIcuPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}},{key:"createPlaceholderPiece",value:function(e,i,o){return new rn(Vv(e,!1),i,o)}}]),n}();function Ld(n){return new It("",new Xa(n,n))}var xu="ngProjectAs",l1=new Set(["$event"]),Gf=new Map([["window",Ne.resolveWindow],["document",Ne.resolveDocument],["body",Ne.resolveBody]]),L_=[" ","\n","\r","\t"];function ql(n,r){return Cf(qr(_h).bitwiseAnd(on(n),null,!1),r)}function Lh(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=n.type,o=n.name,a=n.target,s=n.phase,l=n.handler;if(a&&!Gf.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(Gf.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?qr(sc):e.getOrCreateSharedContextVar(0),g=QF(e,h,l,"b",n.handlerSpan,d,l1),y=[],L=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(L&&y.push.apply(y,(0,cn.Z)(L)),y.push.apply(y,(0,cn.Z)(g)),z){y.unshift(z);var q=y[y.length-1];q instanceof Sa?y[y.length-1]=new Sa(gh(q.value.sourceSpan,Ne.resetView,[q.value])):y.push(new uh(gh(null,Ne.resetView,[])))}var re=1===i?hF(o,s):o,ae=r&&Th(r),Se=[];d.has(u)&&Se.push(new ma(u,vl));var Ce=oa(Se,y,Ma,null,ae),Ee=[on(re),Ce];return a&&Ee.push(on(!1),Xn(Gf.get(a))),Ee}function Z_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var N_=function(){function n(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,y=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Z_();(0,B.Z)(this,n),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=d,this.i18nUseExternalIds=g,this._constants=y,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=vh,this.visitVariable=vh,this.visitTextAttribute=vh,this.visitBoundAttribute=vh,this.visitBoundEvent=vh,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Zh(r,function(){return i.allocateDataSlot()},function(L){return i.allocatePureFunctionSlots(L)},function(L,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Ne.pipe,[on(q),on(L)])})}return(0,U.Z)(n,[{key:"buildTemplateFunction",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0;this._ngContentSelectorsOffset=a,this._namespace!==Ne.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||zv(s)&&!wC(s)&&!(d1(e)&&e[0].i18n===s),u=PS(e);if(l&&this.i18nStart(null,s,u),mh(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(ae){return ae()}),0===this.level&&this._ngContentReservedSlots.length){var d=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(ae){return"*"!==ae?gu(ae):ae});d.push(this.constantPool.getConstLiteral(Wl(h),!0))}this.creationInstruction(null,Ne.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=SC(this._creationCodeFns),y=SC(this._updateCodeFns),L=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[ql(1,L.concat(g))]:[],re=y.length>0?[ql(2,z.concat(y))]:[];return oa([new ma(_h,_e),new ma(sc,null)],[].concat((0,cn.Z)(this._prefixCode),q,re),Ma,null,this.templateName)}},{key:"getLocal",value:function(e){return this._bindingScope.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){this._bindingScope.notifyImplicitReceiverUse()}},{key:"maybeRestoreView",value:function(){this._bindingScope.maybeRestoreView()}},{key:"i18nTranslate",value:function(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=a||this.i18nGenerateMainBlockVar(),u=this.i18nGenerateClosureVar(e.id),d=RS(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,cn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=qr(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=qr(YP),s.notifyRestoredViewContextUse()):u=qr(sc):u=s.getSharedContextName(o)||u1(l);return[a.set(u.prop(e.value||"$implicit")).toConstDecl()]})}},{key:"i18nAppendBindings",value:function(e){var i=this;e.length>0&&e.forEach(function(o){return i.i18n.appendBinding(o)})}},{key:"i18nBindProps",value:function(e){var i=this,o={};return Object.keys(e).forEach(function(a){var s=e[a];if(s instanceof vC)o[a]=on(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof $a){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,L=function As(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n.length)return"";for(var i="",o=n.length-1,a=0;a<o;a++)i+="".concat(n[a]).concat(d_(r+a,e));return i+n[o]}(u,h.bindings.size,g);i.i18nAppendBindings(d),o[a]=on(L)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return qr(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=DM("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(Th(e),"$$").concat(s)}else{var l=DM(o);i=this.constantPool.uniqueName(l)}return qr(i)}},{key:"i18nUpdateRef",value:function(e){var i=e.icus,o=e.meta,a=e.isRoot,s=e.isResolved,l=e.isEmitted;if(a&&s&&!l&&!wC(o)){e.isEmitted=!0;var y,u=e.getSerializedPlaceholders(),d={},h=u.size?xM(u):{};i.size&&i.forEach(function(L,z){if(1===L.length)h[z]=L[0];else{var q=d_("".concat("I18N_EXP_").concat(z));h[z]=on(q),d[z]=pi(L)}}),(Array.from(u.values()).some(function(L){return L.length>1})||Object.keys(d).length)&&(y=function(z){var q=[z];return Object.keys(d).length&&q.push(I_(d,!0)),gh(null,Ne.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,y)}}},{key:"i18nStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(a,this.templateIndex,i):new i1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[on(a),this.addToConsts(u)];l>0&&d.push(on(l)),this.creationInstruction(e,o?Ne.i18n:Ne.i18nStart,d)}},{key:"i18nEnd",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var a=this.i18n,s=a.index,l=a.bindings;if(l.size){var d,u=(0,An.Z)(l);try{var h=function(){var y=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Ne.i18nExp,function(){return e.convertPropertyBinding(y)})};for(u.s();!(d=u.n()).done;)h()}catch(g){u.e(g)}finally{u.f()}this.updateInstruction(i,Ne.i18nApply,[on(s)])}o||this.creationInstruction(i,Ne.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var g=h.i18n,y=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(y),y instanceof $a){var z=xM(zP(g));l.push(on(h.name),a.i18nTranslate(g,z)),y.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Ne.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=on(this.allocateDataSlot()),d=this.addToConsts(pi(l));this.creationInstruction(o,Ne.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Ne.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Ne.namespaceMathML;case"svg":return Ne.namespaceSVG;default:return Ne.namespaceHTML}}},{key:"addNamespaceInstruction",value:function(e,i){this._namespace=e,this.creationInstruction(i.startSourceSpan,e)}},{key:"interpolatedUpdateInstruction",value:function(e,i,o,a,s,l){var u=this;this.updateInstructionWithAdvance(i,a.sourceSpan,e,function(){return[on(o)].concat((0,cn.Z)(u.getUpdateInstructionArguments(s)),(0,cn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[on(i)];this._ngContentReservedSlots.push(e.selector);var s=e.attributes.filter(function(u){return"select"!==u.name.toLowerCase()}),l=this.getAttributeExpressions(e.name,s,[],[]);l.length>0?a.push(on(o),pi(l)):0!==o&&a.push(on(o)),this.creationInstruction(e.sourceSpan,Ne.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,ae,i=this,s=this.allocateDataSlot(),l=new GC(null),u=!1,d=zv(e.i18n)&&!wC(e.i18n),h=[],g=Oi(e.name),y=(0,Yn.Z)(g,2),L=y[0],z=y[1],q=Ji(e.name),re=(0,An.Z)(e.attributes);try{for(re.s();!(ae=re.n()).done;){var Se=ae.value,Ce=Se.name,Ee=Se.value;"ngNonBindable"===Ce?u=!0:"style"===Ce?l.registerStyleAttr(Ee):"class"===Ce?l.registerClassAttr(Ee):h.push(Se)}}catch(un){re.e(un)}finally{re.f()}var Ke=[on(s)];q||Ke.push(on(z));var st=[],De=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?De.push(un):st.push(un))});var it=this.getAttributeExpressions(e.name,h,st,e.outputs,l,[],De);Ke.push(this.addAttrsToConsts(it));var ft=this.prepareRefsArray(e.references);Ke.push(this.addToConsts(ft));var bt=this._namespace,$e=this.getNamespaceInstruction(L);$e!==bt&&this.addNamespaceInstruction($e,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Pe=!d&&this.i18n?!PS(e.children):e.children.length>0,ct=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===De.length&&!Pe,Bt=!ct&&PS(e.children);if(ct)this.creationInstruction(e.sourceSpan,q?Ne.elementContainer:Ne.element,Kv(Ke));else{if(this.creationInstruction(e.startSourceSpan,q?Ne.elementContainerStart:Ne.elementStart,Kv(Ke)),u&&this.creationInstruction(e.startSourceSpan,Ne.disableBindings),De.length>0&&this.i18nAttributesInstruction(s,De,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var Pt,Ht=(0,An.Z)(e.outputs);try{for(Ht.s();!(Pt=Ht.n()).done;){var Tn=Pt.value;this.creationInstruction(Tn.sourceSpan,Ne.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){Ht.e(un)}finally{Ht.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Bt)}for(var jn=l.buildUpdateLevelInstructions(this._valueConverter),zn=jn.length-1,ar=0;ar<=zn;ar++){var kr=jn[ar];this._bindingSlots+=this.processStylingUpdateInstruction(s,kr)}var _r=on(void 0),Wr=[],Hr=[];st.forEach(function(un){var bn=un.type;if(4===bn){var Nn=un.value.visit(i._valueConverter),rr=!(Nn instanceof Os)||!!Nn.value;i.allocateBindingSlots(Nn),Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return rr?i.convertPropertyBinding(Nn):_r},OP(un.name))})}else{if(un.i18n)return;var gr=un.value.visit(i._valueConverter);if(void 0!==gr){var eo=[],Xu=Oi(un.name),Dv=(0,Yn.Z)(Xu,2),Av=Dv[0],Qm=Dv[1],cC=1===bn,Pa=c1(un.securityContext,cC);if(Pa||function IS(n){return"iframe"===n.toLowerCase()}(e.name)&&S3(un.name)&&(Pa=Xn(Ne.validateIframeAttribute)),Pa&&eo.push(Pa),Av){var yP=on(Av);Pa?eo.push(yP):eo.push(on(null),yP)}if(i.allocateBindingSlots(gr),0===bn)gr instanceof $a?i.interpolatedUpdateInstruction(R6(gr),s,Qm,un,gr,eo):Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(gr)},Qm,eo)});else if(1===bn)if(gr instanceof $a&&yh(gr)>1)i.interpolatedUpdateInstruction(function s8(n){switch(yh(n)){case 3:return Ne.attributeInterpolate1;case 5:return Ne.attributeInterpolate2;case 7:return Ne.attributeInterpolate3;case 9:return Ne.attributeInterpolate4;case 11:return Ne.attributeInterpolate5;case 13:return Ne.attributeInterpolate6;case 15:return Ne.attributeInterpolate7;case 17:return Ne.attributeInterpolate8;default:return Ne.attributeInterpolateV}}(gr),s,Qm,un,gr,eo);else{var GW=gr instanceof $a?gr.expressions[0]:gr;Hr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(GW)},Qm,eo)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Ne.classProp,function(){return[on(s),on(Qm),i.convertPropertyBinding(gr)].concat(eo)})}}});for(var Kr=0,Ho=Wr;Kr<Ho.length;Kr++){var tr=Ho[Kr];this.updateInstructionWithAdvance(s,tr.span,Ne.property,tr.paramsOrFn)}for(var yr=0,Mn=Hr;yr<Mn.length;yr++){var gn=Mn[yr];this.updateInstructionWithAdvance(s,gn.span,Ne.attribute,gn.paramsOrFn)}if(mh(this,e.children),!d&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!ct){var nr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;d&&this.i18nEnd(nr,Bt),u&&this.creationInstruction(nr,Ne.enableBindings),this.creationInstruction(nr,q?Ne.elementContainerEnd:Ne.elementEnd)}}},{key:"visitTemplate",value:function(e){var o,i=this,a="ng-template",s=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,s);var l=e.tagName?Oi(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+Th(e.tagName):"","_").concat(s),d="".concat(u,"_Template"),h=[on(s),qr(d),on(l)],g=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(g)),e.references&&e.references.length){var y=this.prepareRefsArray(e.references);h.push(this.addToConsts(y)),h.push(Xn(Ne.templateRefExtractor))}var L=new n(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,d,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var st,Ke=L.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(Ke.toDeclStmt(d)),L._ngContentReservedSlots.length)&&(st=i._ngContentReservedSlots).push.apply(st,(0,cn.Z)(L._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,Ne.templateCreate,function(){return h.splice(2,0,on(L.getConstCount()),on(L.getVarCount())),Kv(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var z=function Ms(n,r){var a,e=[],i=[],o=(0,An.Z)(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;(r(s)?e:i).push(s)}}catch(l){o.e(l)}finally{o.f()}return[e,i]}(e.inputs,wu),q=(0,Yn.Z)(z,2),re=q[0],ae=q[1];re.length>0&&this.i18nAttributesInstruction(s,re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),ae.length>0&&this.templatePropertyBindings(s,ae);var Ce,Se=(0,An.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var Ee=Ce.value;this.creationInstruction(Ee.sourceSpan,Ne.listener,this.prepareListenerParameter("ng_template",Ee,s))}}catch(Ke){Se.e(Ke)}finally{Se.f()}}}},{key:"visitBoundText",value:function(e){var i=this;if(this.i18n){var o=e.value.visit(this._valueConverter);return this.allocateBindingSlots(o),void(o instanceof $a&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Ne.text,[on(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof $a?this.updateInstructionWithAdvance(a,e.sourceSpan,function L6(n){switch(yh(n)){case 1:return Ne.textInterpolate;case 3:return Ne.textInterpolate1;case 5:return Ne.textInterpolate2;case 7:return Ne.textInterpolate3;case 9:return Ne.textInterpolate4;case 11:return Ne.textInterpolate5;case 13:return Ne.textInterpolate6;case 15:return Ne.textInterpolate7;case 17:return Ne.textInterpolate8;default:return Ne.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):pa("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Ne.text,[on(this.allocateDataSlot()),on(e.value)])}},{key:"visitIcu",value:function(e){var i=!1;this.i18n||(i=!0,this.i18nStart(null,e.i18n,!0));var o=this.i18n,a=this.i18nBindProps(e.vars),s=this.i18nBindProps(e.placeholders),l=e.i18n,u=function(g){var L=TC(Object.assign(Object.assign({},a),s),!1);return gh(null,Ne.i18nPostprocess,[g,I_(L,!0)])};if(wC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(EM(l).name,d)}return i&&this.i18nEnd(null,!0),null}},{key:"allocateDataSlot",value:function(){return this._dataIndex++}},{key:"getConstCount",value:function(){return this._dataIndex}},{key:"getVarCount",value:function(){return this._pureFunctionSlots}},{key:"getConsts",value:function(){return this._constants}},{key:"getNgContentSelectors",value:function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Wl(this._ngContentReservedSlots),!0):null}},{key:"bindingContext",value:function(){return"".concat(this._bindingContext++)}},{key:"templatePropertyBindings",value:function(e,i){var l,o=this,a=[],s=(0,An.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof Uv))return"continue";var q=z.value.visit(o._valueConverter);if(void 0===q)return"continue";if(o.allocateBindingSlots(q),q instanceof $a){o.interpolatedUpdateInstruction(R6(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:Bh(function(){return o.convertPropertyBinding(q)},z.name)})};for(s.s();!(l=s.n()).done;)u()}catch(L){s.e(L)}finally{s.f()}for(var h=0,g=a;h<g.length;h++){var y=g[h];this.updateInstructionWithAdvance(e,y.span,Ne.property,y.paramsOrFn)}}},{key:"instructionFn",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e[s?"unshift":"push"]({span:i,reference:o,paramsOrFn:a})}},{key:"processStylingUpdateInstruction",value:function(e,i){var o=this,a=0;if(i){var l,s=(0,An.Z)(i.calls);try{var u=function(){var h=l.value;a+=h.allocateBindingSlots,o.updateInstructionWithAdvance(e,h.sourceSpan,i.reference,function(){return h.params(function(g){return h.supportsInterpolation&&g instanceof $a?o.getUpdateInstructionArguments(g):o.convertPropertyBinding(g)})})};for(s.s();!(l=s.n()).done;)u()}catch(d){s.e(d)}finally{s.f()}}return a}},{key:"creationInstruction",value:function(e,i,o,a){this.instructionFn(this._creationCodeFns,e,i,o||[],a)}},{key:"updateInstructionWithAdvance",value:function(e,i,o,a){this.addAdvanceInstructionIfNecessary(e,i),this.updateInstruction(i,o,a)}},{key:"updateInstruction",value:function(e,i,o){this.instructionFn(this._updateCodeFns,e,i,o||[])}},{key:"addAdvanceInstructionIfNecessary",value:function(e,i){if(e!==this._currentIndex){var o=e-this._currentIndex;if(o<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,i,Ne.advance,[on(o)]),this._currentIndex=e}}},{key:"allocatePureFunctionSlots",value:function(e){var i=this._pureFunctionSlots;return this._pureFunctionSlots+=e,i}},{key:"allocateBindingSlots",value:function(e){this._bindingSlots+=e instanceof $a?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?qr(sc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=b3(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,cn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function oV(n,r,e,i){var o=new xh(n,r,i,!0),a=o.visitInterpolation(e,ji.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:$M(o,i),args:a.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.args,s=o.stmts;return(i=this._tempVariables).push.apply(i,(0,cn.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var g,L,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],y=(0,An.Z)(i);try{for(y.s();!(L=y.n()).done;){var z=L.value;if(z.name===xu&&(g=z),z.i18n){var q=this._constants.i18nVarRefsCache,re=void 0;q.has(z.i18n)?re=q.get(z.i18n):(re=this.i18nTranslate(z.i18n),q.set(z.i18n,re)),h.push(on(z.name),re)}else h.push.apply(h,(0,cn.Z)(AS(z.name)).concat([u8(e,z)]))}}catch(De){y.e(De)}finally{y.f()}function ae(De,it){"string"==typeof De?d.has(De)||(h.push.apply(h,(0,cn.Z)(AS(De))),void 0!==it&&h.push(it),d.add(De)):h.push(on(De))}if(g&&h.push.apply(h,(0,cn.Z)(P6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce<o.length;Ce++){var Ee=o[Ce];4!==Ee.type&&1!==Ee.type&&ae(Ee.name)}for(var Ke=0;Ke<a.length;Ke++){var st=a[Ke];1!==st.type&&ae(st.name)}h.length!==Se&&h.splice(Se,0,on(3))}return l.length&&(h.push(on(4)),l.forEach(function(De){return ae(De.name)})),u.length&&(h.push(on(6)),u.forEach(function(De){return ae(De.name)})),h}},{key:"addToConsts",value:function(e){if(mC(e))return yf;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return on(o);return on(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(pi(e)):yf}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Wl(p1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=qr(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var y=g>0?[u1(g).toStmt()]:[],L=d.set(Xn(Ne.reference).callFn([on(s)]));return y.concat(L.toConstDecl())},!0),[a.name,a.value]}))):yf}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?IP(s,i.phase):Th(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,l1);return Lh(i,u,d)}}}]),n}(),Zh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,U.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),d=new Zf(o.span,o.sourceSpan,o.nameSpan,new k_(o.span,o.sourceSpan),l),h=function F_(n){var r=B_[n.length];return{identifier:r||Ne.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,y=h.isVarLength;this.definePipe(o.name,l,s,Xn(g));var L=[o.exp].concat((0,cn.Z)(o.args)),z=y?this.visitAll([new NC(o.span,o.sourceSpan,L)]):this.visitAll(L),q=new M_(o.span,o.sourceSpan,d,[new Os(o.span,o.sourceSpan,s),new Os(o.span,o.sourceSpan,u)].concat((0,cn.Z)(z)),null);return this._pipeBindExprs.push(q),q}},{key:"updatePipeSlotOffsets",value:function(o){this._pipeBindExprs.forEach(function(a){a.args[1].value+=o})}},{key:"visitLiteralArray",value:function(o,a){var s=this;return new Dh(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return DS(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Dh(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Ds(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return DS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(JF),B_=[Ne.pipeBind1,Ne.pipeBind2,Ne.pipeBind3,Ne.pipeBind4];var O6=[Ne.pureFunction0,Ne.pureFunction1,Ne.pureFunction2,Ne.pureFunction3,Ne.pureFunction4,Ne.pureFunction5,Ne.pureFunction6,Ne.pureFunction7,Ne.pureFunction8];function u1(n){return Xn(Ne.nextContext).callFn(n>1?[on(n)]:[])}function DS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function xS(n){var r=O6[n.length];return{identifier:r||Ne.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[on(s),o];return d?h.push(pi(a)):h.push.apply(h,(0,cn.Z)(a)),Xn(u).callFn(h)}function AS(n){var r=Oi(n),e=(0,Yn.Z)(r,2),i=e[0],a=on(e[1]);return i?[on(0),on(i),a]:[a]}var Nh="$$shared_ctx$$",I6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;if((0,B.Z)(this,n),this.bindingLevel=r,this.parent=e,this.globals=i,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==i){var a,o=(0,An.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,qr(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,U.Z)(n,[{key:"get",value:function(e){for(var i=this;i;){var o=i.map.get(e);if(null!=o)return i!==this&&(o={retrievalLevel:o.retrievalLevel,lhs:o.lhs,declareLocalCallback:o.declareLocalCallback,declare:!1,priority:o.priority},this.map.set(e,o),this.maybeGenerateSharedContextVar(o),this.maybeRestoreView()),o.declareLocalCallback&&!o.declare&&(o.declare=!0),o.lhs;i=i.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}},{key:"set",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;if(this.map.has(i)){if(l)return this;pa("The name ".concat(i," is already defined in scope to be ").concat(this.map.get(i)))}return this.map.set(i,{retrievalLevel:e,lhs:o,declare:!1,declareLocalCallback:s,priority:a}),this}},{key:"getLocal",value:function(e){return this.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){0!==this.bindingLevel&&(this.map.get(Nh+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new n(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=Nh+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Nh+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){var i=this.map.get(Nh+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=qr(sc+this.freshReferenceName());this.map.set(Nh+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(u1(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(Nh+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=qr(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){if(this.restoreViewVariable){var e=gh(null,Ne.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?qr(YP).set(e).toConstDecl():e.toStmt()}return null}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(gh(null,Ne.getCurrentView,[])).toConstDecl()]:[]}},{key:"isListenerScope",value:function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}},{key:"variableDeclarations",value:function(){var e=this,i=0;return Array.from(this.map.values()).filter(function(o){return o.declare}).sort(function(o,a){return a.retrievalLevel-o.retrievalLevel||a.priority-o.priority}).reduce(function(o,a){var s=e.bindingLevel-a.retrievalLevel,l=a.declareLocalCallback(e,s-i);return i=s,o.concat(l)},[])}},{key:"freshReferenceName",value:function(){for(var e=this;e.parent;)e=e.parent;return"".concat("_r").concat(e.referenceNameIndex++)}},{key:"hasRestoreViewVariable",value:function(){return!!this.restoreViewVariable}},{key:"notifyRestoredViewContextUse",value:function(){this.usesRestoredViewContext=!0}}],[{key:"createRootScope",value:function(){return new n}}]),n}();function P6(n){var r=gu(n.value)[0];return[on(5),Wl(r)]}function R6(n){switch(yh(n)){case 1:return Ne.propertyInterpolate;case 3:return Ne.propertyInterpolate1;case 5:return Ne.propertyInterpolate2;case 7:return Ne.propertyInterpolate3;case 9:return Ne.propertyInterpolate4;case 11:return Ne.propertyInterpolate5;case 13:return Ne.propertyInterpolate6;case 15:return Ne.propertyInterpolate7;case 17:return Ne.propertyInterpolate8;default:return Ne.propertyInterpolateV}}var OS=new p6;function U_(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl;return new R4(new lS(new j3),n,OS,[])}function c1(n,r){switch(n){case Br.HTML:return Xn(Ne.sanitizeHtml);case Br.SCRIPT:return Xn(Ne.sanitizeScript);case Br.STYLE:return r?Xn(Ne.sanitizeStyle):null;case Br.URL:return Xn(Ne.sanitizeUrl);case Br.RESOURCE_URL:return Xn(Ne.sanitizeResourceUrl);default:return null}}function u8(n,r){var e=Wl(r.value);if(!vS(n,r.name))return e;switch(OS.securityContext(n,r.name,!0)){case Br.HTML:return Rv(Xn(Ne.trustConstantHtml),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);case Br.RESOURCE_URL:return Rv(Xn(Ne.trustConstantResourceUrl),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);default:return e}}function d1(n){return 1===n.length&&n[0]instanceof hh}function f1(n){return n instanceof vC||n instanceof yM||n instanceof jv}function PS(n){return n.every(f1)}function Bh(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,cn.Z)(e)),r&&o.unshift(on(r)),o}}var Cy="ngI18nClosureMode";function RS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[AF(r),Cf(Z6(),CV(r,n,e,i),ES(r,n,TC(i,!1)))];return o&&a.push(new uh(r.set(o(r)))),a}function Z6(){return hC(qr(Cy)).notIdentical(on("undefined",xe)).and(qr(Cy))}function p1(n){return n.reduce(function(r,e){var i=Array.isArray(e)?p1(e):e;return r.concat(i)},[])}var N6=/attr\.([^\]]+)/,ZS="_nghost-".concat("%COMP%"),NS="_ngcontent-".concat("%COMP%");function B6(n,r,e){var i=new Ba,o=gu(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",Wl(o)),n.queries.length>0&&i.set("contentQueries",function h1(n,r,e){var l,i=[],o=[],a=MC(o,"_t"),s=(0,An.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Xn(Ne.contentQuery).callFn([qr("dirIndex")].concat((0,cn.Z)(US(u,r)))).toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),y=qr(sc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(y).toStmt())}}catch(z){s.e(z)}finally{s.f()}var L=e?"".concat(e,"_ContentQueries"):null;return oa([new ma(_h,_e),new ma(sc,null),new ma("dirIndex",null)],[ql(1,i),ql(2,o)],Ma,null,L)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function j6(n,r,e){var i=[],o=[],a=MC(o,AM);n.forEach(function(l){var u=Xn(Ne.viewQuery).callFn(US(l,r));i.push(u.toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),y=qr(sc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(y).toStmt())});var s=e?"".concat(e,"_Query"):null;return oa([new ma(_h,_e),new ma(sc,null)],[ql(1,i),ql(2,o)],Ma,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function G6(n,r,e,i,o,a,s){var l=qr(sc),u=new GC(l),d=n.specialAttributes,h=d.styleAttr,g=d.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==g&&u.registerClassAttr(g);var y=[],L=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&y.push.apply(y,(0,cn.Z)(function f8(n,r){var s,e=[],i=[],o=[],a=(0,An.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&Th(l.name),d=1===l.type?IP(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Lh(u_.fromParsedEvent(l),h);1==l.type?i.push(g):e.push(g)}}catch(Se){a.e(Se)}finally{a.f()}for(var y=0,L=i;y<L.length;y++){var z=L[y];o.push({reference:Ne.syntheticHostListener,paramsOrFn:z,span:null})}for(var q=0,re=e;q<re.length;q++){var ae=re[q];o.push({reference:Ne.listener,paramsOrFn:ae,span:null})}return o}(re,a)));var ae=e.createBoundHostProperties(n.properties,q),Se=[],Ce=0;ae&&ae.forEach(function(bn){u.registerInputBasedOnName(bn.name,bn.expression,q)?Ce+=2:(Se.push(bn),Ce++)});for(var Ee,Ke=function(){Ee||(Ee=new Zh(i,function(){return pa("Unexpected node")},function(gr){var eo=Ce;return Ce+=gr,eo},function(){return pa("Unexpected pipe")}));return Ee},st=[],De=[],it=[],ft=0,bt=Se;ft<bt.length;ft++){var $e=bt[ft],Pe=$e.expression.visit(Ke()),ct=VS(l,Pe),Bt=d8($e),Ht=Bt.bindingName,Pt=Bt.instruction,Tn=Bt.isAttribute,jn=e.calcPossibleSecurityContexts(o,Ht,Tn).filter(function(bn){return bn!==Br.NONE}),zn=null;jn.length&&(zn=2===jn.length&&jn.indexOf(Br.URL)>-1&&jn.indexOf(Br.RESOURCE_URL)>-1?Xn(Ne.sanitizeUrlOrResourceUrl):c1(jn[0],Tn));var ar=[on(Ht),ct.currValExpr];zn?ar.push(zn):S3(Ht)&&ar.push(Xn(Ne.validateIframeAttribute)),z.push.apply(z,(0,cn.Z)(ct.stmts)),Pt===Ne.hostProperty?st.push(ar):Pt===Ne.attribute?De.push(ar):Pt===Ne.syntheticHostProperty?it.push(ar):L.push({reference:Pt,paramsOrFn:ar,span:null})}for(var kr=0,_r=st;kr<_r.length;kr++){var Wr=_r[kr];L.push({reference:Ne.hostProperty,paramsOrFn:Wr,span:null})}for(var Hr=0,Kr=De;Hr<Kr.length;Hr++){var Ho=Kr[Hr];L.push({reference:Ne.attribute,paramsOrFn:Ho,span:null})}for(var tr=0,yr=it;tr<yr.length;tr++){var Mn=yr[tr];L.push({reference:Ne.syntheticHostProperty,paramsOrFn:Mn,span:null})}var gn=function HS(n){var i,r=[],e=(0,An.Z)(Object.getOwnPropertyNames(n));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=n[o];r.push(on(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(n.attributes);if(u.assignHostAttrs(gn,s),u.hasBindings&&u.buildUpdateLevelInstructions(Ke()).forEach(function(bn){var rr,Nn=(0,An.Z)(bn.calls);try{for(Nn.s();!(rr=Nn.n()).done;){var gr=rr.value;Ce+=Math.max(gr.allocateBindingSlots-2,0),L.push({reference:bn.reference,paramsOrFn:wV(gr,l,VS),span:null})}}catch(eo){Nn.e(eo)}finally{Nn.f()}}),Ce&&s.set("hostVars",on(Ce)),y.length>0||L.length>0){var nr=a?"".concat(a,"_HostBindings"):null,un=[];return y.length>0&&un.push(ql(1,SC(y))),L.length>0&&un.push(ql(2,z.concat(SC(L)))),oa([new ma(_h,_e),new ma(sc,null)],un,Ma,null,nr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",IM(n.inputs,!0)),i.set("outputs",IM(n.outputs)),null!==n.exportAs&&i.set("exportAs",pi(n.exportAs.map(function(a){return on(a)}))),n.isStandalone&&i.set("standalone",on(!0)),i}function BS(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new jl([])];o&&a.push(o),e.push(Xn(Ne.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Xn(Ne.InheritDefinitionFeature)),r.fullInheritance&&e.push(Xn(Ne.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Xn(Ne.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Xn(Ne.StandaloneFeature)),e.length&&n.set("features",pi(e))}function U6(n,r,e){var i=B6(n,r,e);BS(i,n);var o=n.selector&&fo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(st){return on(null!=st?st:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new N_(r,I6.createRootScope(),0,l,null,null,u,Ne.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),y=g.buildTemplateFunction(h.nodes,[]),L=g.getNgContentSelectors();L&&i.set("ngContentSelectors",L),i.set("decls",on(g.getConstCount())),i.set("vars",on(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=pi(q);re.length>0&&(ae=oa([],[].concat((0,cn.Z)(re),[new Sa(ae)]))),i.set("consts",ae)}if(i.set("template",y),n.declarations.length>0&&i.set("dependencies",function c8(n,r){switch(r){case 0:return n;case 1:return oa([],[new Sa(n)]);case 2:var e=n.prop("map").callFn([Xn(Ne.resolveForwardRef)]);return oa([],[new Sa(e)])}}(pi(n.declarations.map(function(st){return st.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=Jo.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==Jo.Emulated?function W6(n,r,e){var i=new $F;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,NS,ZS):n.styles,Ce=Se.reduce(function(st,De){return De.trim().length>0&&st.push(r.getConstLiteral(on(De))),st},[]);Ce.length>0&&i.set("styles",pi(Ce))}else n.encapsulation===Jo.Emulated&&(n.encapsulation=Jo.None);return n.encapsulation!==Jo.Emulated&&i.set("encapsulation",on(n.encapsulation)),null!==n.animations&&i.set("data",Ds([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==Qo.Default&&i.set("changeDetection",on(d)),{expression:Xn(Ne.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:FS(n),statements:[]}}function FS(n){var r=zS(n);return r.push(m1(n.template.ngContentSelectors)),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.ComponentDeclaration,r))}function US(n,r){var e=[KP(n,r),on(H6(n))];return n.read&&e.push(n.read),e}function H6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function jS(n){return ps(on(n))}function GS(n){return ps(Ds(Object.keys(n).map(function(e){return{key:e,value:on(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function m1(n){return n.length>0?ps(pi(n.map(function(r){return on(r)}))):ze}function zS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[hM(n.type.type,n.typeArgumentCount),null!==r?jS(r):ze,null!==n.exportAs?m1(n.exportAs):ze,GS(n.inputs),GS(n.outputs),m1(n.queries.map(function(e){return e.propertyName}))]}function WS(n){var r=zS(n);return r.push(ze),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.DirectiveDeclaration,r))}function VS(n,r){return b3(null,n,r,"b")}function wV(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function d8(n){var e,r=n.name,i=r.match(N6);return i?(r=i[1],e=Ne.attribute):n.isAnimation?(r=OP(r),e=Ne.syntheticHostProperty):e=Ne.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var z6=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var h8=(0,U.Z)(function n(){(0,B.Z)(this,n)}),m8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new h3;(0,B.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ac,this.ResourceLoader=h8,this.elementSchemaRegistry=new p6}return(0,U.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=VF({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure,isStandalone:o.isStandalone});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function wy(n){var r,e;return{name:n.type.name,type:Na(n.type),internalType:new Ar(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:null===(r=n.pure)||void 0===r||r,isStandalone:null!==(e=n.isStandalone)&&void 0!==e&&e}}(o),s=VF(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=JP({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:QS(o.providedIn),useClass:Zs(o,"useClass"),useFactory:K6(o,"useFactory"),useValue:Zs(o,"useValue"),useExisting:Zs(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Du)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=JP({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,providedIn:QS(o.providedIn),useClass:Zs(o,"useClass"),useFactory:K6(o,"useFactory"),useValue:Zs(o,"useValue"),useExisting:Zs(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Au)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=Ad({name:o.name,type:Na(o.type),internalType:new Ar(o.type),providers:o.providers&&o.providers.length>0?new Ar(o.providers):null,imports:o.imports.map(function(l){return new Ar(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function k8(n){return{name:n.type.name,type:Na(n.type),internalType:new Ar(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Ar(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Ar(r)}):[]}}(o),s=Ad(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=_3({type:Na(o.type),internalType:new Ar(o.type),adjacentType:new Ar(o.type),bootstrap:o.bootstrap.map(Na),declarations:o.declarations.map(Na),publicDeclarationTypes:null,imports:o.imports.map(Na),includeImportTypes:!0,exports:o.exports.map(Na),selectorScopeMode:Mh.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Na):null,id:o.id?new Ar(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function GF(n){var r=new Ba;return r.set("type",new Ar(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Ar(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Ar(n.declarations)),void 0!==n.imports&&r.set("imports",new Ar(n.imports)),void 0!==n.exports&&r.set("exports",new Ar(n.exports)),void 0!==n.schemas&&r.set("schemas",new Ar(n.schemas)),void 0!==n.id&&r.set("id",new Ar(n.id)),Xn(Ne.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=qS(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=Fh(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new wf,l=function F6(n,r,e){var i=B6(n,r,e);return BS(i,n),{expression:Xn(Ne.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:WS(n),statements:[]}}(o,a,U_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=g1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),qS(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(v8),declarationListEmitMode:0,styles:[].concat((0,cn.Z)(o.styles),(0,cn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Ar(o.animations):null,viewProviders:null!=o.viewProviders?new Ar(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),d="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,d,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function Y6(n,r,e){var i,o,a,s,l=g1(n.template,n.type.name,e,null!==(i=n.preserveWhitespaces)&&void 0!==i&&i,n.interpolation),u=l.template,d=l.interpolation,h=[];if(n.dependencies){var y,g=(0,An.Z)(n.dependencies);try{for(g.s();!(y=g.n()).done;){var L=y.value;switch(L.kind){case"directive":case"component":h.push(_1(L));break;case"pipe":h.push(JS(L))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,cn.Z)(n.components.map(function(z){return _1(z,!0)}))),n.directives&&h.push.apply(h,(0,cn.Z)(n.directives.map(function(z){return _1(z)}))),n.pipes&&h.push.apply(h,(0,cn.Z)(function kV(n){return n?Object.keys(n).map(function(r){return{kind:ku.Pipe,name:r,type:new Ar(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},Fh(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Ar(n.viewProviders):null,animations:void 0!==n.animations?new Ar(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:Qo.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:Jo.Emulated,interpolation:d,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}(o,this.createParseSourceSpan("Component",o.type.name,i),i);return this.compileComponentFromMeta(e,i,s)}},{key:"compileComponentFromMeta",value:function(e,i,o){var a=new wf,l=U6(o,a,U_(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=ph({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,deps:Fc(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=ph({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(Au):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function zM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new GM("",i);return new Xa(new C_(o,-1,-1,-1),new C_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,cn.Z)(a),[new bf("$def",e,void 0,xs.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new m3(i),!0).$def}}]),n}();function YS(n){return Object.assign(Object.assign({},n),{predicate:KS(n.predicate),read:n.read?new Ar(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function V6(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:KS(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Ar(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function KS(n){return Array.isArray(n)?n:Oc(new Ar(n),1)}function qS(n){var r=v1(n.inputs||[]),e=v1(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function C8(n){return"Input"===n.ngMetadataName}(h)?function w8(n){return"Output"===n.ngMetadataName}(h)&&(a[d]=h.bindingPropertyName||d):o[d]=h.bindingPropertyName?[h.bindingPropertyName,d]:d})};for(var l in i)s(l);return Object.assign(Object.assign({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Na(n.type),internalType:new Ar(n.type),deps:null,host:q6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(YS),providers:null!=n.providers?new Ar(n.providers):null,viewQueries:n.viewQueries.map(YS),fullInheritance:!1})}function Fh(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Na(n.type),typeSourceSpan:r,internalType:new Ar(n.type),selector:null!==(e=n.selector)&&void 0!==e?e:null,inputs:null!==(i=n.inputs)&&void 0!==i?i:{},outputs:null!==(o=n.outputs)&&void 0!==o?o:{},host:_8(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(V6),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(V6),providers:void 0!==n.providers?new Ar(n.providers):null,exportAs:null!==(l=n.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=n.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(d=n.usesOnChanges)&&void 0!==d&&d},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:null!==(h=n.isStandalone)&&void 0!==h&&h}}function _8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:g8(null!==(r=n.attributes)&&void 0!==r?r:{}),listeners:null!==(e=n.listeners)&&void 0!==e?e:{},properties:null!==(i=n.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function g8(n){for(var r={},e=0,i=Object.keys(n);e<i.length;e++){var o=i[e];r[o]=new Ar(n[o])}return r}function v8(n){return Object.assign(Object.assign({},n),{type:new Ar(n.type)})}function _1(n){var e,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{kind:ku.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Ar(n.type),inputs:null!==(e=n.inputs)&&void 0!==e?e:[],outputs:null!==(i=n.outputs)&&void 0!==i?i:[],exportAs:null!==(o=n.exportAs)&&void 0!==o?o:null}}function JS(n){return{kind:ku.Pipe,name:n.name,type:new Ar(n.type)}}function g1(n,r,e,i,o){var a=o?RM.fromArray(o):Vl,s=function l8(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=U_(i),u=(new r6).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:L_},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var d={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(d.commentNodes=[]),d}var h=u.rootNodes,g=new A6(i,!o,a),y=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&y.errors&&y.errors.length>0){var L={interpolationConfig:i,preserveWhitespaces:o,errors:y.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(L.commentNodes=[]),L}h=y.rootNodes,o||(h=Nc(new s6,h),g.hasI18nMeta&&(h=Nc(new A6(i,!1),h)));var z=t1(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=z.nodes,re=z.errors,ae=z.styleUrls,Se=z.styles,Ce=z.ngContentSelectors,Ee=z.commentNodes;re.push.apply(re,(0,cn.Z)(u.errors).concat((0,cn.Z)(y.errors)));var Ke={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ke.commentNodes=Ee),Ke}(n,e,{preserveWhitespaces:i,interpolationConfig:a});if(null!==s.errors){var l=s.errors.map(function(u){return u.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for ".concat(r,": ").concat(l))}return{template:s,interpolation:a}}function Zs(n,r){if(n.hasOwnProperty(r))return Oc(new Ar(n[r]),0)}function K6(n,r){if(n.hasOwnProperty(r))return new Ar(n[r])}function QS(n){return Oc("function"==typeof n?new Ar(n):new me(null!=n?n:null),0)}function Fc(n){return null==n?null:n.map(Du)}function Du(n){var r=null!=n.attribute,e=null===n.token?null:new Ar(n.token);return XS(r?new Ar(n.attribute):e,r,n.host,n.optional,n.self,n.skipSelf)}function Au(n){var r,e,i,o,a,s=null!==(r=n.attribute)&&void 0!==r&&r;return XS(null===n.token?null:new Ar(n.token),s,null!==(e=n.host)&&void 0!==e&&e,null!==(i=n.optional)&&void 0!==i&&i,null!==(o=n.self)&&void 0!==o&&o,null!==(a=n.skipSelf)&&void 0!==a&&a)}function XS(n,r,e,i,o,a){return{token:n,attributeNameType:r?on("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function q6(n,r,e){var i=function p8(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a],u=n[l],d=l.match(z6);if(null===d)switch(l){case"class":if("string"!=typeof u)throw new Error("Class binding must be string");o.classAttr=u;break;case"style":if("string"!=typeof u)throw new Error("Style binding must be string");o.styleAttr=u;break;default:r[l]="string"==typeof u?on(u):u}else if(null!=d[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[d[1]]=u}else if(null!=d[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[d[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function Ua(n,r){var e=U_();return e.createDirectiveHostEventAsts(n.listeners,r),e.createBoundHostProperties(n.properties,r),e.errors}(i,r);if(o.length)throw new Error(o.map(function(l){return l.msg}).join("\n"));var a=function(u){n.hasOwnProperty(u)&&n[u].forEach(function(d){!function y8(n){return"HostBinding"===n.ngMetadataName}(d)?function b8(n){return"HostListener"===n.ngMetadataName}(d)&&(i.listeners[d.eventName||u]="".concat(u,"(").concat((d.args||[]).join(","),")")):i.properties[d.hostPropertyName||u]=function mF(n,r){var e=Md(r,!1,!1);return e!==r?"".concat(n,"[").concat(e,"]"):"".concat(n,".").concat(r)}("this",u)})};for(var s in n)a(s);return i}function v1(n){return n.reduce(function(r,e){var i=e.split(":",2).map(function(l){return l.trim()}),o=(0,Yn.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new Xm("14.3.0");var tE;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(tE||(tE={}));var O8=function(){function n(){(0,B.Z)(this,n),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,U.Z)(n,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return qi.PARSABLE_DATA}}]),n}();new O8;var oR;!function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(oR||(oR={}));!function J6(n){(n.ng||(n.ng={})).\u0275compilerFacade=new m8}(Ja);var bi=m(925),En=m(3191),Yr=m(5664),On=m(8929),xa=m(4096),nU=m(1715),pR=m(352),oo=m(7451),Gi=m(6787),Ir=m(7625),Oo=m(1059),$n=m(4850),Ri=m(2986),aa=m(2994),Io=m(7545),sa=m(9071),nl=m(226);function xy(n,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function z_(n,r){var e=r?"":"none";xy(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function sE(n,r,e){xy(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Dy(n,r){return r&&"none"!=r?n+" "+r:n}function hR(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function lE(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function Ay(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function uE(n,r,e){var i=n.top,o=n.bottom,a=n.left,s=n.right;return e>=i&&e<=o&&r>=a&&r<=s}function W_(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function mR(n,r,e,i){var o=n.top,a=n.right,s=n.bottom,l=n.left,h=n.width*r,g=n.height*r;return i>o-g&&i<s+g&&e>l-h&&e<a+h}var _R=function(){function n(r){(0,B.Z)(this,n),this._document=r,this.positions=new Map}return(0,U.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:Ay(o)})})}},{key:"handleScroll",value:function(e){var i=(0,bi.sA)(e),o=this.positions.get(i);if(!o)return null;var s,l,a=o.scrollPosition;if(i===this._document){var u=this.getViewportScrollPosition();s=u.top,l=u.left}else s=i.scrollTop,l=i.scrollLeft;var d=a.top-s,h=a.left-l;return this.positions.forEach(function(g,y){g.clientRect&&i!==y&&i.contains(y)&&W_(g.clientRect,d,h)}),a.top=s,a.left=l,{top:d,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),n}();function gR(n){var r=n.cloneNode(!0),e=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?bR(n,r):("input"===i||"select"===i||"textarea"===i)&&yR(n,r),vR("canvas",n,r,bR),vR("input, textarea, select",n,r,yR),r}function vR(n,r,e,i){var o=r.querySelectorAll(n);if(o.length)for(var a=e.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var iU=0;function yR(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(iU++))}function bR(n,r){var e=r.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch(i){}}var CR=(0,bi.i$)({passive:!0}),Oy=(0,bi.i$)({passive:!1}),cE=new Set(["position"]),oU=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this._config=e,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new On.xQ,this._pointerMoveSubscription=xa.w.EMPTY,this._pointerUpSubscription=xa.w.EMPTY,this._scrollSubscription=xa.w.EMPTY,this._resizeSubscription=xa.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new On.xQ,this.started=new On.xQ,this.released=new On.xQ,this.ended=new On.xQ,this.entered=new On.xQ,this.exited=new On.xQ,this.dropped=new On.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&l._initializeDragSequence(d,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var d=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(d);if(l._hasMoved=!0,l._lastKnownPointerPosition=d,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,d);else{var re=l.constrainPosition?l._initialClientRect:l._pickupPositionOnPage,ae=l._activeTransform;ae.x=q.x-re.x+l._passiveTransform.x,ae.y=q.y-re.y+l._passiveTransform.y,l._applyRootElementTransform(ae.x,ae.y)}l._moveEvents.observers.length&&l._ngZone.run(function(){l._moveEvents.next({source:l,pointerPosition:q,event:u,distance:l._getDragDistance(q),delta:l._pointerDirectionDelta})})}else{if(Math.abs(d.x-l._pickupPositionOnPage.x)+Math.abs(d.y-l._pickupPositionOnPage.y)>=l._config.dragStartThreshold){var L=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!L)return void l._endDragSequence(u);(!z||!z.isDragging()&&!z.isReceiving())&&(u.preventDefault(),l._hasStartedDragging=!0,l._ngZone.run(function(){return l._startDragSequence(u)}))}}},this._pointerUp=function(u){l._endDragSequence(u)},this._nativeDragStart=function(u){if(l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new _R(i),s.registerDragItem(this)}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,En.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return z_(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var i=this;this._handles=e.map(function(a){return(0,En.fI)(a)}),this._handles.forEach(function(a){return z_(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var i=this,o=(0,En.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Oy),o.addEventListener("touchstart",i._pointerDown,CR),o.addEventListener("dragstart",i._nativeDragStart,Oy)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var i=this;return this._boundaryElement=e?(0,En.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){var e,i;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(i=this._anchor)||void 0===i||i.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),z_(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),z_(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var e,i;null===(e=this._preview)||void 0===e||e.remove(),null===(i=this._previewRef)||void 0===i||i.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var e,i;null===(e=this._placeholder)||void 0===e||e.remove(),null===(i=this._placeholderRef)||void 0===i||i.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(e),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){Py(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),u=this._getShadowRoot();a.insertBefore(l,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),sE(o,!1,cE),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=Py(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,bi.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),g=s?(0,Yr.yG)(i):(0,Yr.X6)(i);if(d&&d.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||g)){if(this._handles.length){var y=u.style;this._rootElementTapHighlight=y.webkitTapHighlightColor||"",y.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(q){return o._updateOnScroll(q)}),this._boundaryElement&&(this._boundaryRect=Ay(this._boundaryElement));var L=this._previewTemplate;this._pickupPositionInElement=L&&L.template&&!L.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,i);var z=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:z.x,y:z.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;sE(this._rootElement,!0,cE),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(e),l=i._getDragDistance(s),u=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:l,dropPoint:s,event:e}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s,event:e}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s,e),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,i){var o=this,a=e.x,s=e.y,l=i.x,u=i.y,d=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=d,o._dropContainer.enter(o,a,s,d===o._initialContainer&&d.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:d,currentIndex:d.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,s):this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,e=this._previewTemplate,i=this.previewClass,o=e?e.template:null;if(o&&e){var s=e.matchSize?this._initialClientRect:null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=TR(l,this._document),this._previewRef=l,e.matchSize?w1(a,s):a.style.transform=Iy(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else w1(a=gR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return xy(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},cE),z_(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(u){return a.classList.add(u)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function rU(n){var r=getComputedStyle(n),e=lE(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=lE(r,"transition-duration"),s=lE(r,"transition-delay");return hR(a[o])+hR(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(d){var h;(!d||(0,bi.sA)(d)===e._preview&&"transform"===d.propertyName)&&(null===(h=e._preview)||void 0===h||h.removeEventListener("transitionend",u),a(),clearTimeout(l))},l=setTimeout(s,1.5*o);e._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),o=TR(this._placeholderRef,this._document)):o=gR(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i,o){var a=i===this._rootElement?null:i,s=a?a.getBoundingClientRect():e,l=Py(o)?o.targetTouches[0]:o,u=this._getViewportScrollPosition(),d=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-e.left+d,y:s.top-e.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=Py(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var l=this._ownerSVGElement.getScreenCTM();if(l){var u=this._ownerSVGElement.createSVGPoint();return u.x=a,u.y=s,u.matrixTransform(l.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(e){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var l=this._pickupPositionInElement,u=l.x,d=l.y,h=this._boundaryRect,g=this._getPreviewRect(),y=g.width,L=g.height,z=h.top+d,q=h.bottom-(L-d);a=kR(a,h.left+u,h.right-(y-u)),s=kR(s,z,q)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(e){var i=e.x,o=e.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,l=Math.abs(i-s.x),u=Math.abs(o-s.y);return l>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),u>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,z_(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,Oy),e.removeEventListener("touchstart",this._pointerDown,CR),e.removeEventListener("dragstart",this._nativeDragStart,Oy)}},{key:"_applyRootElementTransform",value:function(e,i){var o=Iy(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Dy(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=null!==(o=this._previewTemplate)&&void 0!==o&&o.template?void 0:this._initialTransform,s=Iy(e,i);this._preview.style.transform=Dy(s,a)}},{key:"_getDragDistance",value:function(e){var i=this._pickupPositionOnPage;return i?{x:e.x-i.x,y:e.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,i=e.x,o=e.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(!(0===s.width&&0===s.height||0===a.width&&0===a.height)){var l=s.left-a.left,u=a.right-s.right,d=s.top-a.top,h=a.bottom-s.bottom;s.width>a.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,s.height>a.height?(d>0&&(o+=d),h>0&&(o-=h)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(e){var i=this.dragStartDelay;return"number"==typeof i?i:Py(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,bi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&W_(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,bi.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,i){var o=this._previewContainer||"global";if("parent"===o)return e;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,En.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),n}();function Iy(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function kR(n,r,e){return Math.max(r,Math.min(e,n))}function Py(n){return"t"===n.type[0]}function TR(n,r){var e=n.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];var i=r.createElement("div");return e.forEach(function(o){return i.appendChild(o)}),i}function w1(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=Iy(r.left,r.top)}function Ry(n,r){return Math.max(0,Math.min(r,n))}var sU=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,U.Z)(n,[{key:"start",value:function(e){this.withItems(e)}},{key:"sort",value:function(e,i,o,a){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(-1===l&&s.length>0)return null;var u="horizontal"===this.orientation,d=s.findIndex(function(ae){return ae.drag===e}),h=s[l],g=s[d].clientRect,y=h.clientRect,L=d>l?1:-1,z=this._getItemOffsetPx(g,y,L),q=this._getSiblingOffsetPx(d,s,L),re=s.slice();return function dE(n,r,e){var i=Ry(r,n.length-1),o=Ry(e,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,l=i;l!==o;l+=s)n[l]=n[l+s];n[o]=a}}(s,d,l),s.forEach(function(ae,Se){if(re[Se]!==ae){var Ce=ae.drag===e,Ee=Ce?z:q,Ke=Ce?e.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=Ee,u?(Ke.style.transform=Dy("translate3d(".concat(Math.round(ae.offset),"px, 0, 0)"),ae.initialTransform),W_(ae.clientRect,0,Ee)):(Ke.style.transform=Dy("translate3d(0, ".concat(Math.round(ae.offset),"px, 0)"),ae.initialTransform),W_(ae.clientRect,Ee,0))}}),this._previousSwap.overlaps=uE(y,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y,{previousIndex:d,currentIndex:l}}},{key:"enter",value:function(e,i,o,a){var s=null==a||a<0?this._getItemIndexFromPointerPosition(e,i,o):a,l=this._activeDraggables,u=l.indexOf(e),d=e.getPlaceholderElement(),h=l[s];if(h===e&&(h=l[s+1]),!h&&(null==s||-1===s||s<l.length-1)&&this._shouldEnterAsFirstChild(i,o)&&(h=l[0]),u>-1&&l.splice(u,1),h&&!this._dragDropRegistry.isDragging(h)){var g=h.getRootElement();g.parentElement.insertBefore(d,g),l.splice(s,0,e)}else(0,En.fI)(this._element).appendChild(d),l.push(e);d.style.transform="",this._cacheItemPositions()}},{key:"withItems",value:function(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}},{key:"withSortPredicate",value:function(e){this._sortPredicate=e}},{key:"reset",value:function(){var e=this;this._activeDraggables.forEach(function(i){var o,a=i.getRootElement();if(a){var s=null===(o=e._itemPositions.find(function(l){return l.drag===i}))||void 0===o?void 0:o.initialTransform;a.style.transform=s||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}},{key:"getActiveItemsSnapshot",value:function(){return this._activeDraggables}},{key:"getItemIndex",value:function(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===e})}},{key:"updateOnScroll",value:function(e,i){var o=this;this._itemPositions.forEach(function(a){W_(a.clientRect,e,i)}),this._itemPositions.forEach(function(a){var s=a.drag;o._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()})}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:Ay(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_getItemOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=a?i.left-e.left:i.top-e.top;return-1===o&&(s+=a?i.width-e.width:i.height-e.height),s}},{key:"_getSiblingOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=i[e].clientRect,l=i[e+-1*o],u=s[a?"width":"height"]*o;if(l){var d=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[d]-s[h]:u+=s[d]-l.clientRect[h]}return u}},{key:"_shouldEnterAsFirstChild",value:function(e,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){var l=o[o.length-1].clientRect;return a?e>=l.right:i>=l.bottom}var u=o[0].clientRect;return a?e<=u.left:i<=u.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,i,o,a){var s=this,l="horizontal"===this.orientation,u=this._itemPositions.findIndex(function(d){var h=d.drag,g=d.clientRect;if(h===e)return!1;if(a){var y=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&y===s._previousSwap.delta)return!1}return l?i>=Math.floor(g.left)&&i<Math.floor(g.right):o>=Math.floor(g.top)&&o<Math.floor(g.bottom)});return-1!==u&&this._sortPredicate(u,e)?u:-1}}]),n}(),ER=function(){function n(r,e,i,o,a){var s=this;(0,B.Z)(this,n),this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new On.xQ,this.entered=new On.xQ,this.exited=new On.xQ,this.dropped=new On.xQ,this.sorted=new On.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xa.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new On.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,nU.F)(0,pR.Z).pipe((0,Ir.R)(s._stopScrollTimers)).subscribe(function(){var l=s._scrollNode,u=s.autoScrollStep;1===s._verticalScrollDirection?l.scrollBy(0,-u):2===s._verticalScrollDirection&&l.scrollBy(0,u),1===s._horizontalScrollDirection?l.scrollBy(-u,0):2===s._horizontalScrollDirection&&l.scrollBy(u,0)})},this.element=(0,En.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new _R(i),this._sortStrategy=new sU(this.element,e),this._sortStrategy.withSortPredicate(function(l,u){return s.sortPredicate(l,u,s)})}return(0,U.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,i,o,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(e)),this._sortStrategy.enter(e,i,o,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,i,o,a,s,l,u){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u,event:d})}},{key:"withItems",value:function(e){var i=this,o=this._draggables;(this._draggables=e,e.forEach(function(s){return s._withDropContainer(i)}),this.isDragging())&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===e.indexOf(s)})?this._reset():this._sortStrategy.withItems(this._draggables));return this}},{key:"withDirection",value:function(e){return this._sortStrategy.direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._sortStrategy.orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,En.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,cn.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,i,o,a){if(!this.sortingDisabled&&this._clientRect&&mR(this._clientRect,.05,i,o)){var s=this._sortStrategy.sort(e,i,o,a);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:e})}}},{key:"_startScrollingIfNecessary",value:function(e,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,l=0;if(this._parentPositions.positions.forEach(function(y,L){if(L!==o._document&&y.clientRect&&!a&&mR(y.clientRect,.05,e,i)){var z=function lU(n,r,e,i){var o=Uh(r,i),a=fE(r,e),s=0,l=0;if(o){var u=n.scrollTop;1===o?u>0&&(s=1):n.scrollHeight-u>n.clientHeight&&(s=2)}if(a){var d=n.scrollLeft;1===a?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[s,l]}(L,y.clientRect,e,i),q=(0,Yn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=L)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),d=u.width,h=u.height,g={width:d,height:h,top:0,right:d,bottom:h,left:0};s=Uh(g,i),l=fE(g,e),a=window}a&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=a,(s||l)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,En.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,En.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,En.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&uE(this._clientRect,e,i)}},{key:"_getSiblingContainerFromPosition",value:function(e,i,o){return this._siblings.find(function(a){return a._canReceive(e,i,o)})}},{key:"_canReceive",value:function(e,i,o){if(!this._clientRect||!uE(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,En.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(e,i){var o=this,a=this._activeSiblings;!a.has(e)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(e.isDragging()){var o=e._parentPositions.handleScroll(i);o&&e._sortStrategy.updateOnScroll(o.top,o.left)}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,bi.kV)((0,En.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._sortStrategy.getActiveItemsSnapshot().filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),n}();function Uh(n,r){var e=n.top,i=n.bottom,a=.05*n.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function fE(n,r){var e=n.left,i=n.right,a=.05*n.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var pE=(0,bi.i$)({passive:!1,capture:!0}),Hh=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this._ngZone=r,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(o){return o.isDragging()},this.pointerMove=new On.xQ,this.pointerUp=new On.xQ,this.scroll=new On.xQ,this._preventDefaultWhileDragging=function(o){i._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=function(o){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&o.preventDefault(),i.pointerMove.next(o))},this._document=e}return(0,U.Z)(n,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var i=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,pE)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,pE)}},{key:"startDragging",value:function(e,i){var o=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var a=i.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:function(l){return o.pointerUp.next(l)},options:!0}).set("scroll",{handler:function(l){return o.scroll.next(l)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:pE}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:pE}),this._ngZone.runOutsideAngular(function(){o._globalListeners.forEach(function(s,l){o._document.addEventListener(l,s.handler,s.options)})})}}},{key:"stopDragging",value:function(e){var i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var i=this,o=[this.scroll];return e&&e!==this._document&&o.push(new oo.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(d){i._activeDragInstances.length&&a.next(d)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),Gi.T.apply(void 0,o)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(i){return e.removeDragItem(i)}),this._dropInstances.forEach(function(i){return e.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(i,o){e._document.removeEventListener(o,i.handler,i.options)}),this._globalListeners.clear()}}]),n}();Hh.\u0275fac=function(r){return new(r||Hh)(t.LFG(t.R0b),t.LFG(le.K0))},Hh.\u0275prov=t.Yz7({token:Hh,factory:Hh.\u0275fac,providedIn:"root"});var hE={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zf=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,U.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hE;return new oU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new ER(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();zf.\u0275fac=function(r){return new(r||zf)(t.LFG(le.K0),t.LFG(t.R0b),t.LFG(sa.rL),t.LFG(Hh))},zf.\u0275prov=t.Yz7({token:zf,factory:zf.\u0275fac,providedIn:"root"});var Ly=new t.OlP("CDK_DRAG_PARENT"),V_=new t.OlP("CdkDropListGroup"),Y_=function(){function n(){(0,B.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();Y_.\u0275fac=function(r){return new(r||Y_)},Y_.\u0275dir=t.lG2({type:Y_,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:V_,useExisting:Y_}])]});var xR=new t.OlP("CDK_DRAG_CONFIG");var uU=0,mE=new t.OlP("CdkDropList"),K_=function(){function n(r,e,i,o,a,s,l){var u=this;(0,B.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new On.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(uU++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.sorted=new t.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(d,h){return u.enterPredicate(d.data,h.data)},this._dropListRef.sortPredicate=function(d,h,g){return u.sortPredicate(d,h.data,g.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,En.Ig)(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,i){return e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,Oo.O)(this._dir.value),(0,Ir.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,En.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?n._dropLists.find(function(u){return u.id===s}):s});if(i._group&&i._group._items.forEach(function(s){-1===o.indexOf(s)&&o.push(s)}),!i._scrollableParentsResolved){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(s){return s.getElementRef().nativeElement});i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,En.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,En.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,En.su)(i.autoScrollStep,2),e.connectedTo(o.filter(function(s){return s&&s!==i}).map(function(s){return s._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(e){var i=this;e.beforeStarted.subscribe(function(){i._syncItemsWithRef(),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:i,item:o.item.data,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:i,item:o.item.data}),i._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(o){i.sorted.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:i,item:o.item.data})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,item:o.item.data,isPointerOverContainer:o.isPointerOverContainer,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.draggingDisabled,a=e.sortingDisabled,s=e.listAutoScrollDisabled,l=e.listOrientation;this.disabled=null!=o&&o,this.sortingDisabled=null!=a&&a,this.autoScrollDisabled=null!=s&&s,this.orientation=l||"vertical",i&&(this.lockAxis=i)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),n}();K_._dropLists=[],K_.\u0275fac=function(r){return new(r||K_)(t.Y36(t.SBq),t.Y36(zf),t.Y36(t.sBO),t.Y36(sa.mF),t.Y36(nl.Is,8),t.Y36(V_,12),t.Y36(xR,8))},K_.\u0275dir=t.lG2({type:K_,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("id",e.id),t.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[t._Bn([{provide:V_,useValue:void 0},{provide:mE,useExisting:K_}])]});var DR=new t.OlP("CdkDragHandle"),Zy=function(){function n(r,e){(0,B.Z)(this,n),this.element=r,this._stateChanges=new On.xQ,this._disabled=!1,this._parentDrag=e}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();Zy.\u0275fac=function(r){return new(r||Zy)(t.Y36(t.SBq),t.Y36(Ly,12))},Zy.\u0275dir=t.lG2({type:Zy,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:DR,useExisting:Zy}])]});var AR=new t.OlP("CdkDragPlaceholder"),T1=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r});T1.\u0275fac=function(r){return new(r||T1)(t.Y36(t.Rgc))},T1.\u0275dir=t.lG2({type:T1,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:AR,useExisting:T1}])]});var _E=new t.OlP("CdkDragPreview"),M1=function(){function n(r){(0,B.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,U.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,En.Ig)(e)}}]),n}();M1.\u0275fac=function(r){return new(r||M1)(t.Y36(t.Rgc))},M1.\u0275dir=t.lG2({type:M1,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:_E,useExisting:M1}])]});var q_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var y=this;(0,B.Z)(this,n),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=g,this._destroyed=new On.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new oo.y(function(L){var z=y._dragRef.moved.pipe((0,$n.U)(function(q){return{source:y,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(L);return function(){z.unsubscribe()}}),this._dragRef=u.createDrag(r,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return(0,U.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"setFreeDragPosition",value:function(e){this._dragRef.setFreeDragPosition(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,Ri.q)(1),(0,Ir.R)(e._destroyed)).subscribe(function(){e._updateRootElement(),e._setupHandlesListener(),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})})}},{key:"ngOnChanges",value:function(e){var i=e.rootElementSelector,o=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){var e=this;this.dropContainer&&this.dropContainer.removeItem(this);var i=n._dragInstances.indexOf(this);i>-1&&n._dragInstances.splice(i,1),this._ngZone.runOutsideAngular(function(){e._destroyed.next(),e._destroyed.complete(),e._dragRef.dispose()})}},{key:"_updateRootElement",value:function(){var e,i=this.element.nativeElement,o=i;this.rootElementSelector&&(o=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||i)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,En.fI)(e):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var o=i._dir,a=i.dragStartDelay,s=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,l=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof a&&a?a:(0,En.su)(a),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(l).withPreviewContainer(i.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,Ri.q)(1)).subscribe(function(){var o;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var a=i.element.nativeElement.parentElement;a;){if(a.classList.contains("cdk-drag")){e.withParent((null===(o=n._dragInstances.find(function(s){return s.element.nativeElement===a}))||void 0===o?void 0:o._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var i=this;e.started.subscribe(function(o){i.started.emit({source:i,event:o.event}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(o){i.released.emit({source:i,event:o.event})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:o.container.data,item:i,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:o.container.data,item:i})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,d=e.rootElementSelector,h=e.previewContainer;this.disabled=null!=u&&u,this.dragStartDelay=o||0,i&&(this.lockAxis=i),a&&(this.constrainPosition=a),s&&(this.previewClass=s),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,Oo.O)(this._handles),(0,aa.b)(function(i){var o=i.filter(function(a){return a._parentDrag===e}).map(function(a){return a.element});e._selfHandle&&e.rootElementSelector&&o.push(e.element),e._dragRef.withHandles(o)}),(0,Io.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._stateChanges.pipe((0,Oo.O)(o))})))}),(0,Ir.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),n}();q_._dragInstances=[],q_.\u0275fac=function(r){return new(r||q_)(t.Y36(t.SBq),t.Y36(mE,12),t.Y36(le.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(xR,8),t.Y36(nl.Is,8),t.Y36(zf),t.Y36(t.sBO),t.Y36(DR,10),t.Y36(Ly,12))},q_.\u0275dir=t.lG2({type:q_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,_E,5),t.Suo(i,AR,5),t.Suo(i,DR,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._previewTemplate=o.first),t.iGM(o=t.CRH())&&(e._placeholderTemplate=o.first),t.iGM(o=t.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:Ly,useExisting:q_}]),t.TTD]});var J_=(0,U.Z)(function n(){(0,B.Z)(this,n)});J_.\u0275fac=function(r){return new(r||J_)},J_.\u0275mod=t.oAB({type:J_}),J_.\u0275inj=t.cJS({providers:[zf],imports:[sa.ZD]});var Li=m(1314),Si=m(449),hs=m(3527),Qi=m(591),Ny=m(4715),Kn=m(1086),OR=[[["caption"]],[["colgroup"],["col"]]];function fU(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function pU(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}function gE(n){return function(r){(0,qe.Z)(i,r);var e=(0,Be.Z)(i);function i(){var o;(0,B.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(o=e.call.apply(e,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,U.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,En.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var Q_=new t.OlP("CDK_TABLE"),hU=new t.OlP("text-column-options"),Uc=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Uc.\u0275fac=function(r){return new(r||Uc)(t.Y36(t.Rgc))},Uc.\u0275dir=t.lG2({type:Uc,selectors:[["","cdkCellDef",""]]});var wl=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});wl.\u0275fac=function(r){return new(r||wl)(t.Y36(t.Rgc))},wl.\u0275dir=t.lG2({type:wl,selectors:[["","cdkHeaderCellDef",""]]});var Zd=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Zd.\u0275fac=function(r){return new(r||Zd)(t.Y36(t.Rgc))},Zd.\u0275dir=t.lG2({type:Zd,selectors:[["","cdkFooterCellDef",""]]});var IR=(0,U.Z)(function n(){(0,B.Z)(this,n)}),rl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,U.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(o){var a=this._stickyEnd;this._stickyEnd=(0,En.Ig)(o),this._hasStickyChanged=a!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),e}(gE(IR));rl.\u0275fac=function(r){return new(r||rl)(t.Y36(Q_,8))},rl.\u0275dir=t.lG2({type:rl,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Uc,5),t.Suo(i,wl,5),t.Suo(i,Zd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.cell=o.first),t.iGM(o=t.CRH())&&(e.headerCell=o.first),t.iGM(o=t.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rl}]),t.qOj]});var S1=(0,U.Z)(function n(r,e){var i;(0,B.Z)(this,n),(i=e.nativeElement.classList).add.apply(i,(0,cn.Z)(r._columnCssClassName))}),Wf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){return(0,B.Z)(this,e),r.call(this,i,o)}return(0,U.Z)(e)}(S1);Wf.\u0275fac=function(r){return new(r||Wf)(t.Y36(rl),t.Y36(t.SBq))},Wf.\u0275dir=t.lG2({type:Wf,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]});var X_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s;if((0,B.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,U.Z)(e)}(S1);X_.\u0275fac=function(r){return new(r||X_)(t.Y36(rl),t.Y36(t.SBq))},X_.\u0275dir=t.lG2({type:X_,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]});var $_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s;if((0,B.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,U.Z)(e)}(S1);$_.\u0275fac=function(r){return new(r||$_)(t.Y36(rl),t.Y36(t.SBq))},$_.\u0275dir=t.lG2({type:$_,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]});var vE=(0,U.Z)(function n(){(0,B.Z)(this,n),this.tasks=[],this.endTasks=[]}),E1=new t.OlP("_COALESCED_STYLE_SCHEDULER"),Vf=function(){function n(r){(0,B.Z)(this,n),this._ngZone=r,this._currentSchedule=null,this._destroyed=new On.xQ}return(0,U.Z)(n,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new vE,this._getScheduleObservable().pipe((0,Ir.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new vE;var a,o=(0,An.Z)(i.tasks);try{for(o.s();!(a=o.n()).done;){(0,a.value)()}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,An.Z)(i.endTasks);try{for(l.s();!(u=l.n()).done;){(0,u.value)()}}catch(h){l.e(h)}finally{l.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,hs.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ri.q)(1))}}]),n}();Vf.\u0275fac=function(r){return new(r||Vf)(t.LFG(t.R0b))},Vf.\u0275prov=t.Yz7({token:Vf,factory:Vf.\u0275fac});var jh=function(){function n(r,e){(0,B.Z)(this,n),this.template=r,this._differs=e}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof dc?e.headerCell.template:this instanceof jc?e.footerCell.template:e.cell.template}}]),n}();jh.\u0275fac=function(r){return new(r||jh)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},jh.\u0275dir=t.lG2({type:jh,features:[t.TTD]});var By=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(jh),dc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(gE(By));dc.\u0275fac=function(r){return new(r||dc)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},dc.\u0275dir=t.lG2({type:dc,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Hc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(jh),jc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(gE(Hc));jc.\u0275fac=function(r){return new(r||jc)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},jc.\u0275dir=t.lG2({type:jc,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Jl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,U.Z)(e)}(jh);Jl.\u0275fac=function(r){return new(r||Jl)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Q_,8))},Jl.\u0275dir=t.lG2({type:Jl,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]});var kl=function(){function n(r){(0,B.Z)(this,n),this._viewContainer=r,n.mostRecentCellOutlet=this}return(0,U.Z)(n,[{key:"ngOnDestroy",value:function(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}]),n}();kl.mostRecentCellOutlet=null,kl.\u0275fac=function(r){return new(r||kl)(t.Y36(t.s_b))},kl.\u0275dir=t.lG2({type:kl,selectors:[["","cdkCellOutlet",""]]});var Gh=(0,U.Z)(function n(){(0,B.Z)(this,n)});Gh.\u0275fac=function(r){return new(r||Gh)},Gh.\u0275cmp=t.Xpm({type:Gh,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var zh=(0,U.Z)(function n(){(0,B.Z)(this,n)});zh.\u0275fac=function(r){return new(r||zh)},zh.\u0275cmp=t.Xpm({type:zh,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Gc=(0,U.Z)(function n(){(0,B.Z)(this,n)});Gc.\u0275fac=function(r){return new(r||Gc)},Gc.\u0275cmp=t.Xpm({type:Gc,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Ou=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r,this._contentClassName="cdk-no-data-row"});Ou.\u0275fac=function(r){return new(r||Ou)(t.Y36(t.Rgc))},Ou.\u0275dir=t.lG2({type:Ou,selectors:[["ng-template","cdkNoDataRow",""]]});var RR=["top","bottom","left","right"],gU=function(){function n(r,e,i,o){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;(0,B.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(e,"-border-elem-top"),bottom:"".concat(e,"-border-elem-bottom"),left:"".concat(e,"-border-elem-left"),right:"".concat(e,"-border-elem-right")}}return(0,U.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.nodeType===u.ELEMENT_NODE){a.push(u);for(var d=0;d<u.children.length;d++)a.push(u.children[d])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){for(var h=0,g=a;h<g.length;h++){var y=g[h];o._removeStickyStyle(y,i)}})}},{key:"updateStickyColumns",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(i.some(function(z){return z})||o.some(function(z){return z}))){var l=e[0],u=l.children.length,d=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(d,i),g=this._getStickyEndColumnPositions(d,o),y=i.lastIndexOf(!0),L=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Se,z="rtl"===a.direction,q=z?"right":"left",re=z?"left":"right",ae=(0,An.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,Ee=0;Ee<u;Ee++){var Ke=Ce.children[Ee];i[Ee]&&a._addStickyStyle(Ke,q,h[Ee],Ee===y),o[Ee]&&a._addStickyStyle(Ke,re,g[Ee],Ee===L)}}catch(st){ae.e(st)}finally{ae.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===y?[]:d.slice(0,y+1).map(function(st,De){return i[De]?st:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===L?[]:d.slice(L).map(function(st,De){return o[De+L]?st:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?e.slice().reverse():e,l="bottom"===o?i.slice().reverse():i,u=[],d=[],h=[],g=0,y=0;g<s.length;g++)if(l[g]){u[g]=y;var L=s[g];h[g]=this._isNativeHtmlTable?Array.from(L.children):[L];var z=L.getBoundingClientRect().height;y+=z,d[g]=z}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var re,ae,Se=0;Se<s.length;Se++)if(l[Se]){var st,Ce=u[Se],Ee=Se===q,Ke=(0,An.Z)(h[Se]);try{for(Ke.s();!(st=Ke.n()).done;){var De=st.value;a._addStickyStyle(De,o,Ce,Ee)}}catch(it){Ke.e(it)}finally{Ke.f()}}"top"===o?null===(re=a._positionListener)||void 0===re||re.stickyHeaderRowsUpdated({sizes:d,offsets:u,elements:h}):null===(ae=a._positionListener)||void 0===ae||ae.stickyFooterRowsUpdated({sizes:d,offsets:u,elements:h})})}}},{key:"updateStickyFooterContainer",value:function(e,i){var o=this;if(this._isNativeHtmlTable){var a=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,i){var a,o=(0,An.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;e.style[s]="",e.classList.remove(this._borderCellCss[s])}}catch(u){o.e(u)}finally{o.f()}RR.some(function(u){return-1===i.indexOf(u)&&e.style[u]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,i,o,a){e.classList.add(this._stickCellCss),a&&e.classList.add(this._borderCellCss[i]),e.style[i]="".concat(o,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){for(var i={top:100,bottom:10,left:1,right:1},o=0,a=0,s=RR;a<s.length;a++){var l=s[a];e.style[l]&&(o+=i[l])}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s<a.length;s++){var l=a[s];o.push(l.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(e,i){for(var o=[],a=0,s=0;s<e.length;s++)i[s]&&(o[s]=a,a+=e[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(e,i){for(var o=[],a=0,s=e.length;s>0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var yE=new t.OlP("CDK_SPL"),eg=(0,U.Z)(function n(){(0,B.Z)(this,n)});eg.\u0275fac=function(r){return new(r||eg)},eg.\u0275dir=t.lG2({type:eg,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var Yf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Yf.\u0275fac=function(r){return new(r||Yf)(t.Y36(t.s_b),t.Y36(t.SBq))},Yf.\u0275dir=t.lG2({type:Yf,selectors:[["","rowOutlet",""]]});var Kf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Kf.\u0275fac=function(r){return new(r||Kf)(t.Y36(t.s_b),t.Y36(t.SBq))},Kf.\u0275dir=t.lG2({type:Kf,selectors:[["","headerRowOutlet",""]]});var qf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});qf.\u0275fac=function(r){return new(r||qf)(t.Y36(t.s_b),t.Y36(t.SBq))},qf.\u0275dir=t.lG2({type:qf,selectors:[["","footerRowOutlet",""]]});var Jf=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this.elementRef=e});Jf.\u0275fac=function(r){return new(r||Jf)(t.Y36(t.s_b),t.Y36(t.SBq))},Jf.\u0275dir=t.lG2({type:Jf,selectors:[["","noDataRowOutlet",""]]});t.a5r;var zc=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){(0,B.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=g,this._ngZone=y,this._onDestroy=new On.xQ,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 t.vpe,this.viewChange=new Qi.X({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,U.Z)(n,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=(0,En.Ig)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=(0,En.Ig)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(i,o){return e.trackBy?e.trackBy(o.dataIndex,o.data):o}),this._viewportRuler.change().pipe((0,Ir.R)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;var i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,Si.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var i=this._dataDiffer.diff(this._renderRows);if(!i)return this._updateNoDataRow(),void this.contentChanged.next();var o=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,o,function(a,s,l){return e._getEmbeddedViewArgs(a.item,l)},function(a){return a.item.data},function(a){1===a.operation&&a.context&&e._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(function(a){o.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ri.q)(1),(0,Ir.R)(this._onDestroy)).subscribe(function(){e.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");var a=this._headerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,a,"top"),this._headerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");var a=this._footerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,a,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,a),this._footerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,i=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,cn.Z)(i),(0,cn.Z)(o),(0,cn.Z)(a)),["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach(function(s,l){e._addStickyColumnStyles([s],e._headerRowDefs[l])}),this._rowDefs.forEach(function(s){for(var l=[],u=0;u<o.length;u++)e._renderRows[u].rowDef===s&&l.push(o[u]);e._addStickyColumnStyles(l,s)}),a.forEach(function(s,l){e._addStickyColumnStyles([s],e._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(function(s){return s.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var o=0;o<this._data.length;o++){var a=this._data[o],s=this._getRenderRowsForData(a,o,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(var l=0;l<s.length;l++){var u=s[l],d=this._cachedRenderRowsMap.get(u.data);d.has(u.rowDef)?d.get(u.rowDef).push(u):d.set(u.rowDef,[u]),e.push(u)}}return e}},{key:"_getRenderRowsForData",value:function(e,i,o){return this._getRowDefs(e,i).map(function(s){var l=o&&o.has(s)?o.get(s):[];if(l.length){var u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:s,dataIndex:i}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),tg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(o){e._columnDefsByName.has(o.name),e._columnDefsByName.set(o.name,o)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=tg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(i){return!i.when});!this.multiTemplateDataRows&&e.length,this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(l,u){return l||!!u.getColumnsDiff()},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();var o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();var a=this._footerRowDefs.reduce(e,!1);return a&&this._forceRenderFooterRows(),i||o||a}},{key:"_switchDataSource",value:function(e){this._data=[],(0,Si.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var i,e=this;this.dataSource&&((0,Si.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,Ny.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,Kn.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Ir.R)(this._onDestroy)).subscribe(function(o){e._data=o||[],e.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(i,o){return e._renderRow(e._headerRowOutlet,i,o)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(i,o){return e._renderRow(e._footerRowOutlet,i,o)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,i){var o=this,a=Array.from(i.columns||[]).map(function(u){return o._columnDefsByName.get(u)}),s=a.map(function(u){return u.sticky}),l=a.map(function(u){return u.stickyEnd});this._stickyStyler.updateStickyColumns(e,s,l,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var i=[],o=0;o<e.viewContainer.length;o++){var a=e.viewContainer.get(o);i.push(a.rootNodes[0])}return i}},{key:"_getRowDefs",value:function(e,i){if(1==this._rowDefs.length)return[this._rowDefs[0]];var o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(function(s){return!s.when||s.when(i,e)});else{var a=this._rowDefs.find(function(s){return s.when&&s.when(i,e)})||this._defaultRowDef;a&&o.push(a)}return o.length,o}},{key:"_getEmbeddedViewArgs",value:function(e,i){var o=e.rowDef,a={$implicit:e.data};return{templateRef:o.template,context:a,index:i}}},{key:"_renderRow",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=e.viewContainer.createEmbeddedView(i.template,a,o);return this._renderCellTemplateForItem(i,a),s}},{key:"_renderCellTemplateForItem",value:function(e,i){var a,o=(0,An.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;kl.mostRecentCellOutlet&&kl.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i)}}catch(l){o.e(l)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,i=0,o=e.length;i<o;i++){var s=e.get(i).context;s.count=o,s.first=0===i,s.last=i===o-1,s.even=i%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[i].dataIndex,s.renderIndex=i):s.index=this._renderRows[i].dataIndex}}},{key:"_getCellTemplates",value:function(e){var i=this;return e&&e.columns?Array.from(e.columns,function(o){var a=i._columnDefsByName.get(o);return e.extractCellTemplate(a)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),o=0,a=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];o<a.length;o++){var s=a[o],l=this._document.createElement(s.tag);l.setAttribute("role","rowgroup");var d,u=(0,An.Z)(s.outlets);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.appendChild(h.elementRef.nativeElement)}}catch(g){u.e(g)}finally{u.f()}e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(o,a){return o||a.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this,i=this._dir?this._dir.value:"ltr";this._stickyStyler=new gU(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Kn.of)()).pipe((0,Ir.R)(this._onDestroy)).subscribe(function(o){e._stickyStyler.direction=o,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var i=this;return e.filter(function(o){return!o._table||o._table===i})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){var o=this._noDataRowOutlet.viewContainer;if(i){var a=o.createEmbeddedView(e.templateRef),s=a.rootNodes[0];1===a.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}}}]),n}();function tg(n,r){return n.concat(Array.from(r))}zc.\u0275fac=function(r){return new(r||zc)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(nl.Is,8),t.Y36(le.K0),t.Y36(bi.t4),t.Y36(Si.k),t.Y36(E1),t.Y36(sa.rL),t.Y36(yE,12),t.Y36(t.R0b,8))},zc.\u0275cmp=t.Xpm({type:zc,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Ou,5),t.Suo(i,rl,5),t.Suo(i,Jl,5),t.Suo(i,dc,5),t.Suo(i,jc,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._noDataRow=o.first),t.iGM(o=t.CRH())&&(e._contentColumnDefs=o),t.iGM(o=t.CRH())&&(e._contentRowDefs=o),t.iGM(o=t.CRH())&&(e._contentHeaderRowDefs=o),t.iGM(o=t.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(t.Gf(Yf,7),t.Gf(Kf,7),t.Gf(qf,7),t.Gf(Jf,7)),2&r)&&(t.iGM(i=t.CRH())&&(e._rowOutlet=i.first),t.iGM(i=t.CRH())&&(e._headerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._footerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:Q_,useExisting:zc},{provide:Si.k,useClass:Si.yy},{provide:E1,useClass:Vf},{provide:yE,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(OR),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yf,Kf,qf,Jf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var Wh=function(){function n(r,e){(0,B.Z)(this,n),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,U.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}},{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,i){return e[i]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}}]),n}();Wh.\u0275fac=function(r){return new(r||Wh)(t.Y36(zc,8),t.Y36(hU,8))},Wh.\u0275cmp=t.Xpm({type:Wh,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(rl,7),t.Gf(Uc,7),t.Gf(wl,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.columnDef=i.first),t.iGM(i=t.CRH())&&(e.cell=i.first),t.iGM(i=t.CRH())&&(e.headerCell=i.first))},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,fU,2,3,"th",1),t.YNc(2,pU,2,3,"td",2),t.BQk())},dependencies:[Uc,wl,rl,$_,Wf],encapsulation:2});var Qf=(0,U.Z)(function n(){(0,B.Z)(this,n)});Qf.\u0275fac=function(r){return new(r||Qf)},Qf.\u0275mod=t.oAB({type:Qf}),Qf.\u0275inj=t.cJS({imports:[sa.Cl]});var fc=m(520),J=m(3075),Gt=m(508),Tr=m(1159),Xf=m(3753),$r=m(9664),x1=m(7604),ts=m(5778),ng=m(13),Zt=m(1777),D1=["*"],dY=["content"];function fY(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function ZR(n,r){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}var NR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function wU(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function bE(n,r){1&n&&(t.TgZ(0,"mat-sidenav-content"),t.Hsn(1,2),t.qZA())}var kU=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],FR={transformDrawer:(0,Zt.X$)("transform",[(0,Zt.SB)("open, open-instant",(0,Zt.oB)({transform:"none",visibility:"visible"})),(0,Zt.SB)("void",(0,Zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Zt.eR)("void => open-instant",(0,Zt.jt)("0ms")),(0,Zt.eR)("void <=> open, open-instant => void",(0,Zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var CE=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function UR(){return!1}}),A1=new t.OlP("MAT_DRAWER_CONTAINER");var Iu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(sa.PQ);Iu.\u0275fac=function(r){return new(r||Iu)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return rg})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},Iu.\u0275cmp=t.Xpm({type:Iu,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:sa.PQ,useExisting:Iu}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var $f=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,B.Z)(this,n),this._elementRef=r,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new On.xQ,this._animationEnd=new On.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,$r.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,x1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,$r.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,x1.h)(void 0)),this._destroyed=new On.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new On.xQ,this.openedChange.subscribe(function(h){h?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus(d._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,Xf.R)(d._elementRef.nativeElement,"keydown").pipe((0,$r.h)(function(h){return h.keyCode===Tr.hY&&!d.disableClose&&!(0,Tr.Vb)(h)}),(0,Ir.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,ts.x)(function(h,g){return h.fromState===g.fromState&&h.toState===g.toState})).subscribe(function(h){var g=h.fromState,y=h.toState;(0===y.indexOf("open")&&"void"===g||"void"===y&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,U.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=(0,En.Ig)(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e},set:function(e){("true"===e||"false"===e||null==e)&&(e=(0,En.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,En.Ig)(e))}},{key:"_forceFocus",value:function(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var o=function a(){e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}},{key:"_focusByCssSelector",value:function(e,i){var o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}},{key:"_takeFocus",value:function(){var e=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(o){!o&&"function"==typeof e._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;e&&i&&(this._openedVia=i);var o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}},{key:"_setOpen",value:function(e,i,o){var a=this;return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(function(s){a.openedChange.pipe((0,Ri.q)(1)).subscribe(function(l){return s(l?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(e){var i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),n}();$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(le.K0,8),t.Y36(A1,8))},$f.\u0275cmp=t.Xpm({type:$f,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(dY,5),2&r)&&(t.iGM(i=t.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&t.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(t.uIk("align",null),t.d8E("@transform",e._animationState),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[sa.PQ],encapsulation:2,data:{animation:[FR.transformDrawer]},changeDetection:0});var rg=function(){function n(r,e,i,o,a){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,B.Z)(this,n),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new t.n_E,this.backdropClick=new t.vpe,this._destroyed=new On.xQ,this._doCheckSubject=new On.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new On.xQ,r&&r.change.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Ir.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,U.Z)(n,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=(0,En.Ig)(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:(0,En.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,Oo.O)(this._allDrawers),(0,Ir.R)(this._destroyed)).subscribe(function(i){e._drawers.reset(i.filter(function(o){return!o._container||o._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Oo.O)(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(i){e._watchDrawerToggle(i),e._watchDrawerPosition(i),e._watchDrawerMode(i)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,ng.b)(10),(0,Ir.R)(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,i=0,o=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var a=this._left._getWidth();i+=a,o-=a}if(this._right&&this._right.opened)if("side"==this._right.mode)o+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();o+=s,i-=s}o=o||null,((i=i||null)!==this._contentMargins.left||o!==this._contentMargins.right)&&(this._contentMargins={left:i,right:o},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var i=this;e._animationStarted.pipe((0,$r.h)(function(o){return o.fromState!==o.toState}),(0,Ir.R)(this._drawers.changes)).subscribe(function(o){"open-instant"!==o.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe((0,Ir.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Ir.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Ir.R)((0,Gi.T)(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?(e._end,e._end=i):(e._start,e._start=i)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&e._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),n}();rg.\u0275fac=function(r){return new(r||rg)(t.Y36(nl.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(sa.rL),t.Y36(CE),t.Y36(t.QbO,8))},rg.\u0275cmp=t.Xpm({type:rg,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Iu,5),t.Suo(i,$f,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Iu,5),2&r)&&(t.iGM(i=t.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[t._Bn([{provide:A1,useExisting:rg}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(NR),t.YNc(0,fY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,ZR,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[le.O5,Iu],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var ep=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,U.Z)(e)}(Iu);ep.\u0275fac=function(r){return new(r||ep)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return tp})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},ep.\u0275cmp=t.Xpm({type:ep,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:sa.PQ,useExisting:ep}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var ig=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,U.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,En.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,En.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,En.su)(o)}}]),e}($f);ig.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ig)))(e||ig)}}(),ig.\u0275cmp=t.Xpm({type:ig,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(t.uIk("align",null),t.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[t.qOj],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[sa.PQ],encapsulation:2,data:{animation:[FR.transformDrawer]},changeDetection:0});var tp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(rg);tp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tp)))(e||tp)}}(),tp.\u0275cmp=t.Xpm({type:tp,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ep,5),t.Suo(i,ig,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[t._Bn([{provide:A1,useExisting:tp}]),t.qOj],ngContentSelectors:["mat-sidenav","mat-sidenav-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(kU),t.YNc(0,wU,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,bE,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[le.O5,ep],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var pc=(0,U.Z)(function n(){(0,B.Z)(this,n)});pc.\u0275fac=function(r){return new(r||pc)},pc.\u0275mod=t.oAB({type:pc}),pc.\u0275inj=t.cJS({imports:[le.ez,Gt.BQ,sa.ZD,sa.ZD,Gt.BQ]});function wE(n){return new t.vHH(3e3,!1)}function JR(n){return new t.vHH(3502,!1)}function LU(){return new t.vHH(3300,!1)}function ZU(n){return new t.vHH(3504,!1)}function I1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vh(n){switch(n.length){case 0:return new Zt.ZN;case 1:return n[0];default:return new Zt.ZE(n)}}function P1(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=[],l=[],u=-1,d=null;if(i.forEach(function(h){var g=h.get("offset"),y=g==u,L=y&&d||new Map;h.forEach(function(z,q){var re=q,ae=z;if("offset"!==q)switch(re=r.normalizePropertyName(re,s),ae){case Zt.k1:ae=o.get(q);break;case Zt.l3:ae=a.get(q);break;default:ae=r.normalizeStyleValue(q,re,ae,s)}L.set(re,ae)}),y||l.push(L),d=L,u=g}),s.length)throw JR();return l}function R1(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&TE(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&TE(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&TE(e,"destroy",n))})}}function TE(n,r,e){var i=e.totalTime,o=!!e.disabled,a=L1(n.element,n.triggerName,n.fromState,n.toState,r||n.phaseName,null==i?n.totalTime:i,o),s=n._data;return null!=s&&(a._data=s),a}function L1(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:n,triggerName:r,fromState:e,toState:i,phaseName:o,totalTime:a,disabled:!!s}}function Pu(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function eL(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var np=function(r,e){return!1},tL=function(r,e,i){return[]},Uy=null;function ME(n){var r=n.parentNode||n.host;return r===Uy?null:r}(I1()||"undefined"!=typeof Element)&&(function $R(){return"undefined"!=typeof window&&void 0!==window.document}()?(Uy=function(){return document.documentElement}(),np=function(r,e){for(;e;){if(e===r)return!0;e=ME(e)}return!1}):np=function(r,e){return r.contains(e)},tL=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var rp=null,nL=!1;function og(n){rp||(rp=function CY(){return"undefined"!=typeof document?document.body:null}()||{},nL=!!rp.style&&"WebkitAppearance"in rp.style);var r=!0;rp.style&&!function yY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in rp.style)&&nL)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in rp.style);return r}var rL=np,SE=tL;var ag=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"validateStyleProperty",value:function(e){return og(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return rL(e,i)}},{key:"getParentElement",value:function(e){return ME(e)}},{key:"query",value:function(e,i,o){return SE(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return o||""}},{key:"animate",value:function(e,i,o,a,s){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new Zt.ZN(o,a)}}]),n}();ag.\u0275fac=function(r){return new(r||ag)},ag.\u0275prov=t.Yz7({token:ag,factory:ag.\u0275fac});var Tl=(0,U.Z)(function n(){(0,B.Z)(this,n)});Tl.NOOP=new ag;var Wc="ng-enter",EE="ng-leave",sg="ng-trigger",N1=".ng-trigger",iL="ng-animating",Hy=".ng-animating";function Vc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:B1(parseFloat(r[1]),r[2])}function B1(n,r){return"s"===r?1e3*n:n}function F1(n,r,e){return n.hasOwnProperty("duration")?n:function oL(n,r,e){var o,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,a=0,s="";if("string"==typeof n){var l=n.match(i);if(null===l)return r.push(wE()),{duration:0,delay:0,easing:""};o=B1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=B1(parseFloat(u),l[4]));var d=l[5];d&&(s=d)}else o=n;if(!e){var h=!1,g=r.length;o<0&&(r.push(function kE(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function MU(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,wE())}return{duration:o,delay:a,easing:s}}(n,r,e)}function lg(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach(function(e){r[e]=n[e]}),r}function Yh(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Kh(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return Yh(r)}):[]}function Ru(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,e=arguments.length>2?arguments[2]:void 0;if(e){var o,i=(0,An.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];r.set(s,l)}}catch(L){i.e(L)}finally{i.f()}}var d,u=(0,An.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Yn.Z)(d.value,2),g=h[0],y=h[1];r.set(g,y)}}catch(L){u.e(L)}finally{u.f()}return r}function hc(n,r,e){return e?r+":"+e+";":""}function xE(n){for(var r="",e=0;e<n.style.length;e++){var i=n.style.item(e);r+=hc(0,i,n.style.getPropertyValue(i))}for(var o in n.style)if(n.style.hasOwnProperty(o)&&!o.startsWith("_")){r+=hc(0,uL(o),n.style[o])}n.setAttribute("style",r)}function Lu(n,r,e){n.style&&(r.forEach(function(i,o){var a=lL(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),I1()&&xE(n))}function il(n,r){n.style&&(r.forEach(function(e,i){var o=lL(i);n.style[o]=""}),I1()&&xE(n))}function jy(n){return Array.isArray(n)?1==n.length?n[0]:(0,Zt.vP)(n):n}function kY(n,r,e){var i=r.params||{},o=aL(n);o.length&&o.forEach(function(a){i.hasOwnProperty(a)||e.push(function SU(n){return new t.vHH(3001,!1)}())})}var DE=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function aL(n){var r=[];if("string"==typeof n){for(var e;e=DE.exec(n);)r.push(e[1]);DE.lastIndex=0}return r}function Gy(n,r,e){var i=n.toString(),o=i.replace(DE,function(a,s){var l=r[s];return null==l&&(e.push(function mY(n){return new t.vHH(3003,!1)}()),l=""),l.toString()});return o==i?n:o}function U1(n){for(var r=[],e=n.next();!e.done;)r.push(e.value),e=n.next();return r}var sL=/-+([a-z0-9])/g;function lL(n){return n.replace(sL,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}function uL(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function WU(n,r){return 0===n||0===r}function cL(n,r,e){if(e.size&&r.length){var i=r[0],o=[];if(e.forEach(function(l,u){i.has(u)||o.push(u),i.set(u,l)}),o.length)for(var a=function(){var u=r[s];o.forEach(function(d){return u.set(d,H1(n,d))})},s=1;s<r.length;s++)a()}return r}function Zu(n,r,e){switch(r.type){case 7:return n.visitTrigger(r,e);case 0:return n.visitState(r,e);case 1:return n.visitTransition(r,e);case 2:return n.visitSequence(r,e);case 3:return n.visitGroup(r,e);case 4:return n.visitAnimate(r,e);case 5:return n.visitKeyframes(r,e);case 6:return n.visitStyle(r,e);case 8:return n.visitReference(r,e);case 9:return n.visitAnimateChild(r,e);case 10:return n.visitAnimateRef(r,e);case 11:return n.visitQuery(r,e);case 12:return n.visitStagger(r,e);default:throw function EU(n){return new t.vHH(3004,!1)}(r.type)}}function H1(n,r){return window.getComputedStyle(n)[r]}function YU(n,r){var e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(function(i){return function pL(n,r,e){if(":"==n[0]){var i=function hL(n,r){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i)<parseFloat(e)};default:return r.push(function qR(n){return new t.vHH(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof i)return void r.push(i);n=i}var o=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return e.push(function KR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(KU(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(KU(l,a))}(i,e,r)}):e.push(n),e}var OE=new Set(["true","1"]),j1=new Set(["false","0"]);function KU(n,r){var e=OE.has(n)||j1.has(n),i=OE.has(r)||j1.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?OE.has(n):j1.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?OE.has(r):j1.has(r)),s&&l}}var qU=":self",mL=new RegExp("s*".concat(":self","s*,?"),"g");function G1(n,r,e,i){return new JU(n).build(r,e,i)}var JU=function(){function n(r){(0,B.Z)(this,n),this._driver=r}return(0,U.Z)(n,[{key:"build",value:function(e,i,o){var a=new TY(i);return this._resetContextStyleTimingState(a),Zu(this,jy(e),a)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}},{key:"visitTrigger",value:function(e,i){var o=this,a=i.queryCount=0,s=i.depCount=0,l=[],u=[];return"@"==e.name.charAt(0)&&i.errors.push(function HR(){return new t.vHH(3006,!1)}()),e.definitions.forEach(function(d){if(o._resetContextStyleTimingState(i),0==d.type){var h=d,g=h.name;g.toString().split(/\s*,\s*/).forEach(function(L){h.name=L,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var y=o.visitTransition(d,i);a+=y.queryCount,s+=y.depCount,u.push(y)}else i.errors.push(function jR(){return new t.vHH(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:a,depCount:s,options:null}}},{key:"visitState",value:function(e,i){var o=this.visitStyle(e.styles,i),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){var s=new Set,l=a||{};if(o.styles.forEach(function(d){d instanceof Map&&d.forEach(function(h){aL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){U1(s.values());i.errors.push(function GR(n,r){return new t.vHH(3008,!1)}(e.name))}}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}},{key:"visitTransition",value:function(e,i){i.queryCount=0,i.depCount=0;var o=Zu(this,jy(e.animation),i);return{type:1,matchers:YU(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:qh(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return Zu(o,a,i)}),options:qh(e.options)}}},{key:"visitGroup",value:function(e,i){var o=this,a=i.currentTime,s=0,l=e.steps.map(function(u){i.currentTime=a;var d=Zu(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:qh(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function SY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return Vy(F1(n,r).duration,0,"")}var i=n,o=i.split(/\s+/).some(function(l){return"{"==l.charAt(0)&&"{"==l.charAt(1)});if(o){var a=Vy(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=F1(i,r);return Vy(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Zt.oB)({});if(5==s.type)a=this.visitKeyframes(s,i);else{var l=e.styles,u=!1;if(!l){u=!0;var d={};o.easing&&(d.easing=o.easing),l=(0,Zt.oB)(d)}i.currentTime+=o.duration+o.delay;var h=this.visitStyle(l,i);h.isEmptyStep=u,a=h}return i.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}},{key:"visitStyle",value:function(e,i){var o=this._makeStyleAst(e,i);return this._validateStyleAst(o,i),o}},{key:"_makeStyleAst",value:function(e,i){var l,o=[],a=Array.isArray(e.styles)?e.styles:[e.styles],s=(0,An.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Zt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(Yh(u))}}catch(g){s.e(g)}finally{s.f()}var d=!1,h=null;return o.forEach(function(g){if(g instanceof Map&&(g.has("easing")&&(h=g.get("easing"),g.delete("easing")),!d)){var L,y=(0,An.Z)(g.values());try{for(y.s();!(L=y.n()).done;){if(L.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){y.e(q)}finally{y.f()}}}),{type:6,styles:o,easing:h,offset:e.offset,containsDynamicStyles:d,options:null}}},{key:"_validateStyleAst",value:function(e,i){var a=i.currentAnimateTimings,s=i.currentTime,l=i.currentTime;a&&l>0&&(l-=a.duration+a.delay),e.styles.forEach(function(u){"string"!=typeof u&&u.forEach(function(d,h){var g=i.collectedStyles.get(i.currentQuerySelector),y=g.get(h),L=!0;y&&(l!=s&&l>=y.startTime&&s<=y.endTime&&(i.errors.push(function zR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,y.startTime,y.endTime)),L=!1),l=y.startTime),L&&g.set(h,{startTime:l,endTime:s}),i.options&&kY(d,i.options,i.errors)})})}},{key:"visitKeyframes",value:function(e,i){var o=this,a={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function OU(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,y=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ke=null!=Ee.offset?Ee.offset:function MY(n){if("string"==typeof n)return null;var r=null;if(Array.isArray(n))n.forEach(function(i){if(i instanceof Map&&i.has("offset")){var o=i;r=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){var e=n;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(Ee.styles),st=0;return null!=Ke&&(l++,st=Ee.offset=Ke),h=h||st<0||st>1,d=d||st<g,g=st,u.push(st),Ee});h&&i.errors.push(function IU(){return new t.vHH(3012,!1)}()),d&&i.errors.push(function WR(){return new t.vHH(3200,!1)}());var L=e.steps.length,z=0;l>0&&l<L?i.errors.push(function PU(){return new t.vHH(3202,!1)}()):0==l&&(z=1/(L-1));var q=L-1,re=i.currentTime,ae=i.currentAnimateTimings,Se=ae.duration;return y.forEach(function(Ce,Ee){var Ke=z>0?Ee==q?1:z*Ee:u[Ee],st=Ke*Se;i.currentTime=re+ae.delay+st,ae.duration=st,o._validateStyleAst(Ce,i),Ce.offset=Ke,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:Zu(this,jy(e.animation),i),options:qh(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:qh(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:qh(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function QU(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==qU});return r&&(n=n.replace(mL,"")),n=n.replace(/@\*/g,N1).replace(/@\w+/g,function(e){return N1+"-"+e.slice(1)}).replace(/:animating/g,Hy),[n,r]}(e.selector),l=(0,Yn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,Pu(i.collectedStyles,i.currentQuerySelector,new Map);var h=Zu(this,jy(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:d,animation:h,originalSelector:e.selector,options:qh(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function VR(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:F1(e.timings,i.errors,!0);return{type:12,animation:Zu(this,jy(e.animation),i),timings:o,options:null}}}]),n}();var TY=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set});function qh(n){return n?(n=lg(n)).params&&(n.params=function XU(n){return n?lg(n):null}(n.params)):n={},n}function Vy(n,r,e){return{duration:n,delay:r,easing:e}}function gL(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:n,keyframes:r,preStyleProps:e,postStyleProps:i,duration:o,delay:a,totalTime:o+a,easing:s,subTimeline:l}}var IE=function(){function n(){(0,B.Z)(this,n),this._map=new Map}return(0,U.Z)(n,[{key:"get",value:function(e){return this._map.get(e)||[]}},{key:"append",value:function(e,i){var o,a=this._map.get(e);a||this._map.set(e,a=[]),(o=a).push.apply(o,(0,cn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),vL=new RegExp(":enter","g"),RE=new RegExp(":leave","g");function $U(n,r,e,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Map,l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new LE).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var LE=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"buildKeyframes",value:function(e,i,o,a,s,l,u,d,h){var g=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];h=h||new IE;var y=new yL(e,i,h,a,s,g,[]);y.options=d;var L=d.delay?Vc(d.delay):0;y.currentTimeline.delayNextStep(L),y.currentTimeline.setStyles([l],null,y.errors,d),Zu(this,o,y);var z=y.timelines.filter(function(Se){return Se.containsAnimation()});if(z.length&&u.size){for(var q,re=z.length-1;re>=0;re--){var ae=z[re];if(ae.element===i){q=ae;break}}q&&!q.allowOnlyTimelineStyles()&&q.setStyles([u],null,y.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[gL(i,[],[],[],0,L,"",!1)]}},{key:"visitTrigger",value:function(e,i){}},{key:"visitState",value:function(e,i){}},{key:"visitTransition",value:function(e,i){}},{key:"visitAnimateChild",value:function(e,i){var o=i.subInstructions.get(i.element);if(o){var a=i.createSubContext(e.options),s=i.currentTimeline.currentTime,l=this._visitSubInstructions(o,a,a.options);s!=l&&i.transformIntoNewTimeline(l)}i.previousNode=e}},{key:"visitAnimateRef",value:function(e,i){var o=i.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,o),this.visitReference(e.animation,o),i.transformIntoNewTimeline(o.currentTimeline.currentTime),i.previousNode=e}},{key:"_applyAnimationRefDelays",value:function(e,i,o){var a,l,s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null==u?void 0:u.delay;if(d){var h="number"==typeof d?d:Vc(Gy(d,null!==(a=null==u?void 0:u.params)&&void 0!==a?a:{},i.errors));o.delayNextStep(h)}}}catch(g){s.e(g)}finally{s.f()}}},{key:"_visitSubInstructions",value:function(e,i,o){var s=i.currentTimeline.currentTime,l=null!=o.duration?Vc(o.duration):null,u=null!=o.delay?Vc(o.delay):null;return 0!==l&&e.forEach(function(d){var h=i.appendInstructionToTimeline(d,l,u);s=Math.max(s,h.duration+h.delay)}),s}},{key:"visitReference",value:function(e,i){i.updateOptions(e.options,!0),Zu(this,e.animation,i),i.previousNode=e}},{key:"visitSequence",value:function(e,i){var o=this,a=i.subContextCount,s=i,l=e.options;if(l&&(l.params||l.delay)&&((s=i.createSubContext(l)).transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ug);var u=Vc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return Zu(o,d,s)}),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>a&&s.transformIntoNewTimeline()),i.previousNode=e}},{key:"visitGroup",value:function(e,i){var o=this,a=[],s=i.currentTimeline.currentTime,l=e.options&&e.options.delay?Vc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),Zu(o,u,d),s=Math.max(s,d.currentTimeline.currentTime),a.push(d.currentTimeline)}),a.forEach(function(u){return i.currentTimeline.mergeTimelineCollectedStyles(u)}),i.transformIntoNewTimeline(s),i.previousNode=e}},{key:"_visitTiming",value:function(e,i){if(e.dynamic){var o=e.strValue;return F1(i.params?Gy(o,i.params,i.errors):o,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,i){var o=i.currentAnimateTimings=this._visitTiming(e.timings,i),a=i.currentTimeline;o.delay&&(i.incrementTime(o.delay),a.snapshotCurrentStyles());var s=e.style;5==s.type?this.visitKeyframes(s,i):(i.incrementTime(o.duration),this.visitStyle(s,i),a.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}},{key:"visitStyle",value:function(e,i){var o=i.currentTimeline,a=i.currentAnimateTimings;!a&&o.hasCurrentStyleProperties()&&o.forwardFrame();var s=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(s):o.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}},{key:"visitKeyframes",value:function(e,i){var o=i.currentAnimateTimings,a=i.currentTimeline.duration,s=o.duration,u=i.createSubContext().currentTimeline;u.easing=o.easing,e.styles.forEach(function(d){var h=d.offset||0;u.forwardTime(h*s),u.setStyles(d.styles,d.easing,i.errors,i.options),u.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(u),i.transformIntoNewTimeline(a+s),i.previousNode=e}},{key:"visitQuery",value:function(e,i){var o=this,a=i.currentTimeline.currentTime,s=e.options||{},l=s.delay?Vc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ug);var u=a,d=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=d.length;var h=null;d.forEach(function(g,y){i.currentQueryIndex=y;var L=i.createSubContext(e.options,g);l&&L.delayNextStep(l),g===i.element&&(h=L.currentTimeline),Zu(o,e.animation,L),L.currentTimeline.applyStylesToKeyframe();var z=L.currentTimeline.currentTime;u=Math.max(u,z)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(u),h&&(i.currentTimeline.mergeTimelineCollectedStyles(h),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}},{key:"visitStagger",value:function(e,i){var o=i.parentContext,a=i.currentTimeline,s=e.timings,l=Math.abs(s.duration),u=l*(i.currentQueryTotal-1),d=l*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=o.currentStaggerTime}var g=i.currentTimeline;d&&g.delayNextStep(d);var y=g.currentTime;Zu(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-y+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ug={},yL=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this._driver=r,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ug,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new e7(this._driver,e,0),l.push(this.currentTimeline)}return(0,U.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,i){var o=this;if(e){var a=e,s=this.options;null!=a.duration&&(s.duration=Vc(a.duration)),null!=a.delay&&(s.delay=Vc(a.delay));var l=a.params;if(l){var u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(function(d){(!i||!u.hasOwnProperty(d))&&(u[d]=Gy(l[d],u,o.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var i=this.options.params;if(i){var o=e.params={};Object.keys(i).forEach(function(a){o[a]=i[a]})}}return e}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=i||this.element,s=new n(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ug,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,i,o){var a={duration:null!=i?i:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},s=new xY(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(s),a}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,i,o,a,s,l){var u=[];if(a&&u.push(this.element),e.length>0){e=(e=e.replace(vL,"."+this._enterClassName)).replace(RE,"."+this._leaveClassName);var d=1!=o,h=this._driver.query(this.element,e,d);0!==o&&(h=o<0?h.slice(h.length+o,h.length):h.slice(0,o)),u.push.apply(u,(0,cn.Z)(h))}return!s&&0==u.length&&l.push(function YR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),e7=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._driver=r,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return(0,U.Z)(n,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}},{key:"hasCurrentStyleProperties",value:function(){return this._currentKeyframe.size>0}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||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=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){e&&this._previousKeyframe.set("easing",e);var o,i=(0,An.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Zt.l3),this._currentKeyframe.set(s,Zt.l3)}}catch(u){i.e(u)}finally{i.f()}this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,i,o,a){var s;i&&this._previousKeyframe.set("easing",i);var h,l=a&&a.params||{},u=function DY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Zt.l3)}}catch(u){a.e(u)}finally{a.f()}}else Ru(o,e)}),e}(e,this._globalTimelineStyles),d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Yn.Z)(h.value,2),y=g[0],z=Gy(g[1],l,o);this._pendingStyles.set(y,z),this._localTimelineStyles.has(y)||this._backFill.set(y,null!==(s=this._globalTimelineStyles.get(y))&&void 0!==s?s:Zt.l3),this._updateStyle(y,z)}}catch(q){d.e(q)}finally{d.f()}}},{key:"applyStylesToKeyframe",value:function(){var e=this;0!=this._pendingStyles.size&&(this._pendingStyles.forEach(function(i,o){e._currentKeyframe.set(o,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach(function(i,o){e._currentKeyframe.has(o)||e._currentKeyframe.set(o,i)}))}},{key:"snapshotCurrentStyles",value:function(){var i,e=(0,An.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Yn.Z)(i.value,2),a=o[0],s=o[1];this._pendingStyles.set(a,s),this._updateStyle(a,s)}}catch(l){e.e(l)}finally{e.f()}}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var i in this._currentKeyframe)e.push(i);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var i=this;e._styleSummary.forEach(function(o,a){var s=i._styleSummary.get(a);(!s||o.time>s.time)&&i._updateStyle(a,o.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var i=new Set,o=new Set,a=1===this._keyframes.size&&0===this.duration,s=[];this._keyframes.forEach(function(g,y){var L=Ru(g,new Map,e._backFill);L.forEach(function(z,q){z===Zt.k1?i.add(q):z===Zt.l3&&o.add(q)}),a||L.set("offset",y/e.duration),s.push(L)});var l=i.size?U1(i.values()):[],u=o.size?U1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return gL(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),xY=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.Z)(this,e),(d=r.call(this,i,o,u.delay)).keyframes=a,d.preStyleProps=s,d.postStyleProps=l,d._stretchStartingKeyframe=h,d.timings={duration:u.duration,delay:u.delay,easing:u.easing},d}return(0,U.Z)(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var o=this.keyframes,a=this.timings,s=a.delay,l=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&s){var d=[],h=l+s,g=s/h,y=Ru(o[0]);y.set("offset",0),d.push(y);var L=Ru(o[0]);L.set("offset",t7(g)),d.push(L);for(var z=o.length-1,q=1;q<=z;q++){var re=Ru(o[q]),Se=s+re.get("offset")*l;re.set("offset",t7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return gL(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(e7);function t7(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=Math.pow(10,r-1);return Math.round(n*e)/e}var ZE=(0,U.Z)(function n(){(0,B.Z)(this,n)}),r7=new Set(["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"]),i7=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return lL(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(r7.has(a)&&0!==s&&"0"!==s)if("number"==typeof s)u="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&l.push(function xU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(ZE);function NE(n,r,e,i,o,a,s,l,u,d,h,g,y){return{type:0,element:n,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:l,queriedElements:u,preStyleProps:d,postStyleProps:h,totalTime:g,errors:y}}var z1={},BE=function(){function n(r,e,i){(0,B.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,U.Z)(n,[{key:"match",value:function(e,i,o,a){return function o7(n,r,e,i,o){return n.some(function(a){return a(r,e,i,o)})}(this.ast.matchers,e,i,o,a)}},{key:"buildStyles",value:function(e,i,o){var a=this._stateStyles.get("*");return void 0!==e&&(a=this._stateStyles.get(null==e?void 0:e.toString())||a),a?a.buildStyles(i,o):new Map}},{key:"build",value:function(e,i,o,a,s,l,u,d,h,g){var y,L=[],z=this.ast.options&&this.ast.options.params||z1,q=u&&u.params||z1,re=this.buildStyles(o,q,L),ae=d&&d.params||z1,Se=this.buildStyles(a,ae,L),Ce=new Set,Ee=new Map,Ke=new Map,st="void"===a,De={params:bL(ae,z),delay:null===(y=this.ast.options)||void 0===y?void 0:y.delay},it=g?[]:$U(e,i,this.ast.animation,s,l,re,Se,De,h,L),ft=0;if(it.forEach(function($e){ft=Math.max($e.duration+$e.delay,ft)}),L.length)return NE(i,this._triggerName,o,a,st,re,Se,[],[],Ee,Ke,ft,L);it.forEach(function($e){var Pe=$e.element,ct=Pu(Ee,Pe,new Set);$e.preStyleProps.forEach(function(Ht){return ct.add(Ht)});var Bt=Pu(Ke,Pe,new Set);$e.postStyleProps.forEach(function(Ht){return Bt.add(Ht)}),Pe!==i&&Ce.add(Pe)});var bt=U1(Ce.values());return NE(i,this._triggerName,o,a,st,re,Se,it,bt,Ee,Ke,ft)}}]),n}();function bL(n,r){var e=lg(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var Yy=function(){function n(r,e,i){(0,B.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,U.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=lg(this.defaultParams);return Object.keys(e).forEach(function(l){var u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(function(l){"string"!=typeof l&&l.forEach(function(u,d){u&&(u=Gy(u,s,i));var h=o.normalizer.normalizePropertyName(d,i);u=o.normalizer.normalizeStyleValue(d,h,u,i),a.set(h,u)})}),a}}]),n}();var CL=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.name=r,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(function(a){var s=a.options&&a.options.params||{};o.states.set(a.name,new Yy(a.style,s,i))}),wL(this.states,"true","1"),wL(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new BE(r,a,o.states))}),this.fallbackTransition=function Ky(n,r,e){return new BE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(s,l){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states,this._normalizer)}return(0,U.Z)(n,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,i,o,a){return this.transitionFactories.find(function(l){return l.match(e,i,o,a)})||null}},{key:"matchStyles",value:function(e,i,o){return this.fallbackTransition.buildStyles(e,i,o)}}]),n}();function wL(n,r,e){n.has(r)?n.has(e)||n.set(e,n.get(r)):n.has(e)&&n.set(r,n.get(e))}var a7=new IE,PY=function(){function n(r,e,i){(0,B.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,U.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=G1(this._driver,i,o,a);if(o.length)throw function QR(n){return new t.vHH(3503,!1)}();a.length,this._animations.set(e,s)}},{key:"_buildPlayer",value:function(e,i,o){var a=e.element,s=P1(this._driver,this._normalizer,a,e.keyframes,i,o);return this._driver.animate(a,s,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,i){var u,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],l=this._animations.get(e),d=new Map;if(l?(u=$U(this._driver,i,l,Wc,EE,new Map,new Map,a,a7,s)).forEach(function(y){var L=Pu(d,y.element,new Map);y.postStyleProps.forEach(function(z){return L.set(z,null)})}):(s.push(LU()),u=[]),s.length)throw ZU();d.forEach(function(y,L){y.forEach(function(z,q){y.set(q,o._driver.computeStyle(L,q,Zt.l3))})});var h=u.map(function(y){var L=d.get(y.element);return o._buildPlayer(y,new Map,L)}),g=Vh(h);return this._playersById.set(e,g),g.onDestroy(function(){return o.destroy(e)}),this.players.push(g),g}},{key:"destroy",value:function(e){var i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);var o=this.players.indexOf(i);o>=0&&this.players.splice(o,1)}},{key:"_getPlayer",value:function(e){var i=this._playersById.get(e);if(!i)throw function NU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=L1(i,"","","");return R1(this._getPlayer(e),o,s,a),function(){}}},{key:"command",value:function(e,i,o,a){if("register"!=o)if("create"!=o){var l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}else{var s=a[0]||{};this.create(e,i,s)}else this.register(e,a[0])}}]),n}(),s7="ng-animate-queued",op="ng-animate-disabled",RY="ng-star-inserted",ZY=[],c7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nu="__ng_removed",kL=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=f(o),i){var a=lg(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,U.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var i=e.params;if(i){var o=this.options.params;Object.keys(i).forEach(function(a){null==o[a]&&(o[a]=i[a])})}}}]),n}(),W1="void",TL=new kL(W1),BY=function(){function n(r,e,i){(0,B.Z)(this,n),this.id=r,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ee(e,this._hostClassName)}return(0,U.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function BU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function FU(n){return new t.vHH(3303,!1)}();if(!function _(n){return"start"==n||"done"==n}(o))throw function UU(n,r){return new t.vHH(3400,!1)}();var l=Pu(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=Pu(this._engine.statesByElement,e,new Map);return d.has(i)||(ee(e,sg),ee(e,sg+"-"+i),d.set(i,TL)),function(){s._engine.afterFlush(function(){var h=l.indexOf(u);h>=0&&l.splice(h,1),s._triggers.has(i)||d.delete(i)})}}},{key:"register",value:function(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}},{key:"_getTrigger",value:function(e){var i=this._triggers.get(e);if(!i)throw function HU(n){return new t.vHH(3401,!1)}();return i}},{key:"trigger",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=this._getTrigger(i),u=new ML(this.id,i,e),d=this._engine.statesByElement.get(e);d||(ee(e,sg),ee(e,sg+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new kL(o,this.id),y=o&&o.hasOwnProperty("value");!y&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=TL);var L=g.value===W1;if(L||h.value!==g.value){var ae=Pu(this._engine.playersByElement,e,[]);ae.forEach(function(Ee){Ee.namespaceId==a.id&&Ee.triggerName==i&&Ee.queued&&Ee.destroy()});var Se=l.matchTransition(h.value,g.value,e,g.params),Ce=!1;if(!Se){if(!s)return;Se=l.fallbackTransition,Ce=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:Se,fromState:h,toState:g,player:u,isFallbackTransition:Ce}),Ce||(ee(e,s7),u.onStart(function(){oe(e,s7)})),u.onDone(function(){var Ee=a.players.indexOf(u);Ee>=0&&a.players.splice(Ee,1);var Ke=a._engine.playersByElement.get(e);if(Ke){var st=Ke.indexOf(u);st>=0&&Ke.splice(st,1)}}),this.players.push(u),ae.push(u),u}if(!dt(h.params,g.params)){var z=[],q=l.matchStyles(h.value,h.params,z),re=l.matchStyles(g.value,g.params,z);z.length?this._engine.reportError(z):this._engine.afterFlush(function(){il(e,q),Lu(e,re)})}}},{key:"deregister",value:function(e){var i=this;this._triggers.delete(e),this._engine.statesByElement.forEach(function(o){return o.delete(e)}),this._elementListeners.forEach(function(o,a){i._elementListeners.set(a,o.filter(function(s){return s.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var i=this._engine.playersByElement.get(e);i&&(i.forEach(function(o){return o.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,i){var o=this,a=this._engine.driver.query(e,N1,!0);a.forEach(function(s){if(!s[Nu]){var l=o._engine.fetchNamespacesByElement(s);l.size?l.forEach(function(u){return u.triggerLeaveAnimation(s,i,!1,!0)}):o.clearElementCache(s)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(s){return o.clearElementCache(s)})})}},{key:"triggerLeaveAnimation",value:function(e,i,o,a){var s=this,l=this._engine.statesByElement.get(e),u=new Map;if(l){var d=[];if(l.forEach(function(h,g){if(u.set(g,h.value),s._triggers.has(g)){var y=s.trigger(e,g,W1,a);y&&d.push(y)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vh(d).onDone(function(){return s._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var i=this,o=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(o&&a){var s=new Set;o.forEach(function(l){var u=l.name;if(!s.has(u)){s.add(u);var h=i._triggers.get(u).fallbackTransition,g=a.get(u)||TL,y=new kL(W1),L=new ML(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:y,player:L,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,i){var o=this,a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),!this.triggerLeaveAnimation(e,i,!0)){var s=!1;if(a.totalAnimations){var l=a.players.length?a.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else for(var u=e;u=u.parentNode;){if(a.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)a.markElementAsRemoved(this.id,e,!1,i);else{var h=e[Nu];(!h||h===c7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){ee(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var i=this,o=[];return this._queue.forEach(function(a){var s=a.player;if(!s.destroyed){var l=a.element,u=i._elementListeners.get(l);u&&u.forEach(function(d){if(d.name==a.triggerName){var h=L1(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,R1(a.player,d.phase,h,d.callback)}}),s.markedForDestroy?i._engine.afterFlush(function(){s.destroy()}):o.push(a)}}),this._queue=[],o.sort(function(a,s){var l=a.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:i._engine.driver.containsElement(a.element,s.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(i){return i.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var i=!1;return this._elementListeners.has(e)&&(i=!0),i=!!this._queue.find(function(o){return o.element===e})||i}}]),n}(),FY=function(){function n(r,e,i){(0,B.Z)(this,n),this.bodyNode=r,this.driver=e,this._normalizer=i,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(o,a){}}return(0,U.Z)(n,[{key:"_onRemovalComplete",value:function(e,i){this.onRemovalComplete(e,i)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(i){i.players.forEach(function(o){o.queued&&e.push(o)})}),e}},{key:"createNamespace",value:function(e,i){var o=new BY(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(o,i):(this.newHostElements.set(i,o),this.collectEnterElement(i)),this._namespaceLookup[e]=o}},{key:"_balanceNamespaceList",value:function(e,i){var o=this._namespaceList,a=this.namespacesByHostElement;if(o.length-1>=0){for(var l=!1,u=this.driver.getParentElement(i);u;){var d=a.get(u);if(d){var h=o.indexOf(d);o.splice(h+1,0,e),l=!0;break}u=this.driver.getParentElement(u)}l||o.unshift(e)}else o.push(e);return a.set(i,e),e}},{key:"register",value:function(e,i){var o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,i)),o}},{key:"registerTrigger",value:function(e,i,o){var a=this._namespaceLookup[e];a&&a.register(i,o)&&this.totalAnimations++}},{key:"destroy",value:function(e,i){var o=this;if(e){var a=this._fetchNamespace(e);this.afterFlush(function(){o.namespacesByHostElement.delete(a.hostElement),delete o._namespaceLookup[e];var s=o._namespaceList.indexOf(a);s>=0&&o._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(i)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var i=new Set,o=this.statesByElement.get(e);if(o){var s,a=(0,An.Z)(o.values());try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.namespaceId){var u=this._fetchNamespace(l.namespaceId);u&&i.add(u)}}}catch(d){a.e(d)}finally{a.f()}}return i}},{key:"trigger",value:function(e,i,o,a){if(p(i)){var s=this._fetchNamespace(e);if(s)return s.trigger(i,o,a),!0}return!1}},{key:"insertNode",value:function(e,i,o,a){if(p(i)){var s=i[Nu];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;var l=this.collectedLeaveElements.indexOf(i);l>=0&&this.collectedLeaveElements.splice(l,1)}if(e){var u=this._fetchNamespace(e);u&&u.insertNode(i,o)}a&&this.collectEnterElement(i)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ee(e,op)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oe(e,op))}},{key:"removeNode",value:function(e,i,o,a){if(p(i)){var s=e?this._fetchNamespace(e):null;if(s?s.removeNode(i,a):this.markElementAsRemoved(e,i,!1,a),o){var l=this.namespacesByHostElement.get(i);l&&l.id!==e&&l.removeNode(i,a)}}else this._onRemovalComplete(i,a)}},{key:"markElementAsRemoved",value:function(e,i,o,a,s){this.collectedLeaveElements.push(i),i[Nu]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:s}}},{key:"listen",value:function(e,i,o,a,s){return p(i)?this._fetchNamespace(e).listen(i,o,a,s):function(){}}},{key:"_buildInstruction",value:function(e,i,o,a,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,i,s)}},{key:"destroyInnerAnimations",value:function(e){var i=this,o=this.driver.query(e,N1,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,Hy,!0)).forEach(function(a){return i.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var i=this.playersByElement.get(e);i&&i.forEach(function(o){o.queued?o.markedForDestroy=!0:o.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var i=this.playersByQueriedElement.get(e);i&&i.forEach(function(o){return o.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(i){if(e.players.length)return Vh(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[Nu];if(a&&a.setForRemoval){if(e[Nu]=c7,a.namespaceId){this.destroyInnerAnimations(e);var s=this._fetchNamespace(a.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}!(null===(o=e.classList)||void 0===o)&&o.contains(op)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(l){i.markElementAsDisabled(l,!1)})}},{key:"flush",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,o=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(y,L){return e._balanceNamespaceList(y,L)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var s=this.collectedEnterElements[a];ee(s,RY)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var l=[];try{o=this._flushAnimations(l,i)}finally{for(var u=0;u<l.length;u++)l[u]()}}else for(var d=0;d<this.collectedLeaveElements.length;d++){var h=this.collectedLeaveElements[d];this.processLeaveNode(h)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(y){return y()}),this._flushFns=[],this._whenQuietFns.length){var g=this._whenQuietFns;this._whenQuietFns=[],o.length?Vh(o).onDone(function(){g.forEach(function(y){return y()})}):g.forEach(function(y){return y()})}}},{key:"reportError",value:function(e){throw function O1(n){return new t.vHH(3402,!1)}()}},{key:"_flushAnimations",value:function(e,i){var o=this,a=new IE,s=[],l=new Map,u=[],d=new Map,h=new Map,g=new Map,y=new Set;this.disabledNodes.forEach(function(bn){y.add(bn);for(var Nn=o.driver.query(bn,".ng-animate-queued",!0),rr=0;rr<Nn.length;rr++)y.add(Nn[rr])});var L=this.bodyNode,z=Array.from(this.statesByElement.keys()),q=Y(z,this.collectedEnterElements),re=new Map,ae=0;q.forEach(function(bn,Nn){var rr=Wc+ae++;re.set(Nn,rr),bn.forEach(function(gr){return ee(gr,rr)})});for(var Se=[],Ce=new Set,Ee=new Set,Ke=0;Ke<this.collectedLeaveElements.length;Ke++){var st=this.collectedLeaveElements[Ke],De=st[Nu];De&&De.setForRemoval&&(Se.push(st),Ce.add(st),De.hasAnimation?this.driver.query(st,".ng-star-inserted",!0).forEach(function(bn){return Ce.add(bn)}):Ee.add(st))}var it=new Map,ft=Y(z,Array.from(Ce));ft.forEach(function(bn,Nn){var rr=EE+ae++;it.set(Nn,rr),bn.forEach(function(gr){return ee(gr,rr)})}),e.push(function(){q.forEach(function(bn,Nn){var rr=re.get(Nn);bn.forEach(function(gr){return oe(gr,rr)})}),ft.forEach(function(bn,Nn){var rr=it.get(Nn);bn.forEach(function(gr){return oe(gr,rr)})}),Se.forEach(function(bn){o.processLeaveNode(bn)})});for(var bt=[],$e=[],Pe=this._namespaceList.length-1;Pe>=0;Pe--){this._namespaceList[Pe].drainQueuedTransitions(i).forEach(function(bn){var Nn=bn.player,rr=bn.element;if(bt.push(Nn),o.collectedEnterElements.length){var gr=rr[Nu];if(gr&&gr.setForMove){if(gr.previousTriggersValues&&gr.previousTriggersValues.has(bn.triggerName)){var eo=gr.previousTriggersValues.get(bn.triggerName),Xu=o.statesByElement.get(bn.element);if(Xu&&Xu.has(bn.triggerName)){var Dv=Xu.get(bn.triggerName);Dv.value=eo,Xu.set(bn.triggerName,Dv)}}return void Nn.destroy()}}var Av=!L||!o.driver.containsElement(L,rr),Qm=it.get(rr),cC=re.get(rr),Pa=o._buildInstruction(bn,a,cC,Qm,Av);if(Pa.errors&&Pa.errors.length)$e.push(Pa);else{if(Av)return Nn.onStart(function(){return il(rr,Pa.fromStyles)}),Nn.onDestroy(function(){return Lu(rr,Pa.toStyles)}),void s.push(Nn);if(bn.isFallbackTransition)return Nn.onStart(function(){return il(rr,Pa.fromStyles)}),Nn.onDestroy(function(){return Lu(rr,Pa.toStyles)}),void s.push(Nn);var yP=[];Pa.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||yP.push(th)}),Pa.timelines=yP,a.append(rr,Pa.timelines);var GW={instruction:Pa,player:Nn,element:rr};u.push(GW),Pa.queriedElements.forEach(function(th){return Pu(d,th,[]).push(Nn)}),Pa.preStyleProps.forEach(function(th,bP){if(th.size){var dC=h.get(bP);dC||h.set(bP,dC=new Set),th.forEach(function(N$e,zW){return dC.add(zW)})}}),Pa.postStyleProps.forEach(function(th,bP){var dC=g.get(bP);dC||g.set(bP,dC=new Set),th.forEach(function(N$e,zW){return dC.add(zW)})})}})}if($e.length){var Bt=[];$e.forEach(function(bn){Bt.push(function XR(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Bt)}var Ht=new Map,Pt=new Map;u.forEach(function(bn){var Nn=bn.element;a.has(Nn)&&(Pt.set(Nn,Nn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,Ht))}),s.forEach(function(bn){var Nn=bn.element;o._getPreviousPlayers(Nn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(gr){Pu(Ht,Nn,[]).push(gr),gr.destroy()})});var Tn=Se.filter(function(bn){return kt(bn,h,g)}),jn=new Map;O(jn,this.driver,Ee,g,Zt.l3).forEach(function(bn){kt(bn,h,g)&&Tn.push(bn)});var ar=new Map;q.forEach(function(bn,Nn){O(ar,o.driver,new Set(bn),h,Zt.k1)}),Tn.forEach(function(bn){var Nn,rr,gr=jn.get(bn),eo=ar.get(bn);jn.set(bn,new Map([].concat((0,cn.Z)(Array.from(null!==(Nn=null==gr?void 0:gr.entries())&&void 0!==Nn?Nn:[])),(0,cn.Z)(Array.from(null!==(rr=null==eo?void 0:eo.entries())&&void 0!==rr?rr:[])))))});var kr=[],_r=[],Wr={};u.forEach(function(bn){var Nn=bn.element,rr=bn.player,gr=bn.instruction;if(a.has(Nn)){if(y.has(Nn))return rr.onDestroy(function(){return Lu(Nn,gr.toStyles)}),rr.disabled=!0,rr.overrideTotalTime(gr.totalTime),void s.push(rr);var eo=Wr;if(Pt.size>1){for(var Xu=Nn,Dv=[];Xu=Xu.parentNode;){var Av=Pt.get(Xu);if(Av){eo=Av;break}Dv.push(Xu)}Dv.forEach(function(Pa){return Pt.set(Pa,eo)})}var Qm=o._buildAnimation(rr.namespaceId,gr,Ht,l,ar,jn);if(rr.setRealPlayer(Qm),eo===Wr)kr.push(rr);else{var cC=o.playersByElement.get(eo);cC&&cC.length&&(rr.parentPlayer=Vh(cC)),s.push(rr)}}else il(Nn,gr.fromStyles),rr.onDestroy(function(){return Lu(Nn,gr.toStyles)}),_r.push(rr),y.has(Nn)&&s.push(rr)}),_r.forEach(function(bn){var Nn=l.get(bn.element);if(Nn&&Nn.length){var rr=Vh(Nn);bn.setRealPlayer(rr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var Hr=0;Hr<Se.length;Hr++){var Kr=Se[Hr],Ho=Kr[Nu];if(oe(Kr,EE),!Ho||!Ho.hasAnimation){var tr=[];if(d.size){var yr=d.get(Kr);yr&&yr.length&&tr.push.apply(tr,(0,cn.Z)(yr));for(var Mn=this.driver.query(Kr,Hy,!0),gn=0;gn<Mn.length;gn++){var nr=d.get(Mn[gn]);nr&&nr.length&&tr.push.apply(tr,(0,cn.Z)(nr))}}var un=tr.filter(function(bn){return!bn.destroyed});un.length?ve(this,Kr,un):this.processLeaveNode(Kr)}}return Se.length=0,kr.forEach(function(bn){o.players.push(bn),bn.onDone(function(){bn.destroy();var Nn=o.players.indexOf(bn);o.players.splice(Nn,1)}),bn.play()}),kr}},{key:"elementContainsData",value:function(e,i){var o=!1,a=i[Nu];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(i)&&(o=!0),this.playersByQueriedElement.has(i)&&(o=!0),this.statesByElement.has(i)&&(o=!0),this._fetchNamespace(e).elementContainsData(i)||o}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,i,o,a,s){var l=[];if(i){var u=this.playersByQueriedElement.get(e);u&&(l=u)}else{var d=this.playersByElement.get(e);if(d){var h=!s||s==W1;d.forEach(function(g){g.queued||!h&&g.triggerName!=a||l.push(g)})}}return(o||a)&&(l=l.filter(function(g){return!(o&&o!=g.namespaceId||a&&a!=g.triggerName)})),l}},{key:"_beforeAnimationBuild",value:function(e,i,o){var g,a=this,s=i.triggerName,l=i.element,u=i.isRemovalTransition?void 0:e,d=i.isRemovalTransition?void 0:s,h=(0,An.Z)(i.timelines);try{var y=function(){var q=g.value.element,re=q!==l,ae=Pu(o,q,[]);a._getPreviousPlayers(q,re,u,d,i.toState).forEach(function(Ce){var Ee=Ce.getRealPlayer();Ee.beforeDestroy&&Ee.beforeDestroy(),Ce.destroy(),ae.push(Ce)})};for(h.s();!(g=h.n()).done;)y()}catch(L){h.e(L)}finally{h.f()}il(l,i.fromStyles)}},{key:"_buildAnimation",value:function(e,i,o,a,s,l){var u=this,d=i.triggerName,h=i.element,g=[],y=new Set,L=new Set,z=i.timelines.map(function(re){var ae=re.element;y.add(ae);var Se=ae[Nu];if(Se&&Se.removedBeforeQueried)return new Zt.ZN(re.duration,re.delay);var Ce=ae!==h,Ee=function He(n){var r=[];return nt(n,r),r}((o.get(ae)||ZY).map(function(bt){return bt.getRealPlayer()})).filter(function(bt){var $e=bt;return!!$e.element&&$e.element===ae}),Ke=s.get(ae),st=l.get(ae),De=P1(u.driver,u._normalizer,ae,re.keyframes,Ke,st),it=u._buildPlayer(re,De,Ee);if(re.subTimeline&&a&&L.add(ae),Ce){var ft=new ML(e,d,ae);ft.setRealPlayer(it),g.push(ft)}return it});g.forEach(function(re){Pu(u.playersByQueriedElement,re.element,[]).push(re),re.onDone(function(){return function c(n,r,e){var i=n.get(r);if(i){if(i.length){var o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(r)}return i}(u.playersByQueriedElement,re.element,re)})}),y.forEach(function(re){return ee(re,iL)});var q=Vh(z);return q.onDestroy(function(){y.forEach(function(re){return oe(re,iL)}),Lu(h,i.toStyles)}),L.forEach(function(re){Pu(a,re,[]).push(q)}),q}},{key:"_buildPlayer",value:function(e,i,o){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Zt.ZN(e.duration,e.delay)}}]),n}(),ML=function(){function n(r,e,i){(0,B.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Zt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,U.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return R1(e,o,void 0,a)})}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var i=this,o=this._player;o.triggerCallback&&e.onStart(function(){return o.triggerCallback("start")}),e.onDone(function(){return i.finish()}),e.onDestroy(function(){return i.destroy()})}},{key:"_queueEvent",value:function(e,i){Pu(this._queuedCallbacks,e,[]).push(i)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var i=this._player;i.triggerCallback&&i.triggerCallback(e)}}]),n}();function f(n){return null!=n?n:null}function p(n){return n&&1===n.nodeType}function C(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function O(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(C(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var y=r.computeStyle(d,g,o);h.set(g,y),(!y||0==y.length)&&(d[Nu]=NY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return C(u,a[l++])}),s}function Y(n,r){var e=new Map;if(n.forEach(function(l){return e.set(l,[])}),0==r.length)return e;var o=new Set(r),a=new Map;function s(l){if(!l)return 1;var u=a.get(l);if(u)return u;var d=l.parentNode;return u=e.has(d)?d:o.has(d)?1:s(d),a.set(l,u),u}return r.forEach(function(l){var u=s(l);1!==u&&e.get(u).push(l)}),e}function ee(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function oe(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function ve(n,r,e){Vh(e).onDone(function(){return n.processLeaveNode(r)})}function nt(n,r){for(var e=0;e<n.length;e++){var i=n[e];i instanceof Zt.ZE?nt(i.players,r):r.push(i)}}function dt(n,r){var e=Object.keys(n),i=Object.keys(r);if(e.length!=i.length)return!1;for(var o=0;o<e.length;o++){var a=e[o];if(!r.hasOwnProperty(a)||n[a]!==r[a])return!1}return!0}function kt(n,r,e){var i=e.get(n);if(!i)return!1;var o=r.get(n);return o?i.forEach(function(a){return o.add(a)}):r.set(n,i),e.delete(n),!0}var Xt=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(a,s){},this._transitionEngine=new FY(r,e,i),this._timelineEngine=new PY(r,e,i),this._transitionEngine.onRemovalComplete=function(a,s){return o.onRemovalComplete(a,s)}}return(0,U.Z)(n,[{key:"registerTrigger",value:function(e,i,o,a,s){var l=e+"-"+a,u=this._triggerCache[l];if(!u){var d=[],h=[],g=G1(this._driver,s,d,h);if(d.length)throw function RU(n,r){return new t.vHH(3404,!1)}();h.length,u=function IY(n,r,e){return new CL(n,r,e)}(a,g,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(i,a,u)}},{key:"register",value:function(e,i){this._transitionEngine.register(e,i)}},{key:"destroy",value:function(e,i){this._transitionEngine.destroy(e,i)}},{key:"onInsert",value:function(e,i,o,a){this._transitionEngine.insertNode(e,i,o,a)}},{key:"onRemove",value:function(e,i,o,a){this._transitionEngine.removeNode(e,i,a||!1,o)}},{key:"disableAnimations",value:function(e,i){this._transitionEngine.markElementAsDisabled(e,i)}},{key:"process",value:function(e,i,o,a){if("@"==o.charAt(0)){var s=eL(o),l=(0,Yn.Z)(s,2),u=l[0],d=l[1],h=a;this._timelineEngine.command(u,i,d,h)}else this._transitionEngine.trigger(e,i,o,a)}},{key:"listen",value:function(e,i,o,a,s){if("@"==o.charAt(0)){var l=eL(o),u=(0,Yn.Z)(l,2),d=u[0],h=u[1];return this._timelineEngine.listen(d,i,h,s)}return this._transitionEngine.listen(e,i,o,a,s)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),n}();function _n(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Jn(r[0]),r.length>1&&(i=Jn(r[r.length-1]))):r instanceof Map&&(e=Jn(r)),e||i?new Fn(n,e,i):null}var Fn=function(){function n(r,e,i){(0,B.Z)(this,n),this._element=r,this._startStyles=e,this._endStyles=i,this._state=0;var o=n.initialStylesByElement.get(r);o||n.initialStylesByElement.set(r,o=new Map),this._initialStyles=o}return(0,U.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Lu(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Lu(this._element,this._initialStyles),this._endStyles&&(Lu(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(il(this._element,this._endStyles),this._endStyles=null),Lu(this._element,this._initialStyles),this._state=3)}}]),n}();function Jn(n){var r=null;return n.forEach(function(e,i){(function er(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}Fn.initialStylesByElement=new WeakMap;var Cn=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.element=r,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return(0,U.Z)(n,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_convertKeyframesToObject",value:function(e){var i=[];return e.forEach(function(o){i.push(Object.fromEntries(o))}),i}},{key:"_triggerWebAnimation",value:function(e,i,o){return e.animate(this._convertKeyframesToObject(i),o)}},{key:"onStart",value:function(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{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(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*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 e=this,i=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(a,s){"offset"!==s&&i.set(s,e._finished?a:H1(e.element,s))});this.currentSnapshot=i}},{key:"triggerCallback",value:function(e){var i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(function(o){return o()}),i.length=0}}]),n}(),Or=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"validateStyleProperty",value:function(e){return!0}},{key:"validateAnimatableStyleProperty",value:function(e){return!0}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return rL(e,i)}},{key:"getParentElement",value:function(e){return ME(e)}},{key:"query",value:function(e,i,o){return SE(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return window.getComputedStyle(e)[i]}},{key:"animate",value:function(e,i,o,a,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",d={duration:o,delay:a,fill:u};s&&(d.easing=s);var h=new Map,g=l.filter(function(z){return z instanceof Cn});WU(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var y=Kh(i).map(function(z){return Ru(z)}),L=_n(e,y=cL(e,y,h));return new Cn(e,y,d,L)}}]),n}(),ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;(0,B.Z)(this,e),(a=r.call(this))._nextAnimationId=0;var s={id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}};return a._renderer=i.createRenderer(o.body,s),a}return(0,U.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Zt.vP)(o):o;return Ns(this._renderer,null,a,"register",[s]),new Ei(a,this._renderer)}}]),e}(Zt._j);ei.\u0275fac=function(r){return new(r||ei)(t.LFG(t.FYo),t.LFG(le.K0))},ei.\u0275prov=t.Yz7({token:ei,factory:ei.\u0275fac});var Ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,U.Z)(e,[{key:"create",value:function(o,a){return new ms(this._id,o,a||{},this._renderer)}}]),e}(Zt.LC),ms=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return(0,U.Z)(n,[{key:"_listen",value:function(e,i){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),i)}},{key:"_command",value:function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Ns(this._renderer,this.element,this.id,e,o)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,i;return null!==(i=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==i?i:0}}]),n}();function Ns(n,r,e,i,o){return n.setProperty(r,"@@".concat(e,":").concat(i),o)}var Bd="@.disabled",Kc=function(){function n(r,e,i){(0,B.Z)(this,n),this.delegate=r,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(o,a){var s=null==a?void 0:a.parentNode(o);s&&a.removeChild(s,o)}}return(0,U.Z)(n,[{key:"createRenderer",value:function(e,i){var o=this,s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){var l=this._rendererCache.get(s);if(!l){l=new cg("",s,this.engine,function(){return o._rendererCache.delete(s)}),this._rendererCache.set(s,l)}return l}var d=i.id,h=i.id+"-"+this._currentId;this._currentId++,this.engine.register(h,e);return i.data.animation.forEach(function L(z){Array.isArray(z)?z.forEach(L):o.engine.registerTrigger(d,h,e,z.name,z)}),new qy(this,h,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,i,o){var a=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return i(o)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(s){var l=(0,Yn.Z)(s,2);(0,l[0])(l[1])}),a._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),n}();Kc.\u0275fac=function(r){return new(r||Kc)(t.LFG(t.FYo),t.LFG(Xt),t.LFG(t.R0b))},Kc.\u0275prov=t.Yz7({token:Kc,factory:Kc.\u0275fac});var cg=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.namespaceId=r,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?function(a){return e.destroyNode(a)}:null}return(0,U.Z)(n,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(e=this._onDestroy)||void 0===e||e.call(this)}},{key:"createElement",value:function(e,i){return this.delegate.createElement(e,i)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}},{key:"insertBefore",value:function(e,i,o){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,i,o),this.engine.onInsert(this.namespaceId,i,e,a)}},{key:"removeChild",value:function(e,i,o){this.engine.onRemove(this.namespaceId,i,this.delegate,o)}},{key:"selectRootElement",value:function(e,i){return this.delegate.selectRootElement(e,i)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,i,o,a){this.delegate.setAttribute(e,i,o,a)}},{key:"removeAttribute",value:function(e,i,o){this.delegate.removeAttribute(e,i,o)}},{key:"addClass",value:function(e,i){this.delegate.addClass(e,i)}},{key:"removeClass",value:function(e,i){this.delegate.removeClass(e,i)}},{key:"setStyle",value:function(e,i,o,a){this.delegate.setStyle(e,i,o,a)}},{key:"removeStyle",value:function(e,i,o){this.delegate.removeStyle(e,i,o)}},{key:"setProperty",value:function(e,i,o){"@"==i.charAt(0)&&i==Bd?this.disableAnimations(e,!!o):this.delegate.setProperty(e,i,o)}},{key:"setValue",value:function(e,i){this.delegate.setValue(e,i)}},{key:"listen",value:function(e,i,o){return this.delegate.listen(e,i,o)}},{key:"disableAnimations",value:function(e,i){this.engine.disableAnimations(e,i)}}]),n}(),qy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,U.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Bd?(s=void 0===s||!!s,this.disableAnimations(o,s)):this.engine.process(this.namespaceId,o,a.slice(1),s):this.delegate.setProperty(o,a,s)}},{key:"listen",value:function(o,a,s){var l=this;if("@"==a.charAt(0)){var u=function dg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o),d=a.slice(1),h="";if("@"!=d.charAt(0)){var g=function Jy(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),y=(0,Yn.Z)(g,2);d=y[0],h=y[1]}return this.engine.listen(this.namespaceId,u,d,h,function(L){var z=L._data||-1;l.factory.scheduleListenerCallback(z,s,L)})}return this.delegate.listen(o,a,s)}}]),e}(cg);var ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){return(0,B.Z)(this,e),r.call(this,i.body,o,a)}return(0,U.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Xt);ap.\u0275fac=function(r){return new(r||ap)(t.LFG(le.K0),t.LFG(Tl),t.LFG(ZE),t.LFG(t.z2F))},ap.\u0275prov=t.Yz7({token:ap,factory:ap.\u0275fac});var UY=[{provide:Zt._j,useClass:ei},{provide:ZE,useFactory:function Mue(){return new i7}},{provide:Xt,useClass:ap},{provide:t.FYo,useFactory:function Sue(n,r,e){return new Kc(n,r,e)},deps:[Ye,Xt,t.R0b]}],d7=[{provide:Tl,useFactory:function(){return new Or}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(UY),f7=[{provide:Tl,useClass:ag},{provide:t.QbO,useValue:"NoopAnimations"}].concat(UY),V1=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?f7:d7}}}]),n}();V1.\u0275fac=function(r){return new(r||V1)},V1.\u0275mod=t.oAB({type:V1}),V1.\u0275inj=t.cJS({providers:d7,imports:[na]});var FE=(0,U.Z)(function n(){(0,B.Z)(this,n)});FE.\u0275fac=function(r){return new(r||FE)},FE.\u0275mod=t.oAB({type:FE}),FE.\u0275inj=t.cJS({providers:f7,imports:[na]});var HY=m(839),Y1=m(6053),_s=m(1709),K1=m(8117),p7=m(2821),Eue=m(3906),jY=m(519);function h7(n,r){return n=function xue(n,r){return void 0===n?void 0===r?n:r:n}(n,r),"function"==typeof n?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var m7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},GY=function(r){return null!=r&&"object"===(void 0===r?"undefined":m7(r))&&1===r.nodeType&&"object"===m7(r.style)&&"object"===m7(r.ownerDocument)};function zY(n,r){if(r=g7(r,!0),!GY(r))return-1;for(var e=0;e<n.length;e++)if(n[e]===r)return e;return-1}function _7(n,r){return-1!==zY(n,r)}function Due(n,r){for(var e=0;e<r.length;e++)_7(n,r[e])||n.push(r[e]);return r}function Aue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Due(n,e=e.map(g7))}function Oue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(g7).reduce(function(o,a){var s=zY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function g7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!GY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function WY(n){if(n===window)return function Pue(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,v7=void 0;"function"!=typeof Object.create?(r=function(){},v7=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");r.prototype=e||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===e&&(o.__proto__=null),o}):v7=Object.create;var Lue=v7,Qy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function y7(n,r){r=r||{};for(var e=Lue(n),i=0;i<Qy.length;i++)void 0!==r[Qy[i]]&&(e[Qy[i]]=r[Qy[i]]);return e}function b7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var UE=["webkit","moz","ms","o"],HE=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=UE.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[UE[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-e),s=window.setTimeout(function(){return i(o+a)},a);return e=o+a,s}}return window.requestAnimationFrame.bind(window)}(),q1=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=UE.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[UE[n]+"CancelAnimationFrame"]||window[UE[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function Nue(n,r){void 0===r&&(r={});var e=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},l=function Iue(n,r){var e=h7((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,e(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,l=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),u=function Zue(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(a){for(var s=0;s<Qy.length;s++)r[Qy[s]]=a[Qy[s]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function o(){n&&n.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var d=new MouseEvent("mousemove",y7(r,l));return b7(d,u),s.dispatchEvent(d)}:"function"==typeof document.createEvent?function(s,l,u){var d=y7(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget),b7(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var d=document.createEventObject(),h=y7(r,l);for(var g in h)d[g]=h[g];return b7(d,u),s.dispatchEvent(d)}:void 0}}(),d=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=h7(r.autoScroll),this.syncMove=h7(r.syncMove,!1),this.destroy=function($e){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",re,!1),window.removeEventListener("touchend",re,!1),window.removeEventListener("pointerup",re,!1),window.removeEventListener("mouseleave",Se,!1),window.removeEventListener("mousemove",Ke,!1),window.removeEventListener("touchmove",Ke,!1),window.removeEventListener("scroll",z,!0),n=[],$e&&ae()},this.add=function(){for(var $e=[],Pe=arguments.length;Pe--;)$e[Pe]=arguments[Pe];return Aue.apply(void 0,[n].concat($e)),this},this.remove=function(){for(var $e=[],Pe=arguments.length;Pe--;)$e[Pe]=arguments[Pe];return Oue.apply(void 0,[n].concat($e))};var g,$e,h=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),$e=n,n=[],$e.forEach(function(Pe){Pe===window?h=window:e.add(Pe)}),Object.defineProperties(this,{down:{get:function(){return d}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var L,y=null;function z($e){for(var Pe=0;Pe<n.length;Pe++)if(n[Pe]===$e.target){o=!0;break}o&&HE(function(){return o=!1})}function q(){d=!0}function re(){d=!1,ae()}function ae(){q1(L),q1(g)}function Se(){d=!1}function Ee(){for(var $e=null,Pe=0;Pe<n.length;Pe++)VY(s,n[Pe])&&($e=n[Pe]);return $e}function Ke($e){if(e.autoScroll()&&!$e.dispatched){var Pe=$e.target,ct=document.body;y&&!VY(s,y)&&(e.scrollWhenOutside||(y=null)),Pe&&Pe.parentNode===ct?Pe=Ee():(Pe=function Ce($e){if(!$e)return null;if(y===$e||_7(n,$e))return $e;for(;$e=$e.parentNode;)if(_7(n,$e))return $e;return null}(Pe),Pe||(Pe=Ee())),Pe&&Pe!==y&&(y=Pe),h&&(q1(g),g=HE(st)),y&&(q1(L),L=HE(De))}}function st(){it(h),q1(g),g=HE(st)}function De(){!y||(it(y),q1(L),L=HE(De))}function it($e){var ct,Bt,Pe=WY($e);ct=s.x<Pe.left+e.margin.left?Math.floor(Math.max(-1,(s.x-Pe.left)/e.margin.left-1)*e.maxSpeed.left):s.x>Pe.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Pe.right)/e.margin.right+1)*e.maxSpeed.right):0,Bt=s.y<Pe.top+e.margin.top?Math.floor(Math.max(-1,(s.y-Pe.top)/e.margin.top-1)*e.maxSpeed.top):s.y>Pe.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Pe.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch($e,{pageX:s.pageX+ct,pageY:s.pageY+Bt,clientX:s.x+ct,clientY:s.y+Bt}),setTimeout(function(){Bt&&function ft($e,Pe){$e===window?window.scrollTo($e.pageXOffset,$e.pageYOffset+Pe):$e.scrollTop+=Pe}($e,Bt),ct&&function bt($e,Pe){$e===window?window.scrollTo($e.pageXOffset+Pe,$e.pageYOffset):$e.scrollLeft+=Pe}($e,ct)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",re,!1),window.addEventListener("touchend",re,!1),window.addEventListener("pointerup",re,!1),window.addEventListener("mousemove",Ke,!1),window.addEventListener("touchmove",Ke,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function VY(n,r,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function Rue(n,r){var e=WY(r);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,r)}var Fue=function Bue(n,r){return new Nue(n,r)};function C7(n,r,e){e&&e.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}function SL(n,r,e){e&&e.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}var Xy=(0,U.Z)(function n(){(0,B.Z)(this,n),this.currentDrag=new On.xQ});Xy.\u0275fac=function(r){return new(r||Xy)},Xy.\u0275prov=t.Yz7({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var J1=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.elementRef=r});J1.\u0275fac=function(r){return new(r||J1)(t.Y36(t.SBq))},J1.\u0275dir=t.lG2({type:J1,selectors:[["","mwlDraggableScrollContainer",""]]});var jE=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.element=r,this.renderer=e,this.draggableHelper=i,this.zone=o,this.vcr=a,this.scrollContainer=s,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new t.vpe,this.dragStart=new t.vpe,this.ghostElementCreated=new t.vpe,this.dragging=new t.vpe,this.dragEnd=new t.vpe,this.pointerDown$=new On.xQ,this.pointerMove$=new On.xQ,this.pointerUp$=new On.xQ,this.eventListenerSubscriptions={},this.destroy$=new On.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,$r.h)(function(){return e.canDrag()}),(0,_s.zg)(function(o){o.event.stopPropagation&&!e.scrollContainer&&o.event.stopPropagation();var a=e.renderer.createElement("style");e.renderer.setAttribute(a,"type","text/css"),e.renderer.appendChild(a,e.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){e.document.head.appendChild(a)});var s=e.getScrollPosition(),l=new oo.y(function(z){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(re){return z.next(re)})}).pipe((0,Oo.O)(s),(0,$n.U)(function(){return e.getScrollPosition()})),u=new On.xQ,d=new HY.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,Gi.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,K1.B)()),g=(0,Y1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Yn.Z)(z,2),re=q[0],ae=q[1];return{currentDrag$:u,transformX:re.clientX-o.clientX,transformY:re.clientY-o.clientY,clientX:re.clientX,clientY:re.clientY,scrollLeft:ae.left,scrollTop:ae.top,target:re.event.target}}),(0,$n.U)(function(z){return e.dragSnapGrid.x&&(z.transformX=Math.round(z.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(z.transformY=Math.round(z.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),z}),(0,$n.U)(function(z){return e.dragAxis.x||(z.transformX=0),e.dragAxis.y||(z.transformY=0),z}),(0,$n.U)(function(z){var q=z.scrollLeft-s.left,re=z.scrollTop-s.top;return Object.assign(Object.assign({},z),{x:z.transformX+q,y:z.transformY+re})}),(0,$r.h)(function(z){var q=z.x,re=z.y,ae=z.transformX,Se=z.transformY;return!e.validateDrag||e.validateDrag({x:q,y:re,transform:{x:ae,y:Se}})}),(0,Ir.R)(h),(0,K1.B)()),y=g.pipe((0,Ri.q)(1),(0,K1.B)()),L=g.pipe((0,p7.h)(1),(0,K1.B)());return y.subscribe(function(z){var q=z.clientX,re=z.clientY,ae=z.x,Se=z.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:d})}),e.scroller=Fue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),C7(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Ce=e.element.nativeElement.getBoundingClientRect(),Ee=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Ee):e.element.nativeElement.parentNode.insertBefore(Ee,e.element.nativeElement.nextSibling),e.ghostElement=Ee,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Ee,{position:"fixed",top:"".concat(Ce.top,"px"),left:"".concat(Ce.left,"px"),width:"".concat(Ce.width,"px"),height:"".concat(Ce.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var Ke=e.vcr.createEmbeddedView(e.ghostElementTemplate);Ee.innerHTML="",Ke.rootNodes.filter(function(st){return st instanceof Node}).forEach(function(st){Ee.appendChild(st)}),L.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ke))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:Ee})}),L.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),L.pipe((0,_s.zg)(function(z){var q=d.pipe((0,Eue.Q)(),(0,Ri.q)(1),(0,$n.U)(function(re){return Object.assign(Object.assign({},z),{dragCancelled:re>0})}));return d.complete(),q})).subscribe(function(z){var q=z.x,re=z.y,ae=z.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:re,dragCancelled:ae})}),SL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,Gi.T)(h,L).pipe((0,Ri.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,K1.B)());(0,Gi.T)(i.pipe((0,Ri.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,jY.G)())).pipe((0,$r.h)(function(o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,$n.U)(function(o){var a=(0,Yn.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,d=o.clientY,h=o.transformX,g=o.transformY,y=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var L="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:L,"-webkit-transform":L,"-ms-transform":L,"-moz-transform":L,"-o-transform":L})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:y})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,i=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;i&&!o?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(a){e.onMouseDown(a)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(a){e.onMouseUp(a)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(a){e.onTouchStart(a)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!i&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var i=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){i.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var o,a,s,i=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),a=!1,s=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var l=(0,Xf.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,Xf.R)(this.document,"touchmove",{passive:!1}).subscribe(function(d){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,d,o)),(!i.touchStartLongPress||!s||a)&&(d.preventDefault(),i.pointerMove$.next({event:d,clientX:d.targetTouches[0].clientX,clientY:d.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){l.unsubscribe(),u.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach(function(i){e.eventListenerSubscriptions[i](),delete e.eventListenerSubscriptions[i]})}},{key:"setElementStyles",value:function(e,i){var o=this;Object.keys(i).forEach(function(a){o.renderer.setStyle(e,a,i[a])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,i,o){var a=this.getScrollPosition(),s_top=Math.abs(a.top-o.top),s_left=Math.abs(a.left-o.left),d=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-s_left+(Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-s_top),h=this.touchStartLongPress;return(d>h.delta||s_top>0||s_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=h.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var e=this.getScrollElement(),i=e.scrollWidth>e.clientWidth,o=e.scrollHeight>e.clientHeight;return i||o}}]),n}();function YY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}jE.\u0275fac=function(r){return new(r||jE)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Xy),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(J1,8),t.Y36(le.K0))},jE.\u0275dir=t.lG2({type:jE,selectors:[["","mwlDraggable",""]],inputs:{dropData:"dropData",dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",validateDrag:"validateDrag",dragCursor:"dragCursor",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress",autoScroll:"autoScroll"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[t.TTD]});var EL=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new t.vpe,this.dragLeave=new t.vpe,this.dragOver=new t.vpe,this.drop=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){C7(e.renderer,e.element,e.dragActiveClass);var s,d,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,$n.U)(function(h){var g=h.clientX,y=h.clientY,L=h.dropData,z=h.target;s={clientX:g,clientY:y,dropData:L,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=YY(g,y,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:y,target:z,dropData:L});return o.scrollContainerRect?q&&re&&YY(g,y,o.scrollContainerRect):q&&re})),u=l.pipe((0,ts.x)());u.pipe((0,$r.h)(function(h){return h})).subscribe(function(){d=!0,C7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,$r.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,jY.G)(),(0,$r.h)(function(h){var g=(0,Yn.Z)(h,2),y=g[0],L=g[1];return y&&!L})).subscribe(function(){d=!1,SL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),SL(e.renderer,e.element,e.dragActiveClass),d&&(SL(e.renderer,e.element,e.dragOverClass),e.drop.observers.length>0&&e.zone.run(function(){e.drop.next(s)}))}})})}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),n}();EL.\u0275fac=function(r){return new(r||EL)(t.Y36(t.SBq),t.Y36(Xy),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(J1,8))},EL.\u0275dir=t.lG2({type:EL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Q1=(0,U.Z)(function n(){(0,B.Z)(this,n)});Q1.\u0275fac=function(r){return new(r||Q1)},Q1.\u0275mod=t.oAB({type:Q1}),Q1.\u0275inj=t.cJS({});var KY=m(2072);function $y(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function w7(n){return 1===n.length&&(n=function Uue(n){return function(r,e){return $y(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;n(e[s],i)<0?o=s+1:a=s}return o},right:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var qY=w7($y),JY=qY.right,Hue=qY.left,X1=JY;function jue(n,r){null==r&&(r=QY);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=n[++e]);return a}function QY(n,r){return[n,r]}function Gue(n,r,e){var s,l,u,d,i=n.length,o=r.length,a=new Array(i*o);for(null==e&&(e=QY),s=u=0;s<i;++s)for(d=n[s],l=0;l<o;++l,++u)a[u]=e(d,r[l]);return a}function zue(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function fg(n){return null===n?NaN:+n}function XY(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=fg(n[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=fg(r(n[o],o,n)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function $Y(n,r){var e=XY(n,r);return e&&Math.sqrt(e)}function k7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var eK=Array.prototype,Wue=eK.slice,Vue=eK.map;function xL(n){return function(){return n}}function Yue(n){return n}function mc(n,r,e){n=+n,r=+r,e=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/e)),a=new Array(o);++i<o;)a[i]=n+i*e;return a}var T7=Math.sqrt(50),M7=Math.sqrt(10),S7=Math.sqrt(2);function E7(n,r,e){var i,a,s,l,o=-1;if(e=+e,(n=+n)===(r=+r)&&e>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(l=GE(n,r,e))||!isFinite(l))return[];if(l>0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*l;else for(n=Math.floor(n*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/l;return i&&s.reverse(),s}function GE(n,r,e){var i=(r-n)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=T7?10:a>=M7?5:a>=S7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=T7?10:a>=M7?5:a>=S7?2:1)}function e0(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=T7?o*=10:a>=M7?o*=5:a>=S7&&(o*=2),r<n?-o:o}function x7(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Kue(){var n=Yue,r=k7,e=x7;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=n(o[a],a,o);var d=r(u),h=d[0],g=d[1],y=e(u,h,g);Array.isArray(y)||(y=e0(h,g,y),y=mc(Math.ceil(h/y)*y,g,y));for(var L=y.length;y[0]<=h;)y.shift(),--L;for(;y[L-1]>g;)y.pop(),--L;var q,z=new Array(L+1);for(a=0;a<=L;++a)(q=z[a]=[]).x0=a>0?y[a-1]:h,q.x1=a<L?y[a]:g;for(a=0;a<s;++a)h<=(l=u[a])&&l<=g&&z[X1(y,l,0,L)].push(o[a]);return z}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:xL(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:xL([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?xL(Wue.call(o)):xL(o),i):e},i}function zE(n,r,e){if(null==e&&(e=fg),i=n.length){if((r=+r)<=0||i<2)return+e(n[0],0,n);if(r>=1)return+e(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+e(n[a],a,n);return s+(+e(n[a+1],a+1,n)-s)*(o-a)}}function que(n,r,e){return n=Vue.call(n,fg).sort($y),Math.ceil((e-r)/(2*(zE(n,.75)-zE(n,.25))*Math.pow(n.length,-1/3)))}function Jue(n,r,e){return Math.ceil((e-r)/(3.5*$Y(n)*Math.pow(n.length,-1/3)))}function tK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function Que(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=fg(n[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=fg(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function Xue(n,r){var o,e=n.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=fg(n[i]))||a.push(o);else for(;++i<e;)isNaN(o=fg(r(n[i],i,n)))||a.push(o);return zE(a.sort($y),.5)}function D7(n){for(var e,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function nK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function $ue(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function ece(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=$y);++i<e;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function tce(n,r,e){for(var o,a,i=(null==e?n.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function nce(n,r){var o,e=n.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+n[i])&&(a+=o);else for(;++i<e;)(o=+r(n[i],i,n))&&(a+=o);return a}function rK(n){if(!(a=n.length))return[];for(var r=-1,e=nK(n,rce),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function rce(n){return n.length}function ice(){return rK(arguments)}var A7=Array.prototype.slice;function oce(n){return n}function ace(n){return"translate("+(n+.5)+",0)"}function sce(n){return"translate(0,"+(n+.5)+")"}function lce(n){return function(r){return+n(r)}}function uce(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(e){return+n(e)+r}}function cce(){return!this.__axis}function OL(n,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===n||4===n?-1:1,d=4===n||2===n?"x":"y",h=1===n||3===n?ace:sce;function g(y){var L=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,z=null==o?r.tickFormat?r.tickFormat.apply(r,e):oce:o,q=Math.max(a,0)+l,re=r.range(),ae=+re[0]+.5,Se=+re[re.length-1]+.5,Ce=(r.bandwidth?uce:lce)(r.copy()),Ee=y.selection?y.selection():y,Ke=Ee.selectAll(".domain").data([null]),st=Ee.selectAll(".tick").data(L,r).order(),De=st.exit(),it=st.enter().append("g").attr("class","tick"),ft=st.select("line"),bt=st.select("text");Ke=Ke.merge(Ke.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),st=st.merge(it),ft=ft.merge(it.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),bt=bt.merge(it.append("text").attr("fill","currentColor").attr(d,u*q).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),y!==Ee&&(Ke=Ke.transition(y),st=st.transition(y),ft=ft.transition(y),bt=bt.transition(y),De=De.transition(y).attr("opacity",1e-6).attr("transform",function($e){return isFinite($e=Ce($e))?h($e):this.getAttribute("transform")}),it.attr("opacity",1e-6).attr("transform",function($e){var Pe=this.parentNode.__axis;return h(Pe&&isFinite(Pe=Pe($e))?Pe:Ce($e))})),De.remove(),Ke.attr("d",4===n||2==n?s?"M"+u*s+","+ae+"H0.5V"+Se+"H"+u*s:"M0.5,"+ae+"V"+Se:s?"M"+ae+","+u*s+"V0.5H"+Se+"V"+u*s:"M"+ae+",0.5H"+Se),st.attr("opacity",1).attr("transform",function($e){return h(Ce($e))}),ft.attr(d+"2",u*a),bt.attr(d,u*q).text(z),Ee.filter(cce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),Ee.each(function(){this.__axis=Ce})}return g.scale=function(y){return arguments.length?(r=y,g):r},g.ticks=function(){return e=A7.call(arguments),g},g.tickArguments=function(y){return arguments.length?(e=null==y?[]:A7.call(y),g):e.slice()},g.tickValues=function(y){return arguments.length?(i=null==y?null:A7.call(y),g):i&&i.slice()},g.tickFormat=function(y){return arguments.length?(o=y,g):o},g.tickSize=function(y){return arguments.length?(a=s=+y,g):a},g.tickSizeInner=function(y){return arguments.length?(a=+y,g):a},g.tickSizeOuter=function(y){return arguments.length?(s=+y,g):s},g.tickPadding=function(y){return arguments.length?(l=+y,g):l},g}function dce(n){return OL(1,n)}function fce(n){return OL(2,n)}function pce(n){return OL(3,n)}function hce(n){return OL(4,n)}var mce={value:function(){}};function oK(){for(var i,n=0,r=arguments.length,e={};n<r;++n){if(!(i=arguments[n]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new IL(e)}function IL(n){this._=n}function _ce(n,r){return n.trim().split(/^|\s+/).map(function(e){var i="",o=e.indexOf(".");if(o>=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function gce(n,r){for(var o,e=0,i=n.length;e<i;++e)if((o=n[e]).name===r)return o.value}function aK(n,r,e){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=mce,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=e&&n.push({name:r,value:e}),n}IL.prototype=oK.prototype={constructor:IL,on:function(r,e){var a,i=this._,o=_ce(r+"",i),s=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<l;)if(a=(r=o[s]).type)i[a]=aK(i[a],r.name,e);else if(null==e)for(a in i)i[a]=aK(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=gce(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new IL(r)},call:function(r,e){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),o=0;o<a;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(o=0,a=(s=this._[r]).length;o<a;++o)s[o].value.apply(e,i)},apply:function(r,e,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var o=this._[r],a=0,s=o.length;a<s;++a)o[a].value.apply(e,i)}};var t0=oK;function vce(){}function I7(n){return null==n?vce:function(){return this.querySelector(n)}}function bce(){return[]}function sK(n){return null==n?bce:function(){return this.querySelectorAll(n)}}function lK(n){return function(){return this.matches(n)}}function uK(n){return new Array(n.length)}function PL(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}PL.prototype={constructor:PL,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Mce(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new PL(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Sce(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new PL(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function Pce(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var P7="http://www.w3.org/1999/xhtml",dK={svg:"http://www.w3.org/2000/svg",xhtml:P7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function RL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),dK.hasOwnProperty(r)?{space:dK[r],local:n}:n}function Uce(n){return function(){this.removeAttribute(n)}}function Hce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function jce(n,r){return function(){this.setAttribute(n,r)}}function Gce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function zce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Wce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function fK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Yce(n){return function(){this.style.removeProperty(n)}}function Kce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function qce(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function $1(n,r){return n.style.getPropertyValue(r)||fK(n).getComputedStyle(n,null).getPropertyValue(r)}function Qce(n){return function(){delete this[n]}}function Xce(n,r){return function(){this[n]=r}}function $ce(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function pK(n){return n.trim().split(/^|\s+/)}function R7(n){return n.classList||new hK(n)}function hK(n){this._node=n,this._names=pK(n.getAttribute("class")||"")}function mK(n,r){for(var e=R7(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function _K(n,r){for(var e=R7(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function tde(n){return function(){mK(this,n)}}function nde(n){return function(){_K(this,n)}}function rde(n,r){return function(){(r.apply(this,arguments)?mK:_K)(this,n)}}function ode(){this.textContent=""}function ade(n){return function(){this.textContent=n}}function sde(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function ude(){this.innerHTML=""}function cde(n){return function(){this.innerHTML=n}}function dde(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function pde(){this.nextSibling&&this.parentNode.appendChild(this)}function mde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gde(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===P7&&r.documentElement.namespaceURI===P7?r.createElement(n):r.createElementNS(e,n)}}function vde(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function gK(n){var r=RL(n);return(r.local?vde:gde)(r)}function bde(){return null}function wde(){var n=this.parentNode;n&&n.removeChild(this)}function Tde(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function Mde(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}hK.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var vK={},Ln=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(vK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Dde(n,r,e){return n=yK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function yK(n,r,e){return function(i){var o=Ln;Ln=i;try{n.call(this,this.__data__,r,e)}finally{Ln=o}}}function Ade(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Ode(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function Ide(n,r,e){var i=vK.hasOwnProperty(n.type)?Dde:yK;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function LL(n,r,e,i){var o=Ln;n.sourceEvent=Ln,Ln=n;try{return r.apply(e,i)}finally{Ln=o}}function bK(n,r,e){var i=fK(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function Rde(n,r){return function(){return bK(this,n,r)}}function Lde(n,r){return function(){return bK(this,n,r.apply(this,arguments))}}var CK=[null];function _c(n,r){this._groups=n,this._parents=r}function wK(){return new _c([[document.documentElement]],CK)}_c.prototype=wK.prototype={constructor:_c,select:function yce(n){"function"!=typeof n&&(n=I7(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new _c(i,this._parents)},selectAll:function Cce(n){"function"!=typeof n&&(n=sK(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new _c(i,o)},filter:function wce(n){"function"!=typeof n&&(n=lK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new _c(i,this._parents)},data:function Ece(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?Sce:Mce,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Tce(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new _c(s,i))._enter=l,s._exit=u,s},enter:function kce(){return new _c(this._enter||this._groups.map(uK),this._parents)},exit:function xce(){return new _c(this._exit||this._groups.map(uK),this._parents)},join:function Dce(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Ace(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new _c(s,this._parents)},order:function Oce(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Ice(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=Pce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new _c(o,this._parents).order()},call:function Rce(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Lce(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Zce(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Nce(){var n=0;return this.each(function(){++n}),n},empty:function Bce(){return!this.node()},each:function Fce(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function Vce(n,r){var e=RL(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Hce:Uce:"function"==typeof r?e.local?Wce:zce:e.local?Gce:jce)(e,r))},style:function Jce(n,r,e){return arguments.length>1?this.each((null==r?Yce:"function"==typeof r?qce:Kce)(n,r,null==e?"":e)):$1(this.node(),n)},property:function ede(n,r){return arguments.length>1?this.each((null==r?Qce:"function"==typeof r?$ce:Xce)(n,r)):this.node()[n]},classed:function ide(n,r){var e=pK(n+"");if(arguments.length<2){for(var i=R7(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?rde:r?tde:nde)(e,r))},text:function lde(n){return arguments.length?this.each(null==n?ode:("function"==typeof n?sde:ade)(n)):this.node().textContent},html:function fde(n){return arguments.length?this.each(null==n?ude:("function"==typeof n?dde:cde)(n)):this.node().innerHTML},raise:function hde(){return this.each(pde)},lower:function _de(){return this.each(mde)},append:function yde(n){var r="function"==typeof n?n:gK(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function Cde(n,r){var e="function"==typeof n?n:gK(n),i=null==r?bde:"function"==typeof r?r:I7(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function kde(){return this.each(wde)},clone:function Sde(n){return this.select(n?Mde:Tde)},datum:function Ede(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function Pde(n,r,e){var o,s,i=Ade(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?Ide:Ode,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function Zde(n,r){return this.each(("function"==typeof r?Lde:Rde)(n,r))}};var pg=wK;function Ci(n){return"string"==typeof n?new _c([[document.querySelector(n)]],[document.documentElement]):new _c([[n]],CK)}function L7(){Ln.stopImmediatePropagation()}function ew(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function ZL(n){var r=n.document.documentElement,e=Ci(n).on("dragstart.drag",ew,!0);"onselectstart"in r?e.on("selectstart.drag",ew,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function NL(n,r){var e=n.document.documentElement,i=Ci(n).on("dragstart.drag",null);r&&(i.on("click.drag",ew,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function BL(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Z7(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function tw(){}var nw=1/.7,rw="\\s*([+-]?\\d+)\\s*",VE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nde=/^#([0-9a-f]{3,8})$/,Bde=new RegExp("^rgb\\("+[rw,rw,rw]+"\\)$"),Fde=new RegExp("^rgb\\("+[sp,sp,sp]+"\\)$"),Ude=new RegExp("^rgba\\("+[rw,rw,rw,VE]+"\\)$"),Hde=new RegExp("^rgba\\("+[sp,sp,sp,VE]+"\\)$"),jde=new RegExp("^hsl\\("+[VE,sp,sp]+"\\)$"),Gde=new RegExp("^hsla\\("+[VE,sp,sp,VE]+"\\)$"),kK={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function TK(){return this.rgb().formatHex()}function MK(){return this.rgb().formatRgb()}function r0(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Nde.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?SK(r):3===e?new Ql(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?FL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?FL(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Bde.exec(n))?new Ql(r[1],r[2],r[3],1):(r=Fde.exec(n))?new Ql(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Ude.exec(n))?FL(r[1],r[2],r[3],r[4]):(r=Hde.exec(n))?FL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=jde.exec(n))?AK(r[1],r[2]/100,r[3]/100,1):(r=Gde.exec(n))?AK(r[1],r[2]/100,r[3]/100,r[4]):kK.hasOwnProperty(n)?SK(kK[n]):"transparent"===n?new Ql(NaN,NaN,NaN,0):null}function SK(n){return new Ql(n>>16&255,n>>8&255,255&n,1)}function FL(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ql(n,r,e,i)}function EK(n){return n instanceof tw||(n=r0(n)),n?new Ql((n=n.rgb()).r,n.g,n.b,n.opacity):new Ql}function UL(n,r,e,i){return 1===arguments.length?EK(n):new Ql(n,r,e,null==i?1:i)}function Ql(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function xK(){return"#"+N7(this.r)+N7(this.g)+N7(this.b)}function DK(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function N7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function AK(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new lp(n,r,e,i)}function OK(n){if(n instanceof lp)return new lp(n.h,n.s,n.l,n.opacity);if(n instanceof tw||(n=r0(n)),!n)return new lp;if(n instanceof lp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new lp(s,l,u,n.opacity)}function lp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function B7(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function IK(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function HL(n){return function(){return n}}function PK(n,r){return function(e){return n+e*r}}function Jde(n){return 1==(n=+n)?iw:function(r,e){return e-r?function Kde(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):HL(isNaN(r)?e:r)}}function iw(n,r){var e=r-n;return e?PK(n,e):HL(isNaN(n)?r:n)}BL(tw,r0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:TK,formatHex:TK,formatHsl:function zde(){return OK(this).formatHsl()},formatRgb:MK,toString:MK}),BL(Ql,UL,Z7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,r),new Ql(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ql(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xK,formatHex:xK,formatRgb:DK,toString:DK})),BL(lp,function Wde(n,r,e,i){return 1===arguments.length?OK(n):new lp(n,r,e,null==i?1:i)},Z7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,r),new lp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new lp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new Ql(B7(r>=240?r-240:r+120,a,o),B7(r,a,o),B7(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var jL=function n(r){var e=Jde(r);function i(o,a){var s=e((o=UL(o)).r,(a=UL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=iw(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function RK(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=UL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var Qde=RK(function Vde(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return IK((e-i/r)*r,s,o,a,l)}});RK(function Yde(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return IK((e-i/r)*r,o,a,s,l)}});function LK(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=GL(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function Xde(n,r){var e=new Date;return n=+n,r=+r,function(i){return e.setTime(n*(1-i)+r*i),e}}function qc(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}function $de(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=GL(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var F7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U7=new RegExp(F7.source,"g");function ZK(n,r){var i,o,a,e=F7.lastIndex=U7.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=F7.exec(n))&&(o=U7.exec(r));)(a=o.index)>e&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:qc(i,o)})),e=U7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function tfe(n){return function(r){return n(r)+""}}(u[0].x):function efe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function nfe(n,r){r||(r=[]);var o,e=n?Math.min(r.length,n.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=n[o]*(1-a)+r[o]*a;return i}}function GL(n,r){var i,e=typeof r;return null==r||"boolean"===e?HL(r):("number"===e?qc:"string"===e?(i=r0(r))?(r=i,jL):ZK:r instanceof r0?jL:r instanceof Date?Xde:function rfe(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}(r)?nfe:Array.isArray(r)?LK:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?$de:qc)(n,r)}function NK(){for(var r,n=Ln;r=n.sourceEvent;)n=r;return n}function BK(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function Fd(n){var r=NK();return r.changedTouches&&(r=r.changedTouches[0]),BK(n,r)}var zL,qE,ow=0,YE=0,KE=0,WL=0,i0=0,VL=0,JE="object"==typeof performance&&performance.now?performance:Date,UK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function hg(){return i0||(UK(ife),i0=JE.now()+VL)}function ife(){i0=0}function QE(){this._call=this._time=this._next=null}function XE(n,r,e){var i=new QE;return i.restart(n,r,e),i}function HK(){hg(),++ow;for(var r,n=zL;n;)(r=i0-n._time)>=0&&n._call.call(null,r),n=n._next;--ow}function jK(){i0=(WL=JE.now())+VL,ow=YE=0;try{HK()}finally{ow=0,function afe(){for(var n,e,r=zL,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(e=r._next,r._next=null,r=n?n._next=e:zL=e);qE=n,H7(i)}(),i0=0}}function ofe(){var n=JE.now(),r=n-WL;r>1e3&&(VL-=r,WL=n)}function H7(n){ow||(YE&&(YE=clearTimeout(YE)),n-i0>24?(n<1/0&&(YE=setTimeout(jK,n-JE.now()-VL)),KE&&(KE=clearInterval(KE))):(KE||(WL=JE.now(),KE=setInterval(ofe,1e3)),ow=1,UK(jK)))}function $E(n,r,e){var i=new QE;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}QE.prototype=XE.prototype={constructor:QE,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?hg():+i)+(null==e?0:+e),!this._next&&qE!==this&&(qE?qE._next=this:zL=this,qE=this),this._call=r,this._time=i,H7()},stop:function(){this._call&&(this._call=null,this._time=1/0,H7())}};var sfe=t0("start","end","cancel","interrupt"),lfe=[];function qL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function ufe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,y,L;if(1!==e.state)return u();for(h in i)if((L=i[h]).name===e.name){if(3===L.state)return $E(s);4===L.state?(L.state=6,L.timer.stop(),L.on.call("interrupt",n,n.__data__,L.index,L.group),delete i[h]):+h<r&&(L.state=6,L.timer.stop(),L.on.call("cancel",n,n.__data__,L.index,L.group),delete i[h])}if($E(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(y=e.tween.length),h=0,g=-1;h<y;++h)(L=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=L);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,y=o.length;++g<y;)o[g].call(n,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=XE(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:sfe,tween:lfe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function z7(n,r){var e=Ud(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function Qh(n,r){var e=Ud(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ud(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function aw(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}var ex,V7,KK,JL,VK=180/Math.PI,W7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function YK(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*VK,skewX:Math.atan(u)*VK,scaleX:s,scaleY:l}}function qK(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:g.push(o(g)+"rotate(",null,i)-2,x:qc(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,y),function l(d,h,g,y){d!==h?y.push({i:g.push(o(g)+"skewX(",null,i)-2,x:qc(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var pfe=qK(function dfe(n){return"none"===n?W7:(ex||(ex=document.createElement("DIV"),V7=document.documentElement,KK=document.defaultView),ex.style.transform=n,n=KK.getComputedStyle(V7.appendChild(ex),null).getPropertyValue("transform"),V7.removeChild(ex),YK(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),hfe=qK(function ffe(n){return null!=n&&(JL||(JL=document.createElementNS("http://www.w3.org/2000/svg","g")),JL.setAttribute("transform",n),n=JL.transform.baseVal.consolidate())?YK((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):W7},", ",")",")");function mfe(n,r){var e,i;return function(){var o=Qh(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function _fe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=Qh(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function Y7(n,r,e){var i=n._id;return n.each(function(){var o=Qh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Ud(o,i).value[r]}}function JK(n,r){var e;return("number"==typeof r?qc:r instanceof r0?jL:(e=r0(r))?(r=e,jL):ZK)(n,r)}function vfe(n){return function(){this.removeAttribute(n)}}function yfe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function bfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(n);return s===o?null:s===i?a:a=r(i=s,e)}}function Cfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(n.space,n.local);return s===o?null:s===i?a:a=r(i=s,e)}}function wfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function kfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Mfe(n,r){return function(e){this.setAttribute(n,r.call(this,e))}}function Sfe(n,r){return function(e){this.setAttributeNS(n.space,n.local,r.call(this,e))}}function Efe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Sfe(n,a)),e}return o._value=r,o}function xfe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Mfe(n,a)),e}return o._value=r,o}function Afe(n,r){return function(){z7(this,n).delay=+r.apply(this,arguments)}}function Ofe(n,r){return r=+r,function(){z7(this,n).delay=r}}function Pfe(n,r){return function(){Qh(this,n).duration=+r.apply(this,arguments)}}function Rfe(n,r){return r=+r,function(){Qh(this,n).duration=r}}function Zfe(n,r){if("function"!=typeof r)throw new Error;return function(){Qh(this,n).ease=r}}function Hfe(n,r,e){var i,o,a=function Ufe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?z7:Qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Yfe=pg.prototype.constructor;function QK(n){return function(){this.style.removeProperty(n)}}function epe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function tpe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&epe(n,s,e)),i}return a._value=r,a}function ape(n){return function(r){this.textContent=n.call(this,r)}}function spe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&ape(o)),r}return i._value=n,i}var dpe=0;function Xh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function K7(n){return pg().transition(n)}function XK(){return++dpe}var sw=pg.prototype;function fpe(n){return n*n*n}function ppe(n){return--n*n*n+1}function QL(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Xh.prototype=K7.prototype={constructor:Xh,select:function Wfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=I7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),y=0;y<u;++y)(h=l[y])&&(g=n.call(h,h.__data__,y,l))&&("__data__"in h&&(g.__data__=h.__data__),d[y]=g,qL(d[y],r,e,y,d,Ud(h,e)));return new Xh(a,this._parents,r,e)},selectAll:function Vfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=sK(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var L,y=n.call(h,h.__data__,g,u),z=Ud(h,e),q=0,re=y.length;q<re;++q)(L=y[q])&&qL(L,r,e,q,y,z);a.push(y),s.push(h)}return new Xh(a,s,r,e)},filter:function Bfe(n){"function"!=typeof n&&(n=lK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Xh(i,this._parents,this._name,this._id)},merge:function Ffe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new Xh(s,this._parents,this._name,this._id)},selection:function Kfe(){return new Yfe(this._groups,this._parents)},transition:function upe(){for(var n=this._name,r=this._id,e=XK(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=Ud(u,r);qL(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Xh(i,this._parents,n,e)},call:sw.call,nodes:sw.nodes,node:sw.node,size:sw.size,empty:sw.empty,each:sw.each,on:function jfe(n,r){var e=this._id;return arguments.length<2?Ud(this.node(),e).on.on(n):this.each(Hfe(e,n,r))},attr:function Tfe(n,r){var e=RL(n),i="transform"===e?hfe:JK;return this.attrTween(n,"function"==typeof r?(e.local?kfe:wfe)(e,i,Y7(this,"attr."+n,r)):null==r?(e.local?yfe:vfe)(e):(e.local?Cfe:bfe)(e,i,r))},attrTween:function Dfe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=RL(n);return this.tween(e,(i.local?Efe:xfe)(i,r))},style:function $fe(n,r,e){var i="transform"==(n+="")?pfe:JK;return null==r?this.styleTween(n,function qfe(n,r){var e,i,o;return function(){var a=$1(this,n),s=(this.style.removeProperty(n),$1(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,QK(n)):"function"==typeof r?this.styleTween(n,function Qfe(n,r,e){var i,o,a;return function(){var s=$1(this,n),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(n),u=l=$1(this,n)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(n,i,Y7(this,"style."+n,r))).each(function Xfe(n,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=Qh(this,n),d=u.on,h=null==u.value[a]?l||(l=QK(r)):void 0;(d!==e||o!==h)&&(i=(e=d).copy()).on(s,o=h),u.on=i}}(this._id,n)):this.styleTween(n,function Jfe(n,r,e){var i,a,o=e+"";return function(){var s=$1(this,n);return s===o?null:s===i?a:a=r(i=s,e)}}(n,i,r),e).on("end.style."+n,null)},styleTween:function npe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,tpe(n,r,null==e?"":e))},text:function ope(n){return this.tween("text","function"==typeof n?function ipe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(Y7(this,"text",n)):function rpe(n){return function(){this.textContent=n}}(null==n?"":n+""))},textTween:function lpe(n){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,spe(n))},remove:function zfe(){return this.on("end.remove",function Gfe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function gfe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=Ud(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?mfe:_fe)(e,n,r))},delay:function Ife(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Afe:Ofe)(r,n)):Ud(this.node(),r).delay},duration:function Lfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Pfe:Rfe)(r,n)):Ud(this.node(),r).duration},ease:function Nfe(n){var r=this._id;return arguments.length?this.each(Zfe(r,n)):Ud(this.node(),r).ease},end:function cpe(){var n,r,e=this,i=e._id,o=e.size();return new Promise(function(a,s){var l={value:s},u={value:function(){0==--o&&a()}};e.each(function(){var d=Qh(this,i),h=d.on;h!==n&&((r=(n=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),d.on=r})})}};var q7={time:null,delay:0,duration:250,ease:QL};function hpe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return q7.time=hg(),q7;return e}pg.prototype.interrupt=function cfe(n){return this.each(function(){aw(this,n)})},pg.prototype.transition=function mpe(n){var r,e;n instanceof Xh?(r=n._id,n=n._name):(r=XK(),(e=q7).time=hg(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&qL(u,n,r,d,s,e||hpe(u,r));return new Xh(i,this._parents,n,r)};function $K(n){return function(){return n}}function gpe(n,r,e){this.target=n,this.type=r,this.selection=e}function eq(){Ln.stopImmediatePropagation()}function XL(){Ln.preventDefault(),Ln.stopImmediatePropagation()}var tq={name:"drag"},J7={name:"space"},lw={name:"handle"},uw={name:"center"},$L={name:"x",handles:["e","w"].map(tx),input:function(r,e){return r&&[[r[0],e[0][1]],[r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},eZ={name:"y",handles:["n","s"].map(tx),input:function(r,e){return r&&[[e[0][0],r[0]],[e[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},vpe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(tx),input:function(r){return r},output:function(r){return r}},$h={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},nq={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rq={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ype={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bpe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function tx(n){return{type:n}}function Cpe(){return!Ln.button}function wpe(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function Q7(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function X7(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function kpe(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function Tpe(){return $7($L)}function Mpe(){return $7(eZ)}function Spe(){return $7(vpe)}function $7(n){var a,r=wpe,e=Cpe,i=t0(s,"start","brush","end"),o=6;function s(y){var L=y.property("__brush",g).selectAll(".overlay").data([tx("overlay")]);L.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$h.overlay).merge(L).each(function(){var q=Q7(this).extent;Ci(this).attr("x",q[0][0]).attr("y",q[0][1]).attr("width",q[1][0]-q[0][0]).attr("height",q[1][1]-q[0][1])}),y.selectAll(".selection").data([tx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",$h.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var z=y.selectAll(".handle").data(n.handles,function(q){return q.type});z.exit().remove(),z.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return $h[q.type]}),y.each(l).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",h)}function l(){var y=Ci(this),L=Q7(this).selection;L?(y.selectAll(".selection").style("display",null).attr("x",L[0][0]).attr("y",L[0][1]).attr("width",L[1][0]-L[0][0]).attr("height",L[1][1]-L[0][1]),y.selectAll(".handle").style("display",null).attr("x",function(z){return"e"===z.type[z.type.length-1]?L[1][0]-o/2:L[0][0]-o/2}).attr("y",function(z){return"s"===z.type[0]?L[1][1]-o/2:L[0][1]-o/2}).attr("width",function(z){return"n"===z.type||"s"===z.type?L[1][0]-L[0][0]+o:o}).attr("height",function(z){return"e"===z.type||"w"===z.type?L[1][1]-L[0][1]+o:o})):y.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(y,L){return y.__brush.emitter||new d(y,L)}function d(y,L){this.that=y,this.args=L,this.state=y.__brush,this.active=0}function h(){if(Ln.touches){if(Ln.changedTouches.length<Ln.touches.length)return XL()}else if(a)return;if(e.apply(this,arguments)){var Ke,st,it,ft,$e,Pe,Bt,Ht,Pt,Tn,jn,ar,kr,y=this,L=Ln.target.__data__.type,z="selection"===(Ln.metaKey?L="overlay":L)?tq:Ln.altKey?uw:lw,q=n===eZ?null:ype[L],re=n===$L?null:bpe[L],ae=Q7(y),Se=ae.extent,Ce=ae.selection,Ee=Se[0][0],De=Se[0][1],bt=Se[1][0],ct=Se[1][1],zn=q&&re&&Ln.shiftKey,_r=Fd(y),Wr=_r,Hr=u(y,arguments).beforestart();"overlay"===L?ae.selection=Ce=[[Ke=n===eZ?Ee:_r[0],it=n===$L?De:_r[1]],[$e=n===eZ?bt:Ke,Bt=n===$L?ct:it]]:(Ke=Ce[0][0],it=Ce[0][1],$e=Ce[1][0],Bt=Ce[1][1]),st=Ke,ft=it,Pe=$e,Ht=Bt;var Kr=Ci(y).attr("pointer-events","none"),Ho=Kr.selectAll(".overlay").attr("cursor",$h[L]);if(Ln.touches)Kr.on("touchmove.brush",yr,!0).on("touchend.brush touchcancel.brush",gn,!0);else{var tr=Ci(Ln.view).on("keydown.brush",nr,!0).on("keyup.brush",un,!0).on("mousemove.brush",yr,!0).on("mouseup.brush",gn,!0);ZL(Ln.view)}eq(),aw(y),l.call(y),Hr.start()}function yr(){var bn=Fd(y);zn&&!ar&&!kr&&(Math.abs(bn[0]-Wr[0])>Math.abs(bn[1]-Wr[1])?kr=!0:ar=!0),Wr=bn,jn=!0,XL(),Mn()}function Mn(){var bn;switch(Pt=Wr[0]-_r[0],Tn=Wr[1]-_r[1],z){case J7:case tq:q&&(Pt=Math.max(Ee-Ke,Math.min(bt-$e,Pt)),st=Ke+Pt,Pe=$e+Pt),re&&(Tn=Math.max(De-it,Math.min(ct-Bt,Tn)),ft=it+Tn,Ht=Bt+Tn);break;case lw:q<0?(Pt=Math.max(Ee-Ke,Math.min(bt-Ke,Pt)),st=Ke+Pt,Pe=$e):q>0&&(Pt=Math.max(Ee-$e,Math.min(bt-$e,Pt)),st=Ke,Pe=$e+Pt),re<0?(Tn=Math.max(De-it,Math.min(ct-it,Tn)),ft=it+Tn,Ht=Bt):re>0&&(Tn=Math.max(De-Bt,Math.min(ct-Bt,Tn)),ft=it,Ht=Bt+Tn);break;case uw:q&&(st=Math.max(Ee,Math.min(bt,Ke-Pt*q)),Pe=Math.max(Ee,Math.min(bt,$e+Pt*q))),re&&(ft=Math.max(De,Math.min(ct,it-Tn*re)),Ht=Math.max(De,Math.min(ct,Bt+Tn*re)))}Pe<st&&(q*=-1,bn=Ke,Ke=$e,$e=bn,bn=st,st=Pe,Pe=bn,L in nq&&Ho.attr("cursor",$h[L=nq[L]])),Ht<ft&&(re*=-1,bn=it,it=Bt,Bt=bn,bn=ft,ft=Ht,Ht=bn,L in rq&&Ho.attr("cursor",$h[L=rq[L]])),ae.selection&&(Ce=ae.selection),ar&&(st=Ce[0][0],Pe=Ce[1][0]),kr&&(ft=Ce[0][1],Ht=Ce[1][1]),(Ce[0][0]!==st||Ce[0][1]!==ft||Ce[1][0]!==Pe||Ce[1][1]!==Ht)&&(ae.selection=[[st,ft],[Pe,Ht]],l.call(y),Hr.brush())}function gn(){if(eq(),Ln.touches){if(Ln.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Kr.on("touchmove.brush touchend.brush touchcancel.brush",null)}else NL(Ln.view,jn),tr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Kr.attr("pointer-events","all"),Ho.attr("cursor",$h.overlay),ae.selection&&(Ce=ae.selection),X7(Ce)&&(ae.selection=null,l.call(y)),Hr.end()}function nr(){switch(Ln.keyCode){case 16:zn=q&&re;break;case 18:z===lw&&(q&&($e=Pe-Pt*q,Ke=st+Pt*q),re&&(Bt=Ht-Tn*re,it=ft+Tn*re),z=uw,Mn());break;case 32:(z===lw||z===uw)&&(q<0?$e=Pe-Pt:q>0&&(Ke=st-Pt),re<0?Bt=Ht-Tn:re>0&&(it=ft-Tn),z=J7,Ho.attr("cursor",$h.selection),Mn());break;default:return}XL()}function un(){switch(Ln.keyCode){case 16:zn&&(ar=kr=zn=!1,Mn());break;case 18:z===uw&&(q<0?$e=Pe:q>0&&(Ke=st),re<0?Bt=Ht:re>0&&(it=ft),z=lw,Mn());break;case 32:z===J7&&(Ln.altKey?(q&&($e=Pe-Pt*q,Ke=st+Pt*q),re&&(Bt=Ht-Tn*re,it=ft+Tn*re),z=uw):(q<0?$e=Pe:q>0&&(Ke=st),re<0?Bt=Ht:re>0&&(it=ft),z=lw),Ho.attr("cursor",$h[L]),Mn());break;default:return}XL()}}function g(){var y=this.__brush||{selection:null};return y.extent=r.apply(this,arguments),y.dim=n,y}return s.move=function(y,L){y.selection?y.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var z=this,q=z.__brush,re=u(z,arguments),ae=q.selection,Se=n.input("function"==typeof L?L.apply(this,arguments):L,q.extent),Ce=GL(ae,Se);function Ee(Ke){q.selection=1===Ke&&X7(Se)?null:Ce(Ke),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):y.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof L?L.apply(z,q):L,re.extent),Se=u(z,q).beforestart();aw(z),re.selection=null==ae||X7(ae)?null:ae,l.call(z),Se.start().brush().end()})},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(L){LL(new gpe(s,L,n.output(this.state.selection)),i.apply,i,[L,this.that,this.args])}},s.extent=function(y){return arguments.length?(r="function"==typeof y?y:$K([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),s):r},s.filter=function(y){return arguments.length?(e="function"==typeof y?y:$K(!!y),s):e},s.handleSize=function(y){return arguments.length?(o=+y,s):o},s.on=function(){var y=i.on.apply(i,arguments);return y===i?s:y},s}var iq=Math.cos,oq=Math.sin,aq=Math.PI,tZ=aq/2,sq=2*aq,lq=Math.max;function Epe(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function xpe(){var n=0,r=null,e=null,i=null;function o(a){var L,z,q,re,ae,Se,s=a.length,l=[],u=mc(s),d=[],h=[],g=h.groups=new Array(s),y=new Array(s*s);for(L=0,ae=-1;++ae<s;){for(z=0,Se=-1;++Se<s;)z+=a[ae][Se];l.push(z),d.push(mc(s)),L+=z}for(r&&u.sort(function(bt,$e){return r(l[bt],l[$e])}),e&&d.forEach(function(bt,$e){bt.sort(function(Pe,ct){return e(a[$e][Pe],a[$e][ct])})}),re=(L=lq(0,sq-n*s)/L)?n:sq/s,z=0,ae=-1;++ae<s;){for(q=z,Se=-1;++Se<s;){var Ce=u[ae],Ee=d[Ce][Se],Ke=a[Ce][Ee],st=z,De=z+=Ke*L;y[Ee*s+Ce]={index:Ce,subindex:Ee,startAngle:st,endAngle:De,value:Ke}}g[Ce]={index:Ce,startAngle:q,endAngle:z,value:l[Ce]},z+=re}for(ae=-1;++ae<s;)for(Se=ae-1;++Se<s;){var it=y[Se*s+ae],ft=y[ae*s+Se];(it.value||ft.value)&&h.push(it.value<ft.value?{source:ft,target:it}:{source:it,target:ft})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(n=lq(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(e=a,o):e},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=Epe(a))._=a,o):i&&i._},o}var Dpe=Array.prototype.slice;function e9(n){return function(){return n}}var t9=Math.PI,n9=2*t9,o0=1e-6,Ape=n9-o0;function r9(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uq(){return new r9}r9.prototype=uq.prototype={constructor:r9,moveTo:function(r,e){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,e){this._+="L"+(this._x1=+r)+","+(this._y1=+e)},quadraticCurveTo:function(r,e,i,o){this._+="Q"+ +r+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,e,i,o,a,s){this._+="C"+ +r+","+ +e+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,e,i,o,a){r=+r,e=+e,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-r,d=o-e,h=s-r,g=l-e,y=h*h+g*g;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(y>o0)if(Math.abs(g*u-d*h)>o0&&a){var L=i-s,z=o-l,q=u*u+d*d,re=L*L+z*z,ae=Math.sqrt(q),Se=Math.sqrt(y),Ce=a*Math.tan((t9-Math.acos((q+y-re)/(2*ae*Se)))/2),Ee=Ce/Se,Ke=Ce/ae;Math.abs(Ee-1)>o0&&(this._+="L"+(r+Ee*h)+","+(e+Ee*g)),this._+="A"+a+","+a+",0,0,"+ +(g*L>h*z)+","+(this._x1=r+Ke*u)+","+(this._y1=e+Ke*d)}else this._+="L"+(this._x1=r)+","+(this._y1=e)},arc:function(r,e,i,o,a,s){r=+r,e=+e,s=!!s;var l=(i=+i)*Math.cos(o),u=i*Math.sin(o),d=r+l,h=e+u,g=1^s,y=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>o0||Math.abs(this._y1-h)>o0)&&(this._+="L"+d+","+h),i&&(y<0&&(y=y%n9+n9),y>Ape?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):y>o0&&(this._+="A"+i+","+i+",0,"+ +(y>=t9)+","+g+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=e+i*Math.sin(a))))},rect:function(r,e,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var Hd=uq;function Ope(n){return n.source}function Ipe(n){return n.target}function Ppe(n){return n.radius}function Rpe(n){return n.startAngle}function Lpe(n){return n.endAngle}function Zpe(){var n=Ope,r=Ipe,e=Ppe,i=Rpe,o=Lpe,a=null;function s(){var l,u=Dpe.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),y=i.apply(this,u)-tZ,L=o.apply(this,u)-tZ,z=g*iq(y),q=g*oq(y),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-tZ,Se=o.apply(this,u)-tZ;if(a||(a=l=Hd()),a.moveTo(z,q),a.arc(0,0,g,y,L),(y!==ae||L!==Se)&&(a.quadraticCurveTo(0,0,re*iq(ae),re*oq(ae)),a.arc(0,0,re,ae,Se)),a.quadraticCurveTo(0,0,z,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:e9(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:e9(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:e9(+l),s):o},s.source=function(l){return arguments.length?(n=l,s):n},s.target=function(l){return arguments.length?(r=l,s):r},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}var Jc="$";function nZ(){}function cq(n,r){var e=new nZ;if(n instanceof nZ)n.each(function(l,u){e.set(u,l)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i<o;)e.set(i,n[i]);else for(;++i<o;)e.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)e.set(s,n[s]);return e}nZ.prototype=cq.prototype={constructor:nZ,has:function(r){return Jc+r in this},get:function(r){return this[Jc+r]},set:function(r,e){return this[Jc+r]=e,this},remove:function(r){var e=Jc+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Jc&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Jc&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Jc&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Jc&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Jc&&++r;return r},empty:function(){for(var r in this)if(r[0]===Jc)return!1;return!0},each:function(r){for(var e in this)e[0]===Jc&&r(this[e],e.slice(1),this)}};var mg=cq;function Npe(){var e,i,o,n=[],r=[];function a(l,u,d,h){if(u>=n.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var z,q,ae,g=-1,y=l.length,L=n[u++],re=mg(),Se=d();++g<y;)(ae=re.get(z=L(q=l[g])+""))?ae.push(q):re.set(z,[q]);return re.each(function(Ce,Ee){h(Se,Ee,a(Ce,u,d,h))}),Se}function s(l,u){if(++u>n.length)return l;var d,h=r[u-1];return null!=i&&u>=n.length?d=l.entries():(d=[],l.each(function(g,y){d.push({key:y,values:s(g,u)})})),null!=h?d.sort(function(g,y){return h(g.key,y.key)}):d}return o={object:function(u){return a(u,0,Bpe,Fpe)},map:function(u){return a(u,0,dq,fq)},entries:function(u){return s(a(u,0,dq,fq),0)},key:function(u){return n.push(u),o},sortKeys:function(u){return r[n.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Bpe(){return{}}function Fpe(n,r,e){n[r]=e}function dq(){return mg()}function fq(n,r,e){n.set(r,e)}function rZ(){}var a0=mg.prototype;function pq(n,r){var e=new rZ;if(n instanceof rZ)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)e.add(n[i]);else for(;++i<o;)e.add(r(n[i],i,n))}return e}rZ.prototype=pq.prototype={constructor:rZ,has:a0.has,add:function(r){return this[Jc+(r+="")]=r,this},remove:a0.remove,clear:a0.clear,values:a0.keys,size:a0.size,empty:a0.empty,each:a0.each};var Upe=pq;function Hpe(n){var r=[];for(var e in n)r.push(e);return r}function jpe(n){var r=[];for(var e in n)r.push(n[e]);return r}function Gpe(n){var r=[];for(var e in n)r.push({key:e,value:n[e]});return r}function cw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function nx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function _g(){}var dw=1/.7,fw="\\s*([+-]?\\d+)\\s*",rx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",up="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zpe=/^#([0-9a-f]{3})$/,Wpe=/^#([0-9a-f]{6})$/,Vpe=new RegExp("^rgb\\("+[fw,fw,fw]+"\\)$"),Ype=new RegExp("^rgb\\("+[up,up,up]+"\\)$"),Kpe=new RegExp("^rgba\\("+[fw,fw,fw,rx]+"\\)$"),qpe=new RegExp("^rgba\\("+[up,up,up,rx]+"\\)$"),Jpe=new RegExp("^hsl\\("+[rx,up,up]+"\\)$"),Qpe=new RegExp("^hsla\\("+[rx,up,up,rx]+"\\)$"),hq={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function iZ(n){var r;return n=(n+"").trim().toLowerCase(),(r=zpe.exec(n))?new ol((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Wpe.exec(n))?mq(parseInt(r[1],16)):(r=Vpe.exec(n))?new ol(r[1],r[2],r[3],1):(r=Ype.exec(n))?new ol(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Kpe.exec(n))?_q(r[1],r[2],r[3],r[4]):(r=qpe.exec(n))?_q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jpe.exec(n))?vq(r[1],r[2]/100,r[3]/100,1):(r=Qpe.exec(n))?vq(r[1],r[2]/100,r[3]/100,r[4]):hq.hasOwnProperty(n)?mq(hq[n]):"transparent"===n?new ol(NaN,NaN,NaN,0):null}function mq(n){return new ol(n>>16&255,n>>8&255,255&n,1)}function _q(n,r,e,i){return i<=0&&(n=r=e=NaN),new ol(n,r,e,i)}function i9(n){return n instanceof _g||(n=iZ(n)),n?new ol((n=n.rgb()).r,n.g,n.b,n.opacity):new ol}function gq(n,r,e,i){return 1===arguments.length?i9(n):new ol(n,r,e,null==i?1:i)}function ol(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function vq(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new cp(n,r,e,i)}function Xpe(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof _g||(n=iZ(n)),!n)return new cp;if(n instanceof cp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new cp(s,l,u,n.opacity)}function yq(n,r,e,i){return 1===arguments.length?Xpe(n):new cp(n,r,e,null==i?1:i)}function cp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function o9(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}cw(_g,iZ,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),cw(ol,gq,nx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,r),new ol(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ol(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),cw(cp,yq,nx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,r),new cp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new cp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new ol(o9(r>=240?r-240:r+120,a,o),o9(r,a,o),o9(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var bq=Math.PI/180,Cq=180/Math.PI,Mq=4/29,pw=6/29,Sq=3*pw*pw;function a9(n){if(n instanceof dp)return new dp(n.l,n.a,n.b,n.opacity);if(n instanceof em){if(isNaN(n.h))return new dp(n.l,0,0,n.opacity);var r=n.h*bq;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ol||(n=i9(n));var s,l,e=c9(n.r),i=c9(n.g),o=c9(n.b),a=s9((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=s9((.4360747*e+.3850649*i+.1430804*o)/.96422),l=s9((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function Eq(n,r,e,i){return 1===arguments.length?a9(n):new dp(n,r,e,null==i?1:i)}function dp(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function s9(n){return n>.008856451679035631?Math.pow(n,1/3):n/Sq+Mq}function l9(n){return n>pw?n*n*n:Sq*(n-Mq)}function u9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function c9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ehe(n){if(n instanceof em)return new em(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=a9(n)),0===n.a&&0===n.b)return new em(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*Cq;return new em(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function xq(n,r,e,i){return 1===arguments.length?ehe(n):new em(n,r,e,null==i?1:i)}function em(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}cw(dp,Eq,nx(_g,{brighter:function(r){return new dp(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new dp(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,e=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new ol(u9(3.1338561*(e=.96422*l9(e))-1.6168667*(r=1*l9(r))-.4906146*(i=.82521*l9(i))),u9(-.9787684*e+1.9161415*r+.033454*i),u9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),cw(em,xq,nx(_g,{brighter:function(r){return new em(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new em(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return a9(this).rgb()}}));var d9=1.78277,f9=-.29227,aZ=-.90649,ix=1.97294,Aq=ix*aZ,Oq=ix*d9,Iq=d9*f9- -.14861*aZ;function the(n){if(n instanceof l0)return new l0(n.h,n.s,n.l,n.opacity);n instanceof ol||(n=i9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Iq*i+Aq*r-Oq*e)/(Iq+Aq-Oq),a=i-o,s=(ix*(e-o)-f9*a)/aZ,l=Math.sqrt(s*s+a*a)/(ix*o*(1-o)),u=l?Math.atan2(s,a)*Cq-120:NaN;return new l0(u<0?u+360:u,l,o,n.opacity)}function Pq(n,r,e,i){return 1===arguments.length?the(n):new l0(n,r,e,null==i?1:i)}function l0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}cw(l0,Pq,nx(_g,{brighter:function(r){return r=null==r?dw:Math.pow(dw,r),new l0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new l0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*bq,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new ol(255*(e+i*(-.14861*o+d9*a)),255*(e+i*(f9*o+aZ*a)),255*(e+i*(ix*o)),this.opacity)}}));var Rq=Array.prototype.slice;function rhe(n,r){return n-r}function u0(n){return function(){return n}}function ohe(n,r){for(var o,e=-1,i=r.length;++e<i;)if(o=ahe(n,r[e]))return o;return 0}function ahe(n,r){for(var e=r[0],i=r[1],o=-1,a=0,s=n.length,l=s-1;a<s;l=a++){var u=n[a],d=u[0],h=u[1],g=n[l],y=g[0],L=g[1];if(she(u,g,r))return 0;h>i!=L>i&&e<(y-d)*(i-h)/(L-h)+d&&(o=-o)}return o}function she(n,r,e){var i;return function lhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function uhe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function che(){}var tm=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Lq(){var n=1,r=1,e=x7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(rhe);else{var g=k7(d),y=g[0],L=g[1];h=e0(y,L,h),h=mc(Math.floor(y/h)*h,Math.floor(L/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],y=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,y=new Array,L=new Array;for(z=q=-1,ae=d[0]>=h,tm[ae<<1].forEach(Ee);++z<n-1;)re=ae,ae=d[z+1]>=h,tm[re|ae<<1].forEach(Ee);for(tm[ae<<0].forEach(Ee);++q<r-1;){for(z=-1,ae=d[q*n+n]>=h,Se=d[q*n]>=h,tm[ae<<1|Se<<2].forEach(Ee);++z<n-1;)re=ae,ae=d[q*n+n+z+1]>=h,Ce=Se,Se=d[q*n+z+1]>=h,tm[re|ae<<1|Se<<2|Ce<<3].forEach(Ee);tm[ae|Se<<3].forEach(Ee)}for(z=-1,Se=d[q*n]>=h,tm[Se<<2].forEach(Ee);++z<n-1;)Ce=Se,Se=d[q*n+z+1]>=h,tm[Se<<2|Ce<<3].forEach(Ee);function Ee(Ke){var bt,$e,st=[Ke[0][0]+z,Ke[0][1]+q],De=[Ke[1][0]+z,Ke[1][1]+q],it=l(st),ft=l(De);(bt=L[it])?($e=y[ft])?(delete L[bt.end],delete y[$e.start],bt===$e?(bt.ring.push(De),g(bt.ring)):y[bt.start]=L[$e.end]={start:bt.start,end:$e.end,ring:bt.ring.concat($e.ring)}):(delete L[bt.end],bt.ring.push(De),L[bt.end=ft]=bt):(bt=y[ft])?($e=L[it])?(delete y[bt.start],delete L[$e.end],bt===$e?(bt.ring.push(De),g(bt.ring)):y[$e.start]=L[bt.end]={start:$e.start,end:bt.end,ring:$e.ring.concat(bt.ring)}):(delete y[bt.start],bt.ring.unshift(st),y[bt.start=it]=bt):y[it]=L[ft]={start:it,end:ft,ring:[st,De]}}tm[Se<<3].forEach(Ee)}(d,h,function(L){i(L,d,h),function ihe(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r<e;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(L)>0?g.push([L]):y.push(L)}),y.forEach(function(L){for(var re,z=0,q=g.length;z<q;++z)if(-1!==ohe((re=g[z])[0],L))return void re.push(L)}),{type:"MultiPolygon",value:h,coordinates:g}}function l(d){return 2*d[0]+d[1]*(n+1)*4}function u(d,h,g){d.forEach(function(y){var ae,L=y[0],z=y[1],q=0|L,re=0|z,Se=h[re*n+q];L>0&&L<n&&q===L&&(ae=h[re*n+q-1],y[0]=L+(g-ae)/(Se-ae)-.5),z>0&&z<r&&re===z&&(ae=h[(re-1)*n+q],y[1]=z+(g-ae)/(Se-ae)-.5)})}return o.contour=a,o.size=function(d){if(!arguments.length)return[n,r];var h=Math.ceil(d[0]),g=Math.ceil(d[1]);if(!(h>0&&g>0))throw new Error("invalid size");return n=h,r=g,o},o.thresholds=function(d){return arguments.length?(e="function"==typeof d?d:Array.isArray(d)?u0(Rq.call(d)):u0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:che,o):i===u},o}function p9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=n.data[l+s*i]),l>=e&&(l>=a&&(u-=n.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function h9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=n.data[s+l*i]),l>=e&&(l>=a&&(u-=n.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function dhe(n){return n[0]}function fhe(n){return n[1]}function phe(){var n=dhe,r=fhe,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=u0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ke,st,De){var it=n(Ke,st,De)+s>>a,ft=r(Ke,st,De)+s>>a;it>=0&&it<l&&ft>=0&&ft<u&&++ae[it+ft*l]}),p9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),h9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),p9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),h9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),p9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),h9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=tK(ae);Ce=e0(0,Ee,Ce),(Ce=mc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Lq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(y),re}function y(re){re.forEach(L)}function L(re){re.forEach(z)}function z(re){re[0]=re[0]*Math.pow(2,a)-s,re[1]=re[1]*Math.pow(2,a)-s}function q(){return l=e+2*(s=3*o)>>a,u=i+2*s>>a,h}return h.x=function(re){return arguments.length?(n="function"==typeof re?re:u0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:u0(+re),h):r},h.size=function(re){if(!arguments.length)return[e,i];var ae=Math.ceil(re[0]),Se=Math.ceil(re[1]);if(!(ae>=0||ae>=0))throw new Error("invalid size");return e=ae,i=Se,q()},h.cellSize=function(re){if(!arguments.length)return 1<<a;if(!((re=+re)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(re)/Math.LN2),q()},h.thresholds=function(re){return arguments.length?(d="function"==typeof re?re:Array.isArray(re)?u0(Rq.call(re)):u0(re),h):d},h.bandwidth=function(re){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((re=+re)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*re*re+1)-1)/2),q()},h}function m9(n,r,e){arguments.length<3&&(e=r,r=NK().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return BK(n,a);return null}function sZ(n){return function(){return n}}function _9(n,r,e,i,o,a,s,l,u,d){this.target=n,this.type=r,this.subject=e,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=l,this.dy=u,this._=d}function hhe(){return!Ln.ctrlKey&&!Ln.button}function mhe(){return this.parentNode}function _he(n){return null==n?{x:Ln.x,y:Ln.y}:n}function ghe(){return navigator.maxTouchPoints||"ontouchstart"in this}function gg(){var l,u,d,h,n=hhe,r=mhe,e=_he,i=ghe,o={},a=t0("start","drag","end"),s=0,g=0;function y(Ee){Ee.on("mousedown.drag",L).filter(i).on("touchstart.drag",re).on("touchmove.drag",ae).on("touchend.drag touchcancel.drag",Se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(){if(!h&&n.apply(this,arguments)){var Ee=Ce("mouse",r.apply(this,arguments),Fd,this,arguments);!Ee||(Ci(Ln.view).on("mousemove.drag",z,!0).on("mouseup.drag",q,!0),ZL(Ln.view),L7(),d=!1,l=Ln.clientX,u=Ln.clientY,Ee("start"))}}function z(){if(ew(),!d){var Ee=Ln.clientX-l,Ke=Ln.clientY-u;d=Ee*Ee+Ke*Ke>g}o.mouse("drag")}function q(){Ci(Ln.view).on("mousemove.drag mouseup.drag",null),NL(Ln.view,d),ew(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var De,it,Ee=Ln.changedTouches,Ke=r.apply(this,arguments),st=Ee.length;for(De=0;De<st;++De)(it=Ce(Ee[De].identifier,Ke,m9,this,arguments))&&(L7(),it("start"))}}function ae(){var st,De,Ee=Ln.changedTouches,Ke=Ee.length;for(st=0;st<Ke;++st)(De=o[Ee[st].identifier])&&(ew(),De("drag"))}function Se(){var st,De,Ee=Ln.changedTouches,Ke=Ee.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),st=0;st<Ke;++st)(De=o[Ee[st].identifier])&&(L7(),De("end"))}function Ce(Ee,Ke,st,De,it){var bt,$e,Pe,ft=st(Ke,Ee),ct=a.copy();if(LL(new _9(y,"beforestart",bt,Ee,s,ft[0],ft[1],0,0,ct),function(){return null!=(Ln.subject=bt=e.apply(De,it))&&($e=bt.x-ft[0]||0,Pe=bt.y-ft[1]||0,!0)}))return function Bt(Ht){var Tn,Pt=ft;switch(Ht){case"start":o[Ee]=Bt,Tn=s++;break;case"end":delete o[Ee],--s;case"drag":ft=st(Ke,Ee),Tn=s}LL(new _9(y,Ht,bt,Ee,Tn,ft[0]+$e,ft[1]+Pe,ft[0]-Pt[0],ft[1]-Pt[1],ct),ct.apply,ct,[Ht,De,it])}}return y.filter=function(Ee){return arguments.length?(n="function"==typeof Ee?Ee:sZ(!!Ee),y):n},y.container=function(Ee){return arguments.length?(r="function"==typeof Ee?Ee:sZ(Ee),y):r},y.subject=function(Ee){return arguments.length?(e="function"==typeof Ee?Ee:sZ(Ee),y):e},y.touchable=function(Ee){return arguments.length?(i="function"==typeof Ee?Ee:sZ(!!Ee),y):i},y.on=function(){var Ee=a.on.apply(a,arguments);return Ee===a?y:Ee},y.clickDistance=function(Ee){return arguments.length?(g=(Ee=+Ee)*Ee,y):Math.sqrt(g)},y}_9.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Zq={},g9={};function Nq(n){return new Function("d","return {"+n.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function b9(n){var r=new RegExp('["'+n+"\n\r]"),e=n.charCodeAt(0);function o(d,h){var q,g=[],y=d.length,L=0,z=0,re=y<=0,ae=!1;function Se(){if(re)return g9;if(ae)return ae=!1,Zq;var Ee,st,Ke=L;if(34===d.charCodeAt(Ke)){for(;L++<y&&34!==d.charCodeAt(L)||34===d.charCodeAt(++L););return(Ee=L)>=y?re=!0:10===(st=d.charCodeAt(L++))?ae=!0:13===st&&(ae=!0,10===d.charCodeAt(L)&&++L),d.slice(Ke+1,Ee-1).replace(/""/g,'"')}for(;L<y;){if(10===(st=d.charCodeAt(Ee=L++)))ae=!0;else if(13===st)ae=!0,10===d.charCodeAt(L)&&++L;else if(st!==e)continue;return d.slice(Ke,Ee)}return re=!0,d.slice(Ke,y)}for(10===d.charCodeAt(y-1)&&--y,13===d.charCodeAt(y-1)&&--y;(q=Se())!==g9;){for(var Ce=[];q!==Zq&&q!==g9;)Ce.push(q),q=Se();h&&null==(Ce=h(Ce,z++))||g.push(Ce)}return g}function l(d){return d.map(u).join(n)}function u(d){return null==d?"":r.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:function i(d,h){var g,y,L=o(d,function(z,q){if(g)return g(z,q-1);y=z,g=h?function vhe(n,r){var e=Nq(n);return function(i,o){return r(e(i),o,n)}}(z,h):Nq(z)});return L.columns=y||[],L},parseRows:o,format:function a(d,h){return null==h&&(h=function yhe(n){var r=Object.create(null),e=[];return n.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(d)),[h.map(u).join(n)].concat(d.map(function(g){return h.map(function(y){return u(g[y])}).join(n)})).join("\n")},formatRows:function s(d){return d.map(l).join("\n")}}}var lZ=b9(","),bhe=lZ.parse,Che=lZ.parseRows,whe=lZ.format,khe=lZ.formatRows,uZ=b9("\t"),The=uZ.parse,Mhe=uZ.parseRows,She=uZ.format,Ehe=uZ.formatRows;function xhe(n){return+n}function Dhe(n){return n*n}function Ahe(n){return n*(2-n)}function Bq(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Ohe=function n(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=n,e}(3),Ihe=function n(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=n,e}(3),Fq=function n(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=n,e}(3),Uq=Math.PI,Hq=Uq/2;function Phe(n){return 1==+n?1:1-Math.cos(n*Hq)}function Rhe(n){return Math.sin(n*Hq)}function jq(n){return(1-Math.cos(Uq*n))/2}function vg(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Lhe(n){return vg(1-+n)}function Zhe(n){return 1-vg(n)}function Gq(n){return((n*=2)<=1?vg(1-n):2-vg(n-1))/2}function Nhe(n){return 1-Math.sqrt(1-n*n)}function Bhe(n){return Math.sqrt(1- --n*n)}function zq(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var w9=4/11,cZ=7.5625;function Yhe(n){return 1-ax(1-n)}function ax(n){return(n=+n)<w9?cZ*n*n:n<.7272727272727273?cZ*(n-=.5454545454545454)*n+.75:n<.9090909090909091?cZ*(n-=.8181818181818182)*n+.9375:cZ*(n-=.9545454545454546)*n+.984375}function Khe(n){return((n*=2)<=1?1-ax(1-n):ax(n-1)+1)/2}var k9=1.70158,qhe=function n(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=n,e}(k9),Jhe=function n(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=n,e}(k9),Wq=function n(r){function e(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,e.overshoot=n,e}(k9),hw=2*Math.PI,Qhe=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return r*vg(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3),Vq=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return 1-r*vg(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3),Xhe=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=hw);function o(a){return((a=2*a-1)<0?r*vg(-a)*Math.sin((i-a)/e):2-r*vg(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return n(a,e*hw)},o.period=function(a){return n(r,a)},o}(1,.3);function $he(n,r){var e;function i(){var o,s,a=e.length,l=0,u=0;for(o=0;o<a;++o)l+=(s=e[o]).x,u+=s.y;for(l=l/a-n,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function gs(n){return function(){return n}}function yg(){return 1e-6*(Math.random()-.5)}function Yq(n,r,e,i){if(isNaN(r)||isNaN(e))return n;var o,g,y,L,z,q,re,ae,Se,a=n._root,s={data:i},l=n._x0,u=n._y0,d=n._x1,h=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(y=(u+h)/2))?u=y:h=y,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(L=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===L&&e===z)return s.next=a,o?o[ae]=s:n._root=s,n;do{o=o?o[ae]=new Array(4):n._root=new Array(4),(q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(y=(u+h)/2))?u=y:h=y}while((ae=re<<1|q)==(Se=(z>=y)<<1|L>=g));return o[Se]=a,o[ae]=s,n}function Xl(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function fme(n){return n[0]}function hme(n){return n[1]}function dZ(n,r,e){var i=new S9(null==r?fme:r,null==e?hme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function S9(n,r,e,i,o,a){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function Kq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var $l=dZ.prototype=S9.prototype;function _me(n){return n.x+n.vx}function gme(n){return n.y+n.vy}function vme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,y,L,z,q,d=r.length,re=0;re<o;++re)for(h=dZ(r,_me,gme).visitAfter(s),u=0;u<d;++u)g=r[u],z=e[g.index],q=z*z,y=g.x+g.vx,L=g.y+g.vy,h.visit(ae);function ae(Se,Ce,Ee,Ke,st){var De=Se.data,it=Se.r,ft=z+it;if(!De)return Ce>y+ft||Ke<y-ft||Ee>L+ft||st<L-ft;if(De.index>g.index){var bt=y-De.x-De.vx,$e=L-De.y-De.vy,Pe=bt*bt+$e*$e;Pe<ft*ft&&(0===bt&&(Pe+=(bt=yg())*bt),0===$e&&(Pe+=($e=yg())*$e),Pe=(ft-(Pe=Math.sqrt(Pe)))/Pe*i,g.vx+=(bt*=Pe)*(ft=(it*=it)/(q+it)),g.vy+=($e*=Pe)*ft,De.vx-=bt*(ft=1-ft),De.vy-=$e*ft)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;u<d;++u)h=r[u],e[h.index]=+n(h,u,r)}}return"function"!=typeof n&&(n=gs(null==n?1:+n)),a.initialize=function(u){r=u,l()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(i=+u,a):i},a.radius=function(u){return arguments.length?(n="function"==typeof u?u:gs(+u),l(),a):n},a}function yme(n){return n.index}function qq(n,r){var e=n.get(r);if(!e)throw new Error("missing: "+r);return e}function bme(n){var i,a,s,l,u,r=yme,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=gs(30),d=1;function g(q){for(var re=0,ae=n.length;re<d;++re)for(var Ce,Ee,Ke,st,De,it,ft,Se=0;Se<ae;++Se)Ee=(Ce=n[Se]).source,st=(Ke=Ce.target).x+Ke.vx-Ee.x-Ee.vx||yg(),De=Ke.y+Ke.vy-Ee.y-Ee.vy||yg(),st*=it=((it=Math.sqrt(st*st+De*De))-a[Se])/it*q*i[Se],De*=it,Ke.vx-=st*(ft=u[Se]),Ke.vy-=De*ft,Ee.vx+=st*(ft=1-ft),Ee.vy+=De*ft}function y(){if(s){var q,Ce,re=s.length,ae=n.length,Se=mg(s,r);for(q=0,l=new Array(re);q<ae;++q)(Ce=n[q]).index=q,"object"!=typeof Ce.source&&(Ce.source=qq(Se,Ce.source)),"object"!=typeof Ce.target&&(Ce.target=qq(Se,Ce.target)),l[Ce.source.index]=(l[Ce.source.index]||0)+1,l[Ce.target.index]=(l[Ce.target.index]||0)+1;for(q=0,u=new Array(ae);q<ae;++q)Ce=n[q],u[q]=l[Ce.source.index]/(l[Ce.source.index]+l[Ce.target.index]);i=new Array(ae),L(),a=new Array(ae),z()}}function L(){if(s)for(var q=0,re=n.length;q<re;++q)i[q]=+e(n[q],q,n)}function z(){if(s)for(var q=0,re=n.length;q<re;++q)a[q]=+o(n[q],q,n)}return null==n&&(n=[]),g.initialize=function(q){s=q,y()},g.links=function(q){return arguments.length?(n=q,y(),g):n},g.id=function(q){return arguments.length?(r=q,g):r},g.iterations=function(q){return arguments.length?(d=+q,g):d},g.strength=function(q){return arguments.length?(e="function"==typeof q?q:gs(+q),L(),g):e},g.distance=function(q){return arguments.length?(o="function"==typeof q?q:gs(+q),z(),g):o},g}function Cme(n){return n.x}function wme(n){return n.y}$l.copy=function(){var e,i,n=new S9(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Kq(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?e.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=Kq(i));return n},$l.add=function eme(n){var r=+this._x.call(null,n),e=+this._y.call(null,n);return Yq(this.cover(r,e),r,e,n)},$l.addAll=function tme(n){var r,e,o,a,i=n.length,s=new Array(i),l=new Array(i),u=1/0,d=1/0,h=-1/0,g=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=n[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<d&&(d=a),a>g&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;e<i;++e)Yq(this,s[e],l[e],n[e]);return this},$l.cover=function nme(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var e=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(e))o=(e=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var u,d,s=o-e,l=this._root;e>n||n>=o||i>r||r>=a;)switch(d=(r<i)<<1|n<e,u=new Array(4),u[d]=l,l=u,s*=2,d){case 0:o=e+s,a=i+s;break;case 1:e=o-s,a=i+s;break;case 2:o=e+s,i=a-s;break;case 3:e=o-s,i=a-s}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=i,this._x1=o,this._y1=a,this},$l.data=function rme(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},$l.extent=function ime(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},$l.find=function ome(n,r,e){var i,s,l,u,d,z,q,o=this._x0,a=this._y0,h=this._x1,g=this._y1,y=[],L=this._root;for(L&&y.push(new Xl(L,o,a,h,g)),null==e?e=1/0:(o=n-e,a=r-e,h=n+e,g=r+e,e*=e);z=y.pop();)if(!(!(L=z.node)||(s=z.x0)>h||(l=z.y0)>g||(u=z.x1)<o||(d=z.y1)<a))if(L.length){var re=(s+u)/2,ae=(l+d)/2;y.push(new Xl(L[3],re,ae,u,d),new Xl(L[2],s,ae,re,d),new Xl(L[1],re,l,u,ae),new Xl(L[0],s,l,re,ae)),(q=(r>=ae)<<1|n>=re)&&(z=y[y.length-1],y[y.length-1]=y[y.length-1-q],y[y.length-1-q]=z)}else{var Se=n-+this._x.call(null,L.data),Ce=r-+this._y.call(null,L.data),Ee=Se*Se+Ce*Ce;if(Ee<e){var Ke=Math.sqrt(e=Ee);o=n-Ke,a=r-Ke,h=n+Ke,g=r+Ke,i=L.data}}return i},$l.remove=function ame(n){if(isNaN(h=+this._x.call(null,n))||isNaN(g=+this._y.call(null,n)))return this;var r,i,o,a,h,g,y,L,z,q,re,ae,e=this._root,s=this._x0,l=this._y0,u=this._x1,d=this._y1;if(!e)return this;if(e.length)for(;;){if((z=h>=(y=(s+u)/2))?s=y:u=y,(q=g>=(L=(l+d)/2))?l=L:d=L,r=e,!(e=e[re=q<<1|z]))return this;if(!e.length)break;(r[re+1&3]||r[re+2&3]||r[re+3&3])&&(i=r,ae=re)}for(;e.data!==n;)if(o=e,!(e=e.next))return this;return(a=e.next)&&delete e.next,o?(a?o.next=a:delete o.next,this):r?(a?r[re]=a:delete r[re],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[ae]=e:this._root=e),this):(this._root=a,this)},$l.removeAll=function sme(n){for(var r=0,e=n.length;r<e;++r)this.remove(n[r]);return this},$l.root=function lme(){return this._root},$l.size=function ume(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},$l.visit=function cme(n){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new Xl(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!n(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var d=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new Xl(o,d,h,l,u)),(o=i[2])&&r.push(new Xl(o,a,h,d,u)),(o=i[1])&&r.push(new Xl(o,d,s,l,h)),(o=i[0])&&r.push(new Xl(o,a,s,d,h))}return this},$l.visitAfter=function dme(n){var i,r=[],e=[];for(this._root&&r.push(new Xl(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,l=i.y0,u=i.x1,d=i.y1,h=(s+u)/2,g=(l+d)/2;(a=o[0])&&r.push(new Xl(a,s,l,h,g)),(a=o[1])&&r.push(new Xl(a,h,l,u,g)),(a=o[2])&&r.push(new Xl(a,s,g,h,d)),(a=o[3])&&r.push(new Xl(a,h,g,u,d))}e.push(i)}for(;i=e.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},$l.x=function pme(n){return arguments.length?(this._x=n,this):this._x},$l.y=function mme(n){return arguments.length?(this._y=n,this):this._y};var Jq,Tme=Math.PI*(3-Math.sqrt(5));function Mme(n){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=mg(),u=XE(h),d=t0("tick","end");function h(){g(),d.call("tick",r),e<i&&(u.stop(),d.call("end",r))}function g(){var z,re,q=n.length;for(e+=(a-e)*o,l.each(function(ae){ae(e)}),z=0;z<q;++z)null==(re=n[z]).fx?re.x+=re.vx*=s:(re.x=re.fx,re.vx=0),null==re.fy?re.y+=re.vy*=s:(re.y=re.fy,re.vy=0)}function y(){for(var re,z=0,q=n.length;z<q;++z){if((re=n[z]).index=z,isNaN(re.x)||isNaN(re.y)){var ae=10*Math.sqrt(z),Se=z*Tme;re.x=ae*Math.cos(Se),re.y=ae*Math.sin(Se)}(isNaN(re.vx)||isNaN(re.vy))&&(re.vx=re.vy=0)}}function L(z){return z.initialize&&z.initialize(n),z}return null==n&&(n=[]),y(),r={tick:g,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(n=q,y(),l.each(L),r):n},alpha:function(q){return arguments.length?(e=+q,r):e},alphaMin:function(q){return arguments.length?(i=+q,r):i},alphaDecay:function(q){return arguments.length?(o=+q,r):+o},alphaTarget:function(q){return arguments.length?(a=+q,r):a},velocityDecay:function(q){return arguments.length?(s=1-q,r):1-s},force:function(q,re){return arguments.length>1?(null==re?l.remove(q):l.set(q,L(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ke,st,De,it,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se<Ce;++Se)(st=(Ee=q-(De=n[Se]).x)*Ee+(Ke=re-De.y)*Ke)<ae&&(it=De,ae=st);return it},on:function(q,re){return arguments.length>1?(d.on(q,re),r):d.on(q)}}}function Sme(){var n,r,e,o,i=gs(-30),a=1,s=1/0,l=.81;function u(y){var L,z=n.length,q=dZ(n,Cme,wme).visitAfter(h);for(e=y,L=0;L<z;++L)r=n[L],q.visit(g)}function d(){if(n){var y,z,L=n.length;for(o=new Array(L),y=0;y<L;++y)z=n[y],o[z.index]=+i(z,y,n)}}function h(y){var z,q,ae,Se,Ce,L=0,re=0;if(y.length){for(ae=Se=Ce=0;Ce<4;++Ce)(z=y[Ce])&&(q=Math.abs(z.value))&&(L+=z.value,re+=q,ae+=q*z.x,Se+=q*z.y);y.x=ae/re,y.y=Se/re}else{(z=y).x=z.data.x,z.y=z.data.y;do{L+=o[z.data.index]}while(z=z.next)}y.value=L}function g(y,L,z,q){if(!y.value)return!0;var re=y.x-r.x,ae=y.y-r.y,Se=q-L,Ce=re*re+ae*ae;if(Se*Se/l<Ce)return Ce<s&&(0===re&&(Ce+=(re=yg())*re),0===ae&&(Ce+=(ae=yg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)),r.vx+=re*y.value*e/Ce,r.vy+=ae*y.value*e/Ce),!0;if(!(y.length||Ce>=s)){(y.data!==r||y.next)&&(0===re&&(Ce+=(re=yg())*re),0===ae&&(Ce+=(ae=yg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)));do{y.data!==r&&(Se=o[y.data.index]*e/Ce,r.vx+=re*Se,r.vy+=ae*Se)}while(y=y.next)}}return u.initialize=function(y){n=y,d()},u.strength=function(y){return arguments.length?(i="function"==typeof y?y:gs(+y),d(),u):i},u.distanceMin=function(y){return arguments.length?(a=y*y,u):Math.sqrt(a)},u.distanceMax=function(y){return arguments.length?(s=y*y,u):Math.sqrt(s)},u.theta=function(y){return arguments.length?(l=y*y,u):Math.sqrt(l)},u}function Eme(n,r,e){var i,a,s,o=gs(.1);function l(d){for(var h=0,g=i.length;h<g;++h){var y=i[h],L=y.x-r||1e-6,z=y.y-e||1e-6,q=Math.sqrt(L*L+z*z),re=(s[h]-q)*a[h]*d/q;y.vx+=L*re,y.vy+=z*re}}function u(){if(i){var d,h=i.length;for(a=new Array(h),s=new Array(h),d=0;d<h;++d)s[d]=+n(i[d],d,i),a[d]=isNaN(s[d])?0:+o(i[d],d,i)}}return"function"!=typeof n&&(n=gs(+n)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(d){i=d,u()},l.strength=function(d){return arguments.length?(o="function"==typeof d?d:gs(+d),u(),l):o},l.radius=function(d){return arguments.length?(n="function"==typeof d?d:gs(+d),u(),l):n},l.x=function(d){return arguments.length?(r=+d,l):r},l.y=function(d){return arguments.length?(e=+d,l):e},l}function xme(n){var e,i,o,r=gs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vx+=(o[u]-h.x)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=gs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:gs(+l),s(),a):r},a.x=function(l){return arguments.length?(n="function"==typeof l?l:gs(+l),s(),a):n},a}function Dme(n){var e,i,o,r=gs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vy+=(o[u]-h.y)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=gs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:gs(+l),s(),a):r},a.y=function(l){return arguments.length?(n="function"==typeof l?l:gs(+l),s(),a):n},a}function fZ(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function mw(n){return(n=fZ(Math.abs(n)))?n[1]:NaN}function Qq(n,r){var e=fZ(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var Xq={"":function Ime(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return Qq(100*r,e)},r:Qq,s:function Pme(n,r){var e=fZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Jq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+fZ(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},Rme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function pZ(n){return new E9(n)}function E9(n){if(!(r=Rme.exec(n)))throw new Error("invalid format: "+n);var r,e=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],l=r[6]&&+r[6],u=!!r[7],d=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):Xq[h]||(h=""),(s||"0"===e&&"="===i)&&(s=!0,e="0",i="="),this.fill=e,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=l,this.comma=u,this.precision=d,this.type=h}function $q(n){return n}pZ.prototype=E9.prototype,E9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var hZ,nJ,rJ,eJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tJ(n){var r=n.grouping&&n.thousands?function Ame(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):$q,e=n.currency,i=n.decimal,o=n.numerals?function Ome(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):$q,a=n.percent||"%";function s(u){var d=(u=pZ(u)).fill,h=u.align,g=u.sign,y=u.symbol,L=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===y?e[0]:"#"===y&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===y?e[1]:/[%p]/.test(ae)?a:"",Ee=Xq[ae],Ke=!ae||/[defgprs%]/.test(ae);function st(De){var bt,$e,Pe,it=Se,ft=Ce;if("c"===ae)ft=Ee(De)+ft,De="";else{var ct=(De=+De)<0;if(De=Ee(Math.abs(De),re),ct&&0==+De&&(ct=!1),it=(ct?"("===g?g:"-":"-"===g||"("===g?"":g)+it,ft=("s"===ae?eJ[8+Jq/3]:"")+ft+(ct&&"("===g?")":""),Ke)for(bt=-1,$e=De.length;++bt<$e;)if(48>(Pe=De.charCodeAt(bt))||Pe>57){ft=(46===Pe?i+De.slice(bt+1):De.slice(bt))+ft,De=De.slice(0,bt);break}}q&&!L&&(De=r(De,1/0));var Bt=it.length+De.length+ft.length,Ht=Bt<z?new Array(z-Bt+1).join(d):"";switch(q&&L&&(De=r(Ht+De,Ht.length?z-ft.length:1/0),Ht=""),h){case"<":De=it+De+ft+Ht;break;case"=":De=it+Ht+De+ft;break;case"^":De=Ht.slice(0,Bt=Ht.length>>1)+it+De+ft+Ht.slice(Bt);break;default:De=Ht+it+De+ft}return o(De)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),st.toString=function(){return u+""},st}return{format:s,formatPrefix:function l(u,d){var h=s(((u=pZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(mw(d)/3))),y=Math.pow(10,-g),L=eJ[8+g/3];return function(z){return h(y*z)+L}}}}function iJ(n){return hZ=tJ(n),nJ=hZ.format,rJ=hZ.formatPrefix,hZ}function Lme(n){return Math.max(0,-mw(Math.abs(n)))}function Zme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mw(r)/3)))-mw(Math.abs(n)))}function Nme(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,mw(r)-mw(n))+1}function bg(){return new mZ}function mZ(){this.reset()}iJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),mZ.prototype={constructor:mZ,reset:function(){this.s=this.t=0},add:function(r){oJ(_Z,r,this.t),oJ(this,_Z.s,this.s),this.s?this.t+=_Z.t:this.s=_Z.t},valueOf:function(){return this.s}};var _Z=new mZ;function oJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Mr=1e-6,Zi=Math.PI,Da=Zi/2,gZ=Zi/4,Bu=2*Zi,zo=180/Zi,Lr=Zi/180,Xi=Math.abs,_w=Math.atan,eu=Math.atan2,Sr=Math.cos,vZ=Math.ceil,sJ=Math.exp,yZ=(Math.floor,Math.log),x9=Math.pow,mr=Math.sin,sx=Math.sign||function(n){return n>0?1:n<0?-1:0},vs=Math.sqrt,D9=Math.tan;function lJ(n){return n>1?0:n<-1?Zi:Math.acos(n)}function gc(n){return n>1?Da:n<-1?-Da:Math.asin(n)}function uJ(n){return(n=mr(n/2))*n}function _a(){}function bZ(n,r){n&&dJ.hasOwnProperty(n.type)&&dJ[n.type](n,r)}var cJ={Feature:function(r,e){bZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)bZ(i[o].geometry,e)}},dJ={Sphere:function(r,e){e.sphere()},Point:function(r,e){r=r.coordinates,e.point(r[0],r[1],r[2])},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)r=i[o],e.point(r[0],r[1],r[2])},LineString:function(r,e){A9(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)A9(i[o],e,0)},Polygon:function(r,e){fJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)fJ(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)bZ(i[o],e)}};function A9(n,r,e){var a,i=-1,o=n.length-e;for(r.lineStart();++i<o;)a=n[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function fJ(n,r){var e=-1,i=n.length;for(r.polygonStart();++e<i;)A9(n[e],r,1);r.polygonEnd()}function jd(n,r){n&&cJ.hasOwnProperty(n.type)?cJ[n.type](n,r):bZ(n,r)}var pJ,hJ,O9,I9,P9,CZ=bg(),wZ=bg(),fp={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){CZ.reset(),fp.lineStart=Bme,fp.lineEnd=Fme},polygonEnd:function(){var r=+CZ;wZ.add(r<0?Bu+r:r),this.lineStart=this.lineEnd=this.point=_a},sphere:function(){wZ.add(Bu)}};function Bme(){fp.point=Ume}function Fme(){mJ(pJ,hJ)}function Ume(n,r){fp.point=mJ,pJ=n,hJ=r,O9=n*=Lr,I9=Sr(r=(r*=Lr)/2+gZ),P9=mr(r)}function mJ(n,r){var e=(n*=Lr)-O9,i=e>=0?1:-1,o=i*e,a=Sr(r=(r*=Lr)/2+gZ),s=mr(r),l=P9*s,u=I9*a+l*Sr(o),d=l*i*mr(o);CZ.add(eu(d,u)),O9=n,I9=a,P9=s}function Hme(n){return wZ.reset(),jd(n,fp),2*wZ}function kZ(n){return[eu(n[1],n[0]),gc(n[2])]}function c0(n){var r=n[0],e=n[1],i=Sr(e);return[i*Sr(r),i*mr(r),mr(e)]}function TZ(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function gw(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function R9(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function MZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function SZ(n){var r=vs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Aa,vc,Ha,Qc,d0,_J,gJ,vw,Cg,nm,lx=bg(),rm={point:L9,lineStart:yJ,lineEnd:bJ,polygonStart:function(){rm.point=CJ,rm.lineStart=jme,rm.lineEnd=Gme,lx.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),rm.point=L9,rm.lineStart=yJ,rm.lineEnd=bJ,CZ<0?(Aa=-(Ha=180),vc=-(Qc=90)):lx>Mr?Qc=90:lx<-Mr&&(vc=-90),nm[0]=Aa,nm[1]=Ha}};function L9(n,r){Cg.push(nm=[Aa=n,Ha=n]),r<vc&&(vc=r),r>Qc&&(Qc=r)}function vJ(n,r){var e=c0([n*Lr,r*Lr]);if(vw){var i=gw(vw,e),a=gw([i[1],-i[0],0],i);SZ(a),a=kZ(a);var d,s=n-d0,l=s>0?1:-1,u=a[0]*zo*l,h=Xi(s)>180;h^(l*d0<u&&u<l*n)?(d=a[1]*zo)>Qc&&(Qc=d):h^(l*d0<(u=(u+360)%360-180)&&u<l*n)?(d=-a[1]*zo)<vc&&(vc=d):(r<vc&&(vc=r),r>Qc&&(Qc=r)),h?n<d0?yc(Aa,n)>yc(Aa,Ha)&&(Ha=n):yc(n,Ha)>yc(Aa,Ha)&&(Aa=n):Ha>=Aa?(n<Aa&&(Aa=n),n>Ha&&(Ha=n)):n>d0?yc(Aa,n)>yc(Aa,Ha)&&(Ha=n):yc(n,Ha)>yc(Aa,Ha)&&(Aa=n)}else Cg.push(nm=[Aa=n,Ha=n]);r<vc&&(vc=r),r>Qc&&(Qc=r),vw=e,d0=n}function yJ(){rm.point=vJ}function bJ(){nm[0]=Aa,nm[1]=Ha,rm.point=L9,vw=null}function CJ(n,r){if(vw){var e=n-d0;lx.add(Xi(e)>180?e+(e>0?360:-360):e)}else _J=n,gJ=r;fp.point(n,r),vJ(n,r)}function jme(){fp.lineStart()}function Gme(){CJ(_J,gJ),fp.lineEnd(),Xi(lx)>Mr&&(Aa=-(Ha=180)),nm[0]=Aa,nm[1]=Ha,vw=null}function yc(n,r){return(r-=n)<0?r+360:r}function zme(n,r){return n[0]-r[0]}function wJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function Wme(n){var r,e,i,o,a,s,l;if(Qc=Ha=-(Aa=vc=1/0),Cg=[],jd(n,rm),e=Cg.length){for(Cg.sort(zme),r=1,a=[i=Cg[0]];r<e;++r)wJ(i,(o=Cg[r])[0])||wJ(i,o[1])?(yc(i[0],o[1])>yc(i[0],i[1])&&(i[1]=o[1]),yc(o[0],i[1])>yc(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[e=a.length-1];r<=e;i=o,++r)o=a[r],(l=yc(i[1],o[0]))>s&&(s=l,Aa=o[0],Ha=i[1])}return Cg=nm=null,Aa===1/0||vc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Aa,vc],[Ha,Qc]]}var ux,EZ,xZ,DZ,AZ,OZ,IZ,PZ,Z9,N9,B9,kJ,TJ,tu,nu,ru,Gd={sphere:_a,point:F9,lineStart:MJ,lineEnd:SJ,polygonStart:function(){Gd.lineStart=Kme,Gd.lineEnd=qme},polygonEnd:function(){Gd.lineStart=MJ,Gd.lineEnd=SJ}};function F9(n,r){n*=Lr;var e=Sr(r*=Lr);cx(e*Sr(n),e*mr(n),mr(r))}function cx(n,r,e){++ux,xZ+=(n-xZ)/ux,DZ+=(r-DZ)/ux,AZ+=(e-AZ)/ux}function MJ(){Gd.point=Vme}function Vme(n,r){n*=Lr;var e=Sr(r*=Lr);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),Gd.point=Yme,cx(tu,nu,ru)}function Yme(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=eu(vs((s=nu*a-ru*o)*s+(s=ru*i-tu*a)*s+(s=tu*o-nu*i)*s),tu*i+nu*o+ru*a);EZ+=s,OZ+=s*(tu+(tu=i)),IZ+=s*(nu+(nu=o)),PZ+=s*(ru+(ru=a)),cx(tu,nu,ru)}function SJ(){Gd.point=F9}function Kme(){Gd.point=Jme}function qme(){EJ(kJ,TJ),Gd.point=F9}function Jme(n,r){kJ=n,TJ=r,n*=Lr,r*=Lr,Gd.point=EJ;var e=Sr(r);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),cx(tu,nu,ru)}function EJ(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=nu*a-ru*o,l=ru*i-tu*a,u=tu*o-nu*i,d=vs(s*s+l*l+u*u),h=gc(d),g=d&&-h/d;Z9+=g*s,N9+=g*l,B9+=g*u,EZ+=h,OZ+=h*(tu+(tu=i)),IZ+=h*(nu+(nu=o)),PZ+=h*(ru+(ru=a)),cx(tu,nu,ru)}function Qme(n){ux=EZ=xZ=DZ=AZ=OZ=IZ=PZ=Z9=N9=B9=0,jd(n,Gd);var r=Z9,e=N9,i=B9,o=r*r+e*e+i*i;return o<1e-12&&(r=OZ,e=IZ,i=PZ,EZ<Mr&&(r=xZ,e=DZ,i=AZ),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[eu(e,r)*zo,gc(i/vs(o))*zo]}function yw(n){return function(){return n}}function U9(n,r){function e(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),e}function H9(n,r){return[n>Zi?n-Bu:n<-Zi?n+Bu:n,r]}function j9(n,r,e){return(n%=Bu)?r||e?U9(DJ(n),AJ(r,e)):DJ(n):r||e?AJ(r,e):H9}function xJ(n){return function(r,e){return[(r+=n)>Zi?r-Bu:r<-Zi?r+Bu:r,e]}}function DJ(n){var r=xJ(n);return r.invert=xJ(-n),r}function AJ(n,r){var e=Sr(n),i=mr(n),o=Sr(r),a=mr(r);function s(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,y=mr(u),L=y*e+h*i;return[eu(g*o-L*a,h*e-y*i),gc(L*o+g*a)]}return s.invert=function(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,y=mr(u),L=y*o-g*a;return[eu(g*o+y*a,h*e+L*i),gc(L*e-h*i)]},s}function OJ(n){function r(e){return(e=n(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e}return n=j9(n[0]*Lr,n[1]*Lr,n.length>2?n[2]*Lr:0),r.invert=function(e){return(e=n.invert(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e},r}function IJ(n,r,e,i,o,a){if(e){var s=Sr(r),l=mr(r),u=i*e;null==o?(o=r+i*Bu,a=r-u/2):(o=PJ(s,o),a=PJ(s,a),(i>0?o<a:o>a)&&(o+=i*Bu));for(var d,h=o;i>0?h>a:h<a;h-=u)d=kZ([s,-l*Sr(h),-l*mr(h)]),n.point(d[0],d[1])}}function PJ(n,r){(r=c0(r))[0]-=n,SZ(r);var e=lJ(-r[1]);return((-r[2]<0?-e:e)+Bu-Mr)%Bu}function Xme(){var i,o,n=yw([0,0]),r=yw(90),e=yw(6),a={point:function s(u,d){i.push(u=o(u,d)),u[0]*=zo,u[1]*=zo}};function l(){var u=n.apply(this,arguments),d=r.apply(this,arguments)*Lr,h=e.apply(this,arguments)*Lr;return i=[],o=j9(-u[0]*Lr,-u[1]*Lr,0).invert,IJ(a,d,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(n="function"==typeof u?u:yw([+u[0],+u[1]]),l):n},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:yw(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:yw(+u),l):e},l}function RJ(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:_a,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function RZ(n,r){return Xi(n[0]-r[0])<Mr&&Xi(n[1]-r[1])<Mr}function LZ(n,r,e,i){this.x=n,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function LJ(n,r,e,i,o){var l,u,a=[],s=[];if(n.forEach(function(z){if(!((q=z.length-1)<=0)){var q,Se,re=z[0],ae=z[q];if(RZ(re,ae)){for(o.lineStart(),l=0;l<q;++l)o.point((re=z[l])[0],re[1]);return void o.lineEnd()}a.push(Se=new LZ(re,z,null,!0)),s.push(Se.o=new LZ(re,null,Se,!1)),a.push(Se=new LZ(ae,z,null,!1)),s.push(Se.o=new LZ(ae,null,Se,!0))}}),a.length){for(s.sort(r),ZJ(a),ZJ(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,g,d=a[0];;){for(var y=d,L=!0;y.v;)if((y=y.n)===d)return;h=y.z,o.lineStart();do{if(y.v=y.o.v=!0,y.e){if(L)for(l=0,u=h.length;l<u;++l)o.point((g=h[l])[0],g[1]);else i(y.x,y.n.x,1,o);y=y.n}else{if(L)for(h=y.p.z,l=h.length-1;l>=0;--l)o.point((g=h[l])[0],g[1]);else i(y.x,y.p.x,-1,o);y=y.p}h=(y=y.o).z,L=!L}while(!y.v);o.lineEnd()}}}function ZJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e<r;)i.n=o=n[e],o.p=i,i=o;i.n=o=n[0],o.p=i}}H9.invert=H9;var G9=bg();function NJ(n,r){var e=r[0],i=r[1],o=mr(i),a=[mr(e),-Sr(e),0],s=0,l=0;G9.reset(),1===o?i=Da+Mr:-1===o&&(i=-Da-Mr);for(var u=0,d=n.length;u<d;++u)if(g=(h=n[u]).length)for(var h,g,y=h[g-1],L=y[0],z=y[1]/2+gZ,q=mr(z),re=Sr(z),ae=0;ae<g;++ae,L=Ce,q=Ke,re=st,y=Se){var Se=h[ae],Ce=Se[0],Ee=Se[1]/2+gZ,Ke=mr(Ee),st=Sr(Ee),De=Ce-L,it=De>=0?1:-1,ft=it*De,bt=ft>Zi,$e=q*Ke;if(G9.add(eu($e*it*mr(ft),re*st+$e*Sr(ft))),s+=bt?De+it*Bu:De,bt^L>=e^Ce>=e){var Pe=gw(c0(y),c0(Se));SZ(Pe);var ct=gw(a,Pe);SZ(ct);var Bt=(bt^De>=0?-1:1)*gc(ct[2]);(i>Bt||i===Bt&&(Pe[0]||Pe[1]))&&(l+=bt^De>=0?1:-1)}}return(s<-Mr||s<Mr&&G9<-Mr)^1&l}function BJ(n,r,e,i){return function(o){var d,h,g,a=r(o),s=RJ(),l=r(s),u=!1,y={point:L,lineStart:q,lineEnd:re,polygonStart:function(){y.point=ae,y.lineStart=Se,y.lineEnd=Ce,h=[],d=[]},polygonEnd:function(){y.point=L,y.lineStart=q,y.lineEnd=re,h=D7(h);var Ke=NJ(d,i);h.length?(u||(o.polygonStart(),u=!0),LJ(h,e_e,Ke,e,o)):Ke&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function L(Ee,Ke){n(Ee,Ke)&&o.point(Ee,Ke)}function z(Ee,Ke){a.point(Ee,Ke)}function q(){y.point=z,a.lineStart()}function re(){y.point=L,a.lineEnd()}function ae(Ee,Ke){g.push([Ee,Ke]),l.point(Ee,Ke)}function Se(){l.lineStart(),g=[]}function Ce(){ae(g[0][0],g[0][1]),l.lineEnd();var st,it,ft,bt,Ee=l.clean(),Ke=s.result(),De=Ke.length;if(g.pop(),d.push(g),g=null,De){if(1&Ee){if((it=(ft=Ke[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),st=0;st<it;++st)o.point((bt=ft[st])[0],bt[1]);o.lineEnd()}return}De>1&&2&Ee&&Ke.push(Ke.pop().concat(Ke.shift())),h.push(Ke.filter($me))}}return y}}function $me(n){return n.length>1}function e_e(n,r){return((n=n.x)[0]<0?n[1]-Da-Mr:Da-n[1])-((r=r.x)[0]<0?r[1]-Da-Mr:Da-r[1])}var z9=BJ(function(){return!0},function t_e(n){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,l){var u=s>0?Zi:-Zi,d=Xi(s-r);Xi(d-Zi)<Mr?(n.point(r,e=(e+l)/2>0?Da:-Da),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Zi&&(Xi(r-i)<Mr&&(r-=i*Mr),Xi(s-u)<Mr&&(s-=u*Mr),e=function n_e(n,r,e,i){var o,a,s=mr(n-e);return Xi(s)>Mr?_w((mr(r)*(a=Sr(i))*mr(e)-mr(i)*(o=Sr(r))*mr(n))/(o*a*s)):(r+i)/2}(r,e,s,l),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),o=0),n.point(r=s,e=l),i=u},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function r_e(n,r,e,i){var o;if(null==n)o=e*Da,i.point(-Zi,o),i.point(0,o),i.point(Zi,o),i.point(Zi,0),i.point(Zi,-o),i.point(0,-o),i.point(-Zi,-o),i.point(-Zi,0),i.point(-Zi,o);else if(Xi(n[0]-r[0])>Mr){var a=n[0]<r[0]?Zi:-Zi;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Zi,-Da]);function FJ(n){var r=Sr(n),e=6*Lr,i=r>0,o=Xi(r)>Mr;function s(h,g){return Sr(h)*Sr(g)>r}function u(h,g,y){var q=[1,0,0],re=gw(c0(h),c0(g)),ae=TZ(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!y&&h;var Ee=r*ae/Ce,Ke=-r*Se/Ce,st=gw(q,re),De=MZ(q,Ee);R9(De,MZ(re,Ke));var ft=st,bt=TZ(De,ft),$e=TZ(ft,ft),Pe=bt*bt-$e*(TZ(De,De)-1);if(!(Pe<0)){var ct=vs(Pe),Bt=MZ(ft,(-bt-ct)/$e);if(R9(Bt,De),Bt=kZ(Bt),!y)return Bt;var zn,Ht=h[0],Pt=g[0],Tn=h[1],jn=g[1];Pt<Ht&&(zn=Ht,Ht=Pt,Pt=zn);var ar=Pt-Ht,kr=Xi(ar-Zi)<Mr;if(!kr&&jn<Tn&&(zn=Tn,Tn=jn,jn=zn),kr||ar<Mr?kr?Tn+jn>0^Bt[1]<(Xi(Bt[0]-Ht)<Mr?Tn:jn):Tn<=Bt[1]&&Bt[1]<=jn:ar>Zi^(Ht<=Bt[0]&&Bt[0]<=Pt)){var Wr=MZ(ft,(-bt+ct)/$e);return R9(Wr,De),[Bt,kZ(Wr)]}}}function d(h,g){var y=i?n:Zi-n,L=0;return h<-y?L|=1:h>y&&(L|=2),g<-y?L|=4:g>y&&(L|=8),L}return BJ(s,function l(h){var g,y,L,z,q;return{lineStart:function(){z=L=!1,q=1},point:function(ae,Se){var Ee,Ce=[ae,Se],Ke=s(ae,Se),st=i?Ke?0:d(ae,Se):Ke?d(ae+(ae<0?Zi:-Zi),Se):0;if(!g&&(z=L=Ke)&&h.lineStart(),Ke!==L&&((!(Ee=u(g,Ce))||RZ(g,Ee)||RZ(Ce,Ee))&&(Ce[0]+=Mr,Ce[1]+=Mr,Ke=s(Ce[0],Ce[1]))),Ke!==L)q=0,Ke?(h.lineStart(),Ee=u(Ce,g),h.point(Ee[0],Ee[1])):(Ee=u(g,Ce),h.point(Ee[0],Ee[1]),h.lineEnd()),g=Ee;else if(o&&g&&i^Ke){var De;!(st&y)&&(De=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(De[0][0],De[0][1]),h.point(De[1][0],De[1][1]),h.lineEnd()):(h.point(De[1][0],De[1][1]),h.lineEnd(),h.lineStart(),h.point(De[0][0],De[0][1])))}Ke&&(!g||!RZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,L=Ke,y=st},lineEnd:function(){L&&h.lineEnd(),g=null},clean:function(){return q|(z&&L)<<1}}},function a(h,g,y,L){IJ(L,n,e,y,h,g)},i?[0,-n]:[-Zi,n-Zi])}var dx=1e9,ZZ=-dx;function NZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,y){var L=0,z=0;if(null==d||(L=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{y.point(0===L||3===L?n:e,L>1?i:r)}while((L=(L+g+4)%4)!==z);else y.point(h[0],h[1])}function s(d,h){return Xi(d[0]-n)<Mr?h>0?0:3:Xi(d[0]-e)<Mr?h>0?2:1:Xi(d[1]-r)<Mr?h>0?1:0:h>0?3:2}function l(d,h){return u(d.x,h.x)}function u(d,h){var g=s(d,1),y=s(h,1);return g!==y?g-y:0===g?h[1]-d[1]:1===g?d[0]-h[0]:2===g?d[1]-h[1]:h[0]-d[0]}return function(d){var y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,h=d,g=RJ(),De={point:it,lineStart:function Pe(){De.point=Bt,L&&L.push(z=[]),Ke=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ct(){y&&(Bt(q,re),ae&&Ee&&g.rejoin(),y.push(g.result())),De.point=it,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,y=[],L=[],st=!0},polygonEnd:function $e(){var Ht=function ft(){for(var Ht=0,Pt=0,Tn=L.length;Pt<Tn;++Pt)for(var _r,Wr,jn=L[Pt],zn=1,ar=jn.length,kr=jn[0],Hr=kr[0],Kr=kr[1];zn<ar;++zn)_r=Hr,Wr=Kr,kr=jn[zn],Hr=kr[0],Kr=kr[1],Wr<=i?Kr>i&&(Hr-_r)*(i-Wr)>(Kr-Wr)*(n-_r)&&++Ht:Kr<=i&&(Hr-_r)*(i-Wr)<(Kr-Wr)*(n-_r)&&--Ht;return Ht}(),Pt=st&&Ht,Tn=(y=D7(y)).length;(Pt||Tn)&&(d.polygonStart(),Pt&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&LJ(y,l,Ht,a,d),d.polygonEnd()),h=d,y=L=z=null}};function it(Ht,Pt){o(Ht,Pt)&&h.point(Ht,Pt)}function Bt(Ht,Pt){var Tn=o(Ht,Pt);if(L&&z.push([Ht,Pt]),Ke)q=Ht,re=Pt,ae=Tn,Ke=!1,Tn&&(h.lineStart(),h.point(Ht,Pt));else if(Tn&&Ee)h.point(Ht,Pt);else{var jn=[Se=Math.max(ZZ,Math.min(dx,Se)),Ce=Math.max(ZZ,Math.min(dx,Ce))],zn=[Ht=Math.max(ZZ,Math.min(dx,Ht)),Pt=Math.max(ZZ,Math.min(dx,Pt))];!function i_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,y=r[0]-s,L=r[1]-l;if(z=e-s,y||!(z>0)){if(z/=y,y<0){if(z<h)return;z<g&&(g=z)}else if(y>0){if(z>g)return;z>h&&(h=z)}if(z=o-s,y||!(z<0)){if(z/=y,y<0){if(z>g)return;z>h&&(h=z)}else if(y>0){if(z<h)return;z<g&&(g=z)}if(z=i-l,L||!(z>0)){if(z/=L,L<0){if(z<h)return;z<g&&(g=z)}else if(L>0){if(z>g)return;z>h&&(h=z)}if(z=a-l,L||!(z<0)){if(z/=L,L<0){if(z>g)return;z>h&&(h=z)}else if(L>0){if(z<h)return;z<g&&(g=z)}return h>0&&(n[0]=s+h*y,n[1]=l+h*L),g<1&&(r[0]=s+g*y,r[1]=l+g*L),!0}}}}}(jn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(Ht,Pt),st=!1):(Ee||(h.lineStart(),h.point(jn[0],jn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),st=!1)}Se=Ht,Ce=Pt,Ee=Tn}return De}}function o_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=NZ(n,r,e,i)(a=u)},extent:function(u){return arguments.length?(n=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[n,r],[e,i]]}}}var V9,BZ,FZ,W9=bg(),bw={sphere:_a,point:_a,lineStart:function a_e(){bw.point=l_e,bw.lineEnd=s_e},lineEnd:_a,polygonStart:_a,polygonEnd:_a};function s_e(){bw.point=bw.lineEnd=_a}function l_e(n,r){V9=n*=Lr,BZ=mr(r*=Lr),FZ=Sr(r),bw.point=u_e}function u_e(n,r){n*=Lr;var e=mr(r*=Lr),i=Sr(r),o=Xi(n-V9),a=Sr(o),l=i*mr(o),u=FZ*e-BZ*i*a,d=BZ*e+FZ*i*a;W9.add(eu(vs(l*l+u*u),d)),V9=n,BZ=e,FZ=i}function UJ(n){return W9.reset(),jd(n,bw),+W9}var Y9=[null,null],c_e={type:"LineString",coordinates:Y9};function fx(n,r){return Y9[0]=n,Y9[1]=r,UJ(c_e)}var HJ={Feature:function(r,e){return UZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(UZ(i[o].geometry,e))return!0;return!1}},jJ={Sphere:function(){return!0},Point:function(r,e){return GJ(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(GJ(i[o],e))return!0;return!1},LineString:function(r,e){return zJ(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(zJ(i[o],e))return!0;return!1},Polygon:function(r,e){return WJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(WJ(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(UZ(i[o],e))return!0;return!1}};function UZ(n,r){return!(!n||!jJ.hasOwnProperty(n.type))&&jJ[n.type](n,r)}function GJ(n,r){return 0===fx(n,r)}function zJ(n,r){var e=fx(n[0],n[1]);return fx(n[0],r)+fx(r,n[1])<=e+Mr}function WJ(n,r){return!!NJ(n.map(d_e),VJ(r))}function d_e(n){return(n=n.map(VJ)).pop(),n}function VJ(n){return[n[0]*Lr,n[1]*Lr]}function f_e(n,r){return(n&&HJ.hasOwnProperty(n.type)?HJ[n.type]:UZ)(n,r)}function YJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function KJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function qJ(){var n,r,e,i,o,a,s,l,y,L,z,q,u=10,d=u,h=90,g=360,re=2.5;function ae(){return{type:"MultiLineString",coordinates:Se()}}function Se(){return mc(vZ(i/h)*h,e,h).map(z).concat(mc(vZ(l/g)*g,s,g).map(q)).concat(mc(vZ(r/u)*u,n,u).filter(function(Ce){return Xi(Ce%h)>Mr}).map(y)).concat(mc(vZ(a/d)*d,o,d).filter(function(Ce){return Xi(Ce%g)>Mr}).map(L))}return ae.lines=function(){return Se().map(function(Ce){return{type:"LineString",coordinates:Ce}})},ae.outline=function(){return{type:"Polygon",coordinates:[z(i).concat(q(s).slice(1),z(e).reverse().slice(1),q(l).reverse().slice(1))]}},ae.extent=function(Ce){return arguments.length?ae.extentMajor(Ce).extentMinor(Ce):ae.extentMinor()},ae.extentMajor=function(Ce){return arguments.length?(i=+Ce[0][0],e=+Ce[1][0],l=+Ce[0][1],s=+Ce[1][1],i>e&&(Ce=i,i=e,e=Ce),l>s&&(Ce=l,l=s,s=Ce),ae.precision(re)):[[i,l],[e,s]]},ae.extentMinor=function(Ce){return arguments.length?(r=+Ce[0][0],n=+Ce[1][0],a=+Ce[0][1],o=+Ce[1][1],r>n&&(Ce=r,r=n,n=Ce),a>o&&(Ce=a,a=o,o=Ce),ae.precision(re)):[[r,a],[n,o]]},ae.step=function(Ce){return arguments.length?ae.stepMajor(Ce).stepMinor(Ce):ae.stepMinor()},ae.stepMajor=function(Ce){return arguments.length?(h=+Ce[0],g=+Ce[1],ae):[h,g]},ae.stepMinor=function(Ce){return arguments.length?(u=+Ce[0],d=+Ce[1],ae):[u,d]},ae.precision=function(Ce){return arguments.length?(re=+Ce,y=YJ(a,o,90),L=KJ(r,n,re),z=YJ(l,s,90),q=KJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Mr],[180,90-Mr]]).extentMinor([[-180,-80-Mr],[180,80+Mr]])}function p_e(){return qJ()()}function h_e(n,r){var e=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Sr(i),l=mr(i),u=Sr(a),d=mr(a),h=s*Sr(e),g=s*mr(e),y=u*Sr(o),L=u*mr(o),z=2*gc(vs(uJ(a-i)+s*u*uJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*y,Ke=Ce*g+Se*L,st=Ce*l+Se*d;return[eu(Ke,Ee)*zo,eu(st,vs(Ee*Ee+Ke*Ke))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function f0(n){return n}var JJ,QJ,J9,Q9,K9=bg(),q9=bg(),wg={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){wg.lineStart=m_e,wg.lineEnd=g_e},polygonEnd:function(){wg.lineStart=wg.lineEnd=wg.point=_a,K9.add(Xi(q9)),q9.reset()},result:function(){var r=K9/2;return K9.reset(),r}};function m_e(){wg.point=__e}function __e(n,r){wg.point=XJ,JJ=J9=n,QJ=Q9=r}function XJ(n,r){q9.add(Q9*n-J9*r),J9=n,Q9=r}function g_e(){XJ(JJ,QJ)}var $J=wg,Cw=1/0,HZ=Cw,px=-Cw,jZ=px,v_e={point:function y_e(n,r){n<Cw&&(Cw=n),n>px&&(px=n),r<HZ&&(HZ=r),r>jZ&&(jZ=r)},lineStart:_a,lineEnd:_a,polygonStart:_a,polygonEnd:_a,result:function(){var r=[[Cw,HZ],[px,jZ]];return px=jZ=-(HZ=Cw=1/0),r}};var eQ,tQ,pp,hp,GZ=v_e,X9=0,$9=0,hx=0,zZ=0,WZ=0,ww=0,eH=0,tH=0,mx=0,zd={point:p0,lineStart:nQ,lineEnd:rQ,polygonStart:function(){zd.lineStart=w_e,zd.lineEnd=k_e},polygonEnd:function(){zd.point=p0,zd.lineStart=nQ,zd.lineEnd=rQ},result:function(){var r=mx?[eH/mx,tH/mx]:ww?[zZ/ww,WZ/ww]:hx?[X9/hx,$9/hx]:[NaN,NaN];return X9=$9=hx=zZ=WZ=ww=eH=tH=mx=0,r}};function p0(n,r){X9+=n,$9+=r,++hx}function nQ(){zd.point=b_e}function b_e(n,r){zd.point=C_e,p0(pp=n,hp=r)}function C_e(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);zZ+=o*(pp+n)/2,WZ+=o*(hp+r)/2,ww+=o,p0(pp=n,hp=r)}function rQ(){zd.point=p0}function w_e(){zd.point=T_e}function k_e(){iQ(eQ,tQ)}function T_e(n,r){zd.point=iQ,p0(eQ=pp=n,tQ=hp=r)}function iQ(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);zZ+=o*(pp+n)/2,WZ+=o*(hp+r)/2,ww+=o,eH+=(o=hp*n-pp*r)*(pp+n),tH+=o*(hp+r),mx+=3*o,p0(pp=n,hp=r)}var oQ=zd;function aQ(n){this._context=n}aQ.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._context.moveTo(r,e),this._point=1;break;case 1:this._context.lineTo(r,e);break;default:this._context.moveTo(r+this._radius,e),this._context.arc(r,e,this._radius,0,Bu)}},result:_a};var rH,sQ,lQ,_x,gx,nH=bg(),VZ={point:_a,lineStart:function(){VZ.point=M_e},lineEnd:function(){rH&&uQ(sQ,lQ),VZ.point=_a},polygonStart:function(){rH=!0},polygonEnd:function(){rH=null},result:function(){var r=+nH;return nH.reset(),r}};function M_e(n,r){VZ.point=uQ,sQ=_x=n,lQ=gx=r}function uQ(n,r){_x-=n,gx-=r,nH.add(vs(_x*_x+gx*gx)),_x=n,gx=r}var cQ=VZ;function dQ(){this._string=[]}function fQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function S_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),jd(s,i(o))),o.result()}return a.area=function(s){return jd(s,i($J)),$J.result()},a.measure=function(s){return jd(s,i(cQ)),cQ.result()},a.bounds=function(s){return jd(s,i(GZ)),GZ.result()},a.centroid=function(s){return jd(s,i(oQ)),oQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,f0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new dQ):new aQ(r=s),"function"!=typeof e&&o.pointRadius(e),a):r},a.pointRadius=function(s){return arguments.length?(e="function"==typeof s?s:(o.pointRadius(+s),+s),a):e},a.projection(n).context(r)}function E_e(n){return{stream:vx(n)}}function vx(n){return function(r){var e=new iH;for(var i in n)e[i]=n[i];return e.stream=r,e}}function iH(){}function oH(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),jd(e,n.stream(GZ)),r(GZ.result()),null!=i&&n.clipExtent(i),n}function YZ(n,r,e){return oH(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),l=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,u=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([l,u])},e)}function aH(n,r,e){return YZ(n,[[0,0],r],e)}function sH(n,r,e){return oH(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,l=-a*i[0][1];n.scale(150*a).translate([s,l])},e)}function lH(n,r,e){return oH(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],l=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,l])},e)}dQ.prototype={_radius:4.5,_circle:fQ(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._string.push("M",r,",",e),this._point=1;break;case 1:this._string.push("L",r,",",e);break;default:null==this._circle&&(this._circle=fQ(this._radius)),this._string.push("M",r,",",e,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},iH.prototype={constructor:iH,point:function(r,e){this.stream.point(r,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var x_e=Sr(30*Lr);function hQ(n,r){return+r?function A_e(n,r){function e(i,o,a,s,l,u,d,h,g,y,L,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+y,Ke=l+L,st=u+z,De=vs(Ee*Ee+Ke*Ke+st*st),it=gc(st/=De),ft=Xi(Xi(st)-1)<Mr||Xi(a-g)<Mr?(a+g)/2:eu(Ke,Ee),bt=n(ft,it),$e=bt[0],Pe=bt[1],ct=$e-i,Bt=Pe-o,Ht=Se*ct-ae*Bt;(Ht*Ht/Ce>r||Xi((ae*ct+Se*Bt)/Ce-.5)>.3||s*y+l*L+u*z<x_e)&&(e(i,o,a,s,l,u,$e,Pe,ft,Ee/=De,Ke/=De,st,q,re),re.point($e,Pe),e($e,Pe,ft,Ee,Ke,st,d,h,g,y,L,z,q,re))}}return function(i){var o,a,s,l,u,d,h,g,y,L,z,q,re={point:ae,lineStart:Se,lineEnd:Ee,polygonStart:function(){i.polygonStart(),re.lineStart=Ke},polygonEnd:function(){i.polygonEnd(),re.lineStart=Se}};function ae(it,ft){it=n(it,ft),i.point(it[0],it[1])}function Se(){g=NaN,re.point=Ce,i.lineStart()}function Ce(it,ft){var bt=c0([it,ft]),$e=n(it,ft);e(g,y,h,L,z,q,g=$e[0],y=$e[1],h=it,L=bt[0],z=bt[1],q=bt[2],16,i),i.point(g,y)}function Ee(){re.point=ae,i.lineEnd()}function Ke(){Se(),re.point=st,re.lineEnd=De}function st(it,ft){Ce(o=it,ft),a=g,s=y,l=L,u=z,d=q,re.point=Ce}function De(){e(g,y,h,L,z,q,a,s,o,l,u,d,16,i),re.lineEnd=Ee,Ee()}return re}}(n,r):function D_e(n){return vx({point:function(e,i){e=n(e,i),this.stream.point(e[0],e[1])}})}(n)}var O_e=vx({point:function(r,e){this.stream.point(r*Lr,e*Lr)}});function P_e(n,r,e){function i(o,a){return[r+n*o,e-n*a]}return i.invert=function(o,a){return[(o-r)/n,(e-a)/n]},i}function mQ(n,r,e,i){var o=Sr(i),a=mr(i),s=o*n,l=a*n,u=o/n,d=a/n,h=(a*e-o*r)/n,g=(a*r+o*e)/n;function y(L,z){return[s*L-l*z+r,e-l*L-s*z]}return y.invert=function(L,z){return[u*L-d*z+h,g-d*L-u*z]},y}function im(n){return uH(function(){return n})()}function uH(n){var r,h,q,re,ae,Ee,Ke,st,De,it,e=150,i=480,o=250,a=0,s=0,l=0,u=0,d=0,g=0,y=null,L=z9,z=null,Se=f0,Ce=.5;function ft(ct){return st(ct[0]*Lr,ct[1]*Lr)}function bt(ct){return(ct=st.invert(ct[0],ct[1]))&&[ct[0]*zo,ct[1]*zo]}function $e(){var ct=mQ(e,0,0,g).apply(null,r(a,s)),Bt=(g?mQ:P_e)(e,i-ct[0],o-ct[1],g);return h=j9(l,u,d),Ke=U9(r,Bt),st=U9(h,Ke),Ee=hQ(Ke,Ce),Pe()}function Pe(){return De=it=null,ft}return ft.stream=function(ct){return De&&it===ct?De:De=O_e(function I_e(n){return vx({point:function(e,i){var o=n(e,i);return this.stream.point(o[0],o[1])}})}(h)(L(Ee(Se(it=ct)))))},ft.preclip=function(ct){return arguments.length?(L=ct,y=void 0,Pe()):L},ft.postclip=function(ct){return arguments.length?(Se=ct,z=q=re=ae=null,Pe()):Se},ft.clipAngle=function(ct){return arguments.length?(L=+ct?FJ(y=ct*Lr):(y=null,z9),Pe()):y*zo},ft.clipExtent=function(ct){return arguments.length?(Se=null==ct?(z=q=re=ae=null,f0):NZ(z=+ct[0][0],q=+ct[0][1],re=+ct[1][0],ae=+ct[1][1]),Pe()):null==z?null:[[z,q],[re,ae]]},ft.scale=function(ct){return arguments.length?(e=+ct,$e()):e},ft.translate=function(ct){return arguments.length?(i=+ct[0],o=+ct[1],$e()):[i,o]},ft.center=function(ct){return arguments.length?(a=ct[0]%360*Lr,s=ct[1]%360*Lr,$e()):[a*zo,s*zo]},ft.rotate=function(ct){return arguments.length?(l=ct[0]%360*Lr,u=ct[1]%360*Lr,d=ct.length>2?ct[2]%360*Lr:0,$e()):[l*zo,u*zo,d*zo]},ft.angle=function(ct){return arguments.length?(g=ct%360*Lr,$e()):g*zo},ft.precision=function(ct){return arguments.length?(Ee=hQ(Ke,Ce=ct*ct),Pe()):vs(Ce)},ft.fitExtent=function(ct,Bt){return YZ(ft,ct,Bt)},ft.fitSize=function(ct,Bt){return aH(ft,ct,Bt)},ft.fitWidth=function(ct,Bt){return sH(ft,ct,Bt)},ft.fitHeight=function(ct,Bt){return lH(ft,ct,Bt)},function(){return r=n.apply(this,arguments),ft.invert=r.invert&&bt,$e()}}function cH(n){var r=0,e=Zi/3,i=uH(n),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Lr,e=a[1]*Lr):[r*zo,e*zo]},o}function _Q(n,r){var e=mr(n),i=(e+mr(r))/2;if(Xi(i)<Mr)return function R_e(n){var r=Sr(n);function e(i,o){return[i*r,mr(o)/r]}return e.invert=function(i,o){return[i/r,gc(o*r)]},e}(n);var o=1+e*(2*i-e),a=vs(o)/i;function s(l,u){var d=vs(o-2*i*mr(u))/i;return[d*mr(l*=i),a-d*Sr(l)]}return s.invert=function(l,u){var d=a-u;return[eu(l,Xi(d))/i*sx(d),gc((o-(l*l+d*d)*i*i)/(2*i))]},s}function KZ(){return cH(_Q).scale(155.424).center([0,33.6442])}function gQ(){return KZ().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Z_e(){var n,r,i,a,l,u,e=gQ(),o=KZ().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=KZ().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(L,z){u=[L,z]}};function h(y){var L=y[0],z=y[1];return u=null,i.point(L,z),u||(a.point(L,z),u)||(l.point(L,z),u)}function g(){return n=r=null,h}return h.invert=function(y){var L=e.scale(),z=e.translate(),q=(y[0]-z[0])/L,re=(y[1]-z[1])/L;return(re>=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(y)},h.stream=function(y){return n&&r===y?n:n=function L_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([e.stream(r=y),o.stream(y),s.stream(y)])},h.precision=function(y){return arguments.length?(e.precision(y),o.precision(y),s.precision(y),g()):e.precision()},h.scale=function(y){return arguments.length?(e.scale(y),o.scale(.35*y),s.scale(y),h.translate(e.translate())):e.scale()},h.translate=function(y){if(!arguments.length)return e.translate();var L=e.scale(),z=+y[0],q=+y[1];return i=e.translate(y).clipExtent([[z-.455*L,q-.238*L],[z+.455*L,q+.238*L]]).stream(d),a=o.translate([z-.307*L,q+.201*L]).clipExtent([[z-.425*L+Mr,q+.12*L+Mr],[z-.214*L-Mr,q+.234*L-Mr]]).stream(d),l=s.translate([z-.205*L,q+.212*L]).clipExtent([[z-.214*L+Mr,q+.166*L+Mr],[z-.115*L-Mr,q+.234*L-Mr]]).stream(d),g()},h.fitExtent=function(y,L){return YZ(h,y,L)},h.fitSize=function(y,L){return aH(h,y,L)},h.fitWidth=function(y,L){return sH(h,y,L)},h.fitHeight=function(y,L){return lH(h,y,L)},h.scale(1070)}function vQ(n){return function(r,e){var i=Sr(r),o=Sr(e),a=n(i*o);return[a*o*mr(r),a*mr(e)]}}function yx(n){return function(r,e){var i=vs(r*r+e*e),o=n(i),a=mr(o),s=Sr(o);return[eu(r*a,i*s),gc(i&&e*a/i)]}}var dH=vQ(function(n){return vs(2/(1+n))});function N_e(){return im(dH).scale(124.75).clipAngle(179.999)}dH.invert=yx(function(n){return 2*gc(n/2)});var fH=vQ(function(n){return(n=lJ(n))&&n/mr(n)});function B_e(){return im(fH).scale(79.4188).clipAngle(179.999)}function bx(n,r){return[n,yZ(D9((Da+r)/2))]}function F_e(){return yQ(bx).scale(961/Bu)}function yQ(n){var l,u,d,r=im(n),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var g=Zi*i(),y=r(OJ(r.rotate()).invert([0,0]));return a(null==s?[[y[0]-g,y[1]-g],[y[0]+g,y[1]+g]]:n===bx?[[Math.max(y[0]-g,s),l],[Math.min(y[0]+g,u),d]]:[[s,Math.max(y[1]-g,l)],[u,Math.min(y[1]+g,d)]])}return r.scale=function(g){return arguments.length?(i(g),h()):i()},r.translate=function(g){return arguments.length?(o(g),h()):o()},r.center=function(g){return arguments.length?(e(g),h()):e()},r.clipExtent=function(g){return arguments.length?(null==g?s=l=u=d=null:(s=+g[0][0],l=+g[0][1],u=+g[1][0],d=+g[1][1]),h()):null==s?null:[[s,l],[u,d]]},h()}function qZ(n){return D9((Da+n)/2)}function bQ(n,r){var e=Sr(n),i=n===r?mr(n):yZ(e/Sr(r))/yZ(qZ(r)/qZ(n)),o=e*x9(qZ(n),i)/i;if(!i)return bx;function a(s,l){o>0?l<-Da+Mr&&(l=-Da+Mr):l>Da-Mr&&(l=Da-Mr);var u=o/x9(qZ(l),i);return[u*mr(i*s),o-u*Sr(i*s)]}return a.invert=function(s,l){var u=o-l,d=sx(i)*vs(s*s+u*u);return[eu(s,Xi(u))/i*sx(u),2*_w(x9(o/d,1/i))-Da]},a}function U_e(){return cH(bQ).scale(109.5).parallels([30,30])}function Cx(n,r){return[n,r]}function H_e(){return im(Cx).scale(152.63)}function CQ(n,r){var e=Sr(n),i=n===r?mr(n):(e-Sr(r))/(r-n),o=e/i+n;if(Xi(i)<Mr)return Cx;function a(s,l){var u=o-l,d=i*s;return[u*mr(d),o-u*Sr(d)]}return a.invert=function(s,l){var u=o-l;return[eu(s,Xi(u))/i*sx(u),o-sx(i)*vs(s*s+u*u)]},a}function j_e(){return cH(CQ).scale(131.154).center([0,13.9389])}function pH(n,r){var e=Sr(r),i=Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function G_e(){return im(pH).scale(144.049).clipAngle(60)}function JZ(n,r,e,i){return 1===n&&1===r&&0===e&&0===i?f0:vx({point:function(a,s){this.stream.point(a*n+e,s*r+i)}})}function z_e(){var l,u,d,g,y,L,n=1,r=0,e=0,i=1,o=1,a=f0,s=null,h=f0;function z(){return g=y=null,L}return L={stream:function(re){return g&&y===re?g:g=a(h(y=re))},postclip:function(re){return arguments.length?(h=re,s=l=u=d=null,z()):h},clipExtent:function(re){return arguments.length?(h=null==re?(s=l=u=d=null,f0):NZ(s=+re[0][0],l=+re[0][1],u=+re[1][0],d=+re[1][1]),z()):null==s?null:[[s,l],[u,d]]},scale:function(re){return arguments.length?(a=JZ((n=+re)*i,n*o,r,e),z()):n},translate:function(re){return arguments.length?(a=JZ(n*i,n*o,r=+re[0],e=+re[1]),z()):[r,e]},reflectX:function(re){return arguments.length?(a=JZ(n*(i=re?-1:1),n*o,r,e),z()):i<0},reflectY:function(re){return arguments.length?(a=JZ(n*i,n*(o=re?-1:1),r,e),z()):o<0},fitExtent:function(re,ae){return YZ(L,re,ae)},fitSize:function(re,ae){return aH(L,re,ae)},fitWidth:function(re,ae){return sH(L,re,ae)},fitHeight:function(re,ae){return lH(L,re,ae)}}}function hH(n,r){var e=r*r,i=e*e;return[n*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function W_e(){return im(hH).scale(175.295)}function mH(n,r){return[Sr(r)*mr(n),mr(r)]}function V_e(){return im(mH).scale(249.5).clipAngle(90+Mr)}function _H(n,r){var e=Sr(r),i=1+Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function Y_e(){return im(_H).scale(250).clipAngle(142)}function gH(n,r){return[yZ(D9((Da+r)/2)),-n]}function K_e(){var n=yQ(gH),r=n.center,e=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function q_e(n,r){return n.parent===r.parent?1:2}function Q_e(n,r){return n+r.x}function $_e(n,r){return Math.max(n,r.y)}function nge(){var n=q_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(y){var L=y.children;L?(y.x=function J_e(n){return n.reduce(Q_e,0)/n.length}(L),y.y=function X_e(n){return 1+n.reduce($_e,0)}(L)):(y.x=s?l+=n(y,s):0,y.y=0,s=y)});var u=function ege(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function tge(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),h=u.x-n(u,d)/2,g=d.x+n(d,u)/2;return a.eachAfter(i?function(y){y.x=(y.x-a.x)*r,y.y=(a.y-y.y)*e}:function(y){y.x=(y.x-h)/(g-h)*r,y.y=(1-(a.y?y.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],e=+a[1],o):i?null:[r,e]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],e=+a[1],o):i?[r,e]:null},o}function rge(n){var r=0,e=n.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;n.value=r}function vH(n,r){var o,s,l,u,d,e=new kw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=gge);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(d=l.length))for(o.children=new Array(d),u=d-1;u>=0;--u)a.push(s=o.children[u]=new kw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(wQ)}function gge(n){return n.children}function vge(n){n.data=n.data.data}function wQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function kw(n){this.data=n,this.depth=this.height=0,this.parent=null}fH.invert=yx(function(n){return n}),bx.invert=function(n,r){return[n,2*_w(sJ(r))-Da]},Cx.invert=Cx,pH.invert=yx(_w),hH.invert=function(n,r){var o,e=r,i=25;do{var a=e*e,s=a*a;e-=o=(e*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Xi(o)>Mr&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},mH.invert=yx(gc),_H.invert=yx(function(n){return 2*_w(n)}),gH.invert=function(n,r){return[-r,2*_w(sJ(n))-Da]},kw.prototype=vH.prototype={constructor:kw,count:function ige(){return this.eachAfter(rge)},each:function oge(n){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function sge(n){for(var o,a,s,r=this,e=[r],i=[];r=e.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)e.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function age(n){for(var i,o,r=this,e=[r];r=e.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function lge(n){return this.eachAfter(function(r){for(var e=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function uge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function cge(n){for(var r=this,e=function dge(n,r){if(n===r)return n;var e=n.ancestors(),i=r.ancestors(),o=null;for(n=e.pop(),r=i.pop();n===r;)o=n,n=e.pop(),r=i.pop();return o}(r,n),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;n!==e;)i.splice(o,0,n),n=n.parent;return i},ancestors:function fge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function pge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function hge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function mge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function _ge(){return vH(this).eachBefore(vge)}};var yge=Array.prototype.slice;function kQ(n){for(var o,a,r=0,e=(n=function bge(n){for(var e,i,r=n.length;r;)i=Math.random()*r--|0,e=n[r],n[r]=n[i],n[i]=e;return n}(yge.call(n))).length,i=[];r<e;)o=n[r],a&&TQ(a,o)?++r:(a=wge(i=Cge(i,o)),r=0);return a}function Cge(n,r){var e,i;if(yH(r,n))return[r];for(e=0;e<n.length;++e)if(QZ(r,n[e])&&yH(wx(n[e],r),n))return[n[e],r];for(e=0;e<n.length-1;++e)for(i=e+1;i<n.length;++i)if(QZ(wx(n[e],n[i]),r)&&QZ(wx(n[e],r),n[i])&&QZ(wx(n[i],r),n[e])&&yH(MQ(n[e],n[i],r),n))return[n[e],n[i],r];throw new Error}function QZ(n,r){var e=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return e<0||e*e<i*i+o*o}function TQ(n,r){var e=n.r-r.r+1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function yH(n,r){for(var e=0;e<r.length;++e)if(!TQ(n,r[e]))return!1;return!0}function wge(n){switch(n.length){case 1:return function kge(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return wx(n[0],n[1]);case 3:return MQ(n[0],n[1],n[2])}}function wx(n,r){var e=n.x,i=n.y,o=n.r,a=r.x,s=r.y,l=r.r,u=a-e,d=s-i,h=l-o,g=Math.sqrt(u*u+d*d);return{x:(e+a+u/g*h)/2,y:(i+s+d/g*h)/2,r:(g+o+l)/2}}function MQ(n,r,e){var i=n.x,o=n.y,a=n.r,s=r.x,l=r.y,u=r.r,d=e.x,h=e.y,g=e.r,y=i-s,L=i-d,z=o-l,q=o-h,re=u-a,ae=g-a,Se=i*i+o*o-a*a,Ce=Se-s*s-l*l+u*u,Ee=Se-d*d-h*h+g*g,Ke=L*z-y*q,st=(z*Ee-q*Ce)/(2*Ke)-i,De=(q*re-z*ae)/Ke,it=(L*Ce-y*Ee)/(2*Ke)-o,ft=(y*ae-L*re)/Ke,bt=De*De+ft*ft-1,$e=2*(a+st*De+it*ft),Pe=st*st+it*it-a*a,ct=-(bt?($e+Math.sqrt($e*$e-4*bt*Pe))/(2*bt):Pe/$e);return{x:i+st+De*ct,y:o+it+ft*ct,r:ct}}function SQ(n,r,e){var o,a,l,u,i=n.x-r.x,s=n.y-r.y,d=i*i+s*s;d?(a=r.r+e.r,a*=a,u=n.r+e.r,a>(u*=u)?(o=(d+u-a)/(2*d),l=Math.sqrt(Math.max(0,u/d-o*o)),e.x=n.x-o*i-l*s,e.y=n.y-o*s+l*i):(o=(d+a-u)/(2*d),l=Math.sqrt(Math.max(0,a/d-o*o)),e.x=r.x+o*i-l*s,e.y=r.y+o*s+l*i)):(e.x=r.x+e.r,e.y=r.y)}function EQ(n,r){var e=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function xQ(n){var r=n._,e=n.next._,i=r.r+e.r,o=(r.x*e.r+e.x*r.r)/i,a=(r.y*e.r+e.y*r.r)/i;return o*o+a*a}function XZ(n){this._=n,this.next=null,this.previous=null}function DQ(n){if(!(o=n.length))return 0;var r,e,i,o,a,s,l,u,d,h,g;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(e=n[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;SQ(e,r,i=n[2]),r=new XZ(r),e=new XZ(e),i=new XZ(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){SQ(r._,e._,i=n[l]),i=new XZ(i),u=e.next,d=r.previous,h=e._.r,g=r._.r;do{if(h<=g){if(EQ(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(EQ(d._,i._)){(r=d).next=e,e.previous=r,--l;continue e}g+=d._.r,d=d.previous}}while(u!==d.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=xQ(r);(i=i.next)!==e;)(s=xQ(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=kQ(r),l=0;l<o;++l)(r=n[l]).x-=i.x,r.y-=i.y;return i.r}function Tge(n){return DQ(n),n}function Mge(n){return null==n?null:$Z(n)}function $Z(n){if("function"!=typeof n)throw new Error;return n}function h0(){return 0}function Tw(n){return function(){return n}}function Sge(n){return Math.sqrt(n.value)}function Ege(){var n=null,r=1,e=1,i=h0;function o(a){return a.x=r/2,a.y=e/2,n?a.eachBefore(AQ(n)).eachAfter(bH(i,.5)).eachBefore(OQ(1)):a.eachBefore(AQ(Sge)).eachAfter(bH(h0,1)).eachAfter(bH(i,a.r/Math.min(r,e))).eachBefore(OQ(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=Mge(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:Tw(+a),o):i},o}function AQ(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function bH(n,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=n(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=DQ(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function OQ(n){return function(r){var e=r.parent;r.r*=n,e&&(r.x=e.x+n*r.x,r.y=e.y+n*r.y)}}function IQ(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function kx(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(i-r)/n.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*d}function xge(){var n=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=n,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&kx(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var d=u.x0,h=u.y0,g=u.x1-e,y=u.y1-e;g<d&&(d=g=(d+g)/2),y<h&&(h=y=(h+y)/2),u.x0=d,u.y0=h,u.x1=g,u.y1=y}}(r,l)),i&&s.eachBefore(IQ),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Dge={depth:-1},RQ={};function Age(n){return n.id}function Oge(n){return n.parentId}function Ige(){var n=Age,r=Oge;function e(i){var o,a,l,u,d,g,y,s=i.length,h=new Array(s),L={};for(a=0;a<s;++a)o=i[a],d=h[a]=new kw(o),null!=(g=n(o,a,i))&&(g+="")&&(L[y="$"+(d.id=g)]=y in L?RQ:d);for(a=0;a<s;++a)if(d=h[a],null!=(g=r(i[a],a,i))&&(g+="")){if(!(u=L["$"+g]))throw new Error("missing: "+g);if(u===RQ)throw new Error("ambiguous: "+g);u.children?u.children.push(d):u.children=[d],d.parent=u}else{if(l)throw new Error("multiple roots");l=d}if(!l)throw new Error("no root");if(l.parent=Dge,l.eachBefore(function(z){z.depth=z.parent.depth+1,--s}).eachBefore(wQ),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=$Z(i),e):n},e.parentId=function(i){return arguments.length?(r=$Z(i),e):r},e}function Pge(n,r){return n.parent===r.parent?1:2}function CH(n){var r=n.children;return r?r[0]:n.t}function wH(n){var r=n.children;return r?r[r.length-1]:n.t}function Rge(n,r,e){var i=e/(r.i-n.i);r.c-=i,r.s+=e,n.c+=i,r.z+=e,r.m+=e}function Zge(n,r,e){return n.a.parent===r.parent?n.a:e}function eN(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function Bge(){var n=Pge,r=1,e=1,i=null;function o(d){var h=function Nge(n){for(var e,o,a,s,l,r=new eN(n,0),i=[r];e=i.pop();)if(a=e._.children)for(e.children=new Array(l=a.length),s=l-1;s>=0;--s)i.push(o=e.children[s]=new eN(a[s],s)),o.parent=e;return(r.parent=new eN(null,0)).children=[r],r}(d);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)d.eachBefore(u);else{var g=d,y=d,L=d;d.eachBefore(function(Se){Se.x<g.x&&(g=Se),Se.x>y.x&&(y=Se),Se.depth>L.depth&&(L=Se)});var z=g===y?1:n(g,y)/2,q=z-g.x,re=r/(y.x+z+q),ae=e/(L.depth||1);d.eachBefore(function(Se){Se.x=(Se.x+q)*re,Se.y=Se.depth*ae})}return d}function a(d){var h=d.children,g=d.parent.children,y=d.i?g[d.i-1]:null;if(h){!function Lge(n){for(var a,r=0,e=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(d);var L=(h[0].z+h[h.length-1].z)/2;y?(d.z=y.z+n(d._,y._),d.m=d.z-L):d.z=L}else y&&(d.z=y.z+n(d._,y._));d.parent.A=function l(d,h,g){if(h){for(var Ee,y=d,L=d,z=h,q=y.parent.children[0],re=y.m,ae=L.m,Se=z.m,Ce=q.m;z=wH(z),y=CH(y),z&&y;)q=CH(q),(L=wH(L)).a=d,(Ee=z.z+Se-y.z-re+n(z._,y._))>0&&(Rge(Zge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=y.m,Ce+=q.m,ae+=L.m;z&&!wH(L)&&(L.t=z,L.m+=Se-ae),y&&!CH(q)&&(q.t=y,q.m+=re-Ce,g=d)}return g}(d,y,d.parent.A||g[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function u(d){d.x*=r,d.y=d.depth*e}return o.separation=function(d){return arguments.length?(n=d,o):n},o.size=function(d){return arguments.length?(i=!1,r=+d[0],e=+d[1],o):i?null:[r,e]},o.nodeSize=function(d){return arguments.length?(i=!0,r=+d[0],e=+d[1],o):i?[r,e]:null},o}function tN(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*d}eN.prototype=Object.create(kw.prototype);var LQ=(1+Math.sqrt(5))/2;function ZQ(n,r,e,i,o,a){for(var u,d,L,z,re,ae,Se,Ce,Ee,Ke,st,s=[],l=r.children,h=0,g=0,y=l.length,q=r.value;h<y;){L=o-e,z=a-i;do{re=l[g++].value}while(!re&&g<y);for(ae=Se=re,st=re*re*(Ke=Math.max(z/L,L/z)/(q*n)),Ee=Math.max(Se/st,st/ae);g<y;++g){if(re+=d=l[g].value,d<ae&&(ae=d),d>Se&&(Se=d),st=re*re*Ke,(Ce=Math.max(Se/st,st/ae))>Ee){re-=d;break}Ee=Ce}s.push(u={value:re,dice:L<z,children:l.slice(h,g)}),u.dice?kx(u,e,i,o,q?i+=z*re/q:a):tN(u,e,i,q?e+=L*re/q:o,a),q-=re,h=g}return s}var NQ=function n(r){function e(i,o,a,s,l){ZQ(r,i,o,a,s,l)}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(LQ);function Fge(){var n=NQ,r=!1,e=1,i=1,o=[0],a=h0,s=h0,l=h0,u=h0,d=h0;function h(y){return y.x0=y.y0=0,y.x1=e,y.y1=i,y.eachBefore(g),o=[0],r&&y.eachBefore(IQ),y}function g(y){var L=o[y.depth],z=y.x0+L,q=y.y0+L,re=y.x1-L,ae=y.y1-L;re<z&&(z=re=(z+re)/2),ae<q&&(q=ae=(q+ae)/2),y.x0=z,y.y0=q,y.x1=re,y.y1=ae,y.children&&(L=o[y.depth+1]=a(y)/2,z+=d(y)-L,q+=s(y)-L,(re-=l(y)-L)<z&&(z=re=(z+re)/2),(ae-=u(y)-L)<q&&(q=ae=(q+ae)/2),n(y,z,q,re,ae))}return h.round=function(y){return arguments.length?(r=!!y,h):r},h.size=function(y){return arguments.length?(e=+y[0],i=+y[1],h):[e,i]},h.tile=function(y){return arguments.length?(n=$Z(y),h):n},h.padding=function(y){return arguments.length?h.paddingInner(y).paddingOuter(y):h.paddingInner()},h.paddingInner=function(y){return arguments.length?(a="function"==typeof y?y:Tw(+y),h):a},h.paddingOuter=function(y){return arguments.length?h.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):h.paddingTop()},h.paddingTop=function(y){return arguments.length?(s="function"==typeof y?y:Tw(+y),h):s},h.paddingRight=function(y){return arguments.length?(l="function"==typeof y?y:Tw(+y),h):l},h.paddingBottom=function(y){return arguments.length?(u="function"==typeof y?y:Tw(+y),h):u},h.paddingLeft=function(y){return arguments.length?(d="function"==typeof y?y:Tw(+y),h):d},h}function Uge(n,r,e,i,o){var s,u,a=n.children,l=a.length,d=new Array(l+1);for(d[0]=u=s=0;s<l;++s)d[s+1]=u+=a[s].value;!function h(g,y,L,z,q,re,ae){if(g>=y-1){var Se=a[g];return Se.x0=z,Se.y0=q,Se.x1=re,void(Se.y1=ae)}for(var Ce=d[g],Ee=L/2+Ce,Ke=g+1,st=y-1;Ke<st;){var De=Ke+st>>>1;d[De]<Ee?Ke=De+1:st=De}Ee-d[Ke-1]<d[Ke]-Ee&&g+1<Ke&&--Ke;var it=d[Ke]-Ce,ft=L-it;if(re-z>ae-q){var bt=(z*ft+re*it)/L;h(g,Ke,it,z,q,bt,ae),h(Ke,y,ft,bt,q,re,ae)}else{var $e=(q*ft+ae*it)/L;h(g,Ke,it,z,q,re,$e),h(Ke,y,ft,z,$e,re,ae)}}(0,l,n.value,r,e,i,o)}function Hge(n,r,e,i,o){(1&n.depth?tN:kx)(n,r,e,i,o)}var jge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,L,y=-1,z=u.length,q=i.value;++y<z;){for(h=(d=u[y]).children,g=d.value=0,L=h.length;g<L;++g)d.value+=h[g].value;d.dice?kx(d,o,a,s,a+=(l-a)*d.value/q):tN(d,o,a,o+=(s-o)*d.value/q,l),q-=d.value}else i._squarify=u=ZQ(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(LQ);function Mw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Tx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function kg(){}var Sw=1/.7,Ew="\\s*([+-]?\\d+)\\s*",Mx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gge=/^#([0-9a-f]{3,8})$/,zge=new RegExp("^rgb\\("+[Ew,Ew,Ew]+"\\)$"),Wge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),Vge=new RegExp("^rgba\\("+[Ew,Ew,Ew,Mx]+"\\)$"),Yge=new RegExp("^rgba\\("+[mp,mp,mp,Mx]+"\\)$"),Kge=new RegExp("^hsl\\("+[Mx,mp,mp]+"\\)$"),qge=new RegExp("^hsla\\("+[Mx,mp,mp,Mx]+"\\)$"),BQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function FQ(){return this.rgb().formatHex()}function UQ(){return this.rgb().formatRgb()}function Sx(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Gge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?HQ(r):3===e?new al(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?nN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?nN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=zge.exec(n))?new al(r[1],r[2],r[3],1):(r=Wge.exec(n))?new al(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Vge.exec(n))?nN(r[1],r[2],r[3],r[4]):(r=Yge.exec(n))?nN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Kge.exec(n))?zQ(r[1],r[2]/100,r[3]/100,1):(r=qge.exec(n))?zQ(r[1],r[2]/100,r[3]/100,r[4]):BQ.hasOwnProperty(n)?HQ(BQ[n]):"transparent"===n?new al(NaN,NaN,NaN,0):null}function HQ(n){return new al(n>>16&255,n>>8&255,255&n,1)}function nN(n,r,e,i){return i<=0&&(n=r=e=NaN),new al(n,r,e,i)}function kH(n){return n instanceof kg||(n=Sx(n)),n?new al((n=n.rgb()).r,n.g,n.b,n.opacity):new al}function rN(n,r,e,i){return 1===arguments.length?kH(n):new al(n,r,e,null==i?1:i)}function al(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function jQ(){return"#"+TH(this.r)+TH(this.g)+TH(this.b)}function GQ(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function TH(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function zQ(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new _p(n,r,e,i)}function WQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof kg||(n=Sx(n)),!n)return new _p;if(n instanceof _p)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new _p(s,l,u,n.opacity)}function MH(n,r,e,i){return 1===arguments.length?WQ(n):new _p(n,r,e,null==i?1:i)}function _p(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function SH(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function VQ(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function YQ(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return VQ((e-i/r)*r,s,o,a,l)}}function KQ(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return VQ((e-i/r)*r,o,a,s,l)}}function iN(n){return function(){return n}}function qQ(n,r){return function(e){return n+e*r}}function EH(n,r){var e=r-n;return e?qQ(n,e>180||e<-180?e-360*Math.round(e/360):e):iN(isNaN(n)?r:n)}function Xge(n){return 1==(n=+n)?Fs:function(r,e){return e-r?function Qge(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):iN(isNaN(r)?e:r)}}function Fs(n,r){var e=r-n;return e?qQ(n,e):iN(isNaN(n)?r:n)}Mw(kg,Sx,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:FQ,formatHex:FQ,formatHsl:function Jge(){return WQ(this).formatHsl()},formatRgb:UQ,toString:UQ}),Mw(al,rN,Tx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,r),new al(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new al(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jQ,formatHex:jQ,formatRgb:GQ,toString:GQ})),Mw(_p,MH,Tx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,r),new _p(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _p(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new al(SH(r>=240?r-240:r+120,a,o),SH(r,a,o),SH(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var xH=function n(r){var e=Xge(r);function i(o,a){var s=e((o=rN(o)).r,(a=rN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Fs(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function JQ(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=rN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var $ge=JQ(YQ),eve=JQ(KQ);function QQ(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=OH(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function XQ(n,r){var e=new Date;return r-=n=+n,function(i){return e.setTime(n+r*i),e}}function gp(n,r){return r-=n=+n,function(e){return n+r*e}}function $Q(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=OH(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var DH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AH=new RegExp(DH.source,"g");function eX(n,r){var i,o,a,e=DH.lastIndex=AH.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=DH.exec(n))&&(o=AH.exec(r));)(a=o.index)>e&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:gp(i,o)})),e=AH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function nve(n){return function(r){return n(r)+""}}(u[0].x):function tve(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function OH(n,r){var i,e=typeof r;return null==r||"boolean"===e?iN(r):("number"===e?gp:"string"===e?(i=Sx(r))?(r=i,xH):eX:r instanceof Sx?xH:r instanceof Date?XQ:Array.isArray(r)?QQ:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?$Q:gp)(n,r)}function rve(n,r){return r-=n=+n,function(e){return Math.round(n+r*e)}}var Ex,PH,rX,oN,tX=180/Math.PI,IH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nX(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*tX,skewX:Math.atan(u)*tX,scaleX:s,scaleY:l}}function iX(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:g.push(o(g)+"rotate(",null,i)-2,x:gp(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,y),function l(d,h,g,y){d!==h?y.push({i:g.push(o(g)+"skewX(",null,i)-2,x:gp(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var ave=iX(function ive(n){return"none"===n?IH:(Ex||(Ex=document.createElement("DIV"),PH=document.documentElement,rX=document.defaultView),Ex.style.transform=n,n=rX.getComputedStyle(PH.appendChild(Ex),null).getPropertyValue("transform"),PH.removeChild(Ex),nX(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),sve=iX(function ove(n){return null!=n&&(oN||(oN=document.createElementNS("http://www.w3.org/2000/svg","g")),oN.setAttribute("transform",n),n=oN.transform.baseVal.consolidate())?nX((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):IH},", ",")",")"),xx=Math.SQRT2;function aX(n){return((n=Math.exp(n))+1/n)/2}function dve(n,r){var g,y,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)y=Math.log(l/o)/xx,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(xx*Ce*y)]};else{var L=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*L),q=(l*l-o*o-4*h)/(2*l*2*L),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);y=(ae-re)/xx,g=function(Ce){var Ee=Ce*y,Ke=aX(re),st=o/(2*L)*(Ke*function cve(n){return((n=Math.exp(2*n))-1)/(n+1)}(xx*Ee+re)-function uve(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/aX(xx*Ee+re)]}}return g.duration=1e3*y,g}function sX(n){return function(r,e){var i=n((r=MH(r)).h,(e=MH(e)).h),o=Fs(r.s,e.s),a=Fs(r.l,e.l),s=Fs(r.opacity,e.opacity);return function(l){return r.h=i(l),r.s=o(l),r.l=a(l),r.opacity=s(l),r+""}}}var fve=sX(EH),pve=sX(Fs),lX=Math.PI/180,uX=180/Math.PI,pX=4/29,xw=6/29,hX=3*xw*xw;function mX(n){if(n instanceof Wd)return new Wd(n.l,n.a,n.b,n.opacity);if(n instanceof vp)return gX(n);n instanceof al||(n=kH(n));var a,s,r=FH(n.r),e=FH(n.g),i=FH(n.b),o=ZH((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=ZH((.4360747*r+.3850649*e+.1430804*i)/.96422),s=ZH((.0139322*r+.0971045*e+.7141733*i)/.82521)),new Wd(116*o-16,500*(a-o),200*(o-s),n.opacity)}function LH(n,r,e,i){return 1===arguments.length?mX(n):new Wd(n,r,e,null==i?1:i)}function Wd(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function ZH(n){return n>.008856451679035631?Math.pow(n,1/3):n/hX+pX}function NH(n){return n>xw?n*n*n:hX*(n-pX)}function BH(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function FH(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _X(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof Wd||(n=mX(n)),0===n.a&&0===n.b)return new vp(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*uX;return new vp(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function UH(n,r,e,i){return 1===arguments.length?_X(n):new vp(n,r,e,null==i?1:i)}function vp(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}function gX(n){if(isNaN(n.h))return new Wd(n.l,0,0,n.opacity);var r=n.h*lX;return new Wd(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function mve(n,r){var e=Fs((n=LH(n)).l,(r=LH(r)).l),i=Fs(n.a,r.a),o=Fs(n.b,r.b),a=Fs(n.opacity,r.opacity);return function(s){return n.l=e(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function vX(n){return function(r,e){var i=n((r=UH(r)).h,(e=UH(e)).h),o=Fs(r.c,e.c),a=Fs(r.l,e.l),s=Fs(r.opacity,e.opacity);return function(l){return r.h=i(l),r.c=o(l),r.l=a(l),r.opacity=s(l),r+""}}}Mw(Wd,LH,Tx(kg,{brighter:function(r){return new Wd(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Wd(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,e=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new al(BH(3.1338561*(e=.96422*NH(e))-1.6168667*(r=1*NH(r))-.4906146*(i=.82521*NH(i))),BH(-.9787684*e+1.9161415*r+.033454*i),BH(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),Mw(vp,UH,Tx(kg,{brighter:function(r){return new vp(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new vp(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return gX(this).rgb()}}));var _ve=vX(EH),gve=vX(Fs),HH=1.78277,jH=-.29227,sN=-.90649,Dx=1.97294,bX=Dx*sN,CX=Dx*HH,wX=HH*jH- -.14861*sN;function vve(n){if(n instanceof _0)return new _0(n.h,n.s,n.l,n.opacity);n instanceof al||(n=kH(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(wX*i+bX*r-CX*e)/(wX+bX-CX),a=i-o,s=(Dx*(e-o)-jH*a)/sN,l=Math.sqrt(s*s+a*a)/(Dx*o*(1-o)),u=l?Math.atan2(s,a)*uX-120:NaN;return new _0(u<0?u+360:u,l,o,n.opacity)}function GH(n,r,e,i){return 1===arguments.length?vve(n):new _0(n,r,e,null==i?1:i)}function _0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function kX(n){return function r(e){function i(o,a){var s=n((o=GH(o)).h,(a=GH(a)).h),l=Fs(o.s,a.s),u=Fs(o.l,a.l),d=Fs(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}Mw(_0,GH,Tx(kg,{brighter:function(r){return r=null==r?Sw:Math.pow(Sw,r),new _0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*lX,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new al(255*(e+i*(-.14861*o+HH*a)),255*(e+i*(jH*o+sN*a)),255*(e+i*(Dx*o)),this.opacity)}}));var yve=kX(EH),bve=kX(Fs);function Cve(n,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=n(i/(r-1));return e}function wve(n){for(var i,r=-1,e=n.length,o=n[e-1],a=0;++r<e;)i=o,o=n[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function kve(n){for(var a,l,r=-1,e=n.length,i=0,o=0,s=n[e-1],u=0;++r<e;)a=s,s=n[r],u+=l=a[0]*s[1]-s[0]*a[1],i+=(a[0]+s[0])*l,o+=(a[1]+s[1])*l;return[i/(u*=3),o/u]}function Tve(n,r,e){return(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0])}function Mve(n,r){return n[0]-r[0]||n[1]-r[1]}function TX(n){for(var r=n.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Tve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Sve(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(Mve),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=TX(i),s=TX(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],d=[];for(r=a.length-1;r>=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)d.push(n[i[s[r]][2]]);return d}function Eve(n,r){for(var u,d,e=n.length,i=n[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,g=0;g<e;++g)u=(i=n[g])[0],(d=i[1])>a!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function xve(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=n[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function Dw(){return Math.random()}var Dve=function n(r){function e(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return e.source=n,e}(Dw),MX=function n(r){function e(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var l;if(null!=a)l=a,a=null;else do{a=2*r()-1,l=2*r()-1,s=a*a+l*l}while(!s||s>1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Dw),Ave=function n(r){function e(){var i=MX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Dw),SX=function n(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=n,e}(Dw),Ove=function n(r){function e(i){var o=SX.source(r)(i);return function(){return o()/i}}return e.source=n,e}(Dw),Ive=function n(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=n,e}(Dw),EX=Array.prototype,zH=EX.map,Tg=EX.slice,WH={name:"implicit"};function VH(n){var r=mg(),e=[],i=WH;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==WH)return i;r.set(s,l=e.push(a))}return n[(l-1)%n.length]}return n=null==n?[]:Tg.call(n),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=mg();for(var u,d,s=-1,l=a.length;++s<l;)r.has(d=(u=a[s])+"")||r.set(d,e.push(u));return o},o.range=function(a){return arguments.length?(n=Tg.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return VH().domain(e).range(n).unknown(i)},o}function YH(){var o,a,n=VH().unknown(void 0),r=n.domain,e=n.range,i=[0,1],s=!1,l=0,u=0,d=.5;function h(){var g=r().length,y=i[1]<i[0],L=i[y-0],z=i[1-y];o=(z-L)/Math.max(1,g-l+2*u),s&&(o=Math.floor(o)),L+=(z-L-o*(g-l))*d,a=o*(1-l),s&&(L=Math.round(L),a=Math.round(a));var q=mc(g).map(function(re){return L+o*re});return e(y?q.reverse():q)}return delete n.unknown,n.domain=function(g){return arguments.length?(r(g),h()):r()},n.range=function(g){return arguments.length?(i=[+g[0],+g[1]],h()):i.slice()},n.rangeRound=function(g){return i=[+g[0],+g[1]],s=!0,h()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(g){return arguments.length?(s=!!g,h()):s},n.padding=function(g){return arguments.length?(l=u=Math.max(0,Math.min(1,g)),h()):l},n.paddingInner=function(g){return arguments.length?(l=Math.max(0,Math.min(1,g)),h()):l},n.paddingOuter=function(g){return arguments.length?(u=Math.max(0,Math.min(1,g)),h()):u},n.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),h()):d},n.copy=function(){return YH().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(d)},h()}function xX(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return xX(r())},n}function Pve(){return xX(YH().paddingInner(1))}function Rve(n,r){return n=+n,r=+r,function(e){return Math.round(n*(1-e)+r*e)}}function KH(n){return function(){return n}}function DX(n){return+n}var AX=[0,1];function qH(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:KH(r)}function Nve(n,r,e,i){var o=n[0],a=n[1],s=r[0],l=r[1];return a<o?(o=e(a,o),s=i(l,s)):(o=e(o,a),s=i(s,l)),function(u){return s(o(u))}}function Bve(n,r,e,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(n[l],n[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var d=X1(n,u,1,o)-1;return s[d](a[d](u))}}function lN(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function uN(n,r){var s,l,u,e=AX,i=AX,o=GL,a=!1;function d(){return s=Math.min(e.length,i.length)>2?Bve:Nve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Lve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(n):n,o)))(+g)}return h.invert=function(g){return(u||(u=s(i,e,qH,a?function Zve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+g)},h.domain=function(g){return arguments.length?(e=zH.call(g,DX),d()):e.slice()},h.range=function(g){return arguments.length?(i=Tg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=Tg.call(g),o=Rve,d()},h.clamp=function(g){return arguments.length?(a=!!g,d()):a},h.interpolate=function(g){return arguments.length?(o=g,d()):o},d()}var OX,Fve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cN(n){if(!(r=Fve.exec(n)))throw new Error("invalid format: "+n);var r;return new JH({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function JH(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function dN(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function Aw(n){return(n=dN(Math.abs(n)))?n[1]:NaN}function IX(n,r){var e=dN(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}cN.prototype=JH.prototype,JH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var PX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Uve(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return IX(100*r,e)},r:IX,s:function Wve(n,r){var e=dN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(OX=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+dN(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function RX(n){return n}var fN,QH,NX,LX=Array.prototype.map,ZX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Vve(n){var r=void 0===n.grouping||void 0===n.thousands?RX:function jve(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(LX.call(n.grouping,Number),n.thousands+""),e=void 0===n.currency?"":n.currency[0]+"",i=void 0===n.currency?"":n.currency[1]+"",o=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?RX:function Gve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(LX.call(n.numerals,String)),s=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"-":n.minus+"",u=void 0===n.nan?"NaN":n.nan+"";function d(g){var y=(g=cN(g)).fill,L=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,Ee=g.trim,Ke=g.type;"n"===Ke?(Se=!0,Ke="g"):PX[Ke]||(void 0===Ce&&(Ce=12),Ee=!0,Ke="g"),(re||"0"===y&&"="===L)&&(re=!0,y="0",L="=");var st="$"===q?e:"#"===q&&/[boxX]/.test(Ke)?"0"+Ke.toLowerCase():"",De="$"===q?i:/[%p]/.test(Ke)?s:"",it=PX[Ke],ft=/[defgprs%]/.test(Ke);function bt($e){var Bt,Ht,Pt,Pe=st,ct=De;if("c"===Ke)ct=it($e)+ct,$e="";else{var Tn=($e=+$e)<0||1/$e<0;if($e=isNaN($e)?u:it(Math.abs($e),Ce),Ee&&($e=function zve(n){e:for(var o,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+n[e])break e;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}($e)),Tn&&0==+$e&&"+"!==z&&(Tn=!1),Pe=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Pe,ct=("s"===Ke?ZX[8+OX/3]:"")+ct+(Tn&&"("===z?")":""),ft)for(Bt=-1,Ht=$e.length;++Bt<Ht;)if(48>(Pt=$e.charCodeAt(Bt))||Pt>57){ct=(46===Pt?o+$e.slice(Bt+1):$e.slice(Bt))+ct,$e=$e.slice(0,Bt);break}}Se&&!re&&($e=r($e,1/0));var jn=Pe.length+$e.length+ct.length,zn=jn<ae?new Array(ae-jn+1).join(y):"";switch(Se&&re&&($e=r(zn+$e,zn.length?ae-ct.length:1/0),zn=""),L){case"<":$e=Pe+$e+ct+zn;break;case"=":$e=Pe+zn+$e+ct;break;case"^":$e=zn.slice(0,jn=zn.length>>1)+Pe+$e+ct+zn.slice(jn);break;default:$e=zn+Pe+$e+ct}return a($e)}return Ce=void 0===Ce?6:/[gprs]/.test(Ke)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce)),bt.toString=function(){return g+""},bt}return{format:d,formatPrefix:function h(g,y){var L=d(((g=cN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Aw(y)/3))),q=Math.pow(10,-z),re=ZX[8+z/3];return function(ae){return L(q*ae)+re}}}}function Jve(n,r,e){var s,i=n[0],o=n[n.length-1],a=e0(i,o,null==r?10:r);switch((e=cN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Hve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Aw(r)/3)))-Aw(Math.abs(n)))}(a,l))&&(e.precision=s),NX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Kve(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Aw(r)-Aw(n))+1}(a,Math.max(Math.abs(i),Math.abs(o))))&&(e.precision=s-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(s=function qve(n){return Math.max(0,-Aw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return QH(e)}function Ax(n){var r=n.domain;return n.ticks=function(e){var i=r();return E7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return Jve(r(),e,i)},n.nice=function(e){null==e&&(e=10);var u,i=r(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(u=s,s=l,l=u,u=o,o=a,a=u),(u=GE(s,l,e))>0?u=GE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=GE(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,e)),u>0?(i[o]=Math.floor(s/u)*u,i[a]=Math.ceil(l/u)*u,r(i)):u<0&&(i[o]=Math.ceil(s*u)/u,i[a]=Math.floor(l*u)/u,r(i)),n},n}function BX(){var n=uN(qH,qc);return n.copy=function(){return lN(n,BX())},Ax(n)}function FX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=zH.call(e,DX),r):n.slice()},r.copy=function(){return FX().domain(n)},Ax(r)}function UX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),n[e]=r.floor(o),n[i]=r.ceil(a),n}function Qve(n,r){return(r=Math.log(r/n))?function(e){return Math.log(e/n)/r}:KH(r)}function Xve(n,r){return n<0?function(e){return-Math.pow(-r,e)*Math.pow(-n,1-e)}:function(e){return Math.pow(r,e)*Math.pow(n,1-e)}}function $ve(n){return isFinite(n)?+("1e"+n):n<0?0:n}function HX(n){return 10===n?$ve:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function jX(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function GX(n){return function(r){return-n(-r)}}function zX(){var n=uN(Qve,Xve).domain([1,10]),r=n.domain,e=10,i=jX(10),o=HX(10);function a(){return i=jX(e),o=HX(e),r()[0]<0&&(i=GX(i),o=GX(o)),n}return n.base=function(s){return arguments.length?(e=+s,a()):e},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var h,l=r(),u=l[0],d=l[l.length-1];(h=d<u)&&(g=u,u=d,d=g);var L,z,q,g=i(u),y=i(d),re=null==s?10:+s,ae=[];if(!(e%1)&&y-g<re){if(g=Math.round(g)-1,y=Math.round(y)+1,u>0){for(;g<y;++g)for(z=1,L=o(g);z<e;++z)if(!((q=L*z)<u)){if(q>d)break;ae.push(q)}}else for(;g<y;++g)for(z=e-1,L=o(g);z>=1;--z)if(!((q=L*z)<u)){if(q>d)break;ae.push(q)}}else ae=E7(g,y,Math.min(y-g,re)).map(o);return h?ae.reverse():ae},n.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=QH(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/n.ticks().length);return function(d){var h=d/o(Math.round(i(d)));return h*e<e-.5&&(h*=e),h<=u?l(d):""}},n.nice=function(){return r(UX(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},n.copy=function(){return lN(n,zX().base(e))},n}function Ow(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function XH(){var n=1,r=uN(function i(a,s){return(s=Ow(s,n)-(a=Ow(a,n)))?function(l){return(Ow(l,n)-a)/s}:KH(s)},function o(a,s){return s=Ow(s,n)-(a=Ow(a,n)),function(l){return Ow(a+s*l,1/n)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,e(e())):n},r.copy=function(){return lN(r,XH().exponent(n))},Ax(r)}function eye(){return XH().exponent(.5)}function WX(){var n=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=zE(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[X1(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:n[0],s<e.length?e[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&n.push(u);return n.sort($y),i()},o.range=function(a){return arguments.length?(r=Tg.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return WX().domain(n).range(r)},o}function VX(){var n=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[X1(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*n)/(e+1);return a}return a.domain=function(l){return arguments.length?(n=+l[0],r=+l[1],s()):[n,r]},a.range=function(l){return arguments.length?(e=(o=Tg.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return VX().domain([n,r]).range(o)},Ax(a)}function YX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[X1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=Tg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Tg.call(o),e=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return YX().domain(n).range(r)},i}!function Yve(n){return fN=Vve(n),QH=fN.format,NX=fN.formatPrefix,fN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var $H=new Date,ej=new Date;function Us(n,r,e,i){function o(a){return n(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return n(a=new Date(+a)),a},o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return Us(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return $H.setTime(+a),ej.setTime(+s),n($H),n(ej),Math.floor(e($H,ej))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var tj=Us(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});tj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Us(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var Vd=tj,KX=(tj.range,Us(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()})),tye=KX,g0=(KX.range,6e4),hN=36e5,JX=6048e5;function v0(n){return Us(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*g0)/JX})}var mN=v0(0),y0=v0(1),nye=v0(2),rye=v0(3),om=v0(4),iye=v0(5),oye=v0(6),QX=(mN.range,y0.range,nye.range,rye.range,om.range,iye.range,oye.range,Us(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*g0)/864e5},function(n){return n.getDate()-1})),Ox=QX,XX=(QX.range,Us(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*g0)},function(n,r){n.setTime(+n+r*hN)},function(n,r){return(r-n)/hN},function(n){return n.getHours()})),aye=XX,$X=(XX.range,Us(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*g0)},function(n,r){return(r-n)/g0},function(n){return n.getMinutes()})),sye=$X,e$=($X.range,Us(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()})),t$=e$,_N=(e$.range,Us(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));_N.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Us(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):_N:null};var n$=_N;_N.range;function b0(n){return Us(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/JX})}var gN=b0(0),C0=b0(1),lye=b0(2),uye=b0(3),am=b0(4),cye=b0(5),dye=b0(6),r$=(gN.range,C0.range,lye.range,uye.range,am.range,cye.range,dye.range,Us(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1})),Ix=r$,nj=(r$.range,Us(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()}));nj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Us(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Yd=nj;nj.range;function rj(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function ij(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Px(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Iw,v$,y$,i$={"-":"",_:" ",0:"0"},Hs=/^\s*\d+/,pye=/^%/,hye=/[\\^$*+?|[\]().{}]/g;function Wi(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function mye(n){return n.replace(hye,"\\$&")}function Rx(n){return new RegExp("^(?:"+n.map(mye).join("|")+")","i")}function Lx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function _ye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function gye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function vye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function yye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function bye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function o$(n,r,e){var i=Hs.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function a$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Cye(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function wye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function kye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function s$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Tye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function l$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Mye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Sye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Eye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Hs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Dye(n,r,e){var i=pye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Aye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function u$(n,r){return Wi(n.getDate(),r,2)}function Iye(n,r){return Wi(n.getHours(),r,2)}function Pye(n,r){return Wi(n.getHours()%12||12,r,2)}function Rye(n,r){return Wi(1+Ox.count(Vd(n),n),r,3)}function c$(n,r){return Wi(n.getMilliseconds(),r,3)}function Lye(n,r){return c$(n,r)+"000"}function Zye(n,r){return Wi(n.getMonth()+1,r,2)}function Nye(n,r){return Wi(n.getMinutes(),r,2)}function Bye(n,r){return Wi(n.getSeconds(),r,2)}function Fye(n){var r=n.getDay();return 0===r?7:r}function Uye(n,r){return Wi(mN.count(Vd(n)-1,n),r,2)}function d$(n){var r=n.getDay();return r>=4||0===r?om(n):om.ceil(n)}function Hye(n,r){return n=d$(n),Wi(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function jye(n){return n.getDay()}function Gye(n,r){return Wi(y0.count(Vd(n)-1,n),r,2)}function zye(n,r){return Wi(n.getFullYear()%100,r,2)}function Wye(n,r){return Wi((n=d$(n)).getFullYear()%100,r,2)}function Vye(n,r){return Wi(n.getFullYear()%1e4,r,4)}function Yye(n,r){var e=n.getDay();return Wi((n=e>=4||0===e?om(n):om.ceil(n)).getFullYear()%1e4,r,4)}function Kye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Wi(r/60|0,"0",2)+Wi(r%60,"0",2)}function f$(n,r){return Wi(n.getUTCDate(),r,2)}function qye(n,r){return Wi(n.getUTCHours(),r,2)}function Jye(n,r){return Wi(n.getUTCHours()%12||12,r,2)}function Qye(n,r){return Wi(1+Ix.count(Yd(n),n),r,3)}function p$(n,r){return Wi(n.getUTCMilliseconds(),r,3)}function Xye(n,r){return p$(n,r)+"000"}function $ye(n,r){return Wi(n.getUTCMonth()+1,r,2)}function e0e(n,r){return Wi(n.getUTCMinutes(),r,2)}function t0e(n,r){return Wi(n.getUTCSeconds(),r,2)}function n0e(n){var r=n.getUTCDay();return 0===r?7:r}function r0e(n,r){return Wi(gN.count(Yd(n)-1,n),r,2)}function h$(n){var r=n.getUTCDay();return r>=4||0===r?am(n):am.ceil(n)}function i0e(n,r){return n=h$(n),Wi(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function o0e(n){return n.getUTCDay()}function a0e(n,r){return Wi(C0.count(Yd(n)-1,n),r,2)}function s0e(n,r){return Wi(n.getUTCFullYear()%100,r,2)}function l0e(n,r){return Wi((n=h$(n)).getUTCFullYear()%100,r,2)}function u0e(n,r){return Wi(n.getUTCFullYear()%1e4,r,4)}function c0e(n,r){var e=n.getUTCDay();return Wi((n=e>=4||0===e?am(n):am.ceil(n)).getUTCFullYear()%1e4,r,4)}function d0e(){return"+0000"}function m$(){return"%"}function _$(n){return+n}function g$(n){return Math.floor(+n/1e3)}!function h0e(n){return Iw=function fye(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=Rx(o),h=Lx(o),g=Rx(a),y=Lx(a),L=Rx(s),z=Lx(s),q=Rx(l),re=Lx(l),ae=Rx(u),Se=Lx(u),Ce={a:function Tn(Mn){return s[Mn.getDay()]},A:function jn(Mn){return a[Mn.getDay()]},b:function zn(Mn){return u[Mn.getMonth()]},B:function ar(Mn){return l[Mn.getMonth()]},c:null,d:u$,e:u$,f:Lye,g:Wye,G:Yye,H:Iye,I:Pye,j:Rye,L:c$,m:Zye,M:Nye,p:function kr(Mn){return o[+(Mn.getHours()>=12)]},q:function _r(Mn){return 1+~~(Mn.getMonth()/3)},Q:_$,s:g$,S:Bye,u:Fye,U:Uye,V:Hye,w:jye,W:Gye,x:null,X:null,y:zye,Y:Vye,Z:Kye,"%":m$},Ee={a:function Wr(Mn){return s[Mn.getUTCDay()]},A:function Hr(Mn){return a[Mn.getUTCDay()]},b:function Kr(Mn){return u[Mn.getUTCMonth()]},B:function Ho(Mn){return l[Mn.getUTCMonth()]},c:null,d:f$,e:f$,f:Xye,g:l0e,G:c0e,H:qye,I:Jye,j:Qye,L:p$,m:$ye,M:e0e,p:function tr(Mn){return o[+(Mn.getUTCHours()>=12)]},q:function yr(Mn){return 1+~~(Mn.getUTCMonth()/3)},Q:_$,s:g$,S:t0e,u:n0e,U:r0e,V:i0e,w:o0e,W:a0e,x:null,X:null,y:s0e,Y:u0e,Z:d0e,"%":m$},Ke={a:function bt(Mn,gn,nr){var un=L.exec(gn.slice(nr));return un?(Mn.w=z[un[0].toLowerCase()],nr+un[0].length):-1},A:function $e(Mn,gn,nr){var un=g.exec(gn.slice(nr));return un?(Mn.w=y[un[0].toLowerCase()],nr+un[0].length):-1},b:function Pe(Mn,gn,nr){var un=ae.exec(gn.slice(nr));return un?(Mn.m=Se[un[0].toLowerCase()],nr+un[0].length):-1},B:function ct(Mn,gn,nr){var un=q.exec(gn.slice(nr));return un?(Mn.m=re[un[0].toLowerCase()],nr+un[0].length):-1},c:function Bt(Mn,gn,nr){return it(Mn,r,gn,nr)},d:s$,e:s$,f:xye,g:a$,G:o$,H:l$,I:l$,j:Tye,L:Eye,m:kye,M:Mye,p:function ft(Mn,gn,nr){var un=d.exec(gn.slice(nr));return un?(Mn.p=h[un[0].toLowerCase()],nr+un[0].length):-1},q:wye,Q:Aye,s:Oye,S:Sye,u:gye,U:vye,V:yye,w:_ye,W:bye,x:function Ht(Mn,gn,nr){return it(Mn,e,gn,nr)},X:function Pt(Mn,gn,nr){return it(Mn,i,gn,nr)},y:a$,Y:o$,Z:Cye,"%":Dye};function st(Mn,gn){return function(nr){var gr,eo,Xu,un=[],bn=-1,Nn=0,rr=Mn.length;for(nr instanceof Date||(nr=new Date(+nr));++bn<rr;)37===Mn.charCodeAt(bn)&&(un.push(Mn.slice(Nn,bn)),null!=(eo=i$[gr=Mn.charAt(++bn)])?gr=Mn.charAt(++bn):eo="e"===gr?" ":"0",(Xu=gn[gr])&&(gr=Xu(nr,eo)),un.push(gr),Nn=bn+1);return un.push(Mn.slice(Nn,bn)),un.join("")}}function De(Mn,gn){return function(nr){var Nn,rr,un=Px(1900,void 0,1);if(it(un,Mn,nr+="",0)!=nr.length)return null;if("Q"in un)return new Date(un.Q);if("s"in un)return new Date(1e3*un.s+("L"in un?un.L:0));if(gn&&!("Z"in un)&&(un.Z=0),"p"in un&&(un.H=un.H%12+12*un.p),void 0===un.m&&(un.m="q"in un?un.q:0),"V"in un){if(un.V<1||un.V>53)return null;"w"in un||(un.w=1),"Z"in un?(rr=(Nn=ij(Px(un.y,0,1))).getUTCDay(),Nn=rr>4||0===rr?C0.ceil(Nn):C0(Nn),Nn=Ix.offset(Nn,7*(un.V-1)),un.y=Nn.getUTCFullYear(),un.m=Nn.getUTCMonth(),un.d=Nn.getUTCDate()+(un.w+6)%7):(rr=(Nn=rj(Px(un.y,0,1))).getDay(),Nn=rr>4||0===rr?y0.ceil(Nn):y0(Nn),Nn=Ox.offset(Nn,7*(un.V-1)),un.y=Nn.getFullYear(),un.m=Nn.getMonth(),un.d=Nn.getDate()+(un.w+6)%7)}else("W"in un||"U"in un)&&("w"in un||(un.w="u"in un?un.u%7:"W"in un?1:0),rr="Z"in un?ij(Px(un.y,0,1)).getUTCDay():rj(Px(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(rr+5)%7:un.w+7*un.U-(rr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,ij(un)):rj(un)}}function it(Mn,gn,nr,un){for(var gr,eo,bn=0,Nn=gn.length,rr=nr.length;bn<Nn;){if(un>=rr)return-1;if(37===(gr=gn.charCodeAt(bn++))){if(gr=gn.charAt(bn++),!(eo=Ke[gr in i$?gn.charAt(bn++):gr])||(un=eo(Mn,nr,un))<0)return-1}else if(gr!=nr.charCodeAt(un++))return-1}return un}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(gn){var nr=st(gn+="",Ce);return nr.toString=function(){return gn},nr},parse:function(gn){var nr=De(gn+="",!1);return nr.toString=function(){return gn},nr},utcFormat:function(gn){var nr=st(gn+="",Ee);return nr.toString=function(){return gn},nr},utcParse:function(gn){var nr=De(gn+="",!0);return nr.toString=function(){return gn},nr}}}(n),v$=Iw.format,Iw.parse,y$=Iw.utcFormat,Iw.utcParse,Iw}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zx=1e3,Nx=6e4,Bx=60*Nx,Fx=24*Bx,b$=30*Fx,oj=365*Fx;function _0e(n){return new Date(n)}function g0e(n){return n instanceof Date?+n:+new Date(+n)}function aj(n,r,e,i,o,a,s,l,u){var d=uN(qH,qc),h=d.invert,g=d.domain,y=u(".%L"),L=u(":%S"),z=u("%I:%M"),q=u("%I %p"),re=u("%a %d"),ae=u("%b %d"),Se=u("%B"),Ce=u("%Y"),Ee=[[s,1,Zx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Nx],[a,5,5*Nx],[a,15,15*Nx],[a,30,30*Nx],[o,1,Bx],[o,3,3*Bx],[o,6,6*Bx],[o,12,12*Bx],[i,1,Fx],[i,2,2*Fx],[e,1,6048e5],[r,1,b$],[r,3,3*b$],[n,1,oj]];function Ke(De){return(s(De)<De?y:a(De)<De?L:o(De)<De?z:i(De)<De?q:r(De)<De?e(De)<De?re:ae:n(De)<De?Se:Ce)(De)}function st(De,it,ft,bt){if(null==De&&(De=10),"number"==typeof De){var $e=Math.abs(ft-it)/De,Pe=w7(function(ct){return ct[2]}).right(Ee,$e);Pe===Ee.length?(bt=e0(it/oj,ft/oj,De),De=n):Pe?(bt=(Pe=Ee[$e/Ee[Pe-1][2]<Ee[Pe][2]/$e?Pe-1:Pe])[1],De=Pe[0]):(bt=Math.max(e0(it,ft,De),1),De=l)}return null==bt?De:De.every(bt)}return d.invert=function(De){return new Date(h(De))},d.domain=function(De){return arguments.length?g(zH.call(De,g0e)):g().map(_0e)},d.ticks=function(De,it){var ct,ft=g(),bt=ft[0],$e=ft[ft.length-1],Pe=$e<bt;return Pe&&(ct=bt,bt=$e,$e=ct),ct=(ct=st(De,bt,$e,it))?ct.range(bt,$e+1):[],Pe?ct.reverse():ct},d.tickFormat=function(De,it){return null==it?Ke:u(it)},d.nice=function(De,it){var ft=g();return(De=st(De,ft[0],ft[ft.length-1],it))?g(UX(ft,De)):d},d.copy=function(){return lN(d,aj(n,r,e,i,o,a,s,l,u))},d}function v0e(){return aj(Vd,tye,mN,Ox,aye,sye,t$,n$,v$).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var C$=Us(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),y0e=C$,w$=(C$.range,Us(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*hN)},function(n,r){return(r-n)/hN},function(n){return n.getUTCHours()})),b0e=w$,k$=(w$.range,Us(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*g0)},function(n,r){return(r-n)/g0},function(n){return n.getUTCMinutes()})),C0e=k$;k$.range;function w0e(){return aj(Yd,y0e,gN,Ix,b0e,C0e,t$,n$,y$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function T$(n){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return T$(n).domain([r,e]).clamp(i)},Ax(o)}function ui(n){for(var r=n.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+n.slice(6*i,6*++i);return e}var k0e=ui("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),T0e=ui("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),M0e=ui("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),S0e=ui("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),E0e=ui("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),x0e=ui("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),D0e=ui("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),A0e=ui("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),O0e=ui("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Po(n){return Qde(n[n.length-1])}var M$=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ui),I0e=Po(M$),S$=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ui),P0e=Po(S$),E$=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ui),R0e=Po(E$),x$=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ui),L0e=Po(x$),D$=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ui),Z0e=Po(D$),A$=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ui),N0e=Po(A$),O$=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ui),B0e=Po(O$),I$=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ui),F0e=Po(I$),P$=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ui),U0e=Po(P$),R$=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ui),H0e=Po(R$),L$=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ui),j0e=Po(L$),Z$=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ui),G0e=Po(Z$),N$=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ui),z0e=Po(N$),B$=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ui),W0e=Po(B$),F$=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ui),V0e=Po(F$),U$=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ui),Y0e=Po(U$),H$=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ui),K0e=Po(H$),j$=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ui),q0e=Po(j$),G$=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ui),J0e=Po(G$),z$=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ui),Q0e=Po(z$),W$=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ui),X0e=Po(W$),V$=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ui),$0e=Po(V$),Y$=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ui),ebe=Po(Y$),K$=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ui),tbe=Po(K$),q$=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ui),nbe=Po(q$),J$=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ui),rbe=Po(J$),Q$=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ui),ibe=Po(Q$),obe=Math.PI/180,abe=180/Math.PI,sj=1.78277,lj=-.29227,vN=-.90649,Ux=1.97294,$$=Ux*vN,eee=Ux*sj,tee=sj*lj- -.14861*vN;function sbe(n){if(n instanceof w0)return new w0(n.h,n.s,n.l,n.opacity);n instanceof Ql||(n=EK(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(tee*i+$$*r-eee*e)/(tee+$$-eee),a=i-o,s=(Ux*(e-o)-lj*a)/vN,l=Math.sqrt(s*s+a*a)/(Ux*o*(1-o)),u=l?Math.atan2(s,a)*abe-120:NaN;return new w0(u<0?u+360:u,l,o,n.opacity)}function yp(n,r,e,i){return 1===arguments.length?sbe(n):new w0(n,r,e,null==i?1:i)}function w0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function nee(n){return function r(e){function i(o,a){var s=n((o=yp(o)).h,(a=yp(a)).h),l=iw(o.s,a.s),u=iw(o.l,a.l),d=iw(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}BL(w0,yp,Z7(tw,{brighter:function(r){return r=null==r?nw:Math.pow(nw,r),new w0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new w0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*obe,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new Ql(255*(e+i*(-.14861*o+sj*a)),255*(e+i*(lj*o+vN*a)),255*(e+i*(Ux*o)),this.opacity)}}));nee(function qde(n,r){var e=r-n;return e?PK(n,e>180||e<-180?e-360*Math.round(e/360):e):HL(isNaN(n)?r:n)});var uj=nee(iw),lbe=uj(yp(300,.5,0),yp(-240,.5,1)),ube=uj(yp(-100,.75,.35),yp(80,1.5,.8)),cbe=uj(yp(260,.75,.35),yp(80,1.5,.8)),yN=yp();function dbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return yN.h=360*n-100,yN.s=1.5-1.5*r,yN.l=.8-.9*r,yN+""}function bN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var fbe=bN(ui("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),pbe=bN(ui("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),hbe=bN(ui("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mbe=bN(ui("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),cj="http://www.w3.org/1999/xhtml",dj={svg:"http://www.w3.org/2000/svg",xhtml:cj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fj(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),dj.hasOwnProperty(r)?{space:dj[r],local:n}:n}function _be(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===cj&&r.documentElement.namespaceURI===cj?r.createElement(n):r.createElementNS(e,n)}}function gbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function CN(n){var r=fj(n);return(r.local?gbe:_be)(r)}function vbe(){}function pj(n){return null==n?vbe:function(){return this.querySelector(n)}}function bbe(){return[]}function ree(n){return null==n?bbe:function(){return this.querySelectorAll(n)}}var iee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var Hx=document.documentElement;if(!Hx.matches){var wbe=Hx.webkitMatchesSelector||Hx.msMatchesSelector||Hx.mozMatchesSelector||Hx.oMatchesSelector;iee=function(r){return function(){return wbe.call(this,r)}}}}var oee=iee;function aee(n){return new Array(n.length)}function wN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}wN.prototype={constructor:wN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Sbe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new wN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Ebe(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new wN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function Pbe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Ube(n){return function(){this.removeAttribute(n)}}function Hbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function jbe(n,r){return function(){this.setAttribute(n,r)}}function Gbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function zbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Wbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function hj(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Ybe(n){return function(){this.style.removeProperty(n)}}function Kbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function qbe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function lee(n,r){return n.style.getPropertyValue(r)||hj(n).getComputedStyle(n,null).getPropertyValue(r)}function Qbe(n){return function(){delete this[n]}}function Xbe(n,r){return function(){this[n]=r}}function $be(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function uee(n){return n.trim().split(/^|\s+/)}function mj(n){return n.classList||new cee(n)}function cee(n){this._node=n,this._names=uee(n.getAttribute("class")||"")}function dee(n,r){for(var e=mj(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function fee(n,r){for(var e=mj(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function tCe(n){return function(){dee(this,n)}}function nCe(n){return function(){fee(this,n)}}function rCe(n,r){return function(){(r.apply(this,arguments)?dee:fee)(this,n)}}function oCe(){this.textContent=""}function aCe(n){return function(){this.textContent=n}}function sCe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function uCe(){this.innerHTML=""}function cCe(n){return function(){this.innerHTML=n}}function dCe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function pCe(){this.nextSibling&&this.parentNode.appendChild(this)}function mCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vCe(){return null}function bCe(){var n=this.parentNode;n&&n.removeChild(this)}function wCe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function kCe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}cee.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var pee={},sm=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(pee={mouseenter:"mouseover",mouseleave:"mouseout"}));function ECe(n,r,e){return n=hee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function hee(n,r,e){return function(i){var o=sm;sm=i;try{n.call(this,this.__data__,r,e)}finally{sm=o}}}function xCe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function DCe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function ACe(n,r,e){var i=pee.hasOwnProperty(n.type)?ECe:hee;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function ICe(n,r,e,i){var o=sm;n.sourceEvent=sm,sm=n;try{return r.apply(e,i)}finally{sm=o}}function mee(n,r,e){var i=hj(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function PCe(n,r){return function(){return mee(this,n,r)}}function RCe(n,r){return function(){return mee(this,n,r.apply(this,arguments))}}var _j=[null];function iu(n,r){this._groups=n,this._parents=r}function _ee(){return new iu([[document.documentElement]],_j)}iu.prototype=_ee.prototype={constructor:iu,select:function ybe(n){"function"!=typeof n&&(n=pj(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new iu(i,this._parents)},selectAll:function Cbe(n){"function"!=typeof n&&(n=ree(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new iu(i,o)},filter:function kbe(n){"function"!=typeof n&&(n=oee(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new iu(i,this._parents)},data:function xbe(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?Ebe:Sbe,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Mbe(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new iu(s,i))._enter=l,s._exit=u,s},enter:function Tbe(){return new iu(this._enter||this._groups.map(aee),this._parents)},exit:function Dbe(){return new iu(this._exit||this._groups.map(aee),this._parents)},merge:function Abe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new iu(s,this._parents)},order:function Obe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Ibe(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=Pbe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new iu(o,this._parents).order()},call:function Rbe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Lbe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Zbe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Nbe(){var n=0;return this.each(function(){++n}),n},empty:function Bbe(){return!this.node()},each:function Fbe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function Vbe(n,r){var e=fj(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Hbe:Ube:"function"==typeof r?e.local?Wbe:zbe:e.local?Gbe:jbe)(e,r))},style:function Jbe(n,r,e){return arguments.length>1?this.each((null==r?Ybe:"function"==typeof r?qbe:Kbe)(n,r,null==e?"":e)):lee(this.node(),n)},property:function eCe(n,r){return arguments.length>1?this.each((null==r?Qbe:"function"==typeof r?$be:Xbe)(n,r)):this.node()[n]},classed:function iCe(n,r){var e=uee(n+"");if(arguments.length<2){for(var i=mj(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?rCe:r?tCe:nCe)(e,r))},text:function lCe(n){return arguments.length?this.each(null==n?oCe:("function"==typeof n?sCe:aCe)(n)):this.node().textContent},html:function fCe(n){return arguments.length?this.each(null==n?uCe:("function"==typeof n?dCe:cCe)(n)):this.node().innerHTML},raise:function hCe(){return this.each(pCe)},lower:function _Ce(){return this.each(mCe)},append:function gCe(n){var r="function"==typeof n?n:CN(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function yCe(n,r){var e="function"==typeof n?n:CN(n),i=null==r?vCe:"function"==typeof r?r:pj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function CCe(){return this.each(bCe)},clone:function TCe(n){return this.select(n?kCe:wCe)},datum:function MCe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function OCe(n,r,e){var o,s,i=xCe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?ACe:DCe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function LCe(n,r){return this.each(("function"==typeof r?RCe:PCe)(n,r))}};var ZCe=_ee;function gee(n){return"string"==typeof n?new iu([[document.querySelector(n)]],[document.documentElement]):new iu([[n]],_j)}function NCe(n){return gee(CN(n).call(document.documentElement))}var BCe=0;function vee(){return new gj}function gj(){this._="@"+(++BCe).toString(36)}function vj(){for(var r,n=sm;r=n.sourceEvent;)n=r;return n}function kN(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function FCe(n){var r=vj();return r.changedTouches&&(r=r.changedTouches[0]),kN(n,r)}function UCe(n){return"string"==typeof n?new iu([document.querySelectorAll(n)],[document.documentElement]):new iu([null==n?[]:n],_j)}function HCe(n,r,e){arguments.length<3&&(e=r,r=vj().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return kN(n,a);return null}function jCe(n,r){null==r&&(r=vj().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=kN(n,r[e]);return o}function GCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this);for(var o in e)i.attr(o,e[o])})}function zCe(n,r){for(var e in r)n.attr(e,r[e]);return n}function VCe(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=Ci(this);for(var a in i)o.style(a,i[a],e)})}function YCe(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function qCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this);for(var o in e)i.property(o,e[o])})}function JCe(n,r){for(var e in r)n.property(e,r[e]);return n}function XCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=Ci(this).transition(n);for(var o in e)i.attr(o,e[o])})}function $Ce(n,r){for(var e in r)n.attr(e,r[e]);return n}function t1e(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=Ci(this).transition(n);for(var a in i)o.style(a,i[a],e)})}function n1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function gi(n){return function(){return n}}gj.prototype=vee.prototype={constructor:gj,get:function(r){for(var e=this._;!(e in r);)if(!(r=r.parentNode))return;return r[e]},set:function(r,e){return r[this._]=e},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}},pg.prototype.attrs=function WCe(n){return("function"==typeof n?GCe:zCe)(this,n)},pg.prototype.styles=function KCe(n,r){return("function"==typeof n?VCe:YCe)(this,n,null==r?"":r)},pg.prototype.properties=function QCe(n){return("function"==typeof n?qCe:JCe)(this,n)},K7.prototype.attrs=function e1e(n){return("function"==typeof n?XCe:$Ce)(this,n)},K7.prototype.styles=function r1e(n,r){return("function"==typeof n?t1e:n1e)(this,n,null==r?"":r)};var yee=Math.abs,Ml=Math.atan2,k0=Math.cos,i1e=Math.max,yj=Math.min,bp=Math.sin,Pw=Math.sqrt,sl=1e-12,T0=Math.PI,TN=T0/2,lm=2*T0;function o1e(n){return n>1?0:n<-1?T0:Math.acos(n)}function bee(n){return n>=1?TN:n<=-1?-TN:Math.asin(n)}function a1e(n){return n.innerRadius}function s1e(n){return n.outerRadius}function l1e(n){return n.startAngle}function u1e(n){return n.endAngle}function c1e(n){return n&&n.padAngle}function d1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,y=g*u-h*d;if(!(y*y<sl))return[n+(y=(h*(r-a)-g*(n-o))/y)*u,r+y*d]}function MN(n,r,e,i,o,a,s){var l=n-e,u=r-i,d=(s?a:-a)/Pw(l*l+u*u),h=d*u,g=-d*l,y=n+h,L=r+g,z=e+h,q=i+g,re=(y+z)/2,ae=(L+q)/2,Se=z-y,Ce=q-L,Ee=Se*Se+Ce*Ce,Ke=o-a,st=y*q-z*L,De=(Ce<0?-1:1)*Pw(i1e(0,Ke*Ke*Ee-st*st)),it=(st*Ce-Se*De)/Ee,ft=(-st*Se-Ce*De)/Ee,bt=(st*Ce+Se*De)/Ee,$e=(-st*Se+Ce*De)/Ee,Pe=it-re,ct=ft-ae,Bt=bt-re,Ht=$e-ae;return Pe*Pe+ct*ct>Bt*Bt+Ht*Ht&&(it=bt,ft=$e),{cx:it,cy:ft,x01:-h,y01:-g,x11:it*(o/Ke-1),y11:ft*(o/Ke-1)}}function f1e(){var n=a1e,r=s1e,e=gi(0),i=null,o=l1e,a=u1e,s=c1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),y=+r.apply(this,arguments),L=o.apply(this,arguments)-TN,z=a.apply(this,arguments)-TN,q=yee(z-L),re=z>L;if(l||(l=d=Hd()),y<g&&(h=y,y=g,g=h),y>sl)if(q>lm-sl)l.moveTo(y*k0(L),y*bp(L)),l.arc(0,0,y,L,z,!re),g>sl&&(l.moveTo(g*k0(z),g*bp(z)),l.arc(0,0,g,z,L,re));else{var Pe,ct,ae=L,Se=z,Ce=L,Ee=z,Ke=q,st=q,De=s.apply(this,arguments)/2,it=De>sl&&(i?+i.apply(this,arguments):Pw(g*g+y*y)),ft=yj(yee(y-g)/2,+e.apply(this,arguments)),bt=ft,$e=ft;if(it>sl){var Bt=bee(it/g*bp(De)),Ht=bee(it/y*bp(De));(Ke-=2*Bt)>sl?(Ce+=Bt*=re?1:-1,Ee-=Bt):(Ke=0,Ce=Ee=(L+z)/2),(st-=2*Ht)>sl?(ae+=Ht*=re?1:-1,Se-=Ht):(st=0,ae=Se=(L+z)/2)}var Pt=y*k0(ae),Tn=y*bp(ae),jn=g*k0(Ee),zn=g*bp(Ee);if(ft>sl){var Hr,ar=y*k0(Se),kr=y*bp(Se),_r=g*k0(Ce),Wr=g*bp(Ce);if(q<=lm-sl&&(Hr=d1e(Pt,Tn,_r,Wr,ar,kr,jn,zn))){var Kr=Pt-Hr[0],Ho=Tn-Hr[1],tr=ar-Hr[0],yr=kr-Hr[1],Mn=1/bp(o1e((Kr*tr+Ho*yr)/(Pw(Kr*Kr+Ho*Ho)*Pw(tr*tr+yr*yr)))/2),gn=Pw(Hr[0]*Hr[0]+Hr[1]*Hr[1]);bt=yj(ft,(g-gn)/(Mn-1)),$e=yj(ft,(y-gn)/(Mn+1))}}st>sl?$e>sl?(Pe=MN(_r,Wr,Pt,Tn,y,$e,re),ct=MN(ar,kr,jn,zn,y,$e,re),l.moveTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),$e<ft?l.arc(Pe.cx,Pe.cy,$e,Ml(Pe.y01,Pe.x01),Ml(ct.y01,ct.x01),!re):(l.arc(Pe.cx,Pe.cy,$e,Ml(Pe.y01,Pe.x01),Ml(Pe.y11,Pe.x11),!re),l.arc(0,0,y,Ml(Pe.cy+Pe.y11,Pe.cx+Pe.x11),Ml(ct.cy+ct.y11,ct.cx+ct.x11),!re),l.arc(ct.cx,ct.cy,$e,Ml(ct.y11,ct.x11),Ml(ct.y01,ct.x01),!re))):(l.moveTo(Pt,Tn),l.arc(0,0,y,ae,Se,!re)):l.moveTo(Pt,Tn),g>sl&&Ke>sl?bt>sl?(Pe=MN(jn,zn,ar,kr,g,-bt,re),ct=MN(Pt,Tn,_r,Wr,g,-bt,re),l.lineTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),bt<ft?l.arc(Pe.cx,Pe.cy,bt,Ml(Pe.y01,Pe.x01),Ml(ct.y01,ct.x01),!re):(l.arc(Pe.cx,Pe.cy,bt,Ml(Pe.y01,Pe.x01),Ml(Pe.y11,Pe.x11),!re),l.arc(0,0,g,Ml(Pe.cy+Pe.y11,Pe.cx+Pe.x11),Ml(ct.cy+ct.y11,ct.cx+ct.x11),re),l.arc(ct.cx,ct.cy,bt,Ml(ct.y11,ct.x11),Ml(ct.y01,ct.x01),!re))):l.arc(0,0,g,Ee,Ce,re):l.lineTo(jn,zn)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-T0/2;return[k0(h)*d,bp(h)*d]},u.innerRadius=function(d){return arguments.length?(n="function"==typeof d?d:gi(+d),u):n},u.outerRadius=function(d){return arguments.length?(r="function"==typeof d?d:gi(+d),u):r},u.cornerRadius=function(d){return arguments.length?(e="function"==typeof d?d:gi(+d),u):e},u.padRadius=function(d){return arguments.length?(i=null==d?null:"function"==typeof d?d:gi(+d),u):i},u.startAngle=function(d){return arguments.length?(o="function"==typeof d?d:gi(+d),u):o},u.endAngle=function(d){return arguments.length?(a="function"==typeof d?d:gi(+d),u):a},u.padAngle=function(d){return arguments.length?(s="function"==typeof d?d:gi(+d),u):s},u.context=function(d){return arguments.length?(l=null==d?null:d,u):l},u}function Cee(n){this._context=n}function SN(n){return new Cee(n)}function bj(n){return n[0]}function Cj(n){return n[1]}function EN(){var n=bj,r=Cj,e=gi(!0),i=null,o=SN,a=null;function s(l){var u,h,y,d=l.length,g=!1;for(null==i&&(a=o(y=Hd())),u=0;u<=d;++u)!(u<d&&e(h=l[u],u,l))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+n(h,u,l),+r(h,u,l));if(y)return a=null,y+""||null}return s.x=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.y=function(l){return arguments.length?(r="function"==typeof l?l:gi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:gi(!!l),s):e},s.curve=function(l){return arguments.length?(o=l,null!=i&&(a=o(i)),s):o},s.context=function(l){return arguments.length?(null==l?i=a=null:a=o(i=l),s):i},s}function wee(){var n=bj,r=null,e=gi(0),i=Cj,o=gi(!0),a=null,s=SN,l=null;function u(h){var g,y,L,q,ae,z=h.length,re=!1,Se=new Array(z),Ce=new Array(z);for(null==a&&(l=s(ae=Hd())),g=0;g<=z;++g){if(!(g<z&&o(q=h[g],g,h))===re)if(re=!re)y=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),L=g-1;L>=y;--L)l.point(Se[L],Ce[L]);l.lineEnd(),l.areaEnd()}re&&(Se[g]=+n(q,g,h),Ce[g]=+e(q,g,h),l.point(r?+r(q,g,h):Se[g],i?+i(q,g,h):Ce[g]))}if(ae)return l=null,ae+""||null}function d(){return EN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:gi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:gi(+h),u):i},u.lineX0=u.lineY0=function(){return d().x(n).y(e)},u.lineY1=function(){return d().x(n).y(i)},u.lineX1=function(){return d().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:gi(!!h),u):o},u.curve=function(h){return arguments.length?(s=h,null!=a&&(l=s(a)),u):s},u.context=function(h){return arguments.length?(null==h?a=l=null:l=s(a=h),u):a},u}function p1e(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function h1e(n){return n}function m1e(){var n=h1e,r=p1e,e=null,i=gi(0),o=gi(lm),a=gi(0);function s(l){var u,h,g,ae,Ee,d=l.length,y=0,L=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(lm,Math.max(-lm,o.apply(this,arguments)-q)),Se=Math.min(Math.abs(re)/d,a.apply(this,arguments)),Ce=Se*(re<0?-1:1);for(u=0;u<d;++u)(Ee=z[L[u]=u]=+n(l[u],u,l))>0&&(y+=Ee);for(null!=r?L.sort(function(Ke,st){return r(z[Ke],z[st])}):null!=e&&L.sort(function(Ke,st){return e(l[Ke],l[st])}),u=0,g=y?(re-d*Ce)/y:0;u<d;++u,q=ae)h=L[u],ae=q+((Ee=z[h])>0?Ee*g:0)+Ce,z[h]={data:l[h],index:u,value:Ee,startAngle:q,endAngle:ae,padAngle:Se};return z}return s.value=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.sortValues=function(l){return arguments.length?(r=l,e=null,s):r},s.sort=function(l){return arguments.length?(e=l,r=null,s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:gi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:gi(+l),s):a},s}Cee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e)}}};var kee=wj(SN);function Tee(n){this._curve=n}function wj(n){function r(e){return new Tee(n(e))}return r._curve=n,r}function jx(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(e){return arguments.length?r(wj(e)):r()._curve},n}function Mee(){return jx(EN().curve(kee))}function See(){var n=wee().curve(kee),r=n.curve,e=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return jx(e())},delete n.lineX0,n.lineEndAngle=function(){return jx(i())},delete n.lineX1,n.lineInnerRadius=function(){return jx(o())},delete n.lineY0,n.lineOuterRadius=function(){return jx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(wj(s)):r()._curve},n}function Gx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}Tee.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,e){this._curve.point(e*Math.sin(r),e*-Math.cos(r))}};var kj=Array.prototype.slice;function _1e(n){return n.source}function g1e(n){return n.target}function Tj(n){var r=_1e,e=g1e,i=bj,o=Cj,a=null;function s(){var l,u=kj.call(arguments),d=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Hd()),n(a,+i.apply(this,(u[0]=d,u)),+o.apply(this,u),+i.apply(this,(u[0]=h,u)),+o.apply(this,u)),l)return a=null,l+""||null}return s.source=function(l){return arguments.length?(r=l,s):r},s.target=function(l){return arguments.length?(e=l,s):e},s.x=function(l){return arguments.length?(i="function"==typeof l?l:gi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function v1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function y1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function b1e(n,r,e,i,o){var a=Gx(r,e),s=Gx(r,e=(e+o)/2),l=Gx(i,e),u=Gx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function C1e(){return Tj(v1e)}function w1e(){return Tj(y1e)}function k1e(){var n=Tj(b1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var Mj={draw:function(r,e){var i=Math.sqrt(e/T0);r.moveTo(i,0),r.arc(0,0,i,0,lm)}},Eee={draw:function(r,e){var i=Math.sqrt(e/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},xee=Math.sqrt(1/3),T1e=2*xee,Dee={draw:function(r,e){var i=Math.sqrt(e/T1e),o=i*xee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},Aee=Math.sin(T0/10)/Math.sin(7*T0/10),S1e=Math.sin(lm/10)*Aee,E1e=-Math.cos(lm/10)*Aee,Oee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=S1e*i,a=E1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=lm*s/5,u=Math.cos(l),d=Math.sin(l);r.lineTo(d*i,-u*i),r.lineTo(u*o-d*a,d*o+u*a)}r.closePath()}},Iee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},Sj=Math.sqrt(3),Pee={draw:function(r,e){var i=-Math.sqrt(e/(3*Sj));r.moveTo(0,2*i),r.lineTo(-Sj*i,-i),r.lineTo(Sj*i,-i),r.closePath()}},Xc=-.5,$c=Math.sqrt(3)/2,Ej=1/Math.sqrt(12),x1e=3*(Ej/2+1),Ree={draw:function(r,e){var i=Math.sqrt(e/x1e),o=i/2,a=i*Ej,s=o,l=i*Ej+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Xc*o-$c*a,$c*o+Xc*a),r.lineTo(Xc*s-$c*l,$c*s+Xc*l),r.lineTo(Xc*u-$c*d,$c*u+Xc*d),r.lineTo(Xc*o+$c*a,Xc*a-$c*o),r.lineTo(Xc*s+$c*l,Xc*l-$c*s),r.lineTo(Xc*u+$c*d,Xc*d-$c*u),r.closePath()}},D1e=[Mj,Eee,Dee,Iee,Oee,Pee,Ree];function A1e(){var n=gi(Mj),r=gi(64),e=null;function i(){var o;if(e||(e=o=Hd()),n.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:gi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:gi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function Mg(){}function xN(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function DN(n){this._context=n}function O1e(n){return new DN(n)}function Lee(n){this._context=n}function I1e(n){return new Lee(n)}function Zee(n){this._context=n}function P1e(n){return new Zee(n)}function Nee(n,r){this._basis=new DN(n),this._beta=r}DN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xN(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Lee.prototype={areaStart:Mg,areaEnd:Mg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:xN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:xN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Nee.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0)for(var d,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)d=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+d*s),this._beta*e[u]+(1-this._beta)*(a+d*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var R1e=function n(r){function e(i){return 1===r?new DN(i):new Nee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function AN(n,r,e){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-e),n._x2,n._y2)}function xj(n,r){this._context=n,this._k=(1-r)/6}xj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:AN(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:AN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var L1e=function n(r){function e(i){return new xj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Dj(n,r){this._context=n,this._k=(1-r)/6}Dj.prototype={areaStart:Mg,areaEnd:Mg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:AN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Z1e=function n(r){function e(i){return new Dj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Aj(n,r){this._context=n,this._k=(1-r)/6}Aj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:AN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var N1e=function n(r){function e(i){return new Aj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Oj(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>sl){var l=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,u=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*l-n._x0*n._l12_2a+n._x2*n._l01_2a)/u,o=(o*l-n._y0*n._l12_2a+n._y2*n._l01_2a)/u}if(n._l23_a>sl){var d=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,h=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*d+n._x1*n._l23_2a-r*n._l12_2a)/h,s=(s*d+n._y1*n._l23_2a-e*n._l12_2a)/h}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function Bee(n,r){this._context=n,this._alpha=r}Bee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Oj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var B1e=function n(r){function e(i){return r?new Bee(i,r):new xj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Fee(n,r){this._context=n,this._alpha=r}Fee.prototype={areaStart:Mg,areaEnd:Mg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:Oj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F1e=function n(r){function e(i){return r?new Fee(i,r):new Dj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Uee(n,r){this._context=n,this._alpha=r}Uee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var U1e=function n(r){function e(i){return r?new Uee(i,r):new Aj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Hee(n){this._context=n}function H1e(n){return new Hee(n)}function jee(n){return n<0?-1:1}function Gee(n,r,e){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(e-n._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(jee(a)+jee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function zee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function Ij(n,r,e){var i=n._x0,o=n._y0,a=n._x1,s=n._y1,l=(a-i)/3;n._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function ON(n){this._context=n}function Wee(n){this._context=new Vee(n)}function Vee(n){this._context=n}function j1e(n){return new ON(n)}function G1e(n){return new Wee(n)}function Yee(n){this._context=n}function Kee(n){var r,i,e=n.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r<e-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*n[e-1]+n[e],r=1;r<e;++r)i=o[r]/a[r-1],a[r]-=i,s[r]-=i*s[r-1];for(o[e-1]=s[e-1]/a[e-1],r=e-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function z1e(n){return new Yee(n)}function IN(n,r){this._context=n,this._t=r}function W1e(n){return new IN(n,.5)}function V1e(n){return new IN(n,0)}function Y1e(n){return new IN(n,1)}function Rw(n,r){if((s=n.length)>1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e<s;++e)for(o=a,a=n[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Lw(n){for(var r=n.length,e=new Array(r);--r>=0;)e[r]=r;return e}function K1e(n,r){return n[r]}function q1e(){var n=gi([]),r=Lw,e=Rw,i=K1e;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l<d;++l){for(var q,y=s[l],L=h[l]=new Array(u),z=0;z<u;++z)L[z]=q=[0,+i(a[z],y,z,a)],q.data=a[z];L.key=y}for(l=0,g=r(h);l<d;++l)h[g[l]].index=l;return e(h,g),h}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:gi(kj.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:gi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?Lw:"function"==typeof a?a:gi(kj.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?Rw:a,o):e},o}function J1e(n,r){if((i=n.length)>0){for(var e,i,s,o=0,a=n[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=n[e][o][1]||0;if(s)for(e=0;e<i;++e)n[e][o][1]/=s}Rw(n,r)}}function Q1e(n,r){if((u=n.length)>1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i<d;++i)for(s=l=0,e=0;e<u;++e)(a=(o=n[r[e]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function X1e(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=n[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}Rw(n,r)}}function $1e(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,d=0;l<s;++l){for(var h=n[r[l]],g=h[i][1]||0,L=(g-(h[i-1][1]||0))/2,z=0;z<l;++z){var q=n[r[z]];L+=(q[i][1]||0)-(q[i-1][1]||0)}u+=g,d+=L*g}o[i-1][1]+=o[i-1][0]=e,u&&(e-=d/u)}o[i-1][1]+=o[i-1][0]=e,Rw(n,r)}}function qee(n){var r=n.map(Jee);return Lw(n).sort(function(e,i){return r[e]-r[i]})}function Jee(n){for(var o,r=0,e=-1,i=n.length;++e<i;)(o=+n[e][1])&&(r+=o);return r}function ewe(n){return qee(n).reverse()}function twe(n){var e,i,r=n.length,o=n.map(Jee),a=Lw(n).sort(function(h,g){return o[g]-o[h]}),s=0,l=0,u=[],d=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],d.push(i));return d.reverse().concat(u)}function nwe(n){return Lw(n).reverse()}Hee.prototype={areaStart:Mg,areaEnd:Mg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,e){r=+r,e=+e,this._point?this._context.lineTo(r,e):(this._point=1,this._context.moveTo(r,e))}},ON.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ij(this,this._t0,zee(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){var i=NaN;if(e=+e,(r=+r)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,Ij(this,zee(this,i=Gee(this,r,e)),i);break;default:Ij(this,this._t0,i=Gee(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(Wee.prototype=Object.create(ON.prototype)).point=function(n,r){ON.prototype.point.call(this,r,n)},Vee.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,i,o,a,s){this._context.bezierCurveTo(e,r,o,i,s,a)}},Yee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),2===i)this._context.lineTo(r[1],e[1]);else for(var o=Kee(r),a=Kee(e),s=0,l=1;l<i;++s,++l)this._context.bezierCurveTo(o[0][s],a[0][s],o[1][s],a[1][s],r[l],e[l]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}},IN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=r,this._y=e}};var Pj=new Date,Rj=new Date;function ys(n,r,e,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return ys(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return Pj.setTime(+a),Rj.setTime(+s),n(Pj),n(Rj),Math.floor(e(Pj,Rj))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var PN=ys(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});PN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ys(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):PN:null};var Qee=PN,Xee=PN.range,M0=6e4,LN=36e5,tte=ys(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),nte=tte,rte=tte.range,ite=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*M0)},function(n,r){return(r-n)/M0},function(n){return n.getMinutes()}),rwe=ite,iwe=ite.range,ote=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*M0)},function(n,r){n.setTime(+n+r*LN)},function(n,r){return(r-n)/LN},function(n){return n.getHours()}),owe=ote,awe=ote.range,ate=ys(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*M0)/864e5},function(n){return n.getDate()-1}),swe=ate,lwe=ate.range;function S0(n){return ys(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*M0)/6048e5})}var Lj=S0(0),ste=S0(1),lte=S0(2),ute=S0(3),cte=S0(4),dte=S0(5),fte=S0(6),pte=Lj.range,uwe=ste.range,cwe=lte.range,dwe=ute.range,fwe=cte.range,pwe=dte.range,hwe=fte.range,hte=ys(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),mwe=hte,_we=hte.range,Zj=ys(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Zj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var gwe=Zj,vwe=Zj.range,mte=ys(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*M0)},function(n,r){return(r-n)/M0},function(n){return n.getUTCMinutes()}),ywe=mte,bwe=mte.range,_te=ys(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*LN)},function(n,r){return(r-n)/LN},function(n){return n.getUTCHours()}),Cwe=_te,wwe=_te.range,gte=ys(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),kwe=gte,Twe=gte.range;function E0(n){return ys(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/6048e5})}var Nj=E0(0),vte=E0(1),yte=E0(2),bte=E0(3),Cte=E0(4),wte=E0(5),kte=E0(6),Tte=Nj.range,Mwe=vte.range,Swe=yte.range,Ewe=bte.range,xwe=Cte.range,Dwe=wte.range,Awe=kte.range,Mte=ys(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),Owe=Mte,Iwe=Mte.range,Bj=ys(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Bj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Pwe=Bj,Rwe=Bj.range;function Lwe(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function ZN(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function zx(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function Ste(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=Wx(o),h=Vx(o),g=Wx(a),y=Vx(a),L=Wx(s),z=Vx(s),q=Wx(l),re=Vx(l),ae=Wx(u),Se=Vx(u),Ce={a:function Tn(tr){return s[tr.getDay()]},A:function jn(tr){return a[tr.getDay()]},b:function zn(tr){return u[tr.getMonth()]},B:function ar(tr){return l[tr.getMonth()]},c:null,d:Ate,e:Ate,f:oke,H:nke,I:rke,j:ike,L:Ote,m:ake,M:ske,p:function kr(tr){return o[+(tr.getHours()>=12)]},Q:Lte,s:Zte,S:lke,u:uke,U:cke,V:dke,w:fke,W:pke,x:null,X:null,y:hke,Y:mke,Z:_ke,"%":Rte},Ee={a:function _r(tr){return s[tr.getUTCDay()]},A:function Wr(tr){return a[tr.getUTCDay()]},b:function Hr(tr){return u[tr.getUTCMonth()]},B:function Kr(tr){return l[tr.getUTCMonth()]},c:null,d:Ite,e:Ite,f:bke,H:gke,I:vke,j:yke,L:Pte,m:Cke,M:wke,p:function Ho(tr){return o[+(tr.getUTCHours()>=12)]},Q:Lte,s:Zte,S:kke,u:Tke,U:Mke,V:Ske,w:Eke,W:xke,x:null,X:null,y:Dke,Y:Ake,Z:Oke,"%":Rte},Ke={a:function bt(tr,yr,Mn){var gn=L.exec(yr.slice(Mn));return gn?(tr.w=z[gn[0].toLowerCase()],Mn+gn[0].length):-1},A:function $e(tr,yr,Mn){var gn=g.exec(yr.slice(Mn));return gn?(tr.w=y[gn[0].toLowerCase()],Mn+gn[0].length):-1},b:function Pe(tr,yr,Mn){var gn=ae.exec(yr.slice(Mn));return gn?(tr.m=Se[gn[0].toLowerCase()],Mn+gn[0].length):-1},B:function ct(tr,yr,Mn){var gn=q.exec(yr.slice(Mn));return gn?(tr.m=re[gn[0].toLowerCase()],Mn+gn[0].length):-1},c:function Bt(tr,yr,Mn){return it(tr,r,yr,Mn)},d:xte,e:xte,f:Xwe,H:Dte,I:Dte,j:Kwe,L:Qwe,m:Ywe,M:qwe,p:function ft(tr,yr,Mn){var gn=d.exec(yr.slice(Mn));return gn?(tr.p=h[gn[0].toLowerCase()],Mn+gn[0].length):-1},Q:eke,s:tke,S:Jwe,u:Uwe,U:Hwe,V:jwe,w:Fwe,W:Gwe,x:function Ht(tr,yr,Mn){return it(tr,e,yr,Mn)},X:function Pt(tr,yr,Mn){return it(tr,i,yr,Mn)},y:Wwe,Y:zwe,Z:Vwe,"%":$we};function st(tr,yr){return function(Mn){var Nn,rr,gr,gn=[],nr=-1,un=0,bn=tr.length;for(Mn instanceof Date||(Mn=new Date(+Mn));++nr<bn;)37===tr.charCodeAt(nr)&&(gn.push(tr.slice(un,nr)),null!=(rr=Ete[Nn=tr.charAt(++nr)])?Nn=tr.charAt(++nr):rr="e"===Nn?" ":"0",(gr=yr[Nn])&&(Nn=gr(Mn,rr)),gn.push(Nn),un=nr+1);return gn.push(tr.slice(un,nr)),gn.join("")}}function De(tr,yr){return function(Mn){var un,bn,gn=zx(1900);if(it(gn,tr,Mn+="",0)!=Mn.length)return null;if("Q"in gn)return new Date(gn.Q);if("p"in gn&&(gn.H=gn.H%12+12*gn.p),"V"in gn){if(gn.V<1||gn.V>53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=ZN(zx(gn.y))).getUTCDay(),un=bn>4||0===bn?C0.ceil(un):C0(un),un=Ix.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=yr(zx(gn.y))).getDay(),un=bn>4||0===bn?y0.ceil(un):y0(un),un=Ox.offset(un,7*(gn.V-1)),gn.y=un.getFullYear(),gn.m=un.getMonth(),gn.d=un.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),bn="Z"in gn?ZN(zx(gn.y)).getUTCDay():yr(zx(gn.y)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+7*gn.W-(bn+5)%7:gn.w+7*gn.U-(bn+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,ZN(gn)):yr(gn)}}function it(tr,yr,Mn,gn){for(var Nn,rr,nr=0,un=yr.length,bn=Mn.length;nr<un;){if(gn>=bn)return-1;if(37===(Nn=yr.charCodeAt(nr++))){if(Nn=yr.charAt(nr++),!(rr=Ke[Nn in Ete?yr.charAt(nr++):Nn])||(gn=rr(tr,Mn,gn))<0)return-1}else if(Nn!=Mn.charCodeAt(gn++))return-1}return gn}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(yr){var Mn=st(yr+="",Ce);return Mn.toString=function(){return yr},Mn},parse:function(yr){var Mn=De(yr+="",Lwe);return Mn.toString=function(){return yr},Mn},utcFormat:function(yr){var Mn=st(yr+="",Ee);return Mn.toString=function(){return yr},Mn},utcParse:function(yr){var Mn=De(yr,ZN);return Mn.toString=function(){return yr},Mn}}}var Zw,Nte,Bte,Fj,Uj,Ete={"-":"",_:" ",0:"0"},ll=/^\s*\d+/,Zwe=/^%/,Nwe=/[\\^$*+?|[\]().{}]/g;function vo(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Bwe(n){return n.replace(Nwe,"\\$&")}function Wx(n){return new RegExp("^(?:"+n.map(Bwe).join("|")+")","i")}function Vx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function Fwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Uwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Hwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function jwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function Gwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function zwe(n,r,e){var i=ll.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Wwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Vwe(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Ywe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function xte(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Kwe(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Dte(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function qwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Jwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Qwe(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ll.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function $we(n,r,e){var i=Zwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function eke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function tke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ate(n,r){return vo(n.getDate(),r,2)}function nke(n,r){return vo(n.getHours(),r,2)}function rke(n,r){return vo(n.getHours()%12||12,r,2)}function ike(n,r){return vo(1+Ox.count(Vd(n),n),r,3)}function Ote(n,r){return vo(n.getMilliseconds(),r,3)}function oke(n,r){return Ote(n,r)+"000"}function ake(n,r){return vo(n.getMonth()+1,r,2)}function ske(n,r){return vo(n.getMinutes(),r,2)}function lke(n,r){return vo(n.getSeconds(),r,2)}function uke(n){var r=n.getDay();return 0===r?7:r}function cke(n,r){return vo(mN.count(Vd(n),n),r,2)}function dke(n,r){var e=n.getDay();return n=e>=4||0===e?om(n):om.ceil(n),vo(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function fke(n){return n.getDay()}function pke(n,r){return vo(y0.count(Vd(n),n),r,2)}function hke(n,r){return vo(n.getFullYear()%100,r,2)}function mke(n,r){return vo(n.getFullYear()%1e4,r,4)}function _ke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function Ite(n,r){return vo(n.getUTCDate(),r,2)}function gke(n,r){return vo(n.getUTCHours(),r,2)}function vke(n,r){return vo(n.getUTCHours()%12||12,r,2)}function yke(n,r){return vo(1+Ix.count(Yd(n),n),r,3)}function Pte(n,r){return vo(n.getUTCMilliseconds(),r,3)}function bke(n,r){return Pte(n,r)+"000"}function Cke(n,r){return vo(n.getUTCMonth()+1,r,2)}function wke(n,r){return vo(n.getUTCMinutes(),r,2)}function kke(n,r){return vo(n.getUTCSeconds(),r,2)}function Tke(n){var r=n.getUTCDay();return 0===r?7:r}function Mke(n,r){return vo(gN.count(Yd(n),n),r,2)}function Ske(n,r){var e=n.getUTCDay();return n=e>=4||0===e?am(n):am.ceil(n),vo(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function Eke(n){return n.getUTCDay()}function xke(n,r){return vo(C0.count(Yd(n),n),r,2)}function Dke(n,r){return vo(n.getUTCFullYear()%100,r,2)}function Ake(n,r){return vo(n.getUTCFullYear()%1e4,r,4)}function Oke(){return"+0000"}function Rte(){return"%"}function Lte(n){return+n}function Zte(n){return Math.floor(+n/1e3)}function Fte(n){return Zw=Ste(n),Nte=Zw.format,Bte=Zw.parse,Fj=Zw.utcFormat,Uj=Zw.utcParse,Zw}Fte({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ute="%Y-%m-%dT%H:%M:%S.%LZ";var Pke=Date.prototype.toISOString?function Ike(n){return n.toISOString()}:Fj(Ute),Rke=Pke;var Zke=+new Date("2000-01-01T00:00:00.000Z")?function Lke(n){var r=new Date(n);return isNaN(r)?null:r}:Uj(Ute),Nke=Zke;function Bke(n,r,e){var i=new QE,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?hg():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function Fke(){}function Hj(n){return null==n?Fke:function(){return this.querySelector(n)}}function Hke(){return[]}function Hte(n){return null==n?Hke:function(){return this.querySelectorAll(n)}}function jte(n){return function(){return this.matches(n)}}function Gte(n){return new Array(n.length)}function NN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}NN.prototype={constructor:NN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Vke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new NN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Yke(n,r,e,i,o,a,s){var l,u,L,d={},h=r.length,g=a.length,y=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(y[l]=L="$"+s.call(u,u.__data__,l,r),L in d?o[l]=u:d[L]=u);for(l=0;l<g;++l)(u=d[L="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[L]=null):e[l]=new NN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[y[l]]===u&&(o[l]=u)}function eTe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var jj="http://www.w3.org/1999/xhtml",Wte={svg:"http://www.w3.org/2000/svg",xhtml:jj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function BN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Wte.hasOwnProperty(r)?{space:Wte[r],local:n}:n}function sTe(n){return function(){this.removeAttribute(n)}}function lTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function uTe(n,r){return function(){this.setAttribute(n,r)}}function cTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function dTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function fTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Vte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function hTe(n){return function(){this.style.removeProperty(n)}}function mTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function _Te(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nw(n,r){return n.style.getPropertyValue(r)||Vte(n).getComputedStyle(n,null).getPropertyValue(r)}function vTe(n){return function(){delete this[n]}}function yTe(n,r){return function(){this[n]=r}}function bTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Yte(n){return n.trim().split(/^|\s+/)}function Gj(n){return n.classList||new Kte(n)}function Kte(n){this._node=n,this._names=Yte(n.getAttribute("class")||"")}function qte(n,r){for(var e=Gj(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function Jte(n,r){for(var e=Gj(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function wTe(n){return function(){qte(this,n)}}function kTe(n){return function(){Jte(this,n)}}function TTe(n,r){return function(){(r.apply(this,arguments)?qte:Jte)(this,n)}}function STe(){this.textContent=""}function ETe(n){return function(){this.textContent=n}}function xTe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function ATe(){this.innerHTML=""}function OTe(n){return function(){this.innerHTML=n}}function ITe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function RTe(){this.nextSibling&&this.parentNode.appendChild(this)}function ZTe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function BTe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===jj&&r.documentElement.namespaceURI===jj?r.createElement(n):r.createElementNS(e,n)}}function FTe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Qte(n){var r=BN(n);return(r.local?FTe:BTe)(r)}function HTe(){return null}function GTe(){var n=this.parentNode;n&&n.removeChild(this)}function WTe(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function VTe(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}Kte.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var Xte={},x0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Xte={mouseenter:"mouseover",mouseleave:"mouseout"}));function JTe(n,r,e){return n=$te(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function $te(n,r,e){return function(i){var o=x0;x0=i;try{n.call(this,this.__data__,r,e)}finally{x0=o}}}function QTe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function XTe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function $Te(n,r,e){var i=Xte.hasOwnProperty(n.type)?JTe:$te;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function ene(n,r,e){var i=Vte(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function tMe(n,r){return function(){return ene(this,n,r)}}function nMe(n,r){return function(){return ene(this,n,r.apply(this,arguments))}}var iMe=[null];function Kd(n,r){this._groups=n,this._parents=r}function tne(){return new Kd([[document.documentElement]],iMe)}Kd.prototype=tne.prototype={constructor:Kd,select:function Uke(n){"function"!=typeof n&&(n=Hj(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new Kd(i,this._parents)},selectAll:function jke(n){"function"!=typeof n&&(n=Hte(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new Kd(i,o)},filter:function Gke(n){"function"!=typeof n&&(n=jte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Kd(i,this._parents)},data:function Kke(n,r){if(!n)return L=new Array(this.size()),d=-1,this.each(function(st){L[++d]=st}),L;var e=r?Yke:Vke,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Wke(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],y=g.length,L=n.call(h,h&&h.__data__,d,i),z=L.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(y),L,r);for(var Ee,Ke,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce<z;);Ee._next=Ke||null}}return(s=new Kd(s,i))._enter=l,s._exit=u,s},enter:function zke(){return new Kd(this._enter||this._groups.map(Gte),this._parents)},exit:function qke(){return new Kd(this._exit||this._groups.map(Gte),this._parents)},join:function Jke(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Qke(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new Kd(s,this._parents)},order:function Xke(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function $ke(n){function r(g,y){return g&&y?n(g.__data__,y.__data__):!g-!y}n||(n=eTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new Kd(o,this._parents).order()},call:function tTe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function nTe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function rTe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function iTe(){var n=0;return this.each(function(){++n}),n},empty:function oTe(){return!this.node()},each:function aTe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function pTe(n,r){var e=BN(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?lTe:sTe:"function"==typeof r?e.local?fTe:dTe:e.local?cTe:uTe)(e,r))},style:function gTe(n,r,e){return arguments.length>1?this.each((null==r?hTe:"function"==typeof r?_Te:mTe)(n,r,null==e?"":e)):Nw(this.node(),n)},property:function CTe(n,r){return arguments.length>1?this.each((null==r?vTe:"function"==typeof r?bTe:yTe)(n,r)):this.node()[n]},classed:function MTe(n,r){var e=Yte(n+"");if(arguments.length<2){for(var i=Gj(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?TTe:r?wTe:kTe)(e,r))},text:function DTe(n){return arguments.length?this.each(null==n?STe:("function"==typeof n?xTe:ETe)(n)):this.node().textContent},html:function PTe(n){return arguments.length?this.each(null==n?ATe:("function"==typeof n?ITe:OTe)(n)):this.node().innerHTML},raise:function LTe(){return this.each(RTe)},lower:function NTe(){return this.each(ZTe)},append:function UTe(n){var r="function"==typeof n?n:Qte(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function jTe(n,r){var e="function"==typeof n?n:Qte(n),i=null==r?HTe:"function"==typeof r?r:Hj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function zTe(){return this.each(GTe)},clone:function YTe(n){return this.select(n?VTe:WTe)},datum:function KTe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function eMe(n,r,e){var o,s,i=QTe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?$Te:XTe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function rMe(n,r){return this.each(("function"==typeof r?nMe:tMe)(n,r))}};var Yx=tne,oMe=t0("start","end","interrupt"),aMe=[];function HN(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function sMe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,y,L;if(1!==e.state)return u();for(h in i)if((L=i[h]).name===e.name){if(3===L.state)return $E(s);4===L.state?(L.state=6,L.timer.stop(),L.on.call("interrupt",n,n.__data__,L.index,L.group),delete i[h]):+h<r&&(L.state=6,L.timer.stop(),delete i[h])}if($E(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(y=e.tween.length),h=0,g=-1;h<y;++h)(L=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=L);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,y=o.length;++g<y;)o[g].call(null,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=XE(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:oMe,tween:aMe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Yj(n,r){var e=qd(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function D0(n,r){var e=qd(n,r);if(e.state>2)throw new Error("too late; already started");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function ine(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}function Sg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var Kx,qj,sne,jN,one=180/Math.PI,Kj={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ane(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*one,skewX:Math.atan(u)*one,scaleX:s,scaleY:l}}function lne(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],y=[];return d=n(d),h=n(h),function a(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push("translate(",null,r,null,e);z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,y)})}else(g||y)&&L.push("translate("+g+r+y+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,y),function s(d,h,g,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Sg(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,y),function l(d,h,g,y){d!==h?y.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Sg(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,y),function u(d,h,g,y,L,z){if(d!==g||h!==y){var q=L.push(o(L)+"scale(",null,",",null,")");z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,y)})}else(1!==g||1!==y)&&L.push(o(L)+"scale("+g+","+y+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,y),d=h=null,function(L){for(var re,z=-1,q=y.length;++z<q;)g[(re=y[z]).i]=re.x(L);return g.join("")}}}var dMe=lne(function uMe(n){return"none"===n?Kj:(Kx||(Kx=document.createElement("DIV"),qj=document.documentElement,sne=document.defaultView),Kx.style.transform=n,n=sne.getComputedStyle(qj.appendChild(Kx),null).getPropertyValue("transform"),qj.removeChild(Kx),ane(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),fMe=lne(function cMe(n){return null!=n&&(jN||(jN=document.createElementNS("http://www.w3.org/2000/svg","g")),jN.setAttribute("transform",n),n=jN.transform.baseVal.consolidate())?ane((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Kj},", ",")",")");function pMe(n,r){var e,i;return function(){var o=D0(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function hMe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=D0(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function Jj(n,r,e){var i=n._id;return n.each(function(){var o=D0(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return qd(o,i).value[r]}}function Qj(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function une(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function qx(){}var GN=1/.7,Bw="\\s*([+-]?\\d+)\\s*",Qx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_Me=/^#([0-9a-f]{3,8})$/,gMe=new RegExp("^rgb\\("+[Bw,Bw,Bw]+"\\)$"),vMe=new RegExp("^rgb\\("+[Cp,Cp,Cp]+"\\)$"),yMe=new RegExp("^rgba\\("+[Bw,Bw,Bw,Qx]+"\\)$"),bMe=new RegExp("^rgba\\("+[Cp,Cp,Cp,Qx]+"\\)$"),CMe=new RegExp("^hsl\\("+[Qx,Cp,Cp]+"\\)$"),wMe=new RegExp("^hsla\\("+[Qx,Cp,Cp,Qx]+"\\)$"),cne={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function dne(){return this.rgb().formatHex()}function fne(){return this.rgb().formatRgb()}function Xx(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=_Me.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?pne(r):3===e?new bc(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?zN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?zN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=gMe.exec(n))?new bc(r[1],r[2],r[3],1):(r=vMe.exec(n))?new bc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=yMe.exec(n))?zN(r[1],r[2],r[3],r[4]):(r=bMe.exec(n))?zN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=CMe.exec(n))?_ne(r[1],r[2]/100,r[3]/100,1):(r=wMe.exec(n))?_ne(r[1],r[2]/100,r[3]/100,r[4]):cne.hasOwnProperty(n)?pne(cne[n]):"transparent"===n?new bc(NaN,NaN,NaN,0):null}function pne(n){return new bc(n>>16&255,n>>8&255,255&n,1)}function zN(n,r,e,i){return i<=0&&(n=r=e=NaN),new bc(n,r,e,i)}function TMe(n){return n instanceof qx||(n=Xx(n)),n?new bc((n=n.rgb()).r,n.g,n.b,n.opacity):new bc}function WN(n,r,e,i){return 1===arguments.length?TMe(n):new bc(n,r,e,null==i?1:i)}function bc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function hne(){return"#"+Xj(this.r)+Xj(this.g)+Xj(this.b)}function mne(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function Xj(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function _ne(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new wp(n,r,e,i)}function gne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof qx||(n=Xx(n)),!n)return new wp;if(n instanceof wp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new wp(s,l,u,n.opacity)}function wp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function $j(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function vne(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function yne(n){return function(){return n}}function bne(n,r){return function(e){return n+e*r}}function DMe(n){return 1==(n=+n)?Cne:function(r,e){return e-r?function xMe(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):yne(isNaN(r)?e:r)}}function Cne(n,r){var e=r-n;return e?bne(n,e):yne(isNaN(n)?r:n)}Qj(qx,Xx,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:dne,formatHex:dne,formatHsl:function kMe(){return gne(this).formatHsl()},formatRgb:fne,toString:fne}),Qj(bc,WN,une(qx,{brighter:function(r){return r=null==r?GN:Math.pow(GN,r),new bc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new bc(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hne,formatHex:hne,formatRgb:mne,toString:mne})),Qj(wp,function MMe(n,r,e,i){return 1===arguments.length?gne(n):new wp(n,r,e,null==i?1:i)},une(qx,{brighter:function(r){return r=null==r?GN:Math.pow(GN,r),new wp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new bc($j(r>=240?r-240:r+120,a,o),$j(r,a,o),$j(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var wne=function n(r){var e=DMe(r);function i(o,a){var s=e((o=WN(o)).r,(a=WN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Cne(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function kne(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=WN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}kne(function SMe(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return vne((e-i/r)*r,s,o,a,l)}}),kne(function EMe(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return vne((e-i/r)*r,o,a,s,l)}});var eG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tG=new RegExp(eG.source,"g");function IMe(n,r){var i,o,a,e=eG.lastIndex=tG.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=eG.exec(n))&&(o=tG.exec(r));)(a=o.index)>e&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:Sg(i,o)})),e=tG.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function OMe(n){return function(r){return n(r)+""}}(u[0].x):function AMe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function Tne(n,r){var e;return("number"==typeof r?Sg:r instanceof Xx?wne:(e=Xx(r))?(r=e,wne):IMe)(n,r)}function PMe(n){return function(){this.removeAttribute(n)}}function RMe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function LMe(n,r,e){var i,o;return function(){var a=this.getAttribute(n);return a===e?null:a===i?o:o=r(i=a,e)}}function ZMe(n,r,e){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===e?null:a===i?o:o=r(i=a,e)}}function NMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function BMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function UMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return e._value=r,e}function HMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return e._value=r,e}function GMe(n,r){return function(){Yj(this,n).delay=+r.apply(this,arguments)}}function zMe(n,r){return r=+r,function(){Yj(this,n).delay=r}}function VMe(n,r){return function(){D0(this,n).duration=+r.apply(this,arguments)}}function YMe(n,r){return r=+r,function(){D0(this,n).duration=r}}function qMe(n,r){if("function"!=typeof r)throw new Error;return function(){D0(this,n).ease=r}}function eSe(n,r,e){var i,o,a=function $Me(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Yj:D0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var aSe=Yx.prototype.constructor;function pSe(n,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),e)}}return i._value=r,i}var ySe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Mne(n){return Yx().transition(n)}function Sne(){return++ySe}var Fw=Yx.prototype;kp.prototype=Mne.prototype={constructor:kp,select:function iSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hj(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),y=0;y<u;++y)(h=l[y])&&(g=n.call(h,h.__data__,y,l))&&("__data__"in h&&(g.__data__=h.__data__),d[y]=g,HN(d[y],r,e,y,d,qd(h,e)));return new kp(a,this._parents,r,e)},selectAll:function oSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hte(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var L,y=n.call(h,h.__data__,g,u),z=qd(h,e),q=0,re=y.length;q<re;++q)(L=y[q])&&HN(L,r,e,q,y,z);a.push(y),s.push(h)}return new kp(a,s,r,e)},filter:function QMe(n){"function"!=typeof n&&(n=jte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new kp(i,this._parents,this._name,this._id)},merge:function XMe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var y,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),L=0;L<h;++L)(y=u[L]||d[L])&&(g[L]=y);for(;l<i;++l)s[l]=r[l];return new kp(s,this._parents,this._name,this._id)},selection:function sSe(){return new aSe(this._groups,this._parents)},transition:function vSe(){for(var n=this._name,r=this._id,e=Sne(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=qd(u,r);HN(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kp(i,this._parents,n,e)},call:Fw.call,nodes:Fw.nodes,node:Fw.node,size:Fw.size,empty:Fw.empty,each:Fw.each,on:function tSe(n,r){var e=this._id;return arguments.length<2?qd(this.node(),e).on.on(n):this.each(eSe(e,n,r))},attr:function FMe(n,r){var e=BN(n),i="transform"===e?fMe:Tne;return this.attrTween(n,"function"==typeof r?(e.local?BMe:NMe)(e,i,Jj(this,"attr."+n,r)):null==r?(e.local?RMe:PMe)(e):(e.local?ZMe:LMe)(e,i,r+""))},attrTween:function jMe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=BN(n);return this.tween(e,(i.local?UMe:HMe)(i,r))},style:function fSe(n,r,e){var i="transform"==(n+="")?dMe:Tne;return null==r?this.styleTween(n,function lSe(n,r){var e,i,o;return function(){var a=Nw(this,n),s=(this.style.removeProperty(n),Nw(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,function uSe(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function dSe(n,r,e){var i,o,a;return function(){var s=Nw(this,n),l=e(this);return null==l&&(this.style.removeProperty(n),l=Nw(this,n)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(n,i,Jj(this,"style."+n,r)):function cSe(n,r,e){var i,o;return function(){var a=Nw(this,n);return a===e?null:a===i?o:o=r(i=a,e)}}(n,i,r+""),e)},styleTween:function hSe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,pSe(n,r,null==e?"":e))},text:function gSe(n){return this.tween("text","function"==typeof n?function _Se(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(Jj(this,"text",n)):function mSe(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function rSe(){return this.on("end.remove",function nSe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function mMe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=qd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?pMe:hMe)(e,n,r))},delay:function WMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?GMe:zMe)(r,n)):qd(this.node(),r).delay},duration:function KMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?VMe:YMe)(r,n)):qd(this.node(),r).duration},ease:function JMe(n){var r=this._id;return arguments.length?this.each(qMe(r,n)):qd(this.node(),r).ease}};var nG={time:null,delay:0,duration:250,ease:QL};function bSe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return nG.time=hg(),nG;return e}Yx.prototype.interrupt=function lMe(n){return this.each(function(){ine(this,n)})},Yx.prototype.transition=function CSe(n){var r,e;n instanceof kp?(r=n._id,n=n._name):(r=Sne(),(e=nG).time=hg(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&HN(u,n,r,d,s,e||bSe(u,r));return new kp(i,this._parents,n,r)};var wSe=[null];function kSe(n,r){var i,o,e=n.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new kp([[n]],wSe,r,+o);return null}function Ene(n){return function(){return n}}function TSe(n){return n[0]}function MSe(n){return n[1]}function rG(){this._=null}function VN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function $x(n,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function eD(n,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function xne(n){for(;n.L;)n=n.L;return n}rG.prototype={constructor:rG,insert:function(r,e){var i,o,a;if(r){if(e.P=r,e.N=r.N,r.N&&(r.N.P=e),r.N=e,r.R){for(r=r.R;r.L;)r=r.L;r.L=e}else r.R=e;i=r}else this._?(r=xne(this._),e.P=null,e.N=r,r.P=r.L=e,i=r):(e.P=e.N=null,this._=e,i=null);for(e.L=e.R=null,e.U=i,e.C=!0,r=e;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&($x(this,i),i=(r=i).U),i.C=!1,o.C=!0,eD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(eD(this,i),i=(r=i).U),i.C=!1,o.C=!0,$x(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,l,e=r.U,o=r.L,a=r.R;if(s=o?a?xne(a):o:a,e?e.L===r?e.L=s:e.R=s:this._=s,o&&a?(l=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(e=s.U,s.U=r.U,r=s.R,e.L=r,s.R=a,a.U=s):(s.U=e,e=s,r=s.R)):(l=r.C,r=s),r&&(r.U=e),!l){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===e.L){if((i=e.R).C&&(i.C=!1,e.C=!0,$x(this,e),i=e.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,eD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,$x(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,eD(this,e),i=e.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,$x(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,eD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Dne=rG;function tD(n,r,e,i){var o=[null,null],a=Sl.push(o)-1;return o.left=n,o.right=r,e&&YN(o,n,r,e),i&&YN(o,r,n,i),Cc[n.index].halfedges.push(a),Cc[r.index].halfedges.push(a),o}function nD(n,r,e){var i=[r,e];return i.left=n,i}function YN(n,r,e,i){n[0]||n[1]?n.left===e?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=e)}function SSe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,y=1,L=s[0]-l,z=s[1]-u;if(q=r-l,L||!(q>0)){if(q/=L,L<0){if(q<g)return;q<y&&(y=q)}else if(L>0){if(q>y)return;q>g&&(g=q)}if(q=i-l,L||!(q<0)){if(q/=L,L<0){if(q>y)return;q>g&&(g=q)}else if(L>0){if(q<g)return;q<y&&(y=q)}if(q=e-u,z||!(q>0)){if(q/=z,z<0){if(q<g)return;q<y&&(y=q)}else if(z>0){if(q>y)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>y)return;q>g&&(g=q)}else if(z>0){if(q<g)return;q<y&&(y=q)}return!(g>0)&&!(y<1)||(g>0&&(n[0]=[l+g*L,u+g*z]),y<1&&(n[1]=[l+y*L,u+y*z])),!0}}}}}function ESe(n,r,e,i,o){var a=n[1];if(a)return!0;var q,re,s=n[0],l=n.left,u=n.right,d=l[0],h=l[1],g=u[0],y=u[1],L=(d+g)/2,z=(h+y)/2;if(y===h){if(L<r||L>=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[L,e];a=[L,o]}else{if(s){if(s[1]<e)return}else s=[L,o];a=[L,e]}}else if(re=z-(q=(d-g)/(y-h))*L,q<-1||q>1)if(d>g){if(s){if(s[1]>=o)return}else s=[(e-re)/q,e];a=[(o-re)/q,o]}else{if(s){if(s[1]<e)return}else s=[(o-re)/q,o];a=[(e-re)/q,e]}else if(h<y){if(s){if(s[0]>=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]<r)return}else s=[i,q*i+re];a=[r,q*r+re]}return n[0]=s,n[1]=a,!0}function ASe(n,r){var e=n.site,i=r.left,o=r.right;return e===o&&(o=i,i=e),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(e===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function Ane(n,r){return r[+(r.left!==n.site)]}function OSe(n,r){return r[+(r.left===n.site)]}var iG,One=[];function RSe(){VN(this),this.x=this.y=this.arc=this.site=this.cy=null}function Uw(n){var r=n.P,e=n.N;if(r&&e){var i=r.site,o=n.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,d=i[1]-l,h=a[0]-s,g=a[1]-l,y=2*(u*g-d*h);if(!(y>=-FSe)){var L=u*u+d*d,z=h*h+g*g,q=(g*L-d*z)/y,re=(u*z-h*L)/y,ae=One.pop()||new RSe;ae.arc=n,ae.site=o,ae.x=q+s,ae.y=(ae.cy=re+l)+Math.sqrt(q*q+re*re),n.circle=ae;for(var Se=null,Ce=rD._;Ce;)if(ae.y<Ce.y||ae.y===Ce.y&&ae.x<=Ce.x){if(!Ce.L){Se=Ce.P;break}Ce=Ce.L}else{if(!Ce.R){Se=Ce;break}Ce=Ce.R}rD.insert(Se,ae),Se||(iG=ae)}}}}function Hw(n){var r=n.circle;r&&(r.P||(iG=r.N),rD.remove(r),One.push(r),VN(r),n.circle=null)}var Ine=[];function LSe(){VN(this),this.edge=this.site=this.circle=null}function Pne(n){var r=Ine.pop()||new LSe;return r.site=n,r}function oG(n){Hw(n),jw.remove(n),Ine.push(n),VN(n)}function ZSe(n){var r=n.circle,e=r.x,i=r.cy,o=[e,i],a=n.P,s=n.N,l=[n];oG(n);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<yo&&Math.abs(i-u.circle.cy)<yo;)a=u.P,l.unshift(u),oG(u),u=a;l.unshift(u),Hw(u);for(var d=s;d.circle&&Math.abs(e-d.circle.x)<yo&&Math.abs(i-d.circle.cy)<yo;)s=d.N,l.push(d),oG(d),d=s;l.push(d),Hw(d);var g,h=l.length;for(g=1;g<h;++g)d=l[g],u=l[g-1],YN(d.edge,u.site,d.site,o);u=l[0],(d=l[h-1]).edge=tD(u.site,d.site,null,o),Uw(u),Uw(d)}function NSe(n){for(var i,o,a,s,r=n[0],e=n[1],l=jw._;l;)if((a=Rne(l,e)-r)>yo)l=l.L;else{if(!((s=r-BSe(l,e))>yo)){a>-yo?(i=l.P,o=l):s>-yo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function DSe(n){return Cc[n.index]={site:n,halfedges:[]}}(n);var u=Pne(n);if(jw.insert(i,u),i||o){if(i===o)return Hw(i),o=Pne(i.site),jw.insert(u,o),u.edge=o.edge=tD(i.site,u.site),Uw(i),void Uw(o);if(!o)return void(u.edge=tD(i.site,u.site));Hw(i),Hw(o);var d=i.site,h=d[0],g=d[1],y=n[0]-h,L=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(y*re-L*q),Se=y*y+L*L,Ce=q*q+re*re,Ee=[(re*Se-L*Ce)/ae+h,(y*Ce-q*Se)/ae+g];YN(o.edge,d,z,Ee),u.edge=tD(d,n,null,Ee),o.edge=tD(n,z,null,Ee),Uw(i),Uw(o)}}function Rne(n,r){var e=n.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],d=u-r;if(!d)return l;var h=l-i,g=1/a-1/d,y=h/d;return g?(-y+Math.sqrt(y*y-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function BSe(n,r){var e=n.N;if(e)return Rne(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var jw,Cc,rD,Sl,yo=1e-6,FSe=1e-12;function USe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function HSe(n,r){return r[1]-n[1]||r[0]-n[0]}function aG(n,r){var i,o,a,e=n.sort(HSe).pop();for(Sl=[],Cc=new Array(n.length),jw=new Dne,rD=new Dne;;)if(a=iG,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(NSe(e),i=e[0],o=e[1]),e=n.pop();else{if(!a)break;ZSe(a.arc)}if(function ISe(){for(var e,i,o,a,n=0,r=Cc.length;n<r;++n)if((e=Cc[n])&&(a=(i=e.halfedges).length)){var s=new Array(a),l=new Array(a);for(o=0;o<a;++o)s[o]=o,l[o]=ASe(e,Sl[i[o]]);for(s.sort(function(u,d){return l[d]-l[u]}),o=0;o<a;++o)l[o]=i[s[o]];for(o=0;o<a;++o)i[o]=l[o]}}(),r){var s=+r[0][0],l=+r[0][1],u=+r[1][0],d=+r[1][1];(function xSe(n,r,e,i){for(var a,o=Sl.length;o--;)ESe(a=Sl[o],n,r,e,i)&&SSe(a,n,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>yo||Math.abs(a[0][1]-a[1][1])>yo)||delete Sl[o]})(s,l,u,d),function PSe(n,r,e,i){var a,s,l,u,d,h,g,y,L,z,q,re,o=Cc.length,ae=!0;for(a=0;a<o;++a)if(s=Cc[a]){for(l=s.site,u=(d=s.halfedges).length;u--;)Sl[d[u]]||d.splice(u,1);for(u=0,h=d.length;u<h;)q=(z=OSe(s,Sl[d[u]]))[0],re=z[1],y=(g=Ane(s,Sl[d[++u%h]]))[0],L=g[1],(Math.abs(q-y)>yo||Math.abs(re-L)>yo)&&(d.splice(u,0,Sl.push(nD(l,z,Math.abs(q-n)<yo&&i-re>yo?[n,Math.abs(y-n)<yo?L:i]:Math.abs(re-i)<yo&&e-q>yo?[Math.abs(L-i)<yo?y:e,i]:Math.abs(q-e)<yo&&re-r>yo?[e,Math.abs(y-e)<yo?L:r]:Math.abs(re-r)<yo&&q-n>yo?[Math.abs(L-r)<yo?y:n,r]:null))-1),++h);h&&(ae=!1)}if(ae){var Se,Ce,Ee,Ke=1/0;for(a=0,ae=null;a<o;++a)(s=Cc[a])&&(Ee=(Se=(l=s.site)[0]-n)*Se+(Ce=l[1]-r)*Ce)<Ke&&(Ke=Ee,ae=s);if(ae){var st=[n,r],De=[n,i],it=[e,i],ft=[e,r];ae.halfedges.push(Sl.push(nD(l=ae.site,st,De))-1,Sl.push(nD(l,De,it))-1,Sl.push(nD(l,it,ft))-1,Sl.push(nD(l,ft,st))-1)}}for(a=0;a<o;++a)(s=Cc[a])&&(s.halfedges.length||delete Cc[a])}(s,l,u,d)}this.edges=Sl,this.cells=Cc,jw=rD=Sl=Cc=null}function jSe(){var n=TSe,r=MSe,e=null;function i(o){return new aG(o.map(function(a,s){var l=[Math.round(n(a,s,o)/yo)*yo,Math.round(r(a,s,o)/yo)*yo];return l.index=s,l.data=a,l}),e)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:Ene(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:Ene(+o),i):r},i.extent=function(o){return arguments.length?(e=null==o?null:[[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]],i):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},i.size=function(o){return arguments.length?(e=null==o?null:[[0,0],[+o[0],+o[1]]],i):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},i}aG.prototype={constructor:aG,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return Ane(e,r[o])});return i.data=e.site.data,i})},triangles:function(){var r=[],e=this.edges;return this.cells.forEach(function(i,o){if(u=(s=i.halfedges).length)for(var s,u,d,a=i.site,l=-1,h=e[s[u-1]],g=h.left===a?h.right:h.left;++l<u;)d=g,g=(h=e[s[l]]).left===a?h.right:h.left,d&&g&&o<d.index&&o<g.index&&USe(a,d,g)<0&&r.push([a.data,d.data,g.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,e,i){for(var a,u,o=this,s=o._found||0,l=o.cells.length;!(u=o.cells[s]);)if(++s>=l)return null;var d=r-u.site[0],h=e-u.site[1],g=d*d+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(y){var L=o.edges[y],z=L.left;if(z!==u.site&&z||(z=L.right)){var q=r-z[0],re=e-z[1],ae=q*q+re*re;ae<g&&(g=ae,s=z.index)}})}while(null!==s);return o._found=a,null==i||g<=i*i?u.site:null}};var iD=Math.SQRT2;function Zne(n){return((n=Math.exp(n))+1/n)/2}function VSe(n,r){var g,y,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)y=Math.log(l/o)/iD,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(iD*Ce*y)]};else{var L=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*L),q=(l*l-o*o-4*h)/(2*l*2*L),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);y=(ae-re)/iD,g=function(Ce){var Ee=Ce*y,Ke=Zne(re),st=o/(2*L)*(Ke*function WSe(n){return((n=Math.exp(2*n))-1)/(n+1)}(iD*Ee+re)-function zSe(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/Zne(iD*Ee+re)]}}return g.duration=1e3*y,g}function KN(n){return function(){return n}}function YSe(n,r,e){this.target=n,this.type=r,this.transform=e}function um(n,r,e){this.k=n,this.x=r,this.y=e}um.prototype={constructor:um,scale:function(r){return 1===r?this:new um(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new um(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var qN=new um(1,0,0);function Nne(n){return n.__zoom||qN}function lG(){Ln.stopImmediatePropagation()}function oD(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function KSe(){return!Ln.ctrlKey&&!Ln.button}function qSe(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Bne(){return this.__zoom||qN}function JSe(){return-Ln.deltaY*(1===Ln.deltaMode?.05:Ln.deltaMode?1:.002)}function QSe(){return navigator.maxTouchPoints||"ontouchstart"in this}function XSe(n,r,e){var i=n.invertX(r[0][0])-e[0][0],o=n.invertX(r[1][0])-e[1][0],a=n.invertY(r[0][1])-e[0][1],s=n.invertY(r[1][1])-e[1][1];return n.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function Fne(){var h,g,n=KSe,r=qSe,e=XSe,i=JSe,o=QSe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=VSe,d=t0("start","zoom","end"),y=500,z=0;function q(Pe){Pe.property("__zoom",Bne).on("wheel.zoom",st).on("mousedown.zoom",De).on("dblclick.zoom",it).filter(o).on("touchstart.zoom",ft).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",$e).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Pe,ct){return(ct=Math.max(a[0],Math.min(a[1],ct)))===Pe.k?Pe:new um(ct,Pe.x,Pe.y)}function ae(Pe,ct,Bt){var Ht=ct[0]-Bt[0]*Pe.k,Pt=ct[1]-Bt[1]*Pe.k;return Ht===Pe.x&&Pt===Pe.y?Pe:new um(Pe.k,Ht,Pt)}function Se(Pe){return[(+Pe[0][0]+ +Pe[1][0])/2,(+Pe[0][1]+ +Pe[1][1])/2]}function Ce(Pe,ct,Bt){Pe.on("start.zoom",function(){Ee(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Ee(this,arguments).end()}).tween("zoom",function(){var Ht=this,Pt=arguments,Tn=Ee(Ht,Pt),jn=r.apply(Ht,Pt),zn=Bt||Se(jn),ar=Math.max(jn[1][0]-jn[0][0],jn[1][1]-jn[0][1]),kr=Ht.__zoom,_r="function"==typeof ct?ct.apply(Ht,Pt):ct,Wr=u(kr.invert(zn).concat(ar/kr.k),_r.invert(zn).concat(ar/_r.k));return function(Hr){if(1===Hr)Hr=_r;else{var Kr=Wr(Hr),Ho=ar/Kr[2];Hr=new um(Ho,zn[0]-Kr[0]*Ho,zn[1]-Kr[1]*Ho)}Tn.zoom(null,Hr)}})}function Ee(Pe,ct,Bt){return!Bt&&Pe.__zooming||new Ke(Pe,ct)}function Ke(Pe,ct){this.that=Pe,this.args=ct,this.active=0,this.extent=r.apply(Pe,ct),this.taps=0}function st(){if(n.apply(this,arguments)){var Pe=Ee(this,arguments),ct=this.__zoom,Bt=Math.max(a[0],Math.min(a[1],ct.k*Math.pow(2,i.apply(this,arguments)))),Ht=Fd(this);ct.k!==Bt&&(Pe.wheel?((Pe.mouse[0][0]!==Ht[0]||Pe.mouse[0][1]!==Ht[1])&&(Pe.mouse[1]=ct.invert(Pe.mouse[0]=Ht)),clearTimeout(Pe.wheel)):(Pe.mouse=[Ht,ct.invert(Ht)],aw(this),Pe.start()),oD(),Pe.wheel=setTimeout(Pt,150),Pe.zoom("mouse",e(ae(re(ct,Bt),Pe.mouse[0],Pe.mouse[1]),Pe.extent,s)))}function Pt(){Pe.wheel=null,Pe.end()}}function De(){if(!g&&n.apply(this,arguments)){var Pe=Ee(this,arguments,!0),ct=Ci(Ln.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",jn,!0),Bt=Fd(this),Ht=Ln.clientX,Pt=Ln.clientY;ZL(Ln.view),lG(),Pe.mouse=[Bt,this.__zoom.invert(Bt)],aw(this),Pe.start()}function Tn(){if(oD(),!Pe.moved){var zn=Ln.clientX-Ht,ar=Ln.clientY-Pt;Pe.moved=zn*zn+ar*ar>z}Pe.zoom("mouse",e(ae(Pe.that.__zoom,Pe.mouse[0]=Fd(Pe.that),Pe.mouse[1]),Pe.extent,s))}function jn(){ct.on("mousemove.zoom mouseup.zoom",null),NL(Ln.view,Pe.moved),oD(),Pe.end()}}function it(){if(n.apply(this,arguments)){var Pe=this.__zoom,ct=Fd(this),Bt=Pe.invert(ct),Ht=Pe.k*(Ln.shiftKey?.5:2),Pt=e(ae(re(Pe,Ht),ct,Bt),r.apply(this,arguments),s);oD(),l>0?Ci(this).transition().duration(l).call(Ce,Pt,ct):Ci(this).call(q.transform,Pt)}}function ft(){if(n.apply(this,arguments)){var Ht,Pt,Tn,jn,Pe=Ln.touches,ct=Pe.length,Bt=Ee(this,arguments,Ln.changedTouches.length===ct);for(lG(),Pt=0;Pt<ct;++Pt)jn=[jn=m9(this,Pe,(Tn=Pe[Pt]).identifier),this.__zoom.invert(jn),Tn.identifier],Bt.touch0?Bt.touch1||(Bt.touch1=jn,Bt.taps=0):(Bt.touch0=jn,Ht=!0,Bt.taps=1+!!h);h&&(h=clearTimeout(h)),Ht&&(Bt.taps<2&&(h=setTimeout(function(){h=null},y)),aw(this),Bt.start())}}function bt(){if(this.__zooming){var Ht,Pt,Tn,jn,Pe=Ee(this,arguments),ct=Ln.changedTouches,Bt=ct.length;for(oD(),h&&(h=clearTimeout(h)),Pe.taps=0,Ht=0;Ht<Bt;++Ht)Tn=m9(this,ct,(Pt=ct[Ht]).identifier),Pe.touch0&&Pe.touch0[2]===Pt.identifier?Pe.touch0[0]=Tn:Pe.touch1&&Pe.touch1[2]===Pt.identifier&&(Pe.touch1[0]=Tn);if(Pt=Pe.that.__zoom,Pe.touch1){var zn=Pe.touch0[0],ar=Pe.touch0[1],kr=Pe.touch1[0],_r=Pe.touch1[1],Wr=(Wr=kr[0]-zn[0])*Wr+(Wr=kr[1]-zn[1])*Wr,Hr=(Hr=_r[0]-ar[0])*Hr+(Hr=_r[1]-ar[1])*Hr;Pt=re(Pt,Math.sqrt(Wr/Hr)),Tn=[(zn[0]+kr[0])/2,(zn[1]+kr[1])/2],jn=[(ar[0]+_r[0])/2,(ar[1]+_r[1])/2]}else{if(!Pe.touch0)return;Tn=Pe.touch0[0],jn=Pe.touch0[1]}Pe.zoom("touch",e(ae(Pt,Tn,jn),Pe.extent,s))}}function $e(){if(this.__zooming){var Ht,Pt,Pe=Ee(this,arguments),ct=Ln.changedTouches,Bt=ct.length;for(lG(),g&&clearTimeout(g),g=setTimeout(function(){g=null},y),Ht=0;Ht<Bt;++Ht)Pt=ct[Ht],Pe.touch0&&Pe.touch0[2]===Pt.identifier?delete Pe.touch0:Pe.touch1&&Pe.touch1[2]===Pt.identifier&&delete Pe.touch1;if(Pe.touch1&&!Pe.touch0&&(Pe.touch0=Pe.touch1,delete Pe.touch1),Pe.touch0)Pe.touch0[1]=this.__zoom.invert(Pe.touch0[0]);else if(Pe.end(),2===Pe.taps){var Tn=Ci(this).on("dblclick.zoom");Tn&&Tn.apply(this,arguments)}}}return q.transform=function(Pe,ct){var Bt=Pe.selection?Pe.selection():Pe;Bt.property("__zoom",Bne),Pe!==Bt?Ce(Pe,ct):Bt.interrupt().each(function(){Ee(this,arguments).start().zoom(null,"function"==typeof ct?ct.apply(this,arguments):ct).end()})},q.scaleBy=function(Pe,ct){q.scaleTo(Pe,function(){var Bt=this.__zoom.k,Ht="function"==typeof ct?ct.apply(this,arguments):ct;return Bt*Ht})},q.scaleTo=function(Pe,ct){q.transform(Pe,function(){var Bt=r.apply(this,arguments),Ht=this.__zoom,Pt=Se(Bt),Tn=Ht.invert(Pt),jn="function"==typeof ct?ct.apply(this,arguments):ct;return e(ae(re(Ht,jn),Pt,Tn),Bt,s)})},q.translateBy=function(Pe,ct,Bt){q.transform(Pe,function(){return e(this.__zoom.translate("function"==typeof ct?ct.apply(this,arguments):ct,"function"==typeof Bt?Bt.apply(this,arguments):Bt),r.apply(this,arguments),s)})},q.translateTo=function(Pe,ct,Bt){q.transform(Pe,function(){var Ht=r.apply(this,arguments),Pt=this.__zoom,Tn=Se(Ht);return e(qN.translate(Tn[0],Tn[1]).scale(Pt.k).translate("function"==typeof ct?-ct.apply(this,arguments):-ct,"function"==typeof Bt?-Bt.apply(this,arguments):-Bt),Ht,s)})},Ke.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ct,Bt){return this.mouse&&"mouse"!==ct&&(this.mouse[1]=Bt.invert(this.mouse[0])),this.touch0&&"touch"!==ct&&(this.touch0[1]=Bt.invert(this.touch0[0])),this.touch1&&"touch"!==ct&&(this.touch1[1]=Bt.invert(this.touch1[0])),this.that.__zoom=Bt,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ct){LL(new YSe(q,ct,this.that.__zoom),d.apply,d,[ct,this.that,this.args])}},q.wheelDelta=function(Pe){return arguments.length?(i="function"==typeof Pe?Pe:KN(+Pe),q):i},q.filter=function(Pe){return arguments.length?(n="function"==typeof Pe?Pe:KN(!!Pe),q):n},q.touchable=function(Pe){return arguments.length?(o="function"==typeof Pe?Pe:KN(!!Pe),q):o},q.extent=function(Pe){return arguments.length?(r="function"==typeof Pe?Pe:KN([[+Pe[0][0],+Pe[0][1]],[+Pe[1][0],+Pe[1][1]]]),q):r},q.scaleExtent=function(Pe){return arguments.length?(a[0]=+Pe[0],a[1]=+Pe[1],q):[a[0],a[1]]},q.translateExtent=function(Pe){return arguments.length?(s[0][0]=+Pe[0][0],s[1][0]=+Pe[1][0],s[0][1]=+Pe[0][1],s[1][1]=+Pe[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(Pe){return arguments.length?(e=Pe,q):e},q.duration=function(Pe){return arguments.length?(l=+Pe,q):l},q.interpolate=function(Pe){return arguments.length?(u=Pe,q):u},q.on=function(){var Pe=d.on.apply(d,arguments);return Pe===d?q:Pe},q.clickDistance=function(Pe){return arguments.length?(z=(Pe=+Pe)*Pe,q):Math.sqrt(z)},q}Nne.prototype=um.prototype;var uG=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getD3",value:function(){return G}}]),n}();uG=function(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}([(0,t.GSi)(),function(n,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,r)}("design:paramtypes",[])],uG);var Tp=m(8723);function tEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"linearGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.outerLinearGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function nEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"radialGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.radialGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function rEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill",e.svg.backgroundCircle.fill)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function iEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.zWS("fill","url(",e.window.location.href,"#",e.svg.radialGradient.id,")"),t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function oEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,rEe,1,7,"circle",2),t.YNc(2,iEe,1,8,"circle",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",e.options.backgroundGradient)}}function aEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(2);t.uIk("cx",e.svg.circle.cx)("cy",e.svg.circle.cy)("r",e.svg.circle.r)("fill",e.svg.circle.fill)("stroke",e.svg.circle.stroke)("stroke-width",e.svg.circle.strokeWidth)}}function sEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.uIk("d",e.svg.path.d)("stroke",e.svg.path.stroke)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function lEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.zWS("stroke","url(",e.window.location.href,"#",e.svg.outerLinearGradient.id,")"),t.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function uEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,sEe,1,5,"path",2),t.YNc(2,lEe,1,6,"path",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",e.options.outerStrokeGradient)}}function cEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",e.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),t.xp6(1),t.Oqu(e.span)}}function dEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,cEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function fEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=t.oxw(3);t.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),t.xp6(1),t.Oqu(e.svg.units.text)}}function pEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",e.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),t.xp6(1),t.Oqu(e.span)}}function hEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,pEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function mEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,dEe,2,1,"ng-container",2),t.YNc(2,fEe,2,4,"tspan",2),t.YNc(3,hEe,2,1,"ng-container",2),t.qZA()),2&n){var e=t.oxw(2);t.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),t.xp6(1),t.Q6J("ngIf",e.options.showTitle),t.xp6(1),t.Q6J("ngIf",e.options.showUnits),t.xp6(1),t.Q6J("ngIf",e.options.showSubtitle)}}function _Ee(n,r){if(1&n&&(t.O4$(),t._UZ(0,"image",9)),2&n){var e=t.oxw(2);t.uIk("height",e.svg.image.height)("width",e.svg.image.width)("href",e.svg.image.src,null,"xlink")("x",e.svg.image.x)("y",e.svg.image.y)}}function gEe(n,r){if(1&n){var e=t.EpF();t.O4$(),t.TgZ(0,"svg",1),t.NdJ("click",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.emitClickEvent(a))}),t.TgZ(1,"defs"),t.YNc(2,tEe,3,5,"linearGradient",2),t.YNc(3,nEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,oEe,3,2,"ng-container",2),t.YNc(5,aEe,1,6,"circle",2),t.YNc(6,uEe,3,2,"ng-container",2),t.YNc(7,mEe,4,6,"text",3),t.YNc(8,_Ee,1,5,"image",4),t.qZA()}if(2&n){var i=t.oxw();t.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),t.xp6(2),t.Q6J("ngIf",i.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",i.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",i.options.showBackground),t.xp6(1),t.Q6J("ngIf",i.options.showInnerStroke),t.xp6(1),t.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),t.xp6(1),t.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),t.xp6(1),t.Q6J("ngIf",i.options.showImage)}}var JN=(0,U.Z)(function n(){(0,B.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=0,this.imageWidth=0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1}),aD=function(){function n(r,e,i,o){var a=this;(0,B.Z)(this,n),this.ngZone=e,this.elRef=i,this.onClick=new t.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new t.vpe,this._viewportChangedSubscriber=null,this.options=new JN,this.defaultOptions=new JN,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,l,u,d){var h=d*Math.PI/180;return{x:s+Math.sin(h)*u,y:l-Math.cos(h)*u}},this.draw=function(s){var l=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,u=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(u+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var y,L,d={x:u/2,y:u/2},h={x:d.x,y:d.y-a.options.radius},g=a.polarToCartesian(d.x,d.y,a.options.radius,360*(a.options.clockwise?l:100-l)/100);if(100===l&&(g.x=g.x+(a.options.clockwise?-.01:.01)),l>50){var z=a.options.clockwise?[1,1]:[1,0],q=(0,Yn.Z)(z,2);y=q[0],L=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Yn.Z)(re,2);y=ae[0],L=ae[1]}var Se=a.options.animateTitle?s:a.options.percent,Ce=Se>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):Se.toFixed(a.options.toFixed),Ee=a.options.animateSubtitle?s:a.options.percent,Ke={x:d.x,y:d.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var st=a.options.titleFormat(Se);st instanceof Array?Ke.texts=(0,cn.Z)(st):Ke.texts.push(st.toString())}else"auto"===a.options.title?Ke.texts.push(Ce):a.options.title instanceof Array?Ke.texts=(0,cn.Z)(a.options.title):Ke.texts.push(a.options.title.toString());var De={x:d.x,y:d.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var it=a.options.subtitleFormat(Ee);it instanceof Array?De.texts=(0,cn.Z)(it):De.texts.push(it.toString())}else a.options.subtitle instanceof Array?De.texts=(0,cn.Z)(a.options.subtitle):De.texts.push(a.options.subtitle.toString());var ft={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,$e=1;if(a.options.showTitle&&(bt+=Ke.texts.length),a.options.showSubtitle&&(bt+=De.texts.length),a.options.showTitle){var ct,Pe=(0,An.Z)(Ke.texts);try{for(Pe.s();!(ct=Pe.n()).done;){var Bt=ct.value;Ke.tspans.push({span:Bt,dy:a.getRelativeY($e,bt)}),$e++}}catch(jn){Pe.e(jn)}finally{Pe.f()}}if(a.options.showSubtitle){var Pt,Ht=(0,An.Z)(De.texts);try{for(Ht.s();!(Pt=Ht.n()).done;){var Tn=Pt.value;De.tspans.push({span:Tn,dy:a.getRelativeY($e,bt)}),$e++}}catch(jn){Ht.e(jn)}finally{Ht.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(u," ").concat(u),width:a.options.responsive?"100%":u,height:a.options.responsive?"100%":u,backgroundCircle:{cx:d.x,cy:d.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(h.x," ").concat(h.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(y," ").concat(L," ").concat(g.x," ").concat(g.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:d.x,cy:d.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:Ke,units:ft,subtitle:De,image:{x:d.x-a.options.imageWidth/2,y:d.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,l){var d,h,g,y=a.options.startFromZero||s<0?0:s,L=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(L-y));return z>=100?(d=100,h=a.options.animateTitle||a.options.animateSubtitle?Math.round(z/d):1):(d=z,h=1),(g=Math.round(a.options.animationDuration/d))<10&&(g=10,d=a.options.animationDuration/g,h=!a.options.animateTitle&&!a.options.animateSubtitle&&z>100?Math.round(100/d):Math.round(z/d)),h<1&&(h=1),{times:d,step:h,interval:g}},this.animate=function(s,l){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var u=a.options.startFromZero?0:s,d=l,h=a.getAnimationParameters(u,d),g=h.step,y=h.interval,L=u;a._timerSubscription=u<d?(0,Tp.H)(0,y).subscribe(function(){(L+=g)<=d?!a.options.animateTitle&&!a.options.animateSubtitle&&L>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(L):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,y).subscribe(function(){(L-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(L):(a.draw(d),a._timerSubscription.unsubscribe())})},this.applyOptions=function(){for(var s=0,l=Object.keys(a.options);s<l.length;s++){var u=l[s];a.hasOwnProperty(u)&&void 0!==a[u]?a.options[u]=a[u]:a.templateOptions&&void 0!==a.templateOptions[u]&&(a.options[u]=a.templateOptions[u])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,l){return(1*(s-l/2)-.18).toFixed(2)+"em"},this.min=function(s,l){return s<l?s:l},this.max=function(s,l){return s>l?s:l},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var d=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==u?d:3&d|8).toString(16)})},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.observers.length>0&&a.ngZone.run(function(){a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.ngZone.runOutsideAngular(function(){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0)}),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(l){l.oldValue;l.newValue&&a.render()}));var s=(0,Tp.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o.get(le.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,U.Z)(n,[{key:"emitClickEvent",value:function(e){this.options.renderOnClick&&this.animate(0,this.options.percent),this.onClick.observers.length>0&&this.onClick.emit(e)}},{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"findSvgElement",value:function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var a,i=e.getBoundingClientRect(),o=e.parentNode;do{if(a=o.getBoundingClientRect(),i.top>=a.bottom||i.bottom<=a.top||i.left>=a.right||i.right<=a.left)return!1;o=o.parentNode}while(o!=this.document.body);return!(i.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||i.bottom<=0||i.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||i.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),n}();aD.\u0275fac=function(r){return new(r||aD)(t.Y36(JN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},aD.\u0275cmp=t.Xpm({type:aD,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[t.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(r,e){1&r&&t.YNc(0,gEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[le.sg,le.O5],encapsulation:2});var Gw=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:JN,useValue:e}]}}}]),n}();Gw.\u0275fac=function(r){return new(r||Gw)},Gw.\u0275mod=t.oAB({type:Gw}),Gw.\u0275inj=t.cJS({imports:[le.ez]});var QN=function(){function n(r){(0,B.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,U.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"onDrop",value:function(e){var i,o=this._getTransfer(e);if(o){var a=this.getOptions(),s=this.getFilters();this._preventAndStop(e),a&&(null===(i=this.uploader)||void 0===i||i.addToQueue(o.files,a,s)),this.fileOver.emit(!1),this.onFileDrop.emit(o.files)}}},{key:"onDragOver",value:function(e){var i=this._getTransfer(e);!this._haveFiles(i.types)||(i.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}},{key:"onDragLeave",value:function(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}},{key:"_getTransfer",value:function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}},{key:"_preventAndStop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_haveFiles",value:function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}]),n}();QN.\u0275fac=function(r){return new(r||QN)(t.Y36(t.SBq))},QN.\u0275dir=t.lG2({type:QN,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&t.NdJ("drop",function(o){return e.onDrop(o)})("dragover",function(o){return e.onDragOver(o)})("dragleave",function(o){return e.onDragLeave(o)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}});var cG=function(){function n(r){(0,B.Z)(this,n),this.rawFile=r;var e=r instanceof HTMLInputElement?r.value:r,i="string"==typeof e?"FakePath":"Object";this["_createFrom".concat(i)](e)}return(0,U.Z)(n,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/".concat(e.slice(e.lastIndexOf(".")+1).toLowerCase()),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(e){this.size=e.size,this.type=e.type,this.name=e.name}}]),n}(),vEe=function(){function n(r,e,i){(0,B.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=r,this.some=e,this.options=i,this.file=new cG(e),this._file=e,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,U.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(e){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(e){return{form:e}}},{key:"onProgress",value:function(e){return{progress:e}}},{key:"onSuccess",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onError",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onCancel",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onComplete",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(e){this.onBuildForm(e)}},{key:"_onProgress",value:function(e){this.progress=e,this.onProgress(e)}},{key:"_onSuccess",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(e,i,o)}},{key:"_onError",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(e,i,o)}},{key:"_onCancel",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(e,i,o)}},{key:"_onComplete",value:function(e,i,o){this.onComplete(e,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),zw=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"getMimeClass",value:function(e){var i,o,a,s="application";return(null==e?void 0:e.type)&&-1!==this.mime_psd.indexOf(e.type)||null!==(i=null==e?void 0:e.type)&&void 0!==i&&i.match("image.*")?s="image":null!==(o=null==e?void 0:e.type)&&void 0!==o&&o.match("video.*")?s="video":null!==(a=null==e?void 0:e.type)&&void 0!==a&&a.match("audio.*")?s="audio":"application/pdf"===(null==e?void 0:e.type)?s="pdf":(null==e?void 0:e.type)&&-1!==this.mime_compress.indexOf(e.type)?s="compress":(null==e?void 0:e.type)&&-1!==this.mime_doc.indexOf(e.type)?s="doc":(null==e?void 0:e.type)&&-1!==this.mime_xsl.indexOf(e.type)?s="xls":(null==e?void 0:e.type)&&-1!==this.mime_ppt.indexOf(e.type)&&(s="ppt"),"application"===s&&(null==e?void 0:e.name)&&(s=this.fileTypeDetection(e.name)),s}},{key:"fileTypeDetection",value:function(e){var i={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=e.split(".");if(o.length<2)return"application";var a=o[o.length-1].toLowerCase();return void 0===i[a]?"application":i[a]}}]),n}();zw.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],zw.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],zw.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],zw.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],zw.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"];var Eg=function(){function n(r){(0,B.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1,url:""},this.setOptions(r),this.response=new t.vpe}return(0,U.Z)(n,[{key:"setOptions",value:function(e){var i,o,a,s;this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,null===(i=this.options.filters)||void 0===i||i.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&(null===(o=this.options.filters)||void 0===o||o.unshift({name:"fileSize",fn:this._fileSizeFilter})),this.options.allowedFileType&&(null===(a=this.options.filters)||void 0===a||a.unshift({name:"fileType",fn:this._fileTypeFilter})),this.options.allowedMimeType&&(null===(s=this.options.filters)||void 0===s||s.unshift({name:"mimeType",fn:this._mimeTypeFilter}));for(var l=0;l<this.queue.length;l++)this.queue[l].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var d,a=this,s=i,l=[],u=(0,An.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.push(h)}}catch(z){u.e(z)}finally{u.f()}var g=this._getFilters(o),y=this.queue.length,L=[];l.map(function(z){s||(s=a.options);var q=new cG(z);if(a._isValidFile(q,g,s)){var re=new vEe(a,z,s);L.push(re),a.queue.push(re),a._onAfterAddingFile(re)}else if(a._failFilterIndex){var ae=g[a._failFilterIndex];a._onWhenAddingFileFailed(q,ae,s)}}),this.queue.length!==y&&(this._onAfterAddingAll(L),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i];o.isUploading&&o.cancel(),this.queue.splice(i,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[a](o))}},{key:"cancelItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?o._xhr:o._form;o&&o.isUploading&&a.abort()}},{key:"uploadAll",value:function(){var e=this.getNotUploadedItems().filter(function(i){return!i.isUploading});!e.length||(e.map(function(i){return i._prepareToUploading()}),e[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(i){return i.cancel()})}},{key:"isFile",value:function(e){return function yEe(n){return File&&n instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof cG}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(e){return!e.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,i){return e.index-i.index})}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,i){return{fileItem:e,form:i}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,i,o){return{item:e,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,i){return{fileItem:e,progress:i}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){var i;return!((null==e?void 0:e.type)&&this.options.allowedMimeType&&-1===(null===(i=this.options.allowedMimeType)||void 0===i?void 0:i.indexOf(e.type)))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(zw.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,i,o,a){e._onError(i,o,a),this.onErrorItem(e,i,o,a)}},{key:"_onCompleteItem",value:function(e,i,o,a){e._onComplete(i,o,a),this.onCompleteItem(e,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(i){return i?e[i.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var s,i=this,o=this,a=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(s=this.options.formatDataFunction(e));else{s=new FormData,this._onBuildItemForm(e,s);var l=function(){return s.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||l(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(z){var q,re,ae=null===(q=i.options.additionalParameter)||void 0===q?void 0:q[z];"string"==typeof ae&&ae.indexOf("{{file_name}}")>=0&&(null===(re=e.file)||void 0===re?void 0:re.name)&&(ae=ae.replace("{{file_name}}",e.file.name)),s.append(z,ae)}),l&&this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(z){var q=Math.round(z.lengthComputable?100*z.loaded/z.total:0);i._onProgressItem(e,q)},a.onload=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z),re=i._isSuccessCode(a.status)?"Success":"Error",ae="_on".concat(re,"Item");i[ae](e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onerror=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onErrorItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onabort=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onCancelItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},e.method&&e.url&&a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var d,u=(0,An.Z)(this.options.headers);try{for(u.s();!(d=u.n()).done;){var h=d.value;a.setRequestHeader(h.name,h.value)}}catch(z){u.e(z)}finally{u.f()}}if(e.headers.length){var y,g=(0,An.Z)(e.headers);try{for(g.s();!(y=g.n()).done;){var L=y.value;a.setRequestHeader(L.name,L.value)}}catch(z){g.e(z)}finally{g.f()}}this.authToken&&this.authTokenHeader&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(z){return a.send(JSON.stringify(z))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=e*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(e){var i,o,a;if(!e)return(null===(i=this.options)||void 0===i?void 0:i.filters)||[];if(Array.isArray(e))return e;if("string"==typeof e){var s=e.match(/[^\s,]+/g);return(null===(o=this.options)||void 0===o?void 0:o.filters)||[].filter(function(l){return-1!==(null==s?void 0:s.indexOf(l.name))})}return(null===(a=this.options)||void 0===a?void 0:a.filters)||[]}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(e,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex&&a._failFilterIndex++,s.fn.call(a,e,o)})}},{key:"_isSuccessCode",value:function(e){return e>=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,i){return e}},{key:"_parseHeaders",value:function(e){var o,a,s,i={};return e&&e.split("\n").map(function(l){s=l.indexOf(":"),o=l.slice(0,s).trim().toLowerCase(),a=l.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(e,i,o){this.onWhenAddingFileFailed(e,i,o)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,i){e._onBuildForm(i),this.onBuildItemForm(e,i)}},{key:"_onProgressItem",value:function(e,i){var o=this._getTotalProgress(i);this.progress=o,e._onProgress(i),this.onProgressItem(e,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(e,i,o,a){e._onSuccess(i,o,a),this.onSuccessItem(e,i,o,a)}},{key:"_onCancelItem",value:function(e,i,o,a){e._onCancel(i,o,a),this.onCancelItem(e,i,o,a)}}]),n}(),Mp=function(){function n(r){(0,B.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,U.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e,i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();null===(e=this.uploader)||void 0===e||e.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),n}();Mp.\u0275fac=function(r){return new(r||Mp)(t.Y36(t.SBq))},Mp.\u0275dir=t.lG2({type:Mp,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&t.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}});var Ww=(0,U.Z)(function n(){(0,B.Z)(this,n)});Ww.\u0275fac=function(r){return new(r||Ww)},Ww.\u0275mod=t.oAB({type:Ww}),Ww.\u0275inj=t.cJS({imports:[le.ez]});var dG=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),bEe=function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i])};return function(r,e){function i(){this.constructor=r}n(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Une=function(n){function r(){return n.call(this)||this}return bEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(dG);Une.ctorParameters=function(){return[]};var Hne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:dG,useClass:Une}]}),n}();Hne.ctorParameters=function(){return[]};var ul=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),A0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.call(this)}return(0,U.Z)(e)}(ul);A0.\u0275fac=function(r){return new(r||A0)},A0.\u0275prov=t.Yz7({token:A0,factory:A0.\u0275fac}),A0.ctorParameters=function(){return[]};var Vw=(0,U.Z)(function n(){(0,B.Z)(this,n)});Vw.\u0275fac=function(r){return new(r||Vw)},Vw.\u0275mod=t.oAB({type:Vw}),Vw.\u0275inj=t.cJS({providers:[{provide:ul,useClass:A0}]});var sD=m(7326),Yw=m(4942),CEe=m(4450),wEe=m(1961),lD=m(8514),kEe=m(4843),O0=m(1737),I0=m(8896),jne=m(1762),xg=m(7224),P0=m(1406),ed=m(7221),Gne=m(2014),zne=m(8127),TEe=m(4290),Wne=m(7314),XN=m(537),Vne=m(4327),$N=m(9146),hi="primary",uD=Symbol("RouteTitle"),MEe=function(){function n(r){(0,B.Z)(this,n),this.params=r||{}}return(0,U.Z)(n,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function Kw(n){return new MEe(n)}function SEe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=n[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function Sp(n,r){var e=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!e||!i||e.length!=i.length)return!1;for(var o,a=0;a<e.length;a++)if(!Yne(n[o=e[a]],r[o]))return!1;return!0}function Yne(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var e=(0,cn.Z)(n).sort(),i=(0,cn.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return n===r}function Kne(n){return Array.prototype.concat.apply([],n)}function qne(n){return n.length>0?n[n.length-1]:null}function cl(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Dg(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,hs.D)(Promise.resolve(n)):(0,Kn.of)(n)}var DEe={exact:function Xne(n,r,e){if(!L0(n.segments,r.segments)||!eB(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!Xne(n.children[i],r.children[i],e))return!1;return!0},subset:$ne},Jne={exact:function AEe(n,r){return Sp(n,r)},subset:function OEe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Yne(n[e],r[e])})},ignored:function(){return!0}};function Qne(n,r,e){return DEe[e.paths](n.root,r.root,e.matrixParams)&&Jne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function $ne(n,r,e){return ere(n,r,r.segments,e)}function ere(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!L0(o,e)||r.hasChildren()||!eB(o,e,i))}if(n.segments.length===e.length){if(!L0(n.segments,e)||!eB(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!$ne(n.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(L0(n.segments,s)&&eB(n.segments,s,i)&&n.children[hi])&&ere(n.children[hi],r,l,i)}function eB(n,r,e){return r.every(function(i,o){return Jne[e](n[o].parameters,i.parameters)})}var R0=function(){function n(r,e,i){(0,B.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,U.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Kw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return REe.serialize(this)}}]),n}(),vi=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this.segments=r,this.children=e,this.parent=null,cl(e,function(o,a){return o.parent=i})}return(0,U.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return tB(this)}}]),n}(),cD=function(){function n(r,e){(0,B.Z)(this,n),this.path=r,this.parameters=e}return(0,U.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Kw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return rre(this)}}]),n}();function L0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var qw=(0,U.Z)(function n(){(0,B.Z)(this,n)});qw.\u0275fac=function(r){return new(r||qw)},qw.\u0275prov=t.Yz7({token:qw,factory:function(){return new pG},providedIn:"root"});var pG=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"parse",value:function(e){var i=new GEe(e);return new R0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(dD(e.root,!0)),o=function NEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(nB(e),"=").concat(nB(o))}).join("&"):"".concat(nB(e),"=").concat(nB(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function LEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),REe=new pG;function tB(n){return n.segments.map(function(r){return rre(r)}).join("/")}function dD(n,r){if(!n.hasChildren())return tB(n);if(r){var e=n.children[hi]?dD(n.children[hi],!1):"",i=[];return cl(n.children,function(a,s){s!==hi&&i.push("".concat(s,":").concat(dD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function PEe(n,r){var e=[];return cl(n.children,function(i,o){o===hi&&(e=e.concat(r(i,o)))}),cl(n.children,function(i,o){o!==hi&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===hi?[dD(n.children[hi],!1)]:["".concat(s,":").concat(dD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[hi]?"".concat(tB(n),"/").concat(o[0]):"".concat(tB(n),"/(").concat(o.join("//"),")")}function tre(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nB(n){return tre(n).replace(/%3B/gi,";")}function hG(n){return tre(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rB(n){return decodeURIComponent(n)}function nre(n){return rB(n.replace(/\+/g,"%20"))}function rre(n){return"".concat(hG(n.path)).concat(function ZEe(n){return Object.keys(n).map(function(r){return";".concat(hG(r),"=").concat(hG(n[r]))}).join("")}(n.parameters))}var BEe=/^[^\/()?;=#]+/;function iB(n){var r=n.match(BEe);return r?r[0]:""}var FEe=/^[^=?&#]+/;var HEe=/^[^&#]+/;var GEe=function(){function n(r){(0,B.Z)(this,n),this.url=r,this.remaining=r}return(0,U.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vi([],{}):new vi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(o[hi]=new vi(e,i)),o}},{key:"parseSegment",value:function(){var e=iB(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new cD(rB(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=iB(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=iB(this.remaining);a&&(o=a,this.capture(o))}e[rB(i)]=rB(o)}}},{key:"parseQueryParam",value:function(e){var i=function UEe(n){var r=n.match(FEe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function jEe(n){var r=n.match(HEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=nre(i),l=nre(o);if(e.hasOwnProperty(s)){var u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}}},{key:"parseParens",value:function(e){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=iB(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new t.vHH(4010,false);var s=void 0;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=hi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[hi]:new vi([],l),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new t.vHH(4011,false)}}]),n}();function mG(n){return n.segments.length>0?new vi([],(0,Yw.Z)({},hi,n)):n}function oB(n){for(var r={},e=0,i=Object.keys(n.children);e<i.length;e++){var o=i[e],s=oB(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function zEe(n){if(1===n.numberOfChildren&&n.children[hi]){var r=n.children[hi];return new vi(n.segments.concat(r.segments),r.children)}return n}(new vi(n.segments,r))}function Z0(n){return n instanceof R0}function YEe(n,r,e,i,o){var a;if(0===e.length)return Jw(r.root,r.root,r.root,i,o);var l=are(e);if(l.toRoot())return Jw(r.root,r.root,new vi([],{}),i,o);var d=function u(g){var y,L=function qEe(n,r,e,i){if(n.isAbsolute)return new Qw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Qw(e,o,0)}var a=fD(n.commands[0])?0:1;return sre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(y=n.snapshot)||void 0===y?void 0:y._urlSegment,g),z=L.processChildren?hD(L.segmentGroup,L.index,l.commands):gG(L.segmentGroup,L.index,l.commands);return Jw(r.root,L.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function fD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function pD(n){return"object"==typeof n&&null!=n&&n.outlets}function Jw(n,r,e,i,o){var a={};i&&cl(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=mG(oB(n===r?e:ire(n,r,e)));return new R0(l,a,o)}function ire(n,r,e){var i={};return cl(n.children,function(o,a){i[a]=o===r?e:ire(o,r,e)}),new vi(n.segments,i)}var ore=function(){function n(r,e,i){if((0,B.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&fD(i[0]))throw new t.vHH(4003,false);var o=i.find(pD);if(o&&o!==qne(i))throw new t.vHH(4004,false)}return(0,U.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function are(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ore(!0,0,n);var r=0,e=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return cl(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,cn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,cn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,cn.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,d){0==d&&"."===u||(0==d&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,cn.Z)(o),[a])},[]);return new ore(e,r,i)}var Qw=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function sre(n,r,e){for(var i=n,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new t.vHH(4005,false);o=i.segments.length}return new Qw(i,!1,o-a)}function gG(n,r,e){if(n||(n=new vi([],{})),0===n.segments.length&&n.hasChildren())return hD(n,r,e);var i=function QEe(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=e.length)return a;var s=n.segments[o],l=e[i];if(pD(l))break;var u="".concat(l),d=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!ure(u,d,s))return a;i+=2}else{if(!ure(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){var a=new vi(n.segments.slice(0,i.pathIndex),{});return a.children[hi]=new vi(n.segments.slice(i.pathIndex),n.children),hD(a,0,o)}return i.match&&0===o.length?new vi(n.segments,{}):i.match&&!n.hasChildren()?vG(n,r,e):i.match?hD(n,0,o):vG(n,r,e)}function hD(n,r,e){if(0===e.length)return new vi(n.segments,{});var i=function JEe(n){return pD(n[0])?n[0].outlets:(0,Yw.Z)({},hi,n)}(e),o={};return cl(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=gG(n.children[s],r,a))}),cl(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new vi(n.segments,o)}function vG(n,r,e){for(var i=n.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(pD(a)){var s=XEe(a.outlets);return new vi(i,s)}if(0===o&&fD(e[0])){var l=n.segments[r];i.push(new cD(l.path,lre(e[0]))),o++}else{var u=pD(a)?a.outlets[hi]:"".concat(a),d=o<e.length-1?e[o+1]:null;u&&d&&fD(d)?(i.push(new cD(u,lre(d))),o+=2):(i.push(new cD(u,{})),o++)}}return new vi(i,{})}function XEe(n){var r={};return cl(n,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=vG(new vi([],{}),0,e))}),r}function lre(n){var r={};return cl(n,function(e,i){return r[i]="".concat(e)}),r}function ure(n,r,e){return n==e.path&&Sp(r,e.parameters)}var cm=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.id=r,this.url=e}),aB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,B.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),Jd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(cm),mD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),yG=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(cm),$Ee=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),exe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),txe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,U.Z)(e,[{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,")")}}]),e}(cm),nxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),rxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,U.Z)(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),ixe=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.type=9}return(0,U.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),oxe=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.type=10}return(0,U.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),axe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=11}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),sxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=12}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),lxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=13}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),uxe=function(){function n(r){(0,B.Z)(this,n),this.snapshot=r,this.type=14}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),cre=function(){function n(r,e,i){(0,B.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,U.Z)(n,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),n}();var dre=function(){function n(r){(0,B.Z)(this,n),this._root=r}return(0,U.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(e){var i=bG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=bG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=CG(e,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==e})}},{key:"pathFromRoot",value:function(e){return CG(e,this._root).map(function(i){return i.value})}}]),n}();function bG(n,r){if(n===r.value)return r;var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=bG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function CG(n,r){if(n===r.value)return[r];var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=CG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var dm=function(){function n(r,e){(0,B.Z)(this,n),this.value=r,this.children=e}return(0,U.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function Xw(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var fre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,i)).snapshot=o,wG((0,sD.Z)(a),i),a}return(0,U.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(dre);function pre(n,r){var e=function dxe(n,r){var s=new sB([],{},{},"",{},hi,r,null,n.root,-1,{});return new mre("",new dm(s,[]))}(n,r),i=new Qi.X([new cD("",{})]),o=new Qi.X({}),a=new Qi.X({}),s=new Qi.X({}),l=new Qi.X(""),u=new dr(i,o,s,l,a,hi,r,e.root);return u.snapshot=e.root,new fre(new dm(u,[]),e)}var dr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,B.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null!==(h=null===(d=this.data)||void 0===d?void 0:d.pipe((0,$n.U)(function(g){return g[uD]})))&&void 0!==h?h:(0,Kn.of)(void 0),this._futureSnapshot=u}return(0,U.Z)(n,[{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((0,$n.U)(function(e){return Kw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return Kw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function hre(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=n.pathFromRoot,i=0;if("always"!==r)for(i=e.length-1;i>=1;){var o=e[i],a=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return fxe(e.slice(i))}function fxe(n){return n.reduce(function(r,e){var i;return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),r.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}var sB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){var L;(0,B.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null===(L=this.data)||void 0===L?void 0:L[uD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=y?y:h,this._resolve=g}return(0,U.Z)(n,[{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=Kw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Kw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(i,"')")}}]),n}(),mre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this,o)).url=i,wG((0,sD.Z)(a),o),a}return(0,U.Z)(e,[{key:"toString",value:function(){return _re(this._root)}}]),e}(dre);function wG(n,r){r.value._routerState=n,r.children.forEach(function(e){return wG(n,e)})}function _re(n){var r=n.children.length>0?" { ".concat(n.children.map(_re).join(", ")," } "):"";return"".concat(n.value).concat(r)}function kG(n){if(n.snapshot){var r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Sp(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),Sp(r.params,e.params)||n.params.next(e.params),function EEe(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;++e)if(!Sp(n[e],r[e]))return!1;return!0}(r.url,e.url)||n.url.next(e.url),Sp(r.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function TG(n,r){var e=Sp(n.params,r.params)&&function IEe(n,r){return L0(n,r)&&n.every(function(e,i){return Sp(e.parameters,r[i].parameters)})}(n.url,r.url),i=!n.parent!=!r.parent;return e&&!i&&(!n.parent||TG(n.parent,r.parent))}function _D(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function hxe(n,r,e){return r.children.map(function(i){var a,o=(0,An.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return _D(n,i,s)}}catch(l){o.e(l)}finally{o.f()}return _D(n,i)})}(n,r,e);return new dm(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(d){return _D(n,d)}),s}}var l=function mxe(n){return new dr(new Qi.X(n.url),new Qi.X(n.params),new Qi.X(n.queryParams),new Qi.X(n.fragment),new Qi.X(n.data),n.outlet,n.component,n)}(r.value),u=r.children.map(function(d){return _D(n,d)});return new dm(l,u)}var MG="ngNavigationCancelingError";function gre(n,r){var e=Z0(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=e.redirectTo,o=e.navigationBehaviorOptions,a=vre(!1,0,r);return a.url=i,a.navigationBehaviorOptions=o,a}function vre(n,r,e){var i=new Error("NavigationCancelingError: "+(n||""));return i[MG]=!0,i.cancellationCode=r,e&&(i.url=e),i}function yre(n){return bre(n)&&Z0(n.url)}function bre(n){return n&&n[MG]}var _xe=(0,U.Z)(function n(){(0,B.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ep,this.attachRef=null}),Ep=function(){function n(){(0,B.Z)(this,n),this.contexts=new Map}return(0,U.Z)(n,[{key:"onChildOutletCreated",value:function(e,i){var o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}},{key:"onChildOutletDestroyed",value:function(e){var i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var i=this.getContext(e);return i||(i=new _xe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),n}();Ep.\u0275fac=function(r){return new(r||Ep)},Ep.\u0275prov=t.Yz7({token:Ep,factory:Ep.\u0275fac,providedIn:"root"});var lB=!1,fm=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.parentContexts=r,this.location=e,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=i||hi,r.onChildOutletCreated(this.name,this)}return(0,U.Z)(n,[{key:"ngOnDestroy",value:function(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new t.vHH(4012,lB);return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new t.vHH(4012,lB);return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new t.vHH(4012,lB);this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}},{key:"attach",value:function(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,i){if(this.isActivated)throw new t.vHH(4013,lB);this._activatedRoute=e;var o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new gxe(e,l,o.injector);if(i&&function vxe(n){return!!n.resolveComponentFactory}(i)){var d=i.resolveComponentFactory(s);this.activated=o.createComponent(d,o.length,u)}else{var h=null!=i?i:this.environmentInjector;this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:h})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),n}();fm.\u0275fac=function(r){return new(r||fm)(t.Y36(Ep),t.Y36(t.s_b),t.$8M("name"),t.Y36(t.sBO),t.Y36(t.lqb))},fm.\u0275dir=t.lG2({type:fm,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0});var gxe=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.childContexts=e,this.parent=i}return(0,U.Z)(n,[{key:"get",value:function(e,i){return e===dr?this.route:e===Ep?this.childContexts:this.parent.get(e,i)}}]),n}();var N0=(0,U.Z)(function n(){(0,B.Z)(this,n)});function Cre(n,r){var e;return n.providers&&!n._injector&&(n._injector=(0,t.MMx)(n.providers,r,"Route: ".concat(n.path))),null!==(e=n._injector)&&void 0!==e?e:r}function EG(n){var r=n.children&&n.children.map(EG),e=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==hi&&(e.component=N0),e}function td(n){return n.outlet||hi}function wre(n,r){var e=n.filter(function(i){return td(i)===r});return e.push.apply(e,(0,cn.Z)(n.filter(function(i){return td(i)!==r}))),e}function gD(n){var r;if(!n)return null;if(null!==(r=n.routeConfig)&&void 0!==r&&r._injector)return n.routeConfig._injector;for(var e=n.parent;e;e=e.parent){var i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}N0.\u0275fac=function(r){return new(r||N0)},N0.\u0275cmp=t.Xpm({type:N0,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"router-outlet")},dependencies:[fm],encapsulation:2});var kxe=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,U.Z)(n,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),kG(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=Xw(i);e.children.forEach(function(l){var u=l.value.outlet;a.deactivateRoutes(l,s[u],o),delete s[u]}),cl(s,function(l,u){a.deactivateRouteAndItsChildren(l,o)})}},{key:"deactivateRoutes",value:function(e,i,o){var a=e.value,s=i?i.value:null;if(a===s)if(a.component){var l=o.getContext(a.outlet);l&&this.deactivateChildRoutes(e,i,l.children)}else this.deactivateChildRoutes(e,i,o);else s&&this.deactivateRouteAndItsChildren(i,o)}},{key:"deactivateRouteAndItsChildren",value:function(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}},{key:"detachAndStoreRouteSubtree",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Xw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}if(o&&o.outlet){var h=o.outlet.detach(),g=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:g})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Xw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(e,i,o){var a=this,s=Xw(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new uxe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new sxe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a,s=e.value,l=i?i.value:null;if(kG(s),s===l)if(s.component){var u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,i,u.children)}else this.activateChildRoutes(e,i,o);else if(s.component){var d=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){var h=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(h.contexts),d.attachRef=h.componentRef,d.route=h.route.value,d.outlet&&d.outlet.attach(h.componentRef,h.route.value),kG(h.route.value),this.activateChildRoutes(e,null,d.children)}else{var g=gD(s.snapshot),y=null!==(a=null==g?void 0:g.get(t._Vd))&&void 0!==a?a:null;d.attachRef=null,d.route=s,d.resolver=y,d.injector=g,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(e,null,d.children)}}else this.activateChildRoutes(e,null,o)}}]),n}(),kre=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]}),uB=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.component=r,this.route=e});function Txe(n,r,e){var i=n._root;return vD(i,r?r._root:null,e,[i.value])}function $w(n,r){var e=Symbol(),i=r.get(n,e);return i===e?"function"!=typeof n||(0,t.Z0I)(n)?r.get(n):n:i}function vD(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Xw(r);return n.children.forEach(function(s){Sxe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),cl(a,function(s,l){return yD(s,e.getContext(l),o)}),o}function Sxe(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,l=e?e.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Exe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new kre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?vD(n,r,l?l.children:null,i,o):vD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new uB(l.outlet.component,s))}else s&&yD(r,l,o),o.canActivateChecks.push(new kre(i)),a.component?vD(n,null,l?l.children:null,i,o):vD(n,null,e,i,o);return o}function Exe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!L0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!L0(n.url,r.url)||!Sp(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!TG(n,r)}}function yD(n,r,e){var i=Xw(n),o=n.value;cl(i,function(a,s){o.component?yD(a,r?r.children.getContext(s):null,e):yD(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new uB(r.outlet.component,o)):e.canDeactivateChecks.push(new uB(null,o))}function bD(n){return"function"==typeof n}function xG(n){return n instanceof CEe.K||"EmptyError"===(null==n?void 0:n.name)}var cB=Symbol("INITIAL_VALUE");function ek(){return(0,Io.w)(function(n){return(0,Y1.aj)(n.map(function(r){return r.pipe((0,Ri.q)(1),(0,Oo.O)(cB))})).pipe((0,$n.U)(function(r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===cB)return cB;if(!1===o||o instanceof R0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,$r.h)(function(r){return r!==cB}),(0,Ri.q)(1))})}function Lxe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.currentSnapshot,a=e.guards,s=a.canActivateChecks,l=a.canDeactivateChecks;return 0===l.length&&0===s.length?(0,Kn.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Zxe(n,r,e,i){return(0,hs.D)(n).pipe((0,_s.zg)(function(o){return function jxe(n,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,Kn.of)(!0);var s=a.map(function(l){var u,d=null!==(u=gD(r))&&void 0!==u?u:o,h=$w(l,d);return Dg(function Ixe(n){return n&&bD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,xg.P)())});return(0,Kn.of)(s).pipe(ek())}(o.component,o.route,e,r,i)}),(0,xg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,_s.zg)(function(u){return u&&function xxe(n){return"boolean"==typeof n}(u)?function Nxe(n,r,e,i){return(0,hs.D)(r).pipe((0,P0.b)(function(o){return(0,wEe.z)(function Fxe(n,r){return null!==n&&r&&r(new axe(n)),(0,Kn.of)(!0)}(o.route.parent,i),function Bxe(n,r){return null!==n&&r&&r(new lxe(n)),(0,Kn.of)(!0)}(o.route,i),function Hxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Mxe(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,lD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=gD(s.node))&&void 0!==d?d:e,g=$w(u,h);return Dg(function Oxe(n){return n&&bD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,xg.P)())});return(0,Kn.of)(l).pipe(ek())})});return(0,Kn.of)(a).pipe(ek())}(n,o.path,e),function Uxe(n,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,Kn.of)(!0);var o=i.map(function(a){return(0,lD.P)(function(){var s,l=null!==(s=gD(r))&&void 0!==s?s:e,u=$w(a,l);return Dg(function Axe(n){return n&&bD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,xg.P)())})});return(0,Kn.of)(o).pipe(ek())}(n,o.route,e))}),(0,xg.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,Kn.of)(u)}),(0,$n.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}function Gxe(n,r,e,i){var o=r.canLoad;if(void 0===o||0===o.length)return(0,Kn.of)(!0);var a=o.map(function(s){var l=$w(s,n);return Dg(function Dxe(n){return n&&bD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,Kn.of)(a).pipe(ek(),Tre(i))}function Tre(n){return(0,kEe.z)((0,aa.b)(function(r){if(Z0(r))throw gre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function zxe(n,r,e,i){var o=r.canMatch;if(!o||0===o.length)return(0,Kn.of)(!0);var a=o.map(function(s){var l=$w(s,n);return Dg(function Pxe(n){return n&&bD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,Kn.of)(a).pipe(ek(),Tre())}var DG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mre(n,r,e,i,o){var a=AG(n,r,e);return a.matched?zxe(i=Cre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},DG)})):(0,Kn.of)(a)}function AG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},DG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||SEe)(e,n,r);if(!a)return Object.assign({},DG);var s={};cl(a.posParams,function(u,d){s[d]=u.path});var l=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:l,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function dB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Yxe(n,e,i)){var a=new vi(r,Vxe(n,r,i,new vi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Kxe(n,e,i)){var s=new vi(n.segments,Wxe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new vi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Wxe(n,r,e,i,o,a){var u,s={},l=(0,An.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(fB(n,e,d)&&!o[td(d)]){var h=new vi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[td(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function Vxe(n,r,e,i){var o={};o[hi]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,An.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&td(l)!==hi){var u=new vi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[td(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function Yxe(n,r,e){return e.some(function(i){return fB(n,r,i)&&td(i)!==hi})}function Kxe(n,r,e){return e.some(function(i){return fB(n,r,i)})}function fB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Sre(n,r,e,i){return!!(td(n)===i||i!==hi&&fB(r,e,n))&&("**"===n.path||AG(r,n,e).matched)}function Ere(n,r,e){return 0===r.length&&!n.children[e]}var pB=!1,hB=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.segmentGroup=r||null}),xre=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.urlTree=r});function CD(n){return(0,O0._)(new hB(n))}function Dre(n){return(0,O0._)(new xre(n))}var Xxe=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,U.Z)(n,[{key:"apply",value:function(){var e=this,i=dB(this.urlTree.root,[],[],this.config).segmentGroup,o=new vi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,hi).pipe((0,$n.U)(function(l){return e.createUrlTree(oB(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,ed.K)(function(l){if(l instanceof xre)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof hB?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,hi).pipe((0,$n.U)(function(s){return i.createUrlTree(oB(s),e.queryParams,e.fragment)})).pipe((0,ed.K)(function(s){throw s instanceof hB?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,pB)}},{key:"createUrlTree",value:function(e,i,o){var a=mG(e);return new R0(a,i,o)}},{key:"expandSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,i,o).pipe((0,$n.U)(function(s){return new vi([],s)})):this.expandSegment(e,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(e,i,o){for(var a=this,s=[],l=0,u=Object.keys(o.children);l<u.length;l++){var d=u[l];"primary"===d?s.unshift(d):s.push(d)}return(0,hs.D)(s).pipe((0,P0.b)(function(h){var g=o.children[h],y=wre(i,h);return a.expandSegmentGroup(e,y,g,h).pipe((0,$n.U)(function(L){return{segment:L,outlet:h}}))}),(0,Gne.R)(function(h,g){return h[g.outlet]=g.segment,h},{}),(0,zne.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,hs.D)(o).pipe((0,P0.b)(function(d){return u.expandSegmentAgainstRoute(e,i,o,d,a,s,l).pipe((0,ed.K)(function(g){if(g instanceof hB)return(0,Kn.of)(null);throw g}))}),(0,xg.P)(function(d){return!!d}),(0,ed.K)(function(d,h){if(xG(d))return Ere(i,a,s)?(0,Kn.of)(new vi([],{})):CD(i);throw d}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return Sre(a,i,s,l)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(e,i,a,s,l):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l):CD(i):CD(i)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,o,a,l):this.expandRegularSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,i,o,a){var s=this,l=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?Dre(l):this.lineralizeSegments(o,l).pipe((0,_s.zg)(function(u){var d=new vi(u,{});return s.expandSegment(e,d,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,d=AG(i,a,s),h=d.matched,g=d.consumedSegments,y=d.remainingSegments,L=d.positionalParamSegments;if(!h)return CD(i);var z=this.applyRedirectCommands(g,a.redirectTo,L);return a.redirectTo.startsWith("/")?Dre(z):this.lineralizeSegments(a,z).pipe((0,_s.zg)(function(q){return u.expandSegment(e,i,o,q.concat(y),l,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,i,o,a,s){var l=this;return"**"===o.path?(e=Cre(o,e),o.loadChildren?(o._loadedRoutes?(0,Kn.of)({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe((0,$n.U)(function(d){return o._loadedRoutes=d.routes,o._loadedInjector=d.injector,new vi(a,{})})):(0,Kn.of)(new vi(a,{}))):Mre(i,o,a,e,this.urlSerializer).pipe((0,Io.w)(function(d){var L,h=d.matched,g=d.consumedSegments,y=d.remainingSegments;return h?(e=null!==(L=o._injector)&&void 0!==L?L:e,l.getChildConfig(e,o,a).pipe((0,_s.zg)(function(q){var re,ae=null!==(re=q.injector)&&void 0!==re?re:e,Se=q.routes,Ce=dB(i,g,y,Se),Ee=Ce.segmentGroup,Ke=Ce.slicedSegments,st=new vi(Ee.segments,Ee.children);if(0===Ke.length&&st.hasChildren())return l.expandChildren(ae,Se,st).pipe((0,$n.U)(function(bt){return new vi(g,bt)}));if(0===Se.length&&0===Ke.length)return(0,Kn.of)(new vi(g,{}));var it=td(o)===s;return l.expandSegment(ae,st,Se,Ke,it?hi:s,!0).pipe((0,$n.U)(function(bt){return new vi(g.concat(bt.segments),bt.children)}))}))):CD(i)}))}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,Kn.of)({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?(0,Kn.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):Gxe(e,i,o,this.urlSerializer).pipe((0,_s.zg)(function(s){return s?a.configLoader.loadChildren(e,i).pipe((0,aa.b)(function(l){i._loadedRoutes=l.routes,i._loadedInjector=l.injector})):function Jxe(n){return(0,O0._)(vre(pB,3))}()})):(0,Kn.of)({routes:[],injector:e})}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,Kn.of)(o);if(a.numberOfChildren>1||!a.children[hi])return e.redirectTo,(0,O0._)(new t.vHH(4e3,pB));a=a.children[hi]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreateUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new R0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return cl(e,function(a,s){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);o[s]=i[u]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(e,i,o,a){var s=this,l=this.createSegments(e,i.segments,o,a),u={};return cl(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new vi(l,u)}},{key:"createSegments",value:function(e,i,o,a){var s=this;return i.map(function(l){return l.path.startsWith(":")?s.findPosParam(e,l,a):s.findOrReturn(l,o)})}},{key:"findPosParam",value:function(e,i,o){var a=o[i.path.substring(1)];if(!a)throw new t.vHH(4001,pB);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.path===e.path)return i.splice(o),l;o++}}catch(u){a.e(u)}finally{a.f()}return e}}]),n}();function $xe(n,r,e,i){return(0,Io.w)(function(o){return function Qxe(n,r,e,i,o){return new Xxe(n,r,e,i,o).apply()}(n,r,e,o.extractedUrl,i).pipe((0,$n.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var eDe=(0,U.Z)(function n(){(0,B.Z)(this,n)});function tDe(n){return new oo.y(function(r){return r.error(n)})}var rDe=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.injector=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=a,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=l,this.urlSerializer=u}return(0,U.Z)(n,[{key:"recognize",value:function(){var e=this,i=dB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,hi).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new sB([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},hi,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new dm(a,o),l=new mre(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=hre(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),e.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,i,o):this.processSegment(e,i,o,o.segments,a)}},{key:"processChildren",value:function(e,i,o){var a=this;return(0,hs.D)(Object.keys(o.children)).pipe((0,P0.b)(function(s){var l=o.children[s],u=wre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,Gne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,cn.Z)(l)),s):null}),(0,TEe.o)(function(s){return null!==s}),(0,Wne.d)(null),(0,zne.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Are(s);return function iDe(n){n.sort(function(r,e){return r.value.outlet===hi?-1:e.value.outlet===hi?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,hs.D)(i).pipe((0,P0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,xg.P)(function(u){return!!u}),(0,ed.K)(function(u){if(xG(u))return Ere(o,a,s)?(0,Kn.of)([]):(0,Kn.of)(null);throw u}))}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a,s){var u,d,h,l=this;if(i.redirectTo||!Sre(i,o,a,s))return(0,Kn.of)(null);if("**"===i.path){var g=a.length>0?qne(a).parameters:{},y=Ire(o)+a.length,L=new sB(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rre(i),td(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ore(o),y,Lre(i),y);h=(0,Kn.of)({snapshot:L,consumedSegments:[],remainingSegments:[]})}else h=Mre(o,i,a,e,this.urlSerializer).pipe((0,$n.U)(function(z){var Ce,Ee,q=z.matched,re=z.consumedSegments,ae=z.remainingSegments,Se=z.parameters;if(!q)return null;var Ke=Ire(o)+re.length;return{snapshot:new sB(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Rre(i),td(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Ore(o),Ke,Lre(i),Ke),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,Io.w)(function(z){var q,re;if(null===z)return(0,Kn.of)(null);var ae=z.snapshot,Se=z.consumedSegments,Ce=z.remainingSegments;e=null!==(q=i._injector)&&void 0!==q?q:e;var Ee=null!==(re=i._loadedInjector)&&void 0!==re?re:e,Ke=function oDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),st=dB(o,Se,Ce,Ke.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),De=st.segmentGroup,it=st.slicedSegments;if(0===it.length&&De.hasChildren())return l.processChildren(Ee,Ke,De).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}));if(0===Ke.length&&0===it.length)return(0,Kn.of)([new dm(ae,[])]);var ft=td(i)===s;return l.processSegment(Ee,Ke,De,it,ft?hi:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}))}))}}]),n}();function Are(n){var o,r=[],e=new Set,i=(0,An.Z)(n);try{var a=function(){var y=o.value;if(!function aDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(y))return r.push(y),"continue";var z,L=r.find(function(q){return y.value.routeConfig===q.value.routeConfig});void 0!==L?((z=L.children).push.apply(z,(0,cn.Z)(y.children)),e.add(L)):r.push(y)};for(i.s();!(o=i.n()).done;)a()}catch(g){i.e(g)}finally{i.f()}var u,l=(0,An.Z)(e);try{for(l.s();!(u=l.n()).done;){var d=u.value,h=Are(d.children);r.push(new dm(d.value,h))}}catch(g){l.e(g)}finally{l.f()}return r.filter(function(g){return!e.has(g)})}function Ore(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function Ire(n){for(var r,e,i=n,o=null!==(r=i._segmentIndexShift)&&void 0!==r?r:0;i._sourceSegment;)o+=null!==(e=(i=i._sourceSegment)._segmentIndexShift)&&void 0!==e?e:0;return o-1}function Rre(n){return n.data||{}}function Lre(n){return n.resolve||{}}function lDe(n,r,e,i,o,a){return(0,_s.zg)(function(s){return function nDe(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"emptyOnly",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"legacy";return new rDe(n,r,e,i,o,s,l,a).recognize().pipe((0,Io.w)(function(u){return null===u?tDe(new eDe):(0,Kn.of)(u)}))}(n,r,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,a).pipe((0,$n.U)(function(l){return Object.assign(Object.assign({},s),{targetSnapshot:l})}))})}function uDe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,Kn.of)(e);var a=0;return(0,hs.D)(o).pipe((0,P0.b)(function(s){return function cDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Zre(o)&&(a[uD]=o.title),function dDe(n,r,e,i){var o=function fDe(n){return[].concat((0,cn.Z)(Object.keys(n)),(0,cn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,Kn.of)({});var a={};return(0,hs.D)(o).pipe((0,_s.zg)(function(s){return function pDe(n,r,e,i){var o,a=null!==(o=gD(r))&&void 0!==o?o:i,s=$w(n,a);return Dg(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,xg.P)(),(0,aa.b)(function(l){a[s]=l}))}),(0,p7.h)(1),(0,x1.h)(a),(0,ed.K)(function(s){return xG(s)?I0.E:(0,O0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=hre(n,e).resolve,o&&Zre(o)&&(n.data[uD]=o.title),null}))}(s.route,i,n,r)}),(0,aa.b)(function(){return a++}),(0,p7.h)(1),(0,_s.zg)(function(s){return a===o.length?(0,Kn.of)(e):I0.E}))})}function Zre(n){return"string"==typeof n.title||null===n.title}function OG(n){return(0,Io.w)(function(r){var e=n(r);return e?(0,hs.D)(e).pipe((0,$n.U)(function(){return r})):(0,Kn.of)(r)})}var tk=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"buildTitle",value:function(e){for(var i,o,a=e.root;void 0!==a;)o=null!==(i=this.getResolvedTitleForRoute(a))&&void 0!==i?i:o,a=a.children.find(function(s){return s.outlet===hi});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[uD]}}]),n}();tk.\u0275fac=function(r){return new(r||tk)},tk.\u0275prov=t.Yz7({token:tk,factory:function(){return(0,t.f3M)(B0)},providedIn:"root"});var B0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).title=i,o}return(0,U.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(tk);B0.\u0275fac=function(r){return new(r||B0)(t.LFG(ni))},B0.\u0275prov=t.Yz7({token:B0,factory:B0.\u0275fac,providedIn:"root"});var hDe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),mDe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,i){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,i){return e.routeConfig===i.routeConfig}}]),n}(),_De=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(mDe),_B=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),IG=new t.OlP("ROUTES"),Ag=function(){function n(r,e){(0,B.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,U.Z)(n,[{key:"loadComponent",value:function(e){var i=this;if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Kn.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);var o=Dg(e.loadComponent()).pipe((0,aa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,XN.x)(function(){i.componentLoaders.delete(e)})),a=new jne.c(o,function(){return new On.xQ}).pipe((0,Vne.x)());return this.componentLoaders.set(e,a),a}},{key:"loadChildren",value:function(e,i){var o=this;if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return(0,Kn.of)({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe((0,$n.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var d,h;Array.isArray(u)?h=u:h=Kne((d=u.create(e).injector).get(IG,[],t.XFs.Self|t.XFs.Optional));var y=h.map(EG);return{routes:y,injector:d}}),(0,XN.x)(function(){o.childrenLoaders.delete(i)})),l=new jne.c(s,function(){return new On.xQ}).pipe((0,Vne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Dg(e()).pipe((0,_s.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,Kn.of)(o):(0,hs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Ag.\u0275fac=function(r){return new(r||Ag)(t.LFG(t.zs3),t.LFG(t.Sil))},Ag.\u0275prov=t.Yz7({token:Ag,factory:Ag.\u0275fac,providedIn:"root"});var vDe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),yDe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),n}(),gB=!1;function bDe(n){throw n}function CDe(n,r,e){return r.parse("/")}var wDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Bre(){var n,r,e=(0,t.f3M)(qw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(le.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(IG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(_B,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(B0),h=(0,t.f3M)(tk,{optional:!0}),g=(0,t.f3M)(vDe,{optional:!0}),y=(0,t.f3M)(hDe,{optional:!0}),L=new ur(null,e,i,o,a,s,Kne(l));return g&&(L.urlHandlingStrategy=g),y&&(L.routeReuseStrategy=y),L.titleStrategy=null!=h?h:d,function TDe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(r.canceledNavigationResolution=n.canceledNavigationResolution)}(u,L),L}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,B.Z)(this,n),this.rootComponentType=r,this.urlSerializer=e,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new On.xQ,this.errorHandler=bDe,this.malformedUriErrorHandler=CDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,Kn.of)(void 0)},this.urlHandlingStrategy=new yDe,this.routeReuseStrategy=new _De,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Ag),this.configLoader.onLoadEndListener=function(L){return u.triggerEvent(new oxe(L))},this.configLoader.onLoadStartListener=function(L){return u.triggerEvent(new ixe(L))},this.ngModule=a.get(t.h0i),this.console=a.get(t.c2e);var g=a.get(t.R0b);this.isNgZoneEnabled=g instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function xEe(){return new R0(new vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=pre(this.currentUrlTree,this.rootComponentType),this.transitions=new Qi.X({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(0,U.Z)(n,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var i=this,o=this.events;return e.pipe((0,$r.h)(function(a){return 0!==a.id}),(0,$n.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,Io.w)(function(a){var s=!1,l=!1;return(0,Kn.of)(a).pipe((0,aa.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Io.w)(function(u){var d=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==d||d!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Fre(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,Kn.of)(u).pipe((0,Io.w)(function(Ee){var Ke=i.transitions.getValue();return o.next(new aB(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ke!==i.transitions.getValue()?I0.E:Promise.resolve(Ee)}),$xe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,aa.b)(function(Ee){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Ee.urlAfterRedirects}),a.urlAfterRedirects=Ee.urlAfterRedirects}),lDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,aa.b)(function(Ee){if(a.targetSnapshot=Ee.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var Ke=i.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);i.setBrowserUrl(Ke,Ee)}i.browserUrlTree=Ee.urlAfterRedirects}var st=new $Ee(Ee.id,i.serializeUrl(Ee.extractedUrl),i.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);o.next(st)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var L=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new aB(L,i.serializeUrl(z),q,re);o.next(Se);var Ce=pre(z,i.rootComponentType).snapshot;return a=Object.assign(Object.assign({},u),{targetSnapshot:Ce,urlAfterRedirects:z,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}),(0,Kn.of)(a)}return i.rawUrlTree=u.rawUrl,u.resolve(null),I0.E}),(0,aa.b)(function(u){var d=new exe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(d)}),(0,$n.U)(function(u){return a=Object.assign(Object.assign({},u),{guards:Txe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Lxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,aa.b)(function(u){if(a.guardsResult=u.guardsResult,Z0(u.guardsResult))throw gre(i.urlSerializer,u.guardsResult);var d=new txe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,$r.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),OG(function(u){if(u.guards.canActivateChecks.length)return(0,Kn.of)(u).pipe((0,aa.b)(function(d){var h=new nxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,Io.w)(function(d){var h=!1;return(0,Kn.of)(d).pipe(uDe(i.paramsInheritanceStrategy,i.ngModule.injector),(0,aa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,aa.b)(function(d){var h=new rxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),OG(function(u){return(0,Y1.aj)(function h(g){var y,L=[];(null===(y=g.routeConfig)||void 0===y?void 0:y.loadComponent)&&!g.routeConfig._loadedComponent&&L.push(i.configLoader.loadComponent(g.routeConfig).pipe((0,aa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,An.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;L.push.apply(L,(0,cn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return L}(u.targetSnapshot.root)).pipe((0,Wne.d)(),(0,Ri.q)(1))}),OG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function pxe(n,r,e){var i=_D(n,r._root,e?e._root:void 0);return new fre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,aa.b)(function(u){i.currentUrlTree=u.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),i.routerState=u.targetRouterState,"deferred"===i.urlUpdateStrategy&&(u.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,u),i.browserUrlTree=u.urlAfterRedirects)}),function(r,e,i){return(0,$n.U)(function(o){return new kxe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,aa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,XN.x)(function(){var u;if(!s&&!l){i.cancelNavigationTransition(a,"",1)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,ed.K)(function(u){var d;if(l=!0,bre(u)){yre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new mD(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),yre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),y={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Fre(a.source)};i.scheduleNavigation(g,"imperative",null,y,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var L=new yG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(L);try{a.resolve(i.errorHandler(u))}catch(z){a.reject(z)}}return I0.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var o="popstate"===i.type?"popstate":"hashchange";"popstate"===o&&setTimeout(function(){var a,s={replaceUrl:!0},l=null!==(a=i.state)&&void 0!==a&&a.navigationId?i.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var d=e.parseUrl(i.url);e.scheduleNavigation(d,o,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){this.config=e.map(EG),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(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.relativeTo,a=i.queryParams,s=i.fragment,l=i.queryParamsHandling,u=i.preserveFragment,d=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,g=null;switch(l){case"merge":g=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=a||null}return null!==g&&(g=this.removeEmptyProps(g)),YEe(d,this.currentUrlTree,e,g,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=Z0(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}},{key:"navigate",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return MDe(e),this.navigateByUrl(this.createUrlTree(e,i),i)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}},{key:"isActive",value:function(e,i){var o;if(o=!0===i?Object.assign({},wDe):!1===i?Object.assign({},kDe):i,Z0(e))return Qne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Qne(this.currentUrlTree,a,o)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(i,o){var a=e[o];return null!=a&&(i[o]=a),i},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(i){var o;e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new Jd(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,null===(o=e.titleStrategy)||void 0===o||o.updateTitle(e.routerState.snapshot),i.resolve(!0)},function(i){e.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(e,i,o,a,s){var l,u,d,h,g;if(this.disposed)return Promise.resolve(!1);s?(d=s.resolve,h=s.reject,g=s.promise):g=new Promise(function(q,re){d=q,h=re});var L,y=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),L=o&&o.\u0275routerPageId?o.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):L=0;return this.setTransition({id:y,targetPageId:L,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:d,reject:h,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(function(q){return Promise.reject(q)})}},{key:"setBrowserUrl",value:function(e,i){var o=this.urlSerializer.serialize(e),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",a):this.location.go(o,"",a)}},{key:"restoreHistory",value:function(e){var o,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,i,o){var a=new mD(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),n}();function MDe(n){for(var r=0;r<n.length;r++){var e=n[r];if(null==e)throw new t.vHH(4008,gB)}}function Fre(n){return"imperative"!==n}ur.\u0275fac=function(r){t.$Z()},ur.\u0275prov=t.Yz7({token:ur,factory:function(){return Bre()},providedIn:"root"});var $o=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new On.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,U.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"setTabIndexIfNotOnNativeEl",value:function(e){if(null==this.tabIndexAttribute){var i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}}},{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}},{key:"onClick",value:function(){if(null===this.urlTree)return!0;var e={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();$o.\u0275fac=function(r){return new(r||$o)(t.Y36(ur),t.Y36(dr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},$o.\u0275dir=t.lG2({type:$o,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var js=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.router=r,this.route=e,this.locationStrategy=i,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new On.xQ,this.subscription=r.events.subscribe(function(a){a instanceof Jd&&o.updateTargetUrlAndHref()})}return(0,U.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,i,o,a,s){if(0!==e||i||o||a||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;var l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();js.\u0275fac=function(r){return new(r||js)(t.Y36(ur),t.Y36(dr),t.Y36(le.S$))},js.\u0275dir=t.lG2({type:js,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&t.uIk("target",e.target)("href",e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var nk=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.router=r,this.element=e,this.renderer=i,this.cdr=o,this.link=a,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof Jd&&l.update()})}return(0,U.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,Kn.of)(this.links.changes,this.linksWithHrefs.changes,(0,Kn.of)(null)).pipe((0,$N.J)()).subscribe(function(i){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var i,e=this;null===(i=this.linkInputChangesSubscription)||void 0===i||i.unsubscribe();var o=[].concat((0,cn.Z)(this.links.toArray()),(0,cn.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,hs.D)(o).pipe((0,$N.J)()).subscribe(function(a){e.isActive!==e.isLinkActive(e.router)(a)&&e.update()})}},{key:"routerLinkActive",set:function(e){var i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(function(o){return!!o})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var i=e.hasActiveLinks();e.isActive!==i&&(e.isActive=i,e.cdr.markForCheck(),e.classes.forEach(function(o){i?e.renderer.addClass(e.element.nativeElement,o):e.renderer.removeClass(e.element.nativeElement,o)}),i&&void 0!==e.ariaCurrentWhenActive?e.renderer.setAttribute(e.element.nativeElement,"aria-current",e.ariaCurrentWhenActive.toString()):e.renderer.removeAttribute(e.element.nativeElement,"aria-current"),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function SDe(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(o){return!!o.urlTree&&e.isActive(o.urlTree,i)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),n}();nk.\u0275fac=function(r){return new(r||nk)(t.Y36(ur),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36($o,8),t.Y36(js,8))},nk.\u0275dir=t.lG2({type:nk,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,$o,5),t.Suo(i,js,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.links=o),t.iGM(o=t.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]});var Ure=(0,U.Z)(function n(){(0,B.Z)(this,n)}),wD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"preload",value:function(e,i){return i().pipe((0,ed.K)(function(){return(0,Kn.of)(null)}))}}]),n}();wD.\u0275fac=function(r){return new(r||wD)},wD.\u0275prov=t.Yz7({token:wD,factory:wD.\u0275fac,providedIn:"root"});var kD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"preload",value:function(e,i){return(0,Kn.of)(null)}}]),n}();kD.\u0275fac=function(r){return new(r||kD)},kD.\u0275prov=t.Yz7({token:kD,factory:kD.\u0275fac,providedIn:"root"});var rk=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.router=r,this.injector=i,this.preloadingStrategy=o,this.loader=a}return(0,U.Z)(n,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,$r.h)(function(i){return i instanceof Jd}),(0,P0.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){return this.processRoutes(this.injector,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var o,a,s,d,l=[],u=(0,An.Z)(i);try{for(u.s();!(d=u.n()).done;){var h=d.value;h.providers&&!h._injector&&(h._injector=(0,t.MMx)(h.providers,e,"Route: ".concat(h.path)));var g=null!==(o=h._injector)&&void 0!==o?o:e,y=null!==(a=h._loadedInjector)&&void 0!==a?a:g;h.loadChildren&&!h._loadedRoutes&&void 0===h.canLoad||h.loadComponent&&!h._loadedComponent?l.push(this.preloadConfig(g,h)):(h.children||h._loadedRoutes)&&l.push(this.processRoutes(y,null!==(s=h.children)&&void 0!==s?s:h._loadedRoutes))}}catch(L){u.e(L)}finally{u.f()}return(0,hs.D)(l).pipe((0,$N.J)())}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){var s=(i.loadChildren&&void 0===i.canLoad?o.loader.loadChildren(e,i):(0,Kn.of)(null)).pipe((0,_s.zg)(function(u){var d;return null===u?(0,Kn.of)(void 0):(i._loadedRoutes=u.routes,i._loadedInjector=u.injector,o.processRoutes(null!==(d=u.injector)&&void 0!==d?d:e,u.routes))}));if(i.loadComponent&&!i._loadedComponent){var l=o.loader.loadComponent(i);return(0,hs.D)([s,l]).pipe((0,$N.J)())}return s})}}]),n}();rk.\u0275fac=function(r){return new(r||rk)(t.LFG(ur),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Ure),t.LFG(Ag))},rk.\u0275prov=t.Yz7({token:rk,factory:rk.\u0275fac,providedIn:"root"});var PG=new t.OlP(""),ik=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,B.Z)(this,n),this.router=r,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return(0,U.Z)(n,[{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 e=this;return this.router.events.subscribe(function(i){i instanceof aB?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Jd&&(e.lastId=i.id,e.scheduleScrollEvent(i,e.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof cre&&(i.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,i){this.router.triggerEvent(new cre(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),n}();ik.\u0275fac=function(r){t.$Z()},ik.\u0275prov=t.Yz7({token:ik,factory:ik.\u0275fac});function Hre(n){return n.routerState.root}function ok(n,r){return{"\u0275kind":n,"\u0275providers":r}}function RG(n){return[{provide:IG,multi:!0,useValue:n}]}function jre(){var n=(0,t.f3M)(t.zs3);return function(r){var e,i,o=n.get(t.z2F);if(r===o.components[0]){var a=n.get(ur),s=n.get(Gre);1===n.get(LG)&&a.initialNavigation(),null===(e=n.get(zre,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(PG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var Gre=new t.OlP("",{factory:function(){return new On.xQ}}),LG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function EDe(){return ok(2,[{provide:LG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(le.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(Gre);(function a(s){e.get(ur).events.pipe((0,$r.h)(function(u){return u instanceof Jd||u instanceof mD||u instanceof yG}),(0,$n.U)(function(u){return u instanceof Jd||!(!(u instanceof mD)||0!==u.code&&1!==u.code)&&null}),(0,$r.h)(function(u){return null!==u}),(0,Ri.q)(1)).subscribe(function(){s()})})(function(){s(!0),o=!0}),l.afterPreactivation=function(){return s(!0),o||u.closed?(0,Kn.of)(void 0):u},l.initialNavigation()})})}}}])}var zre=new t.OlP("");function ADe(n){return ok(0,[{provide:zre,useExisting:rk},{provide:Ure,useExisting:n}])}var Wre=new t.OlP("ROUTER_FORROOT_GUARD"),ODe=[le.Ye,{provide:qw,useClass:pG},{provide:ur,useFactory:Bre},Ep,{provide:dr,useFactory:Hre,deps:[ur]},Ag];function IDe(){return new t.PXZ("Router",ur)}var F0=function(){function n(r){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[ODe,[],RG(e),{provide:Wre,useFactory:ZDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:_B,useValue:i||{}},null!=i&&i.useHash?{provide:le.S$,useClass:le.Do}:{provide:le.S$,useClass:le.b0},{provide:PG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(le.EM),i=(0,t.f3M)(_B);return i.scrollOffset&&e.setOffset(i.scrollOffset),new ik(r,e,i)}},null!=i&&i.preloadingStrategy?ADe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:IDe},null!=i&&i.initialNavigation?NDe(i):[],[{provide:Vre,useFactory:jre},{provide:t.tb,multi:!0,useExisting:Vre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[RG(e)]}}}]),n}();function ZDe(n){return"guarded"}function NDe(n){return["disabled"===n.initialNavigation?ok(3,[{provide:t.ip1,multi:!0,useFactory:function(){var e=(0,t.f3M)(ur);return function(){e.setUpLocationChangeListener()}}},{provide:LG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?EDe().\u0275providers:[]]}F0.\u0275fac=function(r){return new(r||F0)(t.LFG(Wre,8))},F0.\u0275mod=t.oAB({type:F0}),F0.\u0275inj=t.cJS({imports:[N0]});var Vre=new t.OlP("");new t.GfV("14.3.0");var bB=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ho=m(2437),or=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new On.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,U.Z)(n,[{key:"getcontrollerIds",value:function(){var e=localStorage.getItem("controllerIds");return(null==e?void 0:e.length)>0?e.split(","):[]}},{key:"updatecontrollerIds",value:function(){localStorage.removeItem("controllerIds"),localStorage.setItem("controllerIds",this.controllerIds.toString())}},{key:"get",value:function(e){var i=JSON.parse(localStorage.getItem("controller-".concat(e)));return new Promise(function(a){a(i)})}},{key:"create",value:function(e){return e.id=this.controllerIds.length+1,localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),this.controllerIds.push("controller-".concat(e.id)),this.updatecontrollerIds(),new Promise(function(o){o(e)})}},{key:"update",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),new Promise(function(o){o(e)})}},{key:"findAll",value:function(){var e=this;return new Promise(function(o){var a=[];e.controllerIds.forEach(function(s){var l=JSON.parse(localStorage.getItem(s));a.push(l)}),o(a)})}},{key:"delete",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),this.controllerIds=this.controllerIds.filter(function(o){return o!=="controller-".concat(e.id)}),this.updatecontrollerIds(),new Promise(function(o){o(e.id)})}},{key:"getControllerUrl",value:function(e){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/")}},{key:"checkControllerVersion",value:function(e){return this.httpController.get(e,"/version")}},{key:"getLocalController",value:function(e,i){var o=this;return new Promise(function(s,l){o.findAll().then(function(u){var d=u.find(function(g){return"bundled"===g.location});if(d)d.host=e,d.port=i,d.protocol=location.protocol,o.update(d).then(function(g){s(g)},l);else{var h=new bB;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(g){s(g)},l)}},l)})}}]),n}();or.\u0275fac=function(r){return new(r||or)(t.LFG(ho.zw))},or.\u0275prov=t.Yz7({token:or,factory:or.\u0275fac});var TD=(0,U.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,B.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),El=function(){function n(){(0,B.Z)(this,n),this.state=new Qi.X(new TD(!1))}return(0,U.Z)(n,[{key:"setError",value:function(e){this.state.next(new TD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new TD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new TD(!0))}},{key:"deactivate",value:function(){this.state.next(new TD(!1))}}]),n}();El.\u0275fac=function(r){return new(r||El)},El.\u0275prov=t.Yz7({token:El,factory:El.\u0275fac});var Yre=["mat-button",""],Kre=["*"],HDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],jDe=(0,Gt.pj)((0,Gt.Id)((0,Gt.Kr)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()))),fn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,B.Z)(this,e),(s=r.call(this,i))._focusMonitor=o,s._animationMode=a,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var u,l=(0,An.Z)(HDe);try{for(l.s();!(u=l.n()).done;){var d=u.value;s._hasHostAttributes(d)&&s._getHostElement().classList.add(d)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return s.some(function(u){return o._getHostElement().hasAttribute(u)})}}]),e}(jDe);fn.\u0275fac=function(r){return new(r||fn)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.QbO,8))},fn.\u0275cmp=t.Xpm({type:fn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Gt.wG,5),2&r)&&(t.iGM(i=t.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(t.uIk("disabled",e.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:Yre,ngContentSelectors:Kre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Gt.wG],styles:[".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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0});var U0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,o,i,a))._ngZone=s,l._haltDisabledEvents=function(u){l.disabled&&(u.preventDefault(),u.stopImmediatePropagation())},l}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){o._elementRef.nativeElement.addEventListener("click",o._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(fn);U0.\u0275fac=function(r){return new(r||U0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},U0.\u0275cmp=t.Xpm({type:U0,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[t.qOj],attrs:Yre,ngContentSelectors:Kre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Gt.wG],styles:[".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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0});var pm=(0,U.Z)(function n(){(0,B.Z)(this,n)});pm.\u0275fac=function(r){return new(r||pm)},pm.\u0275mod=t.oAB({type:pm}),pm.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,Gt.BQ]});var CB,H0=m(567);function MD(n){var r;return(null===(r=function zDe(){if(void 0===CB&&(CB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(CB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return CB}())||void 0===r?void 0:r.createHTML(n))||n}function qre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Jre(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function Qre(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var j0=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._httpClient=r,this._sanitizer=e,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=i}return(0,U.Z)(n,[{key:"addSvgIcon",value:function(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}},{key:"addSvgIconLiteral",value:function(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}},{key:"addSvgIconInNamespace",value:function(e,i,o,a){return this._addSvgIconConfig(e,i,new j0(o,null,a))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,i,o,a){var s=this._sanitizer.sanitize(t.q3G.HTML,o);if(!s)throw Qre(o);var l=MD(s);return this._addSvgIconConfig(e,i,new j0("",l,a))}},{key:"addSvgIconSet",value:function(e,i){return this.addSvgIconSetInNamespace("",e,i)}},{key:"addSvgIconSetLiteral",value:function(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}},{key:"addSvgIconSetInNamespace",value:function(e,i,o){return this._addSvgIconSetConfig(e,new j0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw Qre(i);var s=MD(a);return this._addSvgIconSetConfig(e,new j0("",s,o))}},{key:"registerFontClassAlias",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,i),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,e);if(!o)throw Jre(e);var a=this._cachedIconsByUrl.get(o);return a?(0,Kn.of)(wB(a)):this._loadSvgIconFromConfig(new j0(e,null)).pipe((0,aa.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,$n.U)(function(s){return wB(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Xre(i,e),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e))return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):(0,O0._)(qre(o))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,Kn.of)(wB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return wB(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,Kn.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,ed.K)(function(u){var d=o._sanitizer.sanitize(t.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(d," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,Kn.of)(null)}))});return(0,H0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw qre(e);return l}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,i){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){var s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,e,a.options);if(l)return l}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var i=this;return this._fetchIcon(e).pipe((0,aa.b)(function(o){return e.svgText=o}),(0,$n.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,Kn.of)(null):this._fetchIcon(e).pipe((0,aa.b)(function(i){return e.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(e,i,o){var a=e.querySelector('[id="'.concat(i,'"]'));if(!a)return null;var s=a.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);var l=this._svgElementFromString(MD("<svg></svg>"));return l.appendChild(s),this._setSvgAttributes(l,o)}},{key:"_svgElementFromString",value:function(e){var i=this._document.createElement("DIV");i.innerHTML=e;var o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(MD("<svg></svg>")),o=e.attributes,a=0;a<o.length;a++){var s=o[a],l=s.name,u=s.value;"id"!==l&&i.setAttribute(l,u)}for(var d=0;d<e.childNodes.length;d++)e.childNodes[d].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[d].cloneNode(!0));return i}},{key:"_setSvgAttributes",value:function(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}},{key:"_fetchIcon",value:function(e){var o,i=this,a=e.url,s=e.options,l=null!==(o=null==s?void 0:s.withCredentials)&&void 0!==o&&o;if(!this._httpClient)throw function WDe(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==a)throw Error('Cannot fetch icon from URL "'.concat(a,'".'));var u=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,a);if(!u)throw Jre(a);var d=this._inProgressUrlFetches.get(u);if(d)return d;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,$n.U)(function(g){return MD(g)}),(0,XN.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,K1.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set(Xre(e,i),o),this}},{key:"_addSvgIconSetConfig",value:function(e,i){var o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,i){for(var o=0;o<this._resolvers.length;o++){var a=this._resolvers[o](i,e);if(a)return YDe(a)?new j0(a.url,null,a.options):new j0(a,null)}}}]),n}();xp.\u0275fac=function(r){return new(r||xp)(t.LFG(fc.eN,8),t.LFG(Dr),t.LFG(le.K0,8),t.LFG(t.qLn))},xp.\u0275prov=t.Yz7({token:xp,factory:xp.\u0275fac,providedIn:"root"});new t.FiY,new t.tp0,new t.FiY,fc.eN,t.qLn,new t.FiY,le.K0;function wB(n){return n.cloneNode(!0)}function Xre(n,r){return n+":"+r}function YDe(n){return!(!n.url||!n.options)}var KDe=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()),qDe=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),JDe=new t.OlP("mat-icon-location",{providedIn:"root",factory:function QDe(){var n=(0,t.f3M)(le.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var $re=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],XDe=$re.map(function(n){return"[".concat(n,"]")}).join(", "),$De=/^url\(['"]?#(.*?)['"]?\)$/,Dn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i))._iconRegistry=o,d._location=s,d._errorHandler=l,d._inline=!1,d._previousFontSetClass=[],d._currentIconFetch=xa.w.EMPTY,u&&(u.color&&(d.color=d.defaultColor=u.color),u.fontSet&&(d.fontSet=u.fontSet)),a||i.nativeElement.setAttribute("aria-hidden","true"),d}return(0,U.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,En.Ig)(o)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(o){o!==this._svgIcon&&(o?this._updateSvgIcon(o):this._svgIcon&&this._clearSvgElement(),this._svgIcon=o)}},{key:"fontSet",get:function(){return this._fontSet},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontSet&&(this._fontSet=a,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(o){if(!o)return["",""];var a=o.split(":");switch(a.length){case 1:return["",a[0]];case 2:return a;default:throw Error('Invalid icon name: "'.concat(o,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var o=this._elementsWithExternalReferences;if(o&&o.size){var a=this._location.getPathname();a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(o){this._clearSvgElement();var a=this._location.getPathname();this._previousPath=a,this._cacheChildrenWithExternalReferences(o),this._prependPathToReferences(a),this._elementRef.nativeElement.appendChild(o)}},{key:"_clearSvgElement",value:function(){var o=this._elementRef.nativeElement,a=o.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();a--;){var s=o.childNodes[a];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var o=this._elementRef.nativeElement,a=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(function(s){return s.length>0});this._previousFontSetClass.forEach(function(s){return o.classList.remove(s)}),a.forEach(function(s){return o.classList.add(s)}),this._previousFontSetClass=a,this.fontIcon!==this._previousFontIconClass&&!a.includes("mat-ligature-font")&&(this._previousFontIconClass&&o.classList.remove(this._previousFontIconClass),this.fontIcon&&o.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(o){return"string"==typeof o?o.trim().split(" ")[0]:o}},{key:"_prependPathToReferences",value:function(o){var a=this._elementsWithExternalReferences;a&&a.forEach(function(s,l){s.forEach(function(u){l.setAttribute(u.name,"url('".concat(o,"#").concat(u.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(o){for(var a=o.querySelectorAll(XDe),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){$re.forEach(function(g){var y=a[h],L=y.getAttribute(g),z=L?L.match($De):null;if(z){var q=s.get(y);q||(q=[],s.set(y,q)),q.push({name:g,value:z[1]})}})},u=0;u<a.length;u++)l(u)}},{key:"_updateSvgIcon",value:function(o){var a=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),o){var s=this._splitIconName(o),l=(0,Yn.Z)(s,2),u=l[0],d=l[1];u&&(this._svgNamespace=u),d&&(this._svgName=d),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(d,u).pipe((0,Ri.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var g="Error retrieving icon ".concat(u,":").concat(d,"! ").concat(h.message);a._errorHandler.handleError(new Error(g))})}}}]),e}(KDe);Dn.\u0275fac=function(r){return new(r||Dn)(t.Y36(t.SBq),t.Y36(xp),t.$8M("aria-hidden"),t.Y36(JDe),t.Y36(t.qLn),t.Y36(qDe,8))},Dn.\u0275cmp=t.Xpm({type:Dn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(r,e){2&r&&(t.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet)("fontIcon",e._usingFontIcon()?e.fontIcon:null),t.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});var Og=(0,U.Z)(function n(){(0,B.Z)(this,n)});function e2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}function t2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}Og.\u0275fac=function(r){return new(r||Og)},Og.\u0275mod=t.oAB({type:Og}),Og.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var r2e=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}(),"primary"),i2e=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function o2e(){return{diameter:100}}});var ou=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;(0,B.Z)(this,e),(g=r.call(this,i))._document=a,g._diameter=100,g._value=0,g._resizeSubscription=xa.w.EMPTY,g.mode="determinate";var y=e._diameters;return g._spinnerAnimationLabel=g._getSpinnerAnimationLabel(),y.has(a.head)||y.set(a.head,new Set([100])),g._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(g.mode="indeterminate"),l&&(l.color&&(g.color=g.defaultColor=l.color),l.diameter&&(g.diameter=l.diameter),l.strokeWidth&&(g.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&d&&u&&h&&(g._resizeSubscription=d.change(150).subscribe(function(){"indeterminate"===g.mode&&h.run(function(){return u.markForCheck()})})),g}return(0,U.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,En.su)(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(o){this._strokeWidth=(0,En.su)(o)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(o){this._value=Math.max(0,Math.min(100,(0,En.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,bi.kV)(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"ngOnDestroy",value:function(){this._resizeSubscription.unsubscribe()}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var o=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(o," ").concat(o)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_getCircleTransformOrigin",value:function(o){var a,s=50*(null!==(a=o.currentScale)&&void 0!==a?a:1);return"".concat(s,"% ").concat(s,"%")}},{key:"_attachStyleNode",value:function(){var o=this._styleRoot,a=this._diameter,s=e._diameters,l=s.get(o);if(!l||!l.has(a)){var u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),o.appendChild(u),l||(l=new Set,s.set(o,l)),l.add(a)}}},{key:"_getAnimationText",value:function(){var o=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*o)).replace(/END_VALUE/g,"".concat(.2*o)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),e}(r2e);ou._diameters=new WeakMap,ou.\u0275fac=function(r){return new(r||ou)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(le.K0,8),t.Y36(t.QbO,8),t.Y36(i2e),t.Y36(t.sBO),t.Y36(sa.rL),t.Y36(t.R0b))},ou.\u0275cmp=t.Xpm({type:ou,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,e2e,1,11,"circle",2),t.YNc(3,t2e,1,9,"circle",3),t.qZA()),2&r&&(t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===e.mode),t.uIk("viewBox",e._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[le.RF,le.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});var ak=(0,U.Z)(function n(){(0,B.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275mod=t.oAB({type:ak}),ak.\u0275inj=t.cJS({imports:[Gt.BQ,le.ez,Gt.BQ]});var nd=m(5113),ao=m(7429),s2e=["tooltip"],eie="tooltip-panel",tie=(0,bi.i$)({passive:!0});var nie=new t.OlP("mat-tooltip-scroll-strategy");var d2e={provide:nie,deps:[Li.aV],useFactory:function c2e(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},f2e=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function p2e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var kB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y){var L=this;(0,B.Z)(this,n),this._overlay=r,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=g,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 On.xQ,this._scrollStrategy=d,this._document=y,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),h.change.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){L._overlayRef&&L._updatePosition(L._overlayRef)})}return(0,U.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,En.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,En.su)(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},{key:"message",get:function(){return this._message},set:function(e){var i=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){i._ariaDescriber.describe(i._elementRef.nativeElement,i.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Ir.R)(this._destroyed)).subscribe(function(i){i?"keyboard"===i&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,tie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var o,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(this.disabled||!this.message||this._isTooltipVisible())null===(o=this._tooltipInstance)||void 0===o||o._cancelPendingAnimations();else{var a=this._createOverlay();this._detach(),this._portal=this._portal||new ao.C5(this._tooltipComponent,this._viewContainerRef);var s=this._tooltipInstance=a.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe((0,Ir.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay,i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}},{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 i,e=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Ir.R)(this._destroyed)).subscribe(function(s){e._updateCurrentPositionClass(s.connectionPair),e._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(eie),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Ir.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Ir.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Ir.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Tr.hY&&!(0,Tr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),!(null===(i=this._defaultOptions)||void 0===i)&&i.disableTooltipInteractivity&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var i=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),a.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),a.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});var a=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a.x,originY:a.y}}}},{key:"_getOverlayPosition",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});var a=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a.x,overlayY:a.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1),(0,Ir.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}},{key:"_updateCurrentPositionClass",value:function(e){var s,i=e.overlayY,o=e.originX,a=e.originY;if((s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===a?"above":"below")!==this._currentPosition){var l=this._overlayRef;if(l){var u="".concat(this._cssClassPrefix,"-").concat(eie,"-");l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var i,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",function(s){var l,u=s.relatedTarget;(!u||null===(l=e._overlayRef)||void 0===l||!l.overlayElement.contains(u))&&e.hide()}],["wheel",function(s){return e._wheelListener(s)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var a=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};o.push(["touchend",a],["touchcancel",a])}this._addListeners(o),(i=this._passiveListeners).push.apply(i,o)}}},{key:"_addListeners",value:function(e){var i=this;e.forEach(function(o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,tie)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}]),n}();kB.\u0275fac=function(r){t.$Z()},kB.\u0275dir=t.lG2({type:kB,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var mi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y,L,z){var q;return(0,B.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,y,L,z))._tooltipComponent=ED,q}return(0,U.Z)(e)}(kB);mi.\u0275fac=function(r){return new(r||mi)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(bi.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(nie),t.Y36(nl.Is,8),t.Y36(f2e,8),t.Y36(le.K0))},mi.\u0275dir=t.lG2({type:mi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var SD=function(){function n(r,e){(0,B.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new On.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,U.Z)(n,[{key:"show",value:function(e){var i=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){i._toggleVisibility(!0),i._showTimeoutId=void 0},e)}},{key:"hide",value:function(e){var i=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){i._toggleVisibility(!1),i._hideTimeoutId=void 0},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(e){var i=e.relatedTarget;(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(e){var i=e.animationName;(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}},{key:"_cancelPendingAnimations",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}},{key:"_finalizeAnimation",value:function(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(e){var i=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:o),i.classList.add(e?o:a),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}]),n}();SD.\u0275fac=function(r){return new(r||SD)(t.Y36(t.sBO),t.Y36(t.QbO,8))},SD.\u0275dir=t.lG2({type:SD});var ED=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(nd.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,U.Z)(e)}(SD);ED.\u0275fac=function(r){return new(r||ED)(t.Y36(t.sBO),t.Y36(nd.Yg),t.Y36(t.QbO,8))},ED.\u0275cmp=t.Xpm({type:ED,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(s2e,7),2&r)&&(t.iGM(i=t.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&t.Udp("zoom",e.isVisible()?1:null)},features:[t.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(t.TgZ(0,"div",0,1),t.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),t.ALo(2,"async"),t._uU(3),t.qZA()),2&r)&&(t.ekj("mat-tooltip-handset",null==(i=t.lcZ(2,4,e._isHandset))?null:i.matches),t.Q6J("ngClass",e.tooltipClass),t.xp6(3),t.Oqu(e.message))},dependencies:[le.mk,le.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});var G0=(0,U.Z)(function n(){(0,B.Z)(this,n)});G0.\u0275fac=function(r){return new(r||G0)},G0.\u0275mod=t.oAB({type:G0}),G0.\u0275inj=t.cJS({providers:[d2e],imports:[Yr.rt,le.ez,Li.U8,Gt.BQ,Gt.BQ,sa.ZD]});(0,Zt.X$)("state",[(0,Zt.SB)("initial, void, hidden",(0,Zt.oB)({opacity:0,transform:"scale(0)"})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)"})),(0,Zt.eR)("* => visible",(0,Zt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Zt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Zt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Zt.eR)("* => hidden",(0,Zt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({opacity:0})))]);function h2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function m2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),t._uU(3,"error_outline"),t.qZA()(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div")(7,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refresh())}),t.TgZ(8,"mat-icon"),t._uU(9,"refresh"),t.qZA()(),t.TgZ(10,"button",9)(11,"mat-icon"),t._uU(12,"home"),t.qZA()()()()}if(2&n){var i=t.oxw(2);t.xp6(5),t.hij("Error occurred: ",i.error.message,"")}}function _2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,h2e,2,0,"div",2),t.YNc(2,m2e,13,1,"div",3),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.visible&&!e.error),t.xp6(1),t.Q6J("ngIf",e.error)}}var z0=function(){function n(r,e){(0,B.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.state.subscribe(function(i){e.visible=i.visible,i.error&&!e.error&&(e.error=i.error),i.clear&&(e.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){e.progressService.clear()})}},{key:"refresh",value:function(){this.router.navigateByUrl(this.router.url)}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}}]),n}();z0.\u0275fac=function(r){return new(r||z0)(t.Y36(El),t.Y36(ur))},z0.\u0275cmp=t.Xpm({type:z0,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(r,e){1&r&&t.YNc(0,_2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[le.O5,$o,fn,Dn,ou,mi],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;inset:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]});var xD=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.activate(),setTimeout(function(){var i;i=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):"https:"==e.document.location.protocol?443:80,e.controllerService.getLocalController(e.document.location.hostname,i).then(function(o){e.router.navigate(["/controller",o.id,"projects"]),e.progressService.deactivate()})},100)}}]),n}();xD.\u0275fac=function(r){return new(r||xD)(t.Y36(ur),t.Y36(or),t.Y36(El),t.Y36(le.K0))},xD.\u0275cmp=t.Xpm({type:xD,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[z0]});function wi(n,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{d(i.next(h))}catch(g){s(g)}}function u(h){try{d(i.throw(h))}catch(g){s(g)}}function d(h){h.done?a(h.value):function o(a){return a instanceof e?a:new e(function(s){s(a)})}(h.value).then(l,u)}d((i=i.apply(n,r||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var Dp=function(){function n(){(0,B.Z)(this,n),this.dataChange=new Qi.X([])}return(0,U.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addController",value:function(e){var i=this.data.slice();i.push(e),this.dataChange.next(i)}},{key:"addControllers",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}},{key:"find",value:function(e){return this.data.find(function(i){return i.name===e})}},{key:"findIndex",value:function(e){return this.data.findIndex(function(i){return i.name===e})}},{key:"update",value:function(e){var i=this.findIndex(e.name);i>=0&&(this.data[i]=e,this.dataChange.next(this.data.slice()))}}]),n}();function U2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.action())}),t._uU(2),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Oqu(i.data.action)}}function H2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var HG=new t.OlP("MatSnackBarData"),TB=(0,U.Z)(function n(){(0,B.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),j2e=Math.pow(2,31)-1,MB=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this._overlayRef=e,this._afterDismissed=new On.xQ,this._afterOpened=new On.xQ,this._onAction=new On.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,U.Z)(n,[{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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(e,j2e))}},{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}}]),n}(),AD=function(){function n(r,e){(0,B.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,U.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();AD.\u0275fac=function(r){return new(r||AD)(t.Y36(MB),t.Y36(HG))},AD.\u0275cmp=t.Xpm({type:AD,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span",0),t._uU(1),t.qZA(),t.YNc(2,U2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[le.O5,fn],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0});var G2e={snackBarState:(0,Zt.X$)("state",[(0,Zt.SB)("void, hidden",(0,Zt.oB)({transform:"scale(0.8)",opacity:0})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)",opacity:1})),(0,Zt.eR)("* => visible",(0,Zt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Zt.eR)("* => void, * => hidden",(0,Zt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Zt.oB)({opacity:0})))])},OD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,B.Z)(this,e),(u=r.call(this))._ngZone=i,u._elementRef=o,u._changeDetectorRef=a,u._platform=s,u.snackBarConfig=l,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new On.xQ,u._onExit=new On.xQ,u._onEnter=new On.xQ,u._animationState="void",u.attachDomPortal=function(d){u._assertNotAttached();var h=u._portalOutlet.attachDomPortal(d);return u._afterPortalAttached(),h},"assertive"!==l.politeness||l.announcementMessage?"off"===l.politeness?u._live="off":u._live="polite":u._live="assertive",u._platform.FIREFOX&&("polite"===u._live&&(u._role="status"),"assertive"===u._live&&(u._role="alert")),u}return(0,U.Z)(e,[{key:"attachComponentPortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._afterPortalAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._afterPortalAttached(),a}},{key:"onAnimationEnd",value:function(o){var a=o.fromState,s=o.toState;if(("void"===s&&"void"!==a||"hidden"===s)&&this._completeExit(),"visible"===s){var l=this._onEnter;this._ngZone.run(function(){l.next(),l.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var o=this;return this._ngZone.run(function(){o._animationState="hidden",o._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(o._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var o=this;this._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_afterPortalAttached",value:function(){var o=this._elementRef.nativeElement,a=this.snackBarConfig.panelClass;a&&(Array.isArray(a)?a.forEach(function(s){return o.classList.add(s)}):o.classList.add(a))}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var o=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){o._announceTimeoutId=setTimeout(function(){var a=o._elementRef.nativeElement.querySelector("[aria-hidden]"),s=o._elementRef.nativeElement.querySelector("[aria-live]");if(a&&s){var l=null;o._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(l=document.activeElement),a.removeAttribute("aria-hidden"),s.appendChild(a),null==l||l.focus(),o._onAnnounce.next(),o._onAnnounce.complete()}},o._announceDelay)})}}]),e}(ao.en);OD.\u0275fac=function(r){return new(r||OD)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bi.t4),t.Y36(TB))},OD.\u0275dir=t.lG2({type:OD,viewQuery:function(r,e){var i;(1&r&&t.Gf(ao.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var sk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"_afterPortalAttached",this).call(this),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}]),e}(OD);sk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sk)))(e||sk)}}(),sk.\u0275cmp=t.Xpm({type:sk,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&t.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&t.d8E("@state",e._animationState)},features:[t.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.YNc(1,H2e,0,0,"ng-template",1),t.qZA(),t._UZ(2,"div")),2&r&&(t.xp6(2),t.uIk("aria-live",e._live)("role",e._role))},dependencies:[ao.Pl],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%}"],encapsulation:2,data:{animation:[G2e.snackBarState]}});var W0=(0,U.Z)(function n(){(0,B.Z)(this,n)});W0.\u0275fac=function(r){return new(r||W0)},W0.\u0275mod=t.oAB({type:W0}),W0.\u0275inj=t.cJS({imports:[Li.U8,ao.eL,le.ez,pm,Gt.BQ,Gt.BQ]});var iie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function z2e(){return new TB}});var V0=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,U.Z)(n,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,i){return this._attach(e,i)}},{key:"openFromTemplate",value:function(e,i){return this._attach(e,i)}},{key:"open",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=Object.assign(Object.assign({},this._defaultConfig),o);return a.data={message:e,action:i},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=t.zs3.create({parent:o||this._injector,providers:[{provide:TB,useValue:i}]}),s=new ao.C5(this.snackBarContainerComponent,i.viewContainerRef,a),l=e.attach(s);return l.instance.snackBarConfig=i,l.instance}},{key:"_attach",value:function(e,i){var o=this,a=Object.assign(Object.assign(Object.assign({},new TB),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new MB(l,s);if(e instanceof t.Rgc){var d=new ao.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new ao.C5(e,void 0,h),y=l.attachComponentPortal(g);u.instance=y.instance}return this._breakpointObserver.observe(nd.u3.HandsetPortrait).pipe((0,Ir.R)(s.detachments())).subscribe(function(L){s.overlayElement.classList.toggle(o.handsetCssClass,L.matches)}),a.announcementMessage&&l._onAnnounce.subscribe(function(){o._live.announce(a.announcementMessage,a.politeness)}),this._animateSnackBar(u,a),this._openedSnackBarRef=u,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,i){var o=this;e.afterDismissed().subscribe(function(){o._openedSnackBarRef==e&&(o._openedSnackBarRef=null),i.announcementMessage&&o._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(e){var i=new Li.X_;i.direction=e.direction;var o=this._overlay.position().global(),a="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!a||"end"===e.horizontalPosition&&a,l=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return t.zs3.create({parent:o||this._injector,providers:[{provide:MB,useValue:i},{provide:HG,useValue:e.data}]})}}]),n}();V0.\u0275fac=function(r){return new(r||V0)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(V0,12),t.LFG(iie))},V0.\u0275prov=t.Yz7({token:V0,factory:V0.\u0275fac});var rd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,B.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=AD,d.snackBarContainerComponent=sk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,U.Z)(e)}(V0);rd.\u0275fac=function(r){return new(r||rd)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(rd,12),t.LFG(iie))},rd.\u0275prov=t.Yz7({token:rd,factory:rd.\u0275fac,providedIn:W0});var Zn=function(){function n(r,e){(0,B.Z)(this,n),this.snackbar=r,this.zone=e,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return(0,U.Z)(n,[{key:"error",value:function(e){var i=this;console.error(e),this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForError)})}},{key:"warning",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForWarning)})}},{key:"success",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForSuccess)})}}]),n}();Zn.\u0275fac=function(r){return new(r||Zn)(t.LFG(rd),t.LFG(t.R0b))},Zn.\u0275prov=t.Yz7({token:Zn,factory:Zn.\u0275fac});var kn=m(7322),W2e=["*",[["mat-card-footer"]]],Y2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],q2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Y0=(0,U.Z)(function n(){(0,B.Z)(this,n)});Y0.\u0275fac=function(r){return new(r||Y0)},Y0.\u0275dir=t.lG2({type:Y0,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var lk=(0,U.Z)(function n(){(0,B.Z)(this,n)});lk.\u0275fac=function(r){return new(r||lk)},lk.\u0275dir=t.lG2({type:lk,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var uk=(0,U.Z)(function n(){(0,B.Z)(this,n)});uk.\u0275fac=function(r){return new(r||uk)},uk.\u0275dir=t.lG2({type:uk,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var ID=(0,U.Z)(function n(){(0,B.Z)(this,n),this.align="start"});ID.\u0275fac=function(r){return new(r||ID)},ID.\u0275dir=t.lG2({type:ID,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var SB=(0,U.Z)(function n(){(0,B.Z)(this,n)});SB.\u0275fac=function(r){return new(r||SB)},SB.\u0275dir=t.lG2({type:SB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var EB=(0,U.Z)(function n(){(0,B.Z)(this,n)});EB.\u0275fac=function(r){return new(r||EB)},EB.\u0275dir=t.lG2({type:EB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var xB=(0,U.Z)(function n(){(0,B.Z)(this,n)});xB.\u0275fac=function(r){return new(r||xB)},xB.\u0275dir=t.lG2({type:xB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var DB=(0,U.Z)(function n(){(0,B.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var AB=(0,U.Z)(function n(){(0,B.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var OB=(0,U.Z)(function n(){(0,B.Z)(this,n)});OB.\u0275fac=function(r){return new(r||OB)},OB.\u0275dir=t.lG2({type:OB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var IB=(0,U.Z)(function n(){(0,B.Z)(this,n)});IB.\u0275fac=function(r){return new(r||IB)},IB.\u0275dir=t.lG2({type:IB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var ci=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._animationMode=r});ci.\u0275fac=function(r){return new(r||ci)(t.Y36(t.QbO,8))},ci.\u0275cmp=t.Xpm({type:ci,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(W2e),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0});var PB=(0,U.Z)(function n(){(0,B.Z)(this,n)});PB.\u0275fac=function(r){return new(r||PB)},PB.\u0275cmp=t.Xpm({type:PB,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(r,e){1&r&&(t.F$t(Y2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var RB=(0,U.Z)(function n(){(0,B.Z)(this,n)});RB.\u0275fac=function(r){return new(r||RB)},RB.\u0275cmp=t.Xpm({type:RB,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],decls:4,vars:0,template:function(r,e){1&r&&(t.F$t(q2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ck=(0,U.Z)(function n(){(0,B.Z)(this,n)});ck.\u0275fac=function(r){return new(r||ck)},ck.\u0275mod=t.oAB({type:ck}),ck.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var Q2e=m(7568),oie=(0,bi.i$)({passive:!0}),K0=function(){function n(r,e){(0,B.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,U.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return I0.E;var o=(0,En.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new On.xQ,l="cdk-text-field-autofilled",u=function(h){"cdk-text-field-autofill-start"!==h.animationName||o.classList.contains(l)?"cdk-text-field-autofill-end"===h.animationName&&o.classList.contains(l)&&(o.classList.remove(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!1})})):(o.classList.add(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){o.addEventListener("animationstart",u,oie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,oie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,En.fI)(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(i,o){return e.stopMonitoring(o)})}}]),n}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(bi.t4),t.LFG(t.R0b))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac,providedIn:"root"});var LB=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe(function(i){return e.cdkAutofill.emit(i)})}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),n}();LB.\u0275fac=function(r){return new(r||LB)(t.Y36(t.SBq),t.Y36(K0))},LB.\u0275dir=t.lG2({type:LB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var ZB=function(){function n(r,e,i,o){var a=this;(0,B.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new On.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=function(s){a._hasFocus="focus"===s.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}return(0,U.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,En.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,En.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,En.Ig)(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var i=e._getWindow();(0,Xf.R)(i,"resize").pipe((0,Q2e.e)(16),(0,Ir.R)(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)}),e._textareaElement.addEventListener("focus",e._handleFocusEvent),e._textareaElement.addEventListener("blur",e._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){var e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,a=o&&this._hasFocus,s=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom="".concat(e.clientHeight,"px")),e.classList.add(s);var l=e.scrollHeight-4;return e.classList.remove(s),a&&(e.style.marginBottom=i),l}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight){if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var o=this._elementRef.nativeElement,a=o.value;if(i||this._minRows!==this._previousMinRows||a!==this._previousValue){var s=this._measureScrollHeight(),l=Math.max(s,this._cachedPlaceholderHeight||0);o.style.height="".concat(l,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(o)}):setTimeout(function(){return e._scrollToCaretPosition(o)})}),this._previousValue=a,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var i=e.selectionStart,o=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}}]),n}();ZB.\u0275fac=function(r){return new(r||ZB)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(le.K0,8))},ZB.\u0275dir=t.lG2({type:ZB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&t.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var q0=(0,U.Z)(function n(){(0,B.Z)(this,n)});q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275mod=t.oAB({type:q0}),q0.\u0275inj=t.cJS({});var X2e=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),$2e=["button","checkbox","file","hidden","image","radio","range","reset","submit"],eAe=0,tAe=(0,Gt.FD)(function(){return(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),qn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y){var L;(0,B.Z)(this,e),(L=r.call(this,u,s,l,a))._elementRef=i,L._platform=o,L._autofillMonitor=h,L._formField=y,L._uid="mat-input-".concat(eAe++),L.focused=!1,L.stateChanges=new On.xQ,L.controlType="mat-input",L.autofilled=!1,L._disabled=!1,L._type="text",L._readonly=!1,L._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,bi.qK)().has(re)}),L._iOSKeyupListener=function(re){var ae=re.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var z=L._elementRef.nativeElement,q=z.nodeName.toLowerCase();return L._inputValueAccessor=d||z,L._previousNativeValue=L.value,L.id=L.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",L._iOSKeyupListener)}),L._isServer=!L._platform.isBrowser,L._isNativeSelect="select"===q,L._isTextarea="textarea"===q,L._isInFormField=!!y,L._isNativeSelect&&(L.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),L}return(0,U.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(o){this._id=o||this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,En.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,bi.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(o){o!==this.value&&(this._inputValueAccessor.value=o,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(o){this._readonly=(0,En.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(a){o.autofilled=a.isAutofilled,o.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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(o){this._elementRef.nativeElement.focus(o)}},{key:"_focusChanged",value:function(o){o!==this.focused&&(this.focused=o,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var o,a=this._formField,s=!a||"legacy"!==a.appearance||null!==(o=a._hasLabel)&&void 0!==o&&o.call(a)?this.placeholder:null;if(s!==this._previousPlaceholder){var l=this._elementRef.nativeElement;this._previousPlaceholder=s,s?l.setAttribute("placeholder",s):l.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var o=this._elementRef.nativeElement.value;this._previousNativeValue!==o&&(this._previousNativeValue=o,this.stateChanges.next())}},{key:"_validateType",value:function(){$2e.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var o=this._elementRef.nativeElement.validity;return o&&o.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var o=this._elementRef.nativeElement,a=o.options[0];return this.focused||o.multiple||!this.empty||!!(o.selectedIndex>-1&&a&&a.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var o=this._elementRef.nativeElement;return this._isNativeSelect&&(o.multiple||o.size>1)}}]),e}(tAe);qn.\u0275fac=function(r){return new(r||qn)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Gt.rD),t.Y36(X2e,10),t.Y36(K0),t.Y36(t.R0b),t.Y36(kn.G_,8))},qn.\u0275dir=t.lG2({type:qn,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(t.Ikx("disabled",e.disabled)("required",e.required),t.uIk("id",e.id)("data-placeholder",e.placeholder)("name",e.name||null)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),t.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:kn.Eo,useExisting:qn}]),t.qOj,t.TTD]});var dk=(0,U.Z)(function n(){(0,B.Z)(this,n)});dk.\u0275fac=function(r){return new(r||dk)},dk.\u0275mod=t.oAB({type:dk}),dk.\u0275inj=t.cJS({providers:[Gt.rD],imports:[q0,kn.lN,Gt.BQ,q0,kn.lN]});var di=m(4107);function nAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function rAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}function iAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var PD=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.controllerService=r,this.controllerDatabase=e,this.route=i,this.router=o,this.toasterService=a,this.controllerOptionsVisibility=!1,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),protocol:new J.p4("http:")})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i=this;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return wi(i,void 0,void 0,Rn().mark(function l(){return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s&&this.getControllers();case 1:case"end":return d.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var o,a,i=this;return Rn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.controllerIp=this.route.snapshot.paramMap.get("controller_ip"),this.controllerPort=+this.route.snapshot.paramMap.get("controller_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),l.next=5,this.controllerService.findAll();case 5:o=l.sent,(a=o.filter(function(u){return u.host===i.controllerIp&&u.port===i.controllerPort})[0])?this.router.navigate(["/controller",a.id,"project",this.projectId]):this.controllerOptionsVisibility=!0;case 8:case"end":return l.stop()}},e,this)}))}},{key:"createController",value:function(){var e=this;if(this.controllerForm.get("name").hasError||this.controllerForm.get("location").hasError||this.controllerForm.get("protocol").hasError){var i=new bB;i.host=this.controllerIp,i.port=this.controllerPort,i.name=this.controllerForm.get("name").value,i.location=this.controllerForm.get("location").value,i.protocol=this.controllerForm.get("protocol").value,this.controllerService.create(i).then(function(o){e.router.navigate(["/controller",o.id,"project",e.projectId])})}else this.toasterService.error("Please use correct values")}}]),n}();PD.\u0275fac=function(r){return new(r||PD)(t.Y36(or),t.Y36(Dp),t.Y36(dr),t.Y36(ur),t.Y36(Zn))},PD.\u0275cmp=t.Xpm({type:PD,selectors:[["app-direct-link"]],decls:20,vars:5,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Add new controller"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),t._UZ(9,"input",7),t.YNc(10,nAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,rAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,iAe,2,2,"mat-option",10),t.qZA()()()(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("click",function(){return e.createController()}),t._uU(19,"Add controller"),t.qZA()()()()),2&r&&(t.Q6J("hidden",!e.controllerOptionsVisibility),t.xp6(7),t.Q6J("formGroup",e.controllerForm),t.xp6(3),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(3),t.Q6J("ngForOf",e.locations),t.xp6(3),t.Q6J("ngForOf",e.protocols))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,ci,qn,di.gD,Gt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var hm=m(4834),jG=["*"],aie='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',oAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sAe=["text"];function lAe(n,r){if(1&n&&t._UZ(0,"mat-pseudo-checkbox",5),2&n){var e=t.oxw();t.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var uAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],sie=(0,Gt.Id)((0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),dAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),lie=new t.OlP("MatList"),uie=new t.OlP("MatNavList"),Gs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new On.xQ,i}return(0,U.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(sie);Gs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Gs)))(e||Gs)}}(),Gs.\u0275cmp=t.Xpm({type:Gs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[t._Bn([{provide:uie,useExisting:Gs}]),t.qOj,t.TTD],ngContentSelectors:jG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0});var mm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new On.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,U.Z)(e,[{key:"_getListType",value:function(){var o=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===o?"list":"mat-action-list"===o?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(sie);mm.\u0275fac=function(r){return new(r||mm)(t.Y36(t.SBq))},mm.\u0275cmp=t.Xpm({type:mm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:lie,useExisting:mm}]),t.qOj,t.TTD],ngContentSelectors:jG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[aie],encapsulation:2,changeDetection:0});var fk=(0,U.Z)(function n(){(0,B.Z)(this,n)});fk.\u0275fac=function(r){return new(r||fk)},fk.\u0275dir=t.lG2({type:fk,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var pk=(0,U.Z)(function n(){(0,B.Z)(this,n)});pk.\u0275fac=function(r){return new(r||pk)},pk.\u0275dir=t.lG2({type:pk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var NB=(0,U.Z)(function n(){(0,B.Z)(this,n)});NB.\u0275fac=function(r){return new(r||NB)},NB.\u0275dir=t.lG2({type:NB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Oa=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,B.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new On.xQ,l._disabled=!1,l._isInteractiveList=!!(a||s&&"action-list"===s._getListType()),l._list=a||s;var u=l._getHostElement();return"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),l._list&&l._list._stateChanges.pipe((0,Ir.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),e}(dAe);Oa.\u0275fac=function(r){return new(r||Oa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(uie,8),t.Y36(lie,8))},Oa.\u0275cmp=t.Xpm({type:Oa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,fk,5),t.Suo(i,pk,5),t.Suo(i,Gt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(r,e){1&r&&(t.F$t(oAe),t.TgZ(0,"span",0),t._UZ(1,"span",1),t.Hsn(2),t.TgZ(3,"span",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},dependencies:[Gt.wG],encapsulation:2,changeDetection:0});var fAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),pAe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),hAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return hk}),multi:!0},mAe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.options=e}),RD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s.selectionList=a,s._selected=!1,s._disabled=!1,s._hasFocus=!1,s.selectedChange=new t.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,U.Z)(e,[{key:"color",get:function(){return this._color||this.selectionList.color},set:function(o){this._color=o}},{key:"value",get:function(){return this._value},set:function(o){this.selected&&!this.selectionList.compareWith(o,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=o}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(o){var a=(0,En.Ig)(o);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(o){var a=(0,En.Ig)(o);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}},{key:"ngOnInit",value:function(){var o=this,a=this.selectionList;a._value&&a._value.some(function(l){return a.compareWith(o._value,l)})&&this._setSelected(!0);var s=this._selected;Promise.resolve().then(function(){(o._selected||s)&&(o.selected=!0,o._changeDetector.markForCheck())}),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var o=this;this.selected&&Promise.resolve().then(function(){o.selected=!1});var a=this._hasFocus,s=this.selectionList._removeOptionFromList(this);a&&s&&s.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(o){return o!==this._selected&&(this._selected=o,o?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(o),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}}]),e}(pAe);RD.\u0275fac=function(r){return new(r||RD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return hk})))},RD.\u0275cmp=t.Xpm({type:RD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,fk,5),t.Suo(i,pk,5),t.Suo(i,Gt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(sAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._text=i.first))},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(t.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[t.qOj],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(r,e){1&r&&(t.F$t(uAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,lAe,1,2,"mat-pseudo-checkbox",2),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.Hsn(6,1),t.qZA()),2&r&&(t.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),t.xp6(1),t.Q6J("ngIf",e.selectionList.multiple))},dependencies:[Gt.wG,Gt.nP,le.O5],encapsulation:2,changeDetection:0});var hk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s._focusMonitor=a,s._multiple=!0,s._contentInitialized=!1,s.selectionChange=new t.vpe,s.color="accent",s.compareWith=function(l,u){return l===u},s._disabled=!1,s.selectedOptions=new Si.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new On.xQ,s._onTouched=function(){},s}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,En.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Si.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var o=this;this._contentInitialized=!0,this._keyManager=new Yr.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,Oo.O)(null),(0,Ir.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Ir.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,An.Z)(a.added);try{for(s.s();!(l=s.n()).done;){l.value.selected=!0}}catch(y){s.e(y)}finally{s.f()}}if(a.removed){var h,d=(0,An.Z)(a.removed);try{for(d.s();!(h=d.n()).done;){h.value.selected=!1}}catch(y){d.e(y)}finally{d.f()}}}),this._focusMonitor.monitor(this._element).pipe((0,Ir.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u<o.options.length;u++)if(null!==(s=o.options.get(u))&&void 0!==s&&s.selected){l=u;break}o._keyManager.setActiveItem(l)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(o){this._element.nativeElement.focus(o)}},{key:"selectAll",value:function(){return this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){return this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"_removeOptionFromList",value:function(o){var a=this._getOptionIndex(o);return a>-1&&this._keyManager.activeItemIndex===a&&(a>0?this._keyManager.updateActiveItem(a-1):0===a&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(a+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(o){var a=o.keyCode,s=this._keyManager,l=s.activeItemIndex,u=(0,Tr.Vb)(o);switch(a){case Tr.L_:case Tr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Tr.A&&this.multiple&&(0,Tr.Vb)(o,"ctrlKey")&&!s.isTyping()){var d=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(d,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Tr.LH||a===Tr.JH)&&o.shiftKey&&s.activeItemIndex!==l&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var o=this._getSelectedOptionValues();this._onChange(o),this._value=o}}},{key:"_emitChangeEvent",value:function(o){this.selectionChange.emit(new mAe(this,o))}},{key:"writeValue",value:function(o){this._value=o,this.options&&this._setOptionsFromValues(o||[])}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"_setOptionsFromValues",value:function(o){var a=this;this.options.forEach(function(s){return s._setSelected(!1)}),o.forEach(function(s){var l=a.options.find(function(u){return!u.selected&&a.compareWith(u.value,s)});l&&l._setSelected(!0)})}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter(function(o){return o.selected}).map(function(o){return o.value})}},{key:"_toggleFocusedOption",value:function(){var o=this._keyManager.activeItemIndex;if(null!=o&&this._isValidIndex(o)){var a=this.options.toArray()[o];a&&!a.disabled&&(this._multiple||!a.selected)&&(a.toggle(),this._emitChangeEvent([a]))}}},{key:"_setAllOptionsSelected",value:function(o,a,s){var l=[];return this.options.forEach(function(u){(!a||!u.disabled)&&u._setSelected(o)&&l.push(u)}),l.length&&(this._reportValueChange(),s&&this._emitChangeEvent(l)),l}},{key:"_isValidIndex",value:function(o){return o>=0&&o<this.options.length}},{key:"_getOptionIndex",value:function(o){return this.options.toArray().indexOf(o)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach(function(o){return o._markForCheck()})}},{key:"_allowFocusEscape",value:function(){var o=this;this._tabIndex=-1,setTimeout(function(){o._tabIndex=0,o._changeDetector.markForCheck()})}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}}]),e}(fAe);hk.\u0275fac=function(r){return new(r||hk)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE))},hk.\u0275cmp=t.Xpm({type:hk,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,RD,5),2&r)&&(t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&t.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[t._Bn([hAe]),t.qOj,t.TTD],ngContentSelectors:jG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[aie],encapsulation:2,changeDetection:0});var mk=(0,U.Z)(function n(){(0,B.Z)(this,n)});mk.\u0275fac=function(r){return new(r||mk)},mk.\u0275mod=t.oAB({type:mk}),mk.\u0275inj=t.cJS({imports:[Gt.uc,Gt.si,Gt.BQ,Gt.us,le.ez,Gt.uc,Gt.BQ,Gt.us,hm.t]});var _Ae=0,GG=new t.OlP("CdkAccordion"),_k=function(){function n(){(0,B.Z)(this,n),this._stateChanges=new On.xQ,this._openCloseAllActions=new On.xQ,this.id="cdk-accordion-".concat(_Ae++),this._multi=!1}return(0,U.Z)(n,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,En.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),n}();_k.\u0275fac=function(r){return new(r||_k)},_k.\u0275dir=t.lG2({type:_k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:GG,useExisting:_k}]),t.TTD]});var gAe=0,LD=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=xa.w.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-".concat(gAe++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(a,s){o.accordion&&!o.accordion.multi&&o.accordion.id===s&&o.id!==a&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,U.Z)(n,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,En.Ig)(e),this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();var i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(i){e.disabled||(e.expanded=i)})}}]),n}();LD.\u0275fac=function(r){return new(r||LD)(t.Y36(GG,12),t.Y36(t.sBO),t.Y36(Si.A8))},LD.\u0275dir=t.lG2({type:LD,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:GG,useValue:void 0}])]});var J0=(0,U.Z)(function n(){(0,B.Z)(this,n)});J0.\u0275fac=function(r){return new(r||J0)},J0.\u0275mod=t.oAB({type:J0}),J0.\u0275inj=t.cJS({});var vAe=["body"];function yAe(n,r){}var bAe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function wAe(n,r){if(1&n&&t._UZ(0,"span",2),2&n){var e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}var kAe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],zG=new t.OlP("MAT_ACCORDION"),cie="225ms cubic-bezier(0.4,0.0,0.2,1)",die={indicatorRotate:(0,Zt.X$)("indicatorRotate",[(0,Zt.SB)("collapsed, void",(0,Zt.oB)({transform:"rotate(0deg)"})),(0,Zt.SB)("expanded",(0,Zt.oB)({transform:"rotate(180deg)"})),(0,Zt.eR)("expanded <=> collapsed, void => collapsed",(0,Zt.jt)(cie))]),bodyExpansion:(0,Zt.X$)("bodyExpansion",[(0,Zt.SB)("collapsed, void",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed, void => collapsed",(0,Zt.jt)(cie))])},fie=new t.OlP("MAT_EXPANSION_PANEL"),ZD=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this._template=r,this._expansionPanel=e});ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(t.Rgc),t.Y36(fie,8))},ZD.\u0275dir=t.lG2({type:ZD,selectors:[["ng-template","matExpansionPanelContent",""]]});var MAe=0,pie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),xl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new t.vpe,h.afterCollapse=new t.vpe,h._inputChanges=new On.xQ,h._headerId="mat-expansion-panel-header-".concat(MAe++),h._bodyAnimationDone=new On.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,ts.x)(function(g,y){return g.fromState===y.fromState&&g.toState===y.toState})).subscribe(function(g){"void"!==g.fromState&&("expanded"===g.toState?h.afterExpand.emit():"collapsed"===g.toState&&h.afterCollapse.emit())}),d&&(h.hideToggle=d.hideToggle),h}return(0,U.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,En.Ig)(o)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(o){this._togglePosition=o}},{key:"_hasSpacing",value:function(){return!!this.accordion&&(this.expanded&&"default"===this.accordion.displayMode)}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var o=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,Oo.O)(null),(0,$r.h)(function(){return o.expanded&&!o._portal}),(0,Ri.q)(1)).subscribe(function(){o._portal=new ao.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var o=this._document.activeElement,a=this._body.nativeElement;return o===a||a.contains(o)}return!1}}]),e}(LD);xl.\u0275fac=function(r){return new(r||xl)(t.Y36(zG,12),t.Y36(t.sBO),t.Y36(Si.A8),t.Y36(t.s_b),t.Y36(le.K0),t.Y36(t.QbO,8),t.Y36(pie,8))},xl.\u0275cmp=t.Xpm({type:xl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,ZD,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(vAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&t.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:zG,useValue:void 0},{provide:fie,useExisting:xl}]),t.qOj,t.TTD],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(bAe),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,yAe,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),t.uIk("aria-labelledby",e._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",e._portal))},dependencies:[ao.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[die.bodyExpansion]},changeDetection:0});var BB=(0,U.Z)(function n(){(0,B.Z)(this,n)});BB.\u0275fac=function(r){return new(r||BB)},BB.\u0275dir=t.lG2({type:BB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var SAe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),au=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,B.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=xa.w.EMPTY;var g=i.accordion?i.accordion._stateChanges.pipe((0,$r.h)(function(y){return!(!y.hideToggle&&!y.togglePosition)})):I0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,Gi.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,$r.h)(function(y){return!!(y.hideToggle||y.disabled||y.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,$r.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,U.Z)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var o=this._isExpanded();return o&&this.expandedHeight?this.expandedHeight:!o&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(o){switch(o.keyCode){case Tr.L_:case Tr.K5:(0,Tr.Vb)(o)||(o.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(o))}}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._element,o,a):this._element.nativeElement.focus(a)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._element).subscribe(function(a){a&&o.panel.accordion&&o.panel.accordion._handleHeaderFocus(o)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}((0,Gt.sb)(SAe));au.\u0275fac=function(r){return new(r||au)(t.Y36(xl,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(pie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},au.\u0275cmp=t.Xpm({type:au,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),t.Udp("height",e._getHeaderHeight()),t.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(t.F$t(kAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,wAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[le.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[die.indicatorRotate]},changeDetection:0});var ND=(0,U.Z)(function n(){(0,B.Z)(this,n)});ND.\u0275fac=function(r){return new(r||ND)},ND.\u0275dir=t.lG2({type:ND,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Fu=(0,U.Z)(function n(){(0,B.Z)(this,n)});Fu.\u0275fac=function(r){return new(r||Fu)},Fu.\u0275dir=t.lG2({type:Fu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var Dl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new t.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,U.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,Oo.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(o){this._keyManager.onKeydown(o)}},{key:"_handleHeaderFocus",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(_k);Dl.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Dl)))(e||Dl)}}(),Dl.\u0275dir=t.lG2({type:Dl,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,au,5),2&r)&&(t.iGM(o=t.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:zG,useExisting:Dl}]),t.qOj]});var gk=(0,U.Z)(function n(){(0,B.Z)(this,n)});gk.\u0275fac=function(r){return new(r||gk)},gk.\u0275mod=t.oAB({type:gk}),gk.\u0275inj=t.cJS({imports:[le.ez,Gt.BQ,J0,ao.eL]});var BD=function(){function n(r){(0,B.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(i){e.thirdpartylicenses=i.replace(new RegExp("\n","g"),"<br />")},function(i){404===i.status&&(e.thirdpartylicenses="Download Solar-PuTTY")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(i){e.releasenotes=i.replace(new RegExp("\n","g"),"<br />")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();BD.\u0275fac=function(r){return new(r||BD)(t.Y36(fc.eN))},BD.\u0275cmp=t.Xpm({type:BD,selectors:[["app-help"]],decls:39,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],["href","https://downloads.solarwinds.com/solarwinds/GNS3/Solar-PuTTY/Solar-PuTTY-Optional.exe"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Help"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Useful shortcuts "),t.qZA()(),t.TgZ(11,"mat-list")(12,"mat-list-item"),t._uU(13," ctrl + + to zoom in "),t.qZA(),t.TgZ(14,"mat-list-item"),t._uU(15," ctrl + - to zoom out "),t.qZA(),t.TgZ(16,"mat-list-item"),t._uU(17," ctrl + 0 to reset zoom "),t.qZA(),t.TgZ(18,"mat-list-item"),t._uU(19," ctrl + h to hide toolbar "),t.qZA(),t.TgZ(20,"mat-list-item"),t._uU(21," ctrl + a to select all items on map "),t.qZA(),t.TgZ(22,"mat-list-item"),t._uU(23," ctrl + shift + a to deselect all items on map "),t.qZA(),t.TgZ(24,"mat-list-item"),t._uU(25," ctrl + shift + s to go to preferences "),t.qZA()()(),t.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),t._uU(29," Third party components "),t.qZA()(),t.TgZ(30,"a",4),t._UZ(31,"div",5),t.qZA()(),t.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),t._uU(35," Release notes "),t.qZA()(),t._UZ(36,"div",5),t.qZA()()(),t.TgZ(37,"button",6),t.NdJ("click",function(){return e.goToDocumentation()}),t._uU(38,"Go to documentation"),t.qZA()()()),2&r&&(t.xp6(31),t.Q6J("innerHTML",e.thirdpartylicenses,t.oJD),t.xp6(5),t.Q6J("innerHTML",e.releasenotes,t.oJD))},dependencies:[fn,mm,Oa,Dl,xl,au,Fu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}a[_ngcontent-%COMP%]{color:#f8f9fa;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400;text-decoration:none}"]});var ja=m(4766),Q0=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.Z)(n,[{key:"isWindows",value:function(){return"win32"===this.electronService.process.platform}},{key:"isLinux",value:function(){return"linux"===this.electronService.process.platform}},{key:"isDarwin",value:function(){return"darwin"===this.electronService.process.platform}}]),n}();Q0.\u0275fac=function(r){return new(r||Q0)(t.LFG(ul))},Q0.\u0275prov=t.Yz7({token:Q0,factory:Q0.\u0275fac});var X0=function(){function n(r){(0,B.Z)(this,n),this.platformService=r}return(0,U.Z)(n,[{key:"get",value:function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}},{key:"getForWindows",value:function(){var e=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}],i={name:"SolarPuTTY",locations:["SolarPuTTY.exe","external\\SolarPuTTY.exe"],type:"web",resource:"",binary:"SolarPuTTY.exe",sudo:!1,installation_arguments:["--only-ask"],installed:!1,installer:!1};return ja.N.solarputty_download_url&&(i.resource=ja.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();X0.\u0275fac=function(r){return new(r||X0)(t.LFG(Q0))},X0.\u0275prov=t.Yz7({token:X0,factory:X0.\u0275fac});var $0=function(){function n(r,e){(0,B.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,U.Z)(n,[{key:"list",value:function(){var e=this.externalSoftwareDefinition.get(),i=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(e);return e.map(function(o){return o.installed=i[o.name].length>0,o})}}]),n}();$0.\u0275fac=function(r){return new(r||$0)(t.LFG(ul),t.LFG(X0))},$0.\u0275prov=t.Yz7({token:$0,factory:$0.\u0275fac});var xAe=[[["caption"]],[["colgroup"],["col"]]];function AAe(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function OAe(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}var FD=(0,U.Z)(function n(){(0,B.Z)(this,n)});FD.\u0275fac=function(r){return new(r||FD)},FD.\u0275dir=t.lG2({type:FD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,U.Z)(e)}(zc);bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bo)))(e||bo)}}(),bo.\u0275cmp=t.Xpm({type:bo,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Si.k,useClass:Si.yy},{provide:zc,useExisting:bo},{provide:Q_,useExisting:bo},{provide:E1,useClass:Vf},{provide:yE,useValue:null}]),t.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(xAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yf,Kf,qf,Jf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var Co=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Uc);Co.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Co)))(e||Co)}}(),Co.\u0275dir=t.lG2({type:Co,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Uc,useExisting:Co}]),t.qOj]});var wo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(wl);wo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wo)))(e||wo)}}(),wo.\u0275dir=t.lG2({type:wo,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:wl,useExisting:wo}]),t.qOj]});var eb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Zd);eb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eb)))(e||eb)}}(),eb.\u0275dir=t.lG2({type:eb,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Zd,useExisting:eb}]),t.qOj]});var mo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(rl);mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(mo)))(e||mo)}}(),mo.\u0275dir=t.lG2({type:mo,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:rl,useExisting:mo},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:mo}]),t.qOj]});var Ro=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Wf);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var vk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(X_);vk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(vk)))(e||vk)}}(),vk.\u0275dir=t.lG2({type:vk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Lo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}($_);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Zo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(dc);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275dir=t.lG2({type:Zo,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:dc,useExisting:Zo}]),t.qOj]});var tb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(jc);tb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tb)))(e||tb)}}(),tb.\u0275dir=t.lG2({type:tb,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:jc,useExisting:tb}]),t.qOj]});var No=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Jl);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275dir=t.lG2({type:No,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Jl,useExisting:No}]),t.qOj]});var Bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Gh);Bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Bo)))(e||Bo)}}(),Bo.\u0275cmp=t.Xpm({type:Bo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Gh,useExisting:Bo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var nb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(zh);nb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nb)))(e||nb)}}(),nb.\u0275cmp=t.Xpm({type:nb,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:zh,useExisting:nb}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Fo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Gc);Fo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Fo)))(e||Fo)}}(),Fo.\u0275cmp=t.Xpm({type:Fo,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Gc,useExisting:Fo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var rb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,U.Z)(e)}(Ou);rb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rb)))(e||rb)}}(),rb.\u0275dir=t.lG2({type:rb,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:Ou,useExisting:rb}]),t.qOj]});var yk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Wh);yk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(yk)))(e||yk)}}(),yk.\u0275cmp=t.Xpm({type:yk,selectors:[["mat-text-column"]],features:[t.qOj],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,AAe,2,3,"th",1),t.YNc(2,OAe,2,3,"td",2),t.BQk())},dependencies:[wo,mo,Co,Ro,Lo],encapsulation:2});var bk=(0,U.Z)(function n(){(0,B.Z)(this,n)});bk.\u0275fac=function(r){return new(r||bk)},bk.\u0275mod=t.oAB({type:bk}),bk.\u0275inj=t.cJS({imports:[Qf,Gt.BQ,Gt.BQ]});var IAe=9007199254740991,PAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,B.Z)(this,e),(i=r.call(this))._renderData=new Qi.X([]),i._filter=new Qi.X(""),i._internalPageChanges=new On.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,En.t6)(l)){var u=Number(l);return u<IAe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(d,h){var g=i.sortingDataAccessor(d,l),y=i.sortingDataAccessor(h,l),L=typeof g,z=typeof y;L!==z&&("number"===L&&(g+=""),"number"===z&&(y+=""));var q=0;return null!=g&&null!=y?g>y?q=1:g<y&&(q=-1):null!=g?q=1:null!=y&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(d,h){return d+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new Qi.X(o),i._updateChangeSubscription(),i}return(0,U.Z)(e,[{key:"data",get:function(){return this._data.value},set:function(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}},{key:"filter",get:function(){return this._filter.value},set:function(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(o){this._sort=o,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(o){this._paginator=o,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var a,o=this,s=this._sort?(0,Gi.T)(this._sort.sortChange,this._sort.initialized):(0,Kn.of)(null),l=this._paginator?(0,Gi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Kn.of)(null),u=this._data,d=(0,Y1.aj)([u,this._filter]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._filterData(z)})),h=(0,Y1.aj)([d,s]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._orderData(z)})),g=(0,Y1.aj)([h,l]).pipe((0,$n.U)(function(y){var z=(0,Yn.Z)(y,1)[0];return o._pageData(z)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=g.subscribe(function(y){return o._renderData.next(y)})}},{key:"_filterData",value:function(o){var a=this;return this.filteredData=null==this.filter||""===this.filter?o:o.filter(function(s){return a.filterPredicate(s,a.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(o){return this.sort?this.sortData(o.slice(),this.sort):o}},{key:"_pageData",value:function(o){if(!this.paginator)return o;var a=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(a,a+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(o){var a=this;Promise.resolve().then(function(){var s=a.paginator;if(s&&(s.length=o,s.pageIndex>0)){var l=Math.ceil(s.length/s.pageSize)-1||0,u=Math.min(s.pageIndex,l);u!==s.pageIndex&&(s.pageIndex=u,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),e}(Si.o2),Ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(PAe);function RAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.buttonText)}}var UD=function(){function n(r){(0,B.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.on(this.responseChannel,function(i,o){e.updateButton(),e.installedChanged.emit(o)})}},{key:"ngOnDestroy",value:function(){this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)}},{key:"ngOnChanges",value:function(){this.updateButton()}},{key:"install",value:function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)}},{key:"responseChannel",get:function(){return"installed-software-installed-".concat(this.software.name)}},{key:"updateButton",value:function(){this.disabled=this.software.installed,this.software.installed?this.buttonText="Installed":this.buttonText="Install"}}]),n}();UD.\u0275fac=function(r){return new(r||UD)(t.Y36(ul))},UD.\u0275cmp=t.Xpm({type:UD,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[t.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.install()}),t.YNc(1,RAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[le.O5,fn]});var wc=m(4068),LAe=function(r,e){return{hidden:r,lightTheme:e}},ZAe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,Ck=function(){function n(r,e,i){(0,B.Z)(this,n),this.httpClient=r,this.themeService=e,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return(0,U.Z)(n,[{key:"hide",value:function(){this.isVisible=!1}},{key:"ngOnInit",value:function(){var e=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(i){var o,a;if(null!==(a=null===(o=null==i?void 0:i.placements)||void 0===o?void 0:o.placement_1)&&void 0!==a&&a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=ZAe.exec(s);e.adUrl=l[1].trim(),e.adBody=l[3].trim(),e.buttonLabel=l[4].trim()}catch(u){}e.isVisible=!0},function(i){}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.themeService.themeChanged.subscribe(function(){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1}))}}]),n}();function NAe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function BAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function FAe(n,r){1&n&&(t.ynx(0),t._UZ(1,"app-adbutler",14),t.BQk())}function UAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,BAe,2,1,"ng-container",13),t.YNc(2,FAe,2,0,"ng-container",13),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type),t.xp6(1),t.Q6J("ngIf","adbutler"===e.type)}}function HAe(n,r){1&n&&t._UZ(0,"mat-header-cell")}function jAe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-install-software",17),t.NdJ("installedChanged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onInstalled(a))}),t.qZA()}if(2&n){var i=t.oxw().$implicit;t.Q6J("software",i)}}function GAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",15),t.YNc(1,jAe,1,1,"app-install-software",16),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type)}}function zAe(n,r){1&n&&t._UZ(0,"mat-header-row")}function WAe(n,r){1&n&&t._UZ(0,"mat-row")}Ck.\u0275fac=function(r){return new(r||Ck)(t.Y36(fc.eN),t.Y36(wc.f),t.Y36(le.Ye))},Ck.\u0275cmp=t.Xpm({type:Ck,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),t._uU(4),t.qZA()(),t.TgZ(5,"button")(6,"a",3),t._uU(7),t.qZA()()(),t.TgZ(8,"mat-icon",4),t.NdJ("click",function(){return e.hide()}),t._uU(9,"close"),t.qZA()()),2&r&&(t.Q6J("ngClass",t.WLB(5,LAe,!e.isVisible,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.adBody),t.xp6(2),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.buttonLabel))},dependencies:[le.mk,Dn],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:700;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:700;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]});var HD=function(){function n(r,e){(0,B.Z)(this,n),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.dataSource=new VAe(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),n}();HD.\u0275fac=function(r){return new(r||HD)(t.Y36($0),t.Y36(t.sBO))},HD.\u0275cmp=t.Xpm({type:HD,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Installed software"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),t.ynx(8,6),t.YNc(9,NAe,2,0,"mat-header-cell",7),t.YNc(10,UAe,3,2,"mat-cell",8),t.BQk(),t.ynx(11,9),t.YNc(12,HAe,1,0,"mat-header-cell",7),t.YNc(13,GAe,2,1,"mat-cell",10),t.BQk(),t.YNc(14,zAe,1,0,"mat-header-row",11),t.YNc(15,WAe,1,0,"mat-row",12),t.qZA()()()()),2&r&&(t.xp6(6),t.Q6J("dataSource",e.dataSource),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[le.O5,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,UD,Ck]});var VAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new Qi.X([]),o}return(0,U.Z)(e,[{key:"connect",value:function(){return this.refresh(),this.installed}},{key:"disconnect",value:function(){}},{key:"refresh",value:function(){var o=this.installedSoftwareService.list();o.push({type:"adbutler"}),this.installed.next(o)}}]),e}(Si.o2),_m=(m(5561),function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.controller_id=""}return(0,U.Z)(n,[{key:"login",value:function(e,i,o){var a=(new fc.LE).set("username",i).set("password",o),s={headers:(new fc.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/access/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return wi(this,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/access/users/authenticate",{username:i.username,password:i.password}).toPromise();case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o,this)}))}}]),n}());_m.\u0275fac=function(r){return new(r||_m)(t.LFG(ho.zw))},_m.\u0275prov=t.Yz7({token:_m,factory:_m.\u0275fac});var gm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),n}();gm.\u0275fac=function(r){return new(r||gm)(t.LFG(ho.zw))},gm.\u0275prov=t.Yz7({token:gm,factory:gm.\u0275fac});var FB=m(7144),YAe=["input"],KAe=["label"],qAe=function(r){return{enterDuration:r}},QAe=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:hie});function hie(){return{color:"accent",clickAction:"check-indeterminate"}}var XAe=0,mie={color:"accent",clickAction:"check-indeterminate"},$Ae={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ti}),multi:!0},eOe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),tOe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}())))),UB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,o))._changeDetectorRef=a,h._ngZone=s,h._animationMode=u,h._options=d,h.ariaLabel="",h.ariaLabelledby=null,h.labelPosition="after",h.name=null,h.change=new t.vpe,h.indeterminateChange=new t.vpe,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||mie,h.color=h.defaultColor=h._options.color||mie.color,h.tabIndex=parseInt(l)||0,h.id=h._uniqueId="".concat(i).concat(++XAe),h}return(0,U.Z)(e,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,En.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,En.Ig)(o);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(o){var a=o!=this._indeterminate;this._indeterminate=(0,En.Ig)(o),a&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._controlValueAccessorChangeFn=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(o){var a=this._currentCheckState,s=this._getAnimationTargetElement();if(a!==o&&s&&(this._currentAnimationClass&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(a,o),this._currentCheckState=o,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var l=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(l)},1e3)})}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_handleInputClick",value:function(){var a,o=this,s=null===(a=this._options)||void 0===a?void 0:a.clickAction;this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_onBlur",value:function(){var o=this;Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";switch(o){case 0:if(1===a)return this._animationClasses.uncheckedToChecked;if(3==a)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===a?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===a?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===a?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(tOe);UB.\u0275fac=function(r){t.$Z()},UB.\u0275dir=t.lG2({type:UB,viewQuery:function(r,e){var i;(1&r&&(t.Gf(YAe,5),t.Gf(KAe,5),t.Gf(Gt.wG,5)),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first),t.iGM(i=t.CRH())&&(e._labelElement=i.first),t.iGM(i=t.CRH())&&(e.ripple=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]});var ti=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,"mat-checkbox-",i,o,s,l,u,d))._focusMonitor=a,h._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"},h}return(0,U.Z)(e,[{key:"_createChangeEvent",value:function(o){var a=new eOe;return a.source=this,a.checked=o,a}},{key:"_getAnimationTargetElement",value:function(){return this._elementRef.nativeElement}},{key:"ngAfterViewInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||o._onBlur()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onInputClick",value:function(o){o.stopPropagation(),(0,Ut.Z)((0,Wt.Z)(e.prototype),"_handleInputClick",this).call(this)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}}]),e}(UB);ti.\u0275fac=function(r){return new(r||ti)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(QAe,8))},ti.\u0275cmp=t.Xpm({type:ti,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([$Ae]),t.qOj],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(13);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),t.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,qAe,"NoopAnimations"===e._animationMode?0:150))}},dependencies:[Gt.wG,FB.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});var nOe={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return wk}),multi:!0},wk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(J.Zs);wk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wk)))(e||wk)}}(),wk.\u0275dir=t.lG2({type:wk,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[t._Bn([nOe]),t.qOj]});var ib=(0,U.Z)(function n(){(0,B.Z)(this,n)});ib.\u0275fac=function(r){return new(r||ib)},ib.\u0275mod=t.oAB({type:ib}),ib.\u0275inj=t.cJS({});var ob=(0,U.Z)(function n(){(0,B.Z)(this,n)});function rOe(n,r){1&n&&t._UZ(0,"mat-icon",15)}function iOe(n,r){1&n&&t._UZ(0,"mat-icon",16)}function oOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter username"),t.qZA())}function aOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter password"),t.qZA())}function sOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Authentication was unsuccessful"),t.qZA())}ob.\u0275fac=function(r){return new(r||ob)},ob.\u0275mod=t.oAB({type:ob}),ob.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,FB.Q8,ib,Gt.BQ,ib]});var jD=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.loginService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.router=a,this.toasterService=s,this.versionService=l,this.themeService=u,this.isLightThemeEnabled=!1,this.loginError=!1,this.returnUrl="",this.isRememberMe=!1,this.isRememberMeCheked=!1,this.loginForm=new J.nJ({username:new J.p4("",[J.kI.required]),password:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e;return wi(this,void 0,void 0,Rn().mark(function i(){var a,s,o=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=this.route.snapshot.paramMap.get("controller_id"),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.controllerService.get(parseInt(a,10)).then(function(d){o.controller=d,d.authToken&&o.router.navigate(["/controller",o.controller.id,"projects"]),o.versionService.get(o.controller).subscribe(function(h){o.version=h.version})}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,(s=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null)&&s.isRememberMe&&(this.loginForm.get("username").setValue(s.username),this.loginForm.get("password").setValue(s.password),this.isRememberMeCheked=s.isRememberMe);case 6:case"end":return u.stop()}},i,this)}))}},{key:"login",value:function(){var e=this;if(this.loginForm.get("username").invalid||this.loginForm.get("password").invalid)this.toasterService.error("Please enter username and password");else{var i=this.loginForm.get("username").value,o=this.loginForm.get("password").value;this.loginService.login(this.controller,i,o).subscribe(function(a){return wi(e,void 0,void 0,Rn().mark(function s(){var l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,d.next=7,this.controllerService.update(l);case 7:this.returnUrl.length<=1?this.router.navigate(["/controller",this.controller.id,"projects"]):this.router.navigateByUrl(this.returnUrl);case 8:case"end":return d.stop()}},s,this)}))},function(a){e.loginError=!0})}}},{key:"rememberMe",value:function(e){if(e.checked){var i={username:this.loginForm.get("username").value,password:this.loginForm.get("password").value,isRememberMe:e.checked};this.isRememberMeCheked=e.checked,localStorage.setItem("isRememberMe",JSON.stringify(i))}else localStorage.removeItem("isRememberMe"),this.loginForm.reset(),this.isRememberMe=e.checked}},{key:"ngDoCheck",value:function(){this.loginForm.get("username").valid&&this.loginForm.get("password").valid&&(this.isRememberMe=!0)}}]),n}();jD.\u0275fac=function(r){return new(r||jD)(t.Y36(_m),t.Y36(or),t.Y36(Dp),t.Y36(dr),t.Y36(ur),t.Y36(Zn),t.Y36(gm),t.Y36(wc.f))},jD.\u0275cmp=t.Xpm({type:jD,selectors:[["app-login"]],decls:26,vars:9,consts:[[1,"wrapper"],[1,"loginCard"],[1,"matCard"],[1,"loginTitle"],[1,"loginIcon"],["class","mat-icon-login","svgIcon","gns3",4,"ngIf"],["class","mat-icon-login","svgIcon","gns3black",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","password","formControlName","password","placeholder","Password"],["color","primary",1,"margin-left",3,"disabled","checked","change"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"loginButton",3,"click"],[1,"errorMessage"],["svgIcon","gns3",1,"mat-icon-login"],["svgIcon","gns3black",1,"mat-icon-login"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),t.YNc(5,rOe,1,0,"mat-icon",5),t.YNc(6,iOe,1,0,"mat-icon",6),t.TgZ(7,"div")(8,"h1"),t._uU(9,"GNS3"),t.qZA(),t.TgZ(10,"h6"),t._uU(11),t.qZA()()()(),t.TgZ(12,"form",7)(13,"mat-form-field"),t._UZ(14,"input",8),t.YNc(15,oOe,2,0,"mat-error",9),t.qZA(),t.TgZ(16,"mat-form-field"),t._UZ(17,"input",10),t.YNc(18,aOe,2,0,"mat-error",9),t.qZA()(),t.TgZ(19,"mat-checkbox",11),t.NdJ("change",function(o){return e.rememberMe(o)}),t._uU(20,"Remember me"),t.qZA(),t.TgZ(21,"div",12)(22,"button",13),t.NdJ("click",function(){return e.login()}),t._uU(23,"Login"),t.qZA()()(),t.TgZ(24,"div",14),t.YNc(25,sOe,2,0,"mat-error",9),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(5),t.hij("v",e.version,""),t.xp6(1),t.Q6J("formGroup",e.loginForm),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("username").hasError("required")),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("password").hasError("required")),t.xp6(1),t.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeCheked),t.xp6(6),t.Q6J("ngIf",e.loginError))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,ci,Dn,qn,ti],styles:["mat-form-field{width:100%}.wrapper{display:flex;justify-content:center}.loginCard{width:540px}.mat-icon-login{height:100px!important;width:100px!important}.loginTitle{display:flex;justify-content:center}.loginIcon{display:flex;align-items:center}.loginButton{width:100%}.errorMessage{display:flex;justify-content:center;margin-top:20px}.margin-left{margin-left:5px}\n"],encapsulation:2});var GD=(0,U.Z)(function n(){(0,B.Z)(this,n)});GD.\u0275fac=function(r){return new(r||GD)},GD.\u0275cmp=t.Xpm({type:GD,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/controllers"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"br"),t.TgZ(3,"h1"),t._uU(4,"404 Page not found"),t.qZA(),t.TgZ(5,"button",2),t._uU(6,"Navigate to homepage"),t.qZA()()())},dependencies:[$o,fn],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var zD=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();zD.\u0275fac=function(r){return new(r||zD)(t.Y36(dr))},zD.\u0275cmp=t.Xpm({type:zD,selectors:[["app-built-in-preferences"]],decls:19,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Built-in templates"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Ethernet hub templates "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Ethernet switch templates "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," Cloud node templates "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/preferences"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},dependencies:[$o,fn,Dn,Gs,Oa],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var HB,lOe=new Uint8Array(16);function uOe(){if(!HB&&!(HB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HB(lOe)}var cOe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var fOe=function dOe(n){return"string"==typeof n&&cOe.test(n)},dl=[],WG=0;WG<256;++WG)dl.push((WG+256).toString(16).substr(1));var hOe=function pOe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(dl[n[r+0]]+dl[n[r+1]]+dl[n[r+2]]+dl[n[r+3]]+"-"+dl[n[r+4]]+dl[n[r+5]]+"-"+dl[n[r+6]]+dl[n[r+7]]+"-"+dl[n[r+8]]+dl[n[r+9]]+"-"+dl[n[r+10]]+dl[n[r+11]]+dl[n[r+12]]+dl[n[r+13]]+dl[n[r+14]]+dl[n[r+15]]).toLowerCase();if(!fOe(e))throw TypeError("Stringified UUID is invalid");return e};var ns=function mOe(n,r,e){var i=(n=n||{}).random||(n.rng||uOe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=i[o];return r}return hOe(i)},su=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();su.\u0275fac=function(r){return new(r||su)(t.LFG(ho.zw))},su.\u0275prov=t.Yz7({token:su,factory:su.\u0275fac});var Al=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getQemuTemplate",value:function(){return(0,Kn.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:"qemu_guest",template_id:"",template_type:"qemu",usage:"",replicate_network_connection_state:!0,tpm:!1,uefi:!1})}},{key:"getVpcsTemplate",value:function(){return(0,Kn.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:"vpcs_guest",template_id:"",template_type:"vpcs"})}},{key:"getVirtualBoxTemplate",value:function(){return(0,Kn.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:"vbox_guest",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})}},{key:"getCloudNodeTemplate",value:function(){return(0,Kn.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:"cloud",template_id:"",template_type:"cloud"})}},{key:"getEthernetHubTemplate",value:function(){return(0,Kn.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:"hub",template_id:"",template_type:"ethernet_hub"})}},{key:"getEthernetSwitchTemplate",value:function(){return(0,Kn.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:"ethernet_switch",template_id:"",template_type:"ethernet_switch"})}},{key:"getIosTemplate",value:function(){return(0,Kn.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:"router",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})}},{key:"getVmwareTemplate",value:function(){return(0,Kn.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:"vmware_guest",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})}},{key:"getDockerTemplate",value:function(){return(0,Kn.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:"docker_guest",template_id:"",template_type:"docker",usage:""})}},{key:"getIouTemplate",value:function(){return(0,Kn.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:"multilayer_switch",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})}},{key:"list",value:function(){return(0,Kn.of)([])}}]),n}();Al.\u0275fac=function(r){return new(r||Al)},Al.\u0275prov=t.Yz7({token:Al,factory:Al.\u0275fac});var Qd=m(5542),_Oe=["input"],gOe=function(r){return{enterDuration:r}},yOe=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function bOe(){return{color:"accent"}}});var _ie=0,COe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return rs}),multi:!0},gie=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.value=e}),vie=new t.OlP("MatRadioGroup"),WD=function(){function n(r){(0,B.Z)(this,n),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(_ie++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new t.vpe}return(0,U.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,En.Ig)(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(i){i.name=e.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this,i=null!==this._selected&&this._selected.value===this._value;this._radios&&!i&&(this._selected=null,this._radios.forEach(function(o){o.checked=e.value===o.value,o.checked&&(e._selected=o)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new gie(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),n}();WD.\u0275fac=function(r){return new(r||WD)(t.Y36(t.sBO))},WD.\u0275dir=t.lG2({type:WD,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var rs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(WD);rs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rs)))(e||rs)}}(),rs.\u0275dir=t.lG2({type:rs,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,zs,5),2&r)&&(t.iGM(o=t.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([COe,{provide:vie,useExisting:rs}]),t.qOj]});var wOe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r}),jB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,o))._changeDetector=a,g._focusMonitor=s,g._radioDispatcher=l,g._providerOverride=d,g._uniqueId="mat-radio-".concat(++_ie),g.id=g._uniqueId,g.change=new t.vpe,g._checked=!1,g._value=null,g._removeUniqueSelectionListener=function(){},g.radioGroup=i,g._noopAnimations="NoopAnimations"===u,h&&(g.tabIndex=(0,En.su)(h,0)),g._removeUniqueSelectionListener=l.listen(function(y,L){y!==g.id&&L===g.name&&(g.checked=!1)}),g}return(0,U.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,En.Ig)(o);this._checked!==a&&(this._checked=a,a&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(o){this._value!==o&&(this._value=o,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===o),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(o){this._labelPosition=o}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(o){this._setDisabled((0,En.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(o){this._color=o}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngDoCheck",value:function(){this._updateTabIndex()}},{key:"ngAfterViewInit",value:function(){var o=this;this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){!a&&o.radioGroup&&o.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new gie(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"_onInputInteraction",value:function(o){if(o.stopPropagation(),!this.checked&&!this.disabled){var a=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(o){this._disabled!==o&&(this._disabled=o,this._changeDetector.markForCheck())}},{key:"_updateTabIndex",value:function(){var o,s,a=this.radioGroup;if((s=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex)!==this._previousTabIndex){var l=null===(o=this._inputElement)||void 0===o?void 0:o.nativeElement;l&&(l.setAttribute("tabindex",s+""),this._previousTabIndex=s)}}}]),e}((0,Gt.Kr)((0,Gt.sb)(wOe)));jB.\u0275fac=function(r){t.$Z()},jB.\u0275dir=t.lG2({type:jB,viewQuery:function(r,e){var i;(1&r&&t.Gf(_Oe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]});var zs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l,u,d,h)}return(0,U.Z)(e)}(jB);zs.\u0275fac=function(r){return new(r||zs)(t.Y36(vie,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(Si.A8),t.Y36(t.QbO,8),t.Y36(yOe,8),t.$8M("tabindex"))},zs.\u0275cmp=t.Xpm({type:zs,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(t.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("for",e.inputId),t.xp6(5),t.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),t.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,gOe,e._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==e.labelPosition)}},dependencies:[Gt.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0});var kk=(0,U.Z)(function n(){(0,B.Z)(this,n)});function TOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}kk.\u0275fac=function(r){return new(r||kk)},kk.\u0275mod=t.oAB({type:kk}),kk.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,Gt.BQ]});var VD=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"addTemplate",value:function(){var i,e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(o){i=o}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),n}();VD.\u0275fac=function(r){return new(r||VD)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},VD.\u0275cmp=t.Xpm({type:VD,selectors:[["app-cloud-nodes-add-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,TOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New cloud node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the cloud node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var kc=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getCategoriesForCloudNodes",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForCloudNodes",value:function(){return["telnet","vnc","spice","http","https","none"]}},{key:"getCategoriesForEthernetHubs",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getCategoriesForEthernetSwitches",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForEthernetSwitches",value:function(){return["telnet","none"]}},{key:"getPortTypesForEthernetSwitches",value:function(){return["access","dot1q","qinq"]}},{key:"getEtherTypesForEthernetSwitches",value:function(){return["0x8100","0x88A8","0x9100","0x9200"]}}]),n}();kc.\u0275fac=function(r){return new(r||kc)},kc.\u0275prov=t.Yz7({token:kc,factory:kc.\u0275fac});var MOe=m(5154),Op=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.symbols=new Qi.X([]),this.maximumSymbolSize=80}return(0,U.Z)(n,[{key:"getMaximumSymbolSize",value:function(){return this.maximumSymbolSize}},{key:"get",value:function(e){return this.symbols.getValue().find(function(i){return i.symbol_id===e})}},{key:"getDimensions",value:function(e,i){var o=encodeURI(i);return this.httpController.get(e,"/symbols/".concat(o,"/dimensions"))}},{key:"scaleDimensionsForNode",value:function(e){var i=e.width>e.height?this.maximumSymbolSize/e.width:this.maximumSymbolSize/e.height;return{width:e.width*i,height:e.height*i}}},{key:"getByFilename",value:function(e){return this.symbols.getValue().find(function(i){return i.filename===e})}},{key:"add",value:function(e,i,o){return this.cache=null,this.httpController.post(e,"/symbols/".concat(i,"/raw"),o)}},{key:"load",value:function(e){return this.httpController.get(e,"/symbols")}},{key:"list",value:function(e){return this.cache||(this.cache=this.load(e).pipe((0,MOe.d)(1))),this.cache}},{key:"raw",value:function(e,i){var o=encodeURI(i);return this.httpController.getText(e,"/symbols/".concat(o,"/raw"))}},{key:"getSymbolFromTemplate",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),n}();Op.\u0275fac=function(r){return new(r||Op)(t.LFG(ho.zw))},Op.\u0275prov=t.Yz7({token:Op,factory:Op.\u0275fac});var YD=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();YD.\u0275fac=function(r){return new(r||YD)},YD.\u0275pipe=t.Yjl({name:"filenamefilter",type:YD,pure:!0});var EOe=function(r){return{buttonSelected:r}},xOe=function(r){return{imageSelected:r}};function DOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"button",13),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.setSelected(l.symbol_id))}),t._UZ(2,"img",14),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(3,EOe,o.isSelected===i.symbol_id)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,xOe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),t.LSH)}}var AOe=function(){return{standalone:!0}},Tk=function(){function n(r){(0,B.Z)(this,n),this.symbolService=r,this.symbolChanged=new t.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.isSelected=this.symbol,this.loadSymbols()}},{key:"setFilter",value:function(e){this.filteredSymbols="all"===e?this.symbols:"builtin"===e?this.symbols.filter(function(i){return i.builtin}):this.symbols.filter(function(i){return!i.builtin})}},{key:"setSelected",value:function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)}},{key:"loadSymbols",value:function(){var e=this;this.symbolService.list(this.controller).subscribe(function(i){e.symbols=i,e.filteredSymbols=i})}},{key:"uploadSymbolFile",value:function(e){this.readSymbolFile(e.target)}},{key:"readSymbolFile",value:function(e){var i=this,o=e.files[0],a=e.files[0].name,s=new FileReader,l=new Image;s.onloadend=function(){var u=s.result,d=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,d).subscribe(function(){i.loadSymbols()})},l.onload=function(){s.readAsDataURL(o)},l.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'" \n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"getImageSourceForTemplate",value:function(e){return"".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(ja.N.current_version,"/symbols/").concat(e,"/raw")}}]),n}();Tk.\u0275fac=function(r){return new(r||Tk)(t.Y36(Op))},Tk.\u0275cmp=t.Xpm({type:Tk,selectors:[["app-symbols"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),t.NdJ("click",function(){return e.setFilter("all")}),t._uU(3,"All symbols"),t.qZA(),t.TgZ(4,"mat-radio-button",3),t.NdJ("click",function(){return e.setFilter("builtin")}),t._uU(5,"Built-in symbols"),t.qZA(),t.TgZ(6,"mat-radio-button",4),t.NdJ("click",function(){return e.setFilter("custom")}),t._uU(7,"Custom symbols"),t.qZA()(),t.TgZ(8,"input",5,6),t.NdJ("change",function(a){return e.uploadSymbolFile(a)}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(9);return t.KtG(a.click())}),t.TgZ(11,"mat-icon"),t._uU(12,"add"),t.qZA(),t._uU(13," Add symbol "),t.qZA()(),t.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()()(),t.TgZ(17,"div",10),t.YNc(18,DOe,3,7,"div",11),t.ALo(19,"filenamefilter"),t.qZA()}2&r&&(t.xp6(16),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(6,AOe)),t.xp6(2),t.Q6J("ngForOf",t.xi3(19,3,e.filteredSymbols,e.searchText)))},dependencies:[le.mk,le.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,fn,Dn,qn,rs,zs,YD],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0px;outline:none}.buttonSelected[_ngcontent-%COMP%]{background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]});var Uu=function(){function n(){(0,B.Z)(this,n),this.symbolChangedEmitter=new t.vpe,this.chosenSymbol=""}return(0,U.Z)(n,[{key:"symbolChanged",value:function(e){this.chosenSymbol=e}},{key:"chooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.chosenSymbol)}},{key:"cancelChooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.symbol)}}]),n}();function OOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function IOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function POe(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div",7),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function ROe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function LOe(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div",7),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function ZOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Name "),t.qZA())}function NOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function BOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Local port "),t.qZA())}function FOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rport," ")}}function UOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Type "),t.qZA())}function HOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rhost," ")}}function jOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Remote port "),t.qZA())}function GOe(n,r){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.lport," ")}}function zOe(n,r){1&n&&t._UZ(0,"tr",45)}function WOe(n,r){1&n&&t._UZ(0,"tr",46)}function VOe(n,r){if(1&n&&(t.TgZ(0,"table",34),t.ynx(1,35),t.YNc(2,ZOe,2,0,"th",36),t.YNc(3,NOe,2,1,"td",37),t.BQk(),t.ynx(4,38),t.YNc(5,BOe,2,0,"th",36),t.YNc(6,FOe,2,1,"td",37),t.BQk(),t.ynx(7,39),t.YNc(8,UOe,2,0,"th",36),t.YNc(9,HOe,2,1,"td",37),t.BQk(),t.ynx(10,40),t.YNc(11,jOe,2,0,"th",36),t.YNc(12,GOe,2,1,"td",37),t.BQk(),t.YNc(13,zOe,1,0,"tr",41),t.YNc(14,WOe,1,0,"tr",42),t.qZA()),2&n){var e=t.oxw(2);t.Q6J("dataSource",e.dataSourceUdp),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function YOe(n,r){1&n&&t._UZ(0,"br")}Uu.\u0275fac=function(r){return new(r||Uu)},Uu.\u0275cmp=t.Xpm({type:Uu,selectors:[["app-symbols-menu"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"controller","symbol","symbolChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Symbol selection"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.cancelChooseSymbol()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.chooseSymbol()}),t._uU(8,"Choose symbol"),t.qZA()()(),t.TgZ(9,"div",6)(10,"app-symbols",7),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()()),2&r&&(t.xp6(10),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[fn,Tk],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var KOe=function(){return{standalone:!0}};function qOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General "),t.qZA()(),t.TgZ(6,"mat-form-field",7)(7,"input",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.name=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",7)(9,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",7)(11,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.symbol=a)}),t.qZA()(),t.TgZ(12,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(13,"Choose symbol"),t.qZA(),t._UZ(14,"br")(15,"br"),t.TgZ(16,"mat-form-field",7)(17,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.category=a)}),t.YNc(18,OOe,2,2,"mat-option",13),t.qZA()(),t.TgZ(19,"mat-form-field",14)(20,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.console_type=a)}),t.YNc(21,IOe,2,2,"mat-option",13),t.qZA()(),t.TgZ(22,"mat-form-field",7)(23,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_host=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",7)(25,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_port=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",7)(27,"input",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Ethernet interfaces "),t.qZA()(),t.YNc(32,POe,5,1,"div",19),t.TgZ(33,"mat-form-field",14)(34,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(35,ROe,2,2,"mat-option",13),t.qZA()(),t.TgZ(36,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(37,"Add"),t.qZA()(),t.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),t._uU(41," TAP interfaces "),t.qZA()(),t.YNc(42,LOe,5,1,"div",19),t.TgZ(43,"mat-form-field",7)(44,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(45,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(46,"Add"),t.qZA()(),t.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," UDP tunnels "),t.qZA()(),t.YNc(51,VOe,15,3,"table",23),t.YNc(52,YOe,1,0,"br",24),t.TgZ(53,"mat-form-field",7)(54,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.name=a)}),t.qZA()(),t.TgZ(55,"mat-form-field",7)(56,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.lport=a)}),t.qZA()(),t.TgZ(57,"mat-form-field",7)(58,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rhost=a)}),t.qZA()(),t.TgZ(59,"mat-form-field",7)(60,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rport=a)}),t.qZA()(),t.TgZ(61,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddUdpInterface())}),t._uU(62,"Add"),t.qZA()(),t.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66," Usage "),t.qZA()(),t.TgZ(67,"mat-form-field",7)(68,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.usage=a)}),t.qZA()()()(),t.TgZ(69,"div",30)(70,"button",31),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(71,"Cancel"),t.qZA(),t.TgZ(72,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(73,"Save"),t.qZA(),t._UZ(74,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(7),t.Q6J("ngModel",i.cloudNodeTemplate.name),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.cloudNodeTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),t.xp6(5),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,KOe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(7),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(7),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",i.newPort.name),t.xp6(2),t.Q6J("ngModel",i.newPort.lport),t.xp6(2),t.Q6J("ngModel",i.newPort.rhost),t.xp6(2),t.Q6J("ngModel",i.newPort.rport),t.xp6(8),t.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function JOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",47),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var QOe=function(r){return{shadowed:r}},KD=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.cloudNodeTemplate=s,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"ethernet"===l.type}),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"tap"===l.type}),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"udp"===l.type}),e.dataSourceUdp=e.portsMappingUdp})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onAddUdpInterface",value:function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,cn.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,cn.Z)(this.portsMappingEthernet),(0,cn.Z)(this.portsMappingTap)),this.builtInTemplatesService.saveTemplate(this.controller,this.cloudNodeTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=e}}]),n}();function XOe(n,r){}KD.\u0275fac=function(r){return new(r||KD)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(kc),t.Y36(ur))},KD.\u0275cmp=t.Xpm({type:KD,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Cloud configuration"),t.qZA()(),t.YNc(5,qOe,75,24,"div",4),t.qZA(),t.YNc(6,JOe,1,2,"app-symbols-menu",5),t.qZA()),2&r&&(t.Q6J("ngClass",t.VKq(3,QOe,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.cloudNodeTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},dependencies:[le.mk,le.sg,le.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,fn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,Dl,xl,au,Fu,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var qD=(0,U.Z)(function n(){(0,B.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0});var ab=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this))._elementRef=i,g._focusTrapFactory=o,g._config=s,g._interactivityChecker=l,g._ngZone=u,g._overlayRef=d,g._focusMonitor=h,g._elementFocusedBeforeDialogWasOpened=null,g._closeInteractionType=null,g.attachDomPortal=function(y){g._portalOutlet.hasAttached();var L=g._portalOutlet.attachDomPortal(y);return g._contentAttached(),L},g._ariaLabelledBy=g._config.ariaLabelledBy||null,g._document=a,g}return(0,U.Z)(e,[{key:"_contentAttached",value:function(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}},{key:"_captureInitialFocus",value:function(){this._trapFocus()}},{key:"ngOnDestroy",value:function(){this._restoreFocus()}},{key:"attachComponentPortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),a}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(o,a){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var s=function l(){o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",s),o.addEventListener("mousedown",s)})),o.focus(a)}},{key:"_focusByCssSelector",value:function(o,a){var s=this._elementRef.nativeElement.querySelector(o);s&&this._forceFocus(s,a)}},{key:"_trapFocus",value:function(){var o=this,a=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||a.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||o._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._config.restoreFocus,a=null;if("string"==typeof o?a=this._document.querySelector(o):"boolean"==typeof o?a=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(a=o),this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,bi.ht)(),l=this._elementRef.nativeElement;(!s||s===this._document.body||s===l||l.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var o=this._elementRef.nativeElement,a=(0,bi.ht)();return o===a||o.contains(a)}},{key:"_initializeFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,bi.ht)())}},{key:"_handleBackdropClicks",value:function(){var o=this;this._overlayRef.backdropClick().subscribe(function(){o._config.disableClose&&o._recaptureFocus()})}}]),e}(ao.en);ab.\u0275fac=function(r){return new(r||ab)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(le.K0,8),t.Y36(qD),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(Yr.tE))},ab.\u0275cmp=t.Xpm({type:ab,selectors:[["cdk-dialog-container"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ao.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,e){2&r&&t.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,XOe,0,0,"ng-template",0)},dependencies:[ao.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});var VG=function(){function n(r,e){var i=this;(0,B.Z)(this,n),this.overlayRef=r,this.config=e,this.closed=new On.xQ,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(function(o){o.keyCode===Tr.hY&&!i.disableClose&&!(0,Tr.Vb)(o)&&(o.preventDefault(),i.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(function(){i.disableClose||i.close(void 0,{focusOrigin:"mouse"})})}return(0,U.Z)(n,[{key:"close",value:function(e,i){if(this.containerInstance){var o=this.closed;this.containerInstance._closeInteractionType=(null==i?void 0:i.focusOrigin)||"program",this.overlayRef.dispose(),o.next(e),o.complete(),this.componentInstance=this.containerInstance=null}}},{key:"updatePosition",value:function(){return this.overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.overlayRef.updateSize({width:e,height:i}),this}},{key:"addPanelClass",value:function(e){return this.overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this.overlayRef.removePanelClass(e),this}}]),n}(),yie=new t.OlP("DialogScrollStrategy"),bie=new t.OlP("DialogData"),$Oe=new t.OlP("DefaultDialogConfig");var tIe={provide:yie,deps:[Li.aV],useFactory:function eIe(n){return function(){return n.scrollStrategies.block()}}},nIe=0,vm=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new On.xQ,this._afterOpenedAtThisLevel=new On.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,lD.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,Oo.O)(void 0))}),this._scrollStrategy=s}return(0,U.Z)(n,[{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:"open",value:function(e,i){var o=this,a=this._defaultOptions||new qD;(i=Object.assign(Object.assign({},a),i)).id=i.id||"cdk-dialog-".concat(nIe++),i.id&&this.getDialogById(i.id);var s=this._getOverlayConfig(i),l=this._overlay.create(s),u=new VG(l,i),d=this._attachContainer(l,u,i);return u.containerInstance=d,this._attachDialogContent(e,u,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(function(){return o._removeOpenDialog(u,!0)}),this.afterOpened.next(u),u}},{key:"closeAll",value:function(){YG(this.openDialogs,function(e){return e.close()})}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){var e=this;YG(this._openDialogsAtThisLevel,function(i){!1===i.config.closeOnDestroy&&e._removeOpenDialog(i,!1)}),YG(this._openDialogsAtThisLevel,function(i){return i.close()}),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}},{key:"_getOverlayConfig",value:function(e){var i=new Li.X_({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachContainer",value:function(e,i,o){var a,u,s=o.injector||(null===(a=o.viewContainerRef)||void 0===a?void 0:a.injector),l=[{provide:qD,useValue:o},{provide:VG,useValue:i},{provide:Li.Iu,useValue:e}];o.container?"function"==typeof o.container?u=o.container:(u=o.container.type,l.push.apply(l,(0,cn.Z)(o.container.providers(o)))):u=ab;var d=new ao.C5(u,o.viewContainerRef,t.zs3.create({parent:s||this._injector,providers:l}),o.componentFactoryResolver);return e.attach(d).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){if(e instanceof t.Rgc){var s=this._createInjector(a,i,o,void 0),l={$implicit:a.data,dialogRef:i};a.templateContext&&(l=Object.assign(Object.assign({},l),"function"==typeof a.templateContext?a.templateContext():a.templateContext)),o.attachTemplatePortal(new ao.UE(e,null,l,s))}else{var u=this._createInjector(a,i,o,this._injector),d=o.attachComponentPortal(new ao.C5(e,a.viewContainerRef,u,a.componentFactoryResolver));i.componentInstance=d.instance}}},{key:"_createInjector",value:function(e,i,o,a){var s,l=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),u=[{provide:bie,useValue:e.data},{provide:VG,useValue:i}];return e.providers&&("function"==typeof e.providers?u.push.apply(u,(0,cn.Z)(e.providers(i,e,o))):u.push.apply(u,(0,cn.Z)(e.providers))),e.direction&&(!l||!l.get(nl.Is,null,t.XFs.Optional))&&u.push({provide:nl.Is,useValue:{value:e.direction,change:(0,Kn.of)()}}),t.zs3.create({parent:l||a,providers:u})}},{key:"_removeOpenDialog",value:function(e,i){var o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var i=e.parentElement.children,o=i.length-1;o>-1;o--){var a=i[o];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}]),n}();function YG(n,r){for(var e=n.length;e--;)r(n[e])}vm.\u0275fac=function(r){return new(r||vm)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG($Oe,8),t.LFG(vm,12),t.LFG(Li.Xj),t.LFG(yie))},vm.\u0275prov=t.Yz7({token:vm,factory:vm.\u0275fac});var sb=(0,U.Z)(function n(){(0,B.Z)(this,n)});function rIe(n,r){}sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275mod=t.oAB({type:sb}),sb.\u0275inj=t.cJS({providers:[vm,tIe],imports:[Li.U8,ao.eL,Yr.rt,ao.eL]});var Mk={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},iIe={dialogContainer:(0,Zt.X$)("dialogContainer",[(0,Zt.SB)("void, exit",(0,Zt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Zt.SB)("enter",(0,Zt.oB)({transform:"none"})),(0,Zt.eR)("* => enter",(0,Zt.ru)([(0,Zt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({transform:"none",opacity:1})),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]),Mk),(0,Zt.eR)("* => void, * => exit",(0,Zt.ru)([(0,Zt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Zt.oB)({opacity:0})),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]),Mk)])},GB=(0,U.Z)(function n(){(0,B.Z)(this,n),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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Mk.params.enterAnimationDuration,this.exitAnimationDuration=Mk.params.exitAnimationDuration}),JD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,i,o,a,s,l,u,d,h))._animationStateChanged=new t.vpe,g}return(0,U.Z)(e,[{key:"_captureInitialFocus",value:function(){this._config.delayFocusTrap||this._trapFocus()}},{key:"_openAnimationDone",value:function(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}]),e}(ab);JD.\u0275fac=function(r){return new(r||JD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(le.K0,8),t.Y36(GB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(Yr.tE))},JD.\u0275cmp=t.Xpm({type:JD,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(r,e){},encapsulation:2});var QD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g){var y;return(0,B.Z)(this,e),(y=r.call(this,i,o,a,s,l,u,d,g))._changeDetectorRef=h,y._state="enter",y}return(0,U.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._openAnimationDone(s):"exit"===a&&this._animationStateChanged.next({state:"closed",totalTime:s})}},{key:"_onAnimationStart",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===a||"void"===a)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_getAnimationState",value:function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Mk.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Mk.params.exitAnimationDuration}}}}]),e}(JD);QD.\u0275fac=function(r){return new(r||QD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(le.K0,8),t.Y36(GB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(t.sBO),t.Y36(Yr.tE))},QD.\u0275cmp=t.Xpm({type:QD,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(r,e){1&r&&t.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.Ikx("id",e._config.id),t.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),t.d8E("@dialogContainer",e._getAnimationState()))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,rIe,0,0,"ng-template",0)},dependencies:[ao.Pl],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[iIe.dialogContainer]}});var cr=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this._ref=r,this._containerInstance=i,this._afterOpened=new On.xQ,this._beforeClosed=new On.xQ,this._state=0,this.disableClose=e.disableClose,this.id=r.id,i._animationStateChanged.pipe((0,$r.h)(function(a){return"opened"===a.state}),(0,Ri.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,$r.h)(function(a){return"closed"===a.state}),(0,Ri.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._finishDialogClose()}),r.overlayRef.detachments().subscribe(function(){o._beforeClosed.next(o._result),o._beforeClosed.complete(),o._finishDialogClose()}),(0,Gi.T)(this.backdropClick(),this.keydownEvents().pipe((0,$r.h)(function(a){return a.keyCode===Tr.hY&&!o.disableClose&&!(0,Tr.Vb)(a)}))).subscribe(function(a){o.disableClose||(a.preventDefault(),Cie(o,"keydown"===a.type?"keyboard":"mouse"))})}return(0,U.Z)(n,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,$r.h)(function(o){return"closing"===o.state}),(0,Ri.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._ref.overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._ref.closed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}},{key:"updatePosition",value:function(e){var i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._ref.updateSize(e,i),this}},{key:"addPanelClass",value:function(e){return this._ref.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._ref.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}]),n}();function Cie(n,r,e){return n._closeInteractionType=r,n.close(e)}var ko=new t.OlP("MatDialogData"),oIe=new t.OlP("mat-dialog-default-options"),wie=new t.OlP("mat-dialog-scroll-strategy");var sIe={provide:wie,deps:[Li.aV],useFactory:function aIe(n){return function(){return n.scrollStrategies.block()}}},lIe=0,XD=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,B.Z)(this,n),this._overlay=r,this._defaultOptions=i,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new On.xQ,this._afterOpenedAtThisLevel=new On.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,lD.P)(function(){return g.openDialogs.length?g._getAfterAllClosed():g._getAfterAllClosed().pipe((0,Oo.O)(void 0))}),this._scrollStrategy=s,this._dialog=e.get(vm)}return(0,U.Z)(n,[{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 e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,i){var a,o=this;(i=Object.assign(Object.assign({},this._defaultOptions||new GB),i)).id=i.id||"".concat(this._idPrefix).concat(lIe++),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();var s=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:GB,useValue:i},{provide:qD,useValue:i}]}},templateContext:function(){return{dialogRef:a}},providers:function(u,d,h){return(a=new o._dialogRefConstructor(u,i,h)).updatePosition(null==i?void 0:i.position),[{provide:o._dialogContainerType,useValue:h},{provide:o._dialogDataToken,useValue:d.data},{provide:o._dialogRefConstructor,useValue:a}]}}));return a.componentInstance=s.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(function(){var l=o.openDialogs.indexOf(a);l>-1&&(o.openDialogs.splice(l,1),o.openDialogs.length||o._getAfterAllClosed().next())}),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),n}();XD.\u0275fac=function(r){t.$Z()},XD.\u0275prov=t.Yz7({token:XD,factory:XD.\u0275fac});var Gr=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,B.Z)(this,e),r.call(this,i,o,s,u,d,l,cr,QD,ko,h)}return(0,U.Z)(e)}(XD);Gr.\u0275fac=function(r){return new(r||Gr)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(le.Ye,8),t.LFG(oIe,8),t.LFG(wie),t.LFG(Gr,12),t.LFG(Li.Xj),t.LFG(t.QbO,8))},Gr.\u0275prov=t.Yz7({token:Gr,factory:Gr.\u0275fac});var uIe=0,Ig=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=kie(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(e){Cie(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),n}();Ig.\u0275fac=function(r){return new(r||Ig)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(Gr))},Ig.\u0275dir=t.lG2({type:Ig,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&t.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.TTD]});var br=function(){function n(r,e,i){(0,B.Z)(this,n),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(uIe++)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=kie(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),n}();br.\u0275fac=function(r){return new(r||br)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(Gr))},br.\u0275dir=t.lG2({type:br,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var Hu=(0,U.Z)(function n(){(0,B.Z)(this,n)});Hu.\u0275fac=function(r){return new(r||Hu)},Hu.\u0275dir=t.lG2({type:Hu,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var fr=(0,U.Z)(function n(){(0,B.Z)(this,n),this.align="start"});function kie(n,r){for(var e=n.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}fr.\u0275fac=function(r){return new(r||fr)},fr.\u0275dir=t.lG2({type:fr,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}});var Sk=(0,U.Z)(function n(){(0,B.Z)(this,n)});Sk.\u0275fac=function(r){return new(r||Sk)},Sk.\u0275mod=t.oAB({type:Sk}),Sk.\u0275inj=t.cJS({providers:[Gr,sIe],imports:[sb,Li.U8,ao.eL,Gt.BQ,Gt.BQ]});var $D=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();$D.\u0275fac=function(r){return new(r||$D)(t.Y36(cr),t.Y36(ko))},$D.\u0275cmp=t.Xpm({type:$D,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Delete template"),t.qZA(),t.TgZ(3,"div",2),t._uU(4),t.qZA(),t._UZ(5,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"No"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onYesClick()}),t._uU(10," Yes "),t.qZA()()()),2&r&&(t.xp6(4),t.hij("Are you sure you want to delete template ",e.templateName,"?"))},dependencies:[fn,br,Hu,fr],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var Xd=function(){function n(r){(0,B.Z)(this,n),this.httpController=r,this.newTemplateCreated=new On.xQ}return(0,U.Z)(n,[{key:"list",value:function(e){return this.httpController.get(e,"/templates")}},{key:"deleteTemplate",value:function(e,i){return this.httpController.delete(e,"/templates/".concat(i),{observe:"body"})}}]),n}();Xd.\u0275fac=function(r){return new(r||Xd)(t.LFG(ho.zw))},Xd.\u0275prov=t.Yz7({token:Xd,factory:Xd.\u0275fac});var la=function(){function n(r,e,i){(0,B.Z)(this,n),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new t.vpe}return(0,U.Z)(n,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open($D,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(s){s&&o.templateService.deleteTemplate(o.controller,i).subscribe(function(l){o.deleteEvent.emit(i),o.toasterService.success("Template ".concat(e," deleted."))})})}}]),n}();la.\u0275fac=function(r){return new(r||la)(t.Y36(Xd),t.Y36(Gr),t.Y36(Zn))},la.\u0275cmp=t.Xpm({type:la,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){}});var Tie=m(9931),KG=m(943);function dIe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}var Mie=["*"];function fIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._handleKeydown(a))})("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationStart(a))})("@transformMenu.done",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationDone(a))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var zB={transformMenu:(0,Zt.X$)("transformMenu",[(0,Zt.SB)("void",(0,Zt.oB)({opacity:0,transform:"scale(0.8)"})),(0,Zt.eR)("void => enter",(0,Zt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({opacity:1,transform:"scale(1)"}))),(0,Zt.eR)("* => void",(0,Zt.jt)("100ms 25ms linear",(0,Zt.oB)({opacity:0})))]),fadeInItems:(0,Zt.X$)("fadeInItems",[(0,Zt.SB)("showing",(0,Zt.oB)({opacity:1})),(0,Zt.eR)("void => *",[(0,Zt.oB)({opacity:0}),(0,Zt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sie=(zB.fadeInItems,zB.transformMenu,new t.OlP("MatMenuContent")),e2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new On.xQ}return(0,U.Z)(n,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new ao.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ao.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var o=this._template.elementRef.nativeElement;o.parentNode.insertBefore(this._outlet.outletElement,o),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),n}();e2.\u0275fac=function(r){return new(r||e2)(t.Y36(t.Rgc),t.Y36(t._Vd),t.Y36(t.z2F),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(le.K0),t.Y36(t.sBO))},e2.\u0275dir=t.lG2({type:e2});var Ek=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(e2);Ek.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ek)))(e||Ek)}}(),Ek.\u0275dir=t.lG2({type:Ek,selectors:[["ng-template","matMenuContent",""]],features:[t._Bn([{provide:Sie,useExisting:Ek}]),t.qOj]});var qG=new t.OlP("MAT_MENU_PANEL"),pIe=(0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),Er=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d;return(0,B.Z)(this,e),(u=r.call(this))._elementRef=i,u._document=o,u._focusMonitor=a,u._parentMenu=s,u._changeDetectorRef=l,u.role="menuitem",u._hovered=new On.xQ,u._focused=new On.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(d=null==s?void 0:s.addItem)||void 0===d||d.call(s,(0,sD.Z)(u)),u}return(0,U.Z)(e,[{key:"focus",value:function(o,a){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a),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(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var o,a=this._elementRef.nativeElement.cloneNode(!0),s=a.querySelectorAll("mat-icon, .material-icons"),l=0;l<s.length;l++)s[l].remove();return(null===(o=a.textContent)||void 0===o?void 0:o.trim())||""}},{key:"_setHighlighted",value:function(o){var a;this._highlighted=o,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_hasFocus",value:function(){return this._document&&this._document.activeElement===this._getHostElement()}}]),e}(pIe);Er.\u0275fac=function(r){return new(r||Er)(t.Y36(t.SBq),t.Y36(le.K0),t.Y36(Yr.tE),t.Y36(qG,8),t.Y36(t.sBO))},Er.\u0275cmp=t.Xpm({type:Er,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(t.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),t.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:["mat-menu-item",""],ngContentSelectors:Mie,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,e){1&r&&(t.F$t(),t.Hsn(0),t._UZ(1,"div",0),t.YNc(2,dIe,2,0,"svg",1)),2&r&&(t.xp6(1),t.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),t.xp6(1),t.Q6J("ngIf",e._triggersSubmenu))},dependencies:[le.O5,Gt.wG],encapsulation:2,changeDetection:0});var Eie=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function hIe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var mIe=0,ym=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._elementRef=r,this._ngZone=e,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._tabSubscription=xa.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new On.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(mIe++)}return(0,U.Z)(n,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=(0,En.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,En.Ig)(e)}},{key:"panelClass",set:function(e){var i=this,o=this._previousPanelClass;o&&o.length&&o.split(" ").forEach(function(a){i._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(a){i._classList[a]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Yr.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,Oo.O)(this._directDescendantItems),(0,Io.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._focused})))})).subscribe(function(i){return e._keyManager.updateActiveItem(i)}),this._directDescendantItems.changes.subscribe(function(i){var o,a=e._keyManager;if("enter"===e._panelAnimationState&&(null===(o=a.activeItem)||void 0===o?void 0:o._hasFocus())){var s=i.toArray(),l=Math.max(0,Math.min(s.length-1,a.activeItemIndex||0));s[l]&&!s[l].disabled?a.setActiveItem(l):a.setNextItemActive()}})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe((0,Oo.O)(this._directDescendantItems),(0,Io.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=this._keyManager;switch(i){case Tr.hY:(0,Tr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case Tr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Tr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===Tr.LH||i===Tr.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}},{key:"focusFirstItem",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this._ngZone.onStable.pipe((0,Ri.q)(1)).subscribe(function(){var o=null;if(e._directDescendantItems.length&&(o=e._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!o||!o.contains(document.activeElement)){var a=e._keyManager;a.setFocusOrigin(i).setFirstItemActive(),!a.activeItem&&o&&o.focus()}})}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var i=this,o=Math.min(this._baseElevation+e,24),a="".concat(this._elevationPrefix).concat(o),s=Object.keys(this._classList).find(function(l){return l.startsWith(i._elevationPrefix)});(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}},{key:"setPositionClasses",value:function(){var o,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===i,a["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,Oo.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),n}();ym.\u0275fac=function(r){return new(r||ym)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Eie),t.Y36(t.sBO))},ym.\u0275dir=t.lG2({type:ym,contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Sie,5),t.Suo(i,Er,5),t.Suo(i,Er,4)),2&r)&&(t.iGM(o=t.CRH())&&(e.lazyContent=o.first),t.iGM(o=t.CRH())&&(e._allItems=o),t.iGM(o=t.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,5),2&r)&&(t.iGM(i=t.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var Ga=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,U.Z)(e)}(ym);Ga.\u0275fac=function(r){return new(r||Ga)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Eie),t.Y36(t.sBO))},Ga.\u0275cmp=t.Xpm({type:Ga,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:qG,useExisting:Ga}]),t.qOj],ngContentSelectors:Mie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,fIe,3,6,"ng-template"))},dependencies:[le.mk],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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top: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}'],encapsulation:2,data:{animation:[zB.transformMenu,zB.fadeInItems]},changeDetection:0});var xie=new t.OlP("mat-menu-scroll-strategy");var gIe={provide:xie,deps:[Li.aV],useFactory:function _Ie(n){return function(){return n.scrollStrategies.reposition()}}},Die=(0,bi.i$)({passive:!0}),t2=function(){function n(r,e,i,o,a,s,l,u,d){var h=this;(0,B.Z)(this,n),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xa.w.EMPTY,this._hoverSubscription=xa.w.EMPTY,this._menuCloseSubscription=xa.w.EMPTY,this._handleTouchStart=function(g){(0,Yr.yG)(g)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof ym?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Die),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,U.Z)(n,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var i=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(function(o){i._destroyMenu(o),("click"===o||"tab"===o)&&i._parentMaterialMenu&&i._parentMaterialMenu.closed.emit(o)})))}},{key:"ngAfterContentInit",value:function(){this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Die),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 e=this,i=this.menu;if(!this._menuOpen&&i){var o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),a.hasBackdrop=null==i.hasBackdrop?!this.triggersSubmenu():i.hasBackdrop,o.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(i),i instanceof ym&&(i._startAnimation(),i._directDescendantItems.changes.pipe((0,Ir.R)(i.close)).subscribe(function(){s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}},{key:"focus",value:function(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var o,i=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof ym?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,$r.h)(function(s){return"void"===s.toState}),(0,Ri.q)(1),(0,Ir.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(o=null==a?void 0:a.lazyContent)||void 0===o||o.detach())}}},{key:"_initMenu",value:function(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(e){if(e.setElevation){for(var i=0,o=e.parentMenu;o;)i++,o=o.parentMenu;e.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_createOverlay",value:function(e){if(!this._overlayRef){var i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(e){return new Li.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e,i){var o=this;e.setPositionClasses&&i.positionChanges.subscribe(function(a){var s="start"===a.connectionPair.overlayX?"after":"before",l="top"===a.connectionPair.overlayY?"below":"above";o._ngZone?o._ngZone.run(function(){return e.setPositionClasses(s,l)}):e.setPositionClasses(s,l)})}},{key:"_setPosition",value:function(e,i){var o="before"===e.xPosition?["end","start"]:["start","end"],a=(0,Yn.Z)(o,2),s=a[0],l=a[1],u="above"===e.yPosition?["bottom","top"]:["top","bottom"],d=(0,Yn.Z)(u,2),h=d[0],g=d[1],y=h,L=g,z=s,q=l,re=0;if(this.triggersSubmenu()){if(q=s="before"===e.xPosition?"start":"end",l=z="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){var ae=this._parentMaterialMenu.items.first;this._parentInnerPadding=ae?ae._getHostElement().offsetTop:0}re="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(y="top"===h?"bottom":"top",L="top"===g?"bottom":"top");i.withPositions([{originX:s,originY:y,overlayX:z,overlayY:h,offsetY:re},{originX:l,originY:y,overlayX:q,overlayY:h,offsetY:re},{originX:s,originY:L,overlayX:z,overlayY:g,offsetY:-re},{originX:l,originY:L,overlayX:q,overlayY:g,offsetY:-re}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Kn.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,$r.h)(function(l){return l!==e._menuItemInstance}),(0,$r.h)(function(){return e._menuOpen})):(0,Kn.of)();return(0,Gi.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Yr.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===Tr.K5||i===Tr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===Tr.SV&&"ltr"===this.dir||i===Tr.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,$r.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,KG.g)(0,Tie.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof ym&&e.menu._isAnimating?e.menu._animationDone.pipe((0,Ri.q)(1),(0,KG.g)(0,Tie.E),(0,Ir.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ao.UE(e.templateRef,this._viewContainerRef)),this._portal}}]),n}();t2.\u0275fac=function(r){return new(r||t2)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(xie),t.Y36(qG,8),t.Y36(Er,10),t.Y36(nl.Is,8),t.Y36(Yr.tE),t.Y36(t.R0b))},t2.\u0275dir=t.lG2({type:t2,hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&t.uIk("aria-haspopup",e.menu?"menu":null)("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var ga=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(t2);ga.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ga)))(e||ga)}}(),ga.\u0275dir=t.lG2({type:ga,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]});var Pg=(0,U.Z)(function n(){(0,B.Z)(this,n)});Pg.\u0275fac=function(r){return new(r||Pg)},Pg.\u0275mod=t.oAB({type:Pg}),Pg.\u0275inj=t.cJS({providers:[gIe],imports:[le.ez,Gt.BQ,Gt.si,Li.U8,sa.ZD,Gt.BQ]});var ju=(0,U.Z)(function n(){(0,B.Z)(this,n),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});function vIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function yIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function bIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function CIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function wIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,CIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.cloudNodesTemplates)}}function kIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,wIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}ju.\u0275fac=function(r){return new(r||ju)},ju.\u0275cmp=t.Xpm({type:ju,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),t._uU(3),t.qZA()()()),2&r&&(t.xp6(3),t.hij(" ",e.emptyTemplatesListMessage," "))},dependencies:[ci],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var n2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.cloudNodesTemplates=i.filter(function(o){return"cloud"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function TIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}n2.\u0275fac=function(r){return new(r||n2)(t.Y36(dr),t.Y36(or),t.Y36(su))},n2.\u0275cmp=t.Xpm({type:n2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,vIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud nodes templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,yIe,3,1,"button",7),t.qZA()()(),t.YNc(10,bIe,1,0,"app-empty-templates-list",8),t.YNc(11,kIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var r2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetHubTemplate().subscribe(function(a){i=a}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({name:"Ethernet".concat(o),port_number:o});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(){e.goBack()})}}}]),n}();function MIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function SIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}r2.\u0275fac=function(r){return new(r||r2)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},r2.\u0275cmp=t.Xpm({type:r2,selectors:[["app-ethernet-hubs-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,TIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet hub template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet Hub locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Aie=function(){return{standalone:!0}};function EIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",12)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.symbol=a)}),t.qZA()(),t.TgZ(9,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(10,"Choose symbol"),t.qZA(),t._UZ(11,"br")(12,"br"),t.TgZ(13,"mat-form-field",12)(14,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.category=a)}),t.YNc(15,SIe,2,2,"mat-option",18),t.qZA()(),t.TgZ(16,"mat-form-field",12)(17,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.numberOfPorts=a)}),t.qZA()()()(),t.TgZ(18,"div",20)(19,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(22,"Save"),t.qZA(),t._UZ(23,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(9,Aie))("ngModel",i.ethernetHubTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",t.DdM(10,Aie))}}function xIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",23),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var DIe=function(r){return{shadowed:r}},i2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.categories=e.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetHubTemplate=s,e.numberOfPorts=e.ethernetHubTemplate.ports_mapping.length})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"onSave",value:function(){var e=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetHubTemplate).subscribe(function(o){e.toasterService.success("Changes saved")})}}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=e}}]),n}();function AIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function OIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function IIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function PIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function RIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,PIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetHubsTemplates)}}function LIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,RIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}i2.\u0275fac=function(r){return new(r||i2)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},i2.\u0275cmp=t.Xpm({type:i2,selectors:[["app-ethernet-hubs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,MIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hub settings"),t.qZA()()()(),t.YNc(8,EIe,24,11,"div",7),t.qZA(),t.YNc(9,xIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,DIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetHubTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,Dn,qn,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var o2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetHubsTemplates=i.filter(function(o){return"ethernet_hub"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function ZIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}o2.\u0275fac=function(r){return new(r||o2)(t.Y36(dr),t.Y36(or),t.Y36(su))},o2.\u0275cmp=t.Xpm({type:o2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,AIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hubs templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,OIe,3,1,"button",7),t.qZA()()(),t.YNc(10,IIe,1,0,"app-empty-templates-list",8),t.YNc(11,LIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var a2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(a){i=a}),i.template_id=ns(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({ethertype:"0x8100",name:"Ethernet".concat(o),port_number:o,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(a){e.goBack()})}}}]),n}();function NIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Port number"),t.qZA())}function BIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.port_number)}}function FIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"VLAN"),t.qZA())}function UIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.vlan)}}function HIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function jIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.type)}}function GIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"EtherType"),t.qZA())}function zIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.ethertype)}}function WIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function VIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function YIe(n,r){1&n&&t._UZ(0,"tr",22)}function KIe(n,r){1&n&&t._UZ(0,"tr",23)}function qIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function JIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}a2.\u0275fac=function(r){return new(r||a2)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},a2.\u0275cmp=t.Xpm({type:a2,selectors:[["app-ethernet-switches-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,ZIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet switch template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet switch locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Oie=function(){return{standalone:!0}},Rg=function(){function n(r){(0,B.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAdd",value:function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.ethernetPorts=this.ethernetPorts.filter(function(i){return i!==e})}}]),n}();function QIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function XIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function $Ie(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Rg.\u0275fac=function(r){return new(r||Rg)(t.Y36(kc))},Rg.\u0275cmp=t.Xpm({type:Rg,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,NIe,2,0,"th",2),t.YNc(3,BIe,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,FIe,2,0,"th",2),t.YNc(6,UIe,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,HIe,2,0,"th",2),t.YNc(9,jIe,2,1,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,GIe,2,0,"th",2),t.YNc(12,zIe,2,1,"td",3),t.BQk(),t.ynx(13,7),t.YNc(14,WIe,2,0,"th",2),t.YNc(15,VIe,4,0,"td",3),t.BQk(),t.YNc(16,YIe,1,0,"tr",8),t.YNc(17,KIe,1,0,"tr",9),t.qZA(),t._UZ(18,"br"),t.TgZ(19,"mat-form-field",10)(20,"input",11),t.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),t.qZA()(),t.TgZ(21,"mat-form-field",10)(22,"input",12),t.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),t.qZA()(),t.TgZ(23,"mat-form-field",13)(24,"mat-select",14),t.NdJ("ngModelChange",function(o){return e.newPort.type=o}),t.YNc(25,qIe,2,2,"mat-option",15),t.qZA()(),t.TgZ(26,"mat-form-field",13)(27,"mat-select",16),t.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),t.YNc(28,JIe,2,2,"mat-option",15),t.qZA()(),t.TgZ(29,"button",17),t.NdJ("click",function(){return e.onAdd()}),t._uU(30,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.ethernetPorts),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("ngModel",e.newPort.port_number),t.xp6(2),t.Q6J("ngModel",e.newPort.vlan),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(11,Oie))("ngModel",e.newPort.type),t.xp6(1),t.Q6J("ngForOf",e.portTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Oie))("ngModel",e.newPort.ethertype),t.xp6(1),t.Q6J("ngForOf",e.etherTypes))},dependencies:[le.sg,J.Fj,J.wV,J.JJ,J.On,kn.KE,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,di.gD,Gt.ey,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Iie=function(){return{standalone:!0}};function ePe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",12)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.category=a)}),t.YNc(19,XIe,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"mat-form-field",19)(21,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.console_type=a)}),t.YNc(22,$Ie,2,2,"mat-option",18),t.qZA()()()(),t.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._uU(26," Port settings "),t.qZA()(),t._UZ(27,"app-ports",21,22),t.qZA()(),t.TgZ(29,"div",23)(30,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(31,"Cancel"),t.qZA(),t.TgZ(32,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(33,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(11,Iie))("ngModel",i.ethernetSwitchTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Iie))("ngModel",i.ethernetSwitchTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(5),t.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function tPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var nPe=function(r){return{shadowed:r}},s2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetSwitchTemplate=s})})}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetSwitchTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=e}}]),n}();function rPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function iPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function oPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function aPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function sPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,aPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function lPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,sPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}s2.\u0275fac=function(r){return new(r||s2)(t.Y36(dr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},s2.\u0275cmp=t.Xpm({type:s2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Rg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button","col",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,QIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switch configuration"),t.qZA()()()(),t.YNc(8,ePe,34,13,"div",7),t.qZA(),t.YNc(9,tPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,nPe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetSwitchTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,Dn,qn,Dl,xl,au,Fu,di.gD,Gt.ey,Uu,Rg],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var l2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetSwitchesTemplates=i.filter(function(o){return"ethernet_switch"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();l2.\u0275fac=function(r){return new(r||l2)(t.Y36(dr),t.Y36(or),t.Y36(su))},l2.\u0275cmp=t.Xpm({type:l2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,rPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switches templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,iPe,3,1,"button",7),t.qZA()()(),t.YNc(10,oPe,1,0,"app-empty-templates-list",8),t.YNc(11,lPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var JG=(0,U.Z)(function n(){(0,B.Z)(this,n)}),id=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/computes/".concat(ja.N.compute_id,"/docker/images"))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();id.\u0275fac=function(r){return new(r||id)(t.LFG(ho.zw))},id.\u0275prov=t.Yz7({token:id,factory:id.\u0275fac});var Ip=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","vnc","http","https","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleResolutions",value:function(){return["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]}}]),n}();function uPe(n,r){1&n&&t.Hsn(0)}Ip.\u0275fac=function(r){return new(r||Ip)},Ip.\u0275prov=t.Yz7({token:Ip,factory:Ip.\u0275fac});var xk=function(){function n(r){(0,B.Z)(this,n),this._elementRef=r}return(0,U.Z)(n,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),n}();xk.\u0275fac=function(r){return new(r||xk)(t.Y36(t.SBq))},xk.\u0275dir=t.lG2({type:xk,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var Dk=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Dk.\u0275fac=function(r){return new(r||Dk)(t.Y36(t.Rgc))},Dk.\u0275dir=t.lG2({type:Dk,selectors:[["","cdkStepLabel",""]]});var dPe=0,bm_NUMBER="number",bm_EDIT="edit",bm_DONE="done",bm_ERROR="error",Pie=new t.OlP("STEPPER_GLOBAL_OPTIONS"),lb=function(){function n(r,e){(0,B.Z)(this,n),this._stepper=r,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,U.Z)(n,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,En.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,En.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,En.Ig)(e)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=(0,En.Ig)(e)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}]),n}();lb.\u0275fac=function(r){return new(r||lb)(t.Y36((0,t.Gpc)(function(){return Cm})),t.Y36(Pie,8))},lb.\u0275cmp=t.Xpm({type:lb,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Dk,5),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,7),2&r)&&(t.iGM(i=t.CRH())&&(e.content=i.first))},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.YNc(0,uPe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var Cm=function(){function n(r,e,i){(0,B.Z)(this,n),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new On.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=dPe++}return(0,U.Z)(n,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,En.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,En.su)(e);this.steps&&this._steps?(this._isValidIndex(o),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==o&&!this._anyControlsInvalidOrPending(o)&&(o>=this._selectedIndex||this.steps.toArray()[o].editable)&&this._updateSelectedItemIndex(o)):this._selectedIndex=o}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}},{key:"orientation",get:function(){return this._orientation},set:function(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe((0,Oo.O)(this._steps),(0,Ir.R)(this._destroyed)).subscribe(function(i){e.steps.reset(i.filter(function(o){return o._stepper===e})),e.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var e=this;this._stepHeader.changes.pipe((0,Oo.O)(this._stepHeader),(0,Ir.R)(this._destroyed)).subscribe(function(i){e._sortedHeaders.reset(i.toArray().sort(function(o,a){return o._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})),e._sortedHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Kn.of)()).pipe((0,Oo.O)(this._layoutDirection()),(0,Ir.R)(this._destroyed)).subscribe(function(i){return e._keyManager.withHorizontalOrientation(i)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){e.selected||(e._selectedIndex=Math.max(e._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(e){return e.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(e){return"cdk-step-label-".concat(this._groupId,"-").concat(e)}},{key:"_getStepContentId",value:function(e){return"cdk-step-content-".concat(this._groupId,"-").concat(e)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(e){var i=e-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bm_NUMBER,o=this.steps.toArray()[e],a=this._isCurrentStep(e);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,a):this._getGuidelineLogic(o,a,i)}},{key:"_getDefaultIndicatorLogic",value:function(e,i){return e._showError()&&e.hasError&&!i?bm_ERROR:!e.completed||i?bm_NUMBER:e.editable?bm_EDIT:bm_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bm_NUMBER;return e._showError()&&e.hasError&&!i?bm_ERROR:e.completed&&!i?bm_DONE:e.completed&&i?o:e.editable&&i?bm_EDIT:o}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}},{key:"_onKeydown",value:function(e){var i=(0,Tr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==Tr.L_&&o!==Tr.K5?a.onKeydown(e):(this.selectedIndex=a.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(function(i){var o=i.stepControl;return(o?o.invalid||o.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,i=(0,bi.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),n}();Cm.\u0275fac=function(r){return new(r||Cm)(t.Y36(nl.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},Cm.\u0275dir=t.lG2({type:Cm,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,lb,5),t.Suo(i,xk,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var u2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._stepper=r,this.type="submit"});u2.\u0275fac=function(r){return new(r||u2)(t.Y36(Cm))},u2.\u0275dir=t.lG2({type:u2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.next()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var c2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._stepper=r,this.type="button"});c2.\u0275fac=function(r){return new(r||c2)(t.Y36(Cm))},c2.\u0275dir=t.lG2({type:c2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.previous()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var Ak=(0,U.Z)(function n(){(0,B.Z)(this,n)});function fPe(n,r){if(1&n&&t.GkF(0,8),2&n){var e=t.oxw();t.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function pPe(n,r){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function hPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.completedLabel)}}function mPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.editableLabel)}}function _Pe(n,r){if(1&n&&(t.TgZ(0,"mat-icon",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function gPe(n,r){if(1&n&&(t.ynx(0,9),t.YNc(1,pPe,2,1,"span",10),t.YNc(2,hPe,2,1,"span",11),t.YNc(3,mPe,2,1,"span",11),t.YNc(4,_Pe,2,1,"mat-icon",12),t.BQk()),2&n){var e=t.oxw();t.Q6J("ngSwitch",e.state),t.xp6(1),t.Q6J("ngSwitchCase","number"),t.xp6(1),t.Q6J("ngIf","done"===e.state),t.xp6(1),t.Q6J("ngIf","edit"===e.state)}}function vPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t.GkF(1,16),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function yPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.label)}}function bPe(n,r){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e._intl.optionalLabel)}}function CPe(n,r){if(1&n&&(t.TgZ(0,"div",18),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function wPe(n,r){}function kPe(n,r){if(1&n&&(t.Hsn(0),t.YNc(1,wPe,0,0,"ng-template",0)),2&n){var e=t.oxw();t.xp6(1),t.Q6J("cdkPortalOutlet",e._portal)}}Ak.\u0275fac=function(r){return new(r||Ak)},Ak.\u0275mod=t.oAB({type:Ak}),Ak.\u0275inj=t.cJS({imports:[nl.vT]});function MPe(n,r){1&n&&t._UZ(0,"div",11)}var Rie=function(r,e){return{step:r,i:e}};function SPe(n,r){if(1&n&&(t.ynx(0),t.GkF(1,9),t.YNc(2,MPe,1,0,"div",10),t.BQk()),2&n){var e=r.$implicit,i=r.index,o=r.last;t.oxw(2);var a=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",t.WLB(3,Rie,e,i)),t.xp6(1),t.Q6J("ngIf",!o)}}var Lie=function(r){return{animationDuration:r}},Zie=function(r,e){return{value:r,params:e}};function EPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12),t.NdJ("@horizontalStepTransition.done",function(l){t.CHM(e);var u=t.oxw(2);return t.KtG(u._animationDone.next(l))}),t.GkF(1,13),t.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=t.oxw(2);t.ekj("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),t.Q6J("@horizontalStepTransition",t.WLB(8,Zie,a._getAnimationDirection(o),t.VKq(6,Lie,a._getAnimationDuration())))("id",a._getStepContentId(o)),t.uIk("aria-labelledby",a._getStepLabelId(o)),t.xp6(1),t.Q6J("ngTemplateOutlet",i.content)}}function xPe(n,r){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5),t.YNc(2,SPe,3,6,"ng-container",6),t.qZA(),t.TgZ(3,"div",7),t.YNc(4,EPe,2,11,"div",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.steps),t.xp6(2),t.Q6J("ngForOf",e.steps)}}function DPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",15),t.GkF(1,9),t.TgZ(2,"div",16)(3,"div",17),t.NdJ("@verticalStepTransition.done",function(d){t.CHM(e);var h=t.oxw(2);return t.KtG(h._animationDone.next(d))}),t.TgZ(4,"div",18),t.GkF(5,13),t.qZA()()()()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=t.oxw(2),l=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",t.WLB(10,Rie,i,o)),t.xp6(1),t.ekj("mat-stepper-vertical-line",!a),t.xp6(1),t.ekj("mat-vertical-stepper-content-inactive",s.selectedIndex!==o),t.Q6J("@verticalStepTransition",t.WLB(15,Zie,s._getAnimationDirection(o),t.VKq(13,Lie,s._getAnimationDuration())))("id",s._getStepContentId(o)),t.uIk("aria-labelledby",s._getStepLabelId(o)),t.xp6(2),t.Q6J("ngTemplateOutlet",i.content)}}function APe(n,r){if(1&n&&(t.ynx(0),t.YNc(1,DPe,6,18,"div",14),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.steps)}}function OPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step-header",19),t.NdJ("click",function(){var u=t.CHM(e).step;return t.KtG(u.select())})("keydown",function(l){t.CHM(e);var u=t.oxw();return t.KtG(u._onKeydown(l))}),t.qZA()}if(2&n){var i=r.step,o=r.i,a=t.oxw();t.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),t.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),t.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var wm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Dk);wm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wm)))(e||wm)}}(),wm.\u0275dir=t.lG2({type:wm,selectors:[["","matStepLabel",""]],features:[t.qOj]});var km=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});km.\u0275fac=function(r){return new(r||km)},km.\u0275prov=t.Yz7({token:km,factory:km.\u0275fac,providedIn:"root"});var PPe={provide:km,deps:[[new t.FiY,new t.tp0,km]],useFactory:function IPe(n){return n||new km}},RPe=(0,Gt.pj)(function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,B.Z)(this,e),r.call(this,i)}return(0,U.Z)(e)}(xk),"primary"),Ok=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,a))._intl=i,l._focusMonitor=o,l._intlSubscription=i.changes.subscribe(function(){return s.markForCheck()}),l}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}},{key:"_stringLabel",value:function(){return this.label instanceof wm?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof wm?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(o){return"number"==o?"".concat(this.index+1):"edit"==o?"create":"error"==o?"warning":o}}]),e}(RPe);Ok.\u0275fac=function(r){return new(r||Ok)(t.Y36(km),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.sBO))},Ok.\u0275cmp=t.Xpm({type:Ok,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[t.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(r,e){1&r&&(t._UZ(0,"div",0),t.TgZ(1,"div")(2,"div",1),t.YNc(3,fPe,1,2,"ng-container",2),t.YNc(4,gPe,5,4,"ng-container",3),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,vPe,2,1,"div",5),t.YNc(7,yPe,2,1,"div",5),t.YNc(8,bPe,2,1,"div",6),t.YNc(9,CPe,2,1,"div",7),t.qZA()),2&r&&(t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),t.xp6(1),t.Gre("mat-step-icon-state-",e.state," mat-step-icon"),t.ekj("mat-step-icon-selected",e.selected),t.xp6(1),t.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(2),t.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),t.xp6(1),t.Q6J("ngIf",e._templateLabel()),t.xp6(1),t.Q6J("ngIf",e._stringLabel()),t.xp6(1),t.Q6J("ngIf",e.optional&&"error"!=e.state),t.xp6(1),t.Q6J("ngIf","error"==e.state))},dependencies:[le.O5,le.tP,le.RF,le.n9,le.ED,Dn,Gt.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0});var Fie={horizontalStepTransition:(0,Zt.X$)("horizontalStepTransition",[(0,Zt.SB)("previous",(0,Zt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Zt.SB)("current",(0,Zt.oB)({transform:"none",visibility:"inherit"})),(0,Zt.SB)("next",(0,Zt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Zt.eR)("* => *",(0,Zt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Zt.X$)("verticalStepTransition",[(0,Zt.SB)("previous",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("next",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("current",(0,Zt.oB)({height:"*",visibility:"inherit"})),(0,Zt.eR)("* <=> current",(0,Zt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])},d2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.templateRef=r});d2.\u0275fac=function(r){return new(r||d2)(t.Y36(t.Rgc))},d2.\u0275dir=t.lG2({type:d2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var f2=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._template=r});f2.\u0275fac=function(r){return new(r||f2)(t.Y36(t.Rgc))},f2.\u0275dir=t.lG2({type:f2,selectors:[["ng-template","matStepContent",""]]});var od=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=xa.w.EMPTY,l}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,Io.w)(function(){return o._stepper.selectionChange.pipe((0,$n.U)(function(a){return a.selectedStep===o}),(0,Oo.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new ao.UE(o._lazyContent._template,o._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(o,a){var s=this._errorStateMatcher.isErrorState(o,a),l=!!(o&&o.invalid&&this.interacted);return s||l}}]),e}(lb);od.\u0275fac=function(r){return new(r||od)(t.Y36((0,t.Gpc)(function(){return $d})),t.Y36(Gt.rD,4),t.Y36(t.s_b),t.Y36(Pie,8))},od.\u0275cmp=t.Xpm({type:od,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,wm,5),t.Suo(i,f2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first),t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[t._Bn([{provide:Gt.rD,useExisting:od},{provide:lb,useExisting:od}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,kPe,2,1,"ng-template"))},dependencies:[ao.Pl],encapsulation:2,changeDetection:0});var $d=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,B.Z)(this,e),(s=r.call(this,i,o,a)).steps=new t.n_E,s.animationDone=new t.vpe,s.labelPosition="end",s.headerPosition="top",s._iconOverrides={},s._animationDone=new On.xQ,s._animationDuration="";var l=a.nativeElement.nodeName.toLowerCase();return s.orientation="mat-vertical-stepper"===l?"vertical":"horizontal",s}return(0,U.Z)(e,[{key:"animationDuration",get:function(){return this._animationDuration},set:function(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}},{key:"ngAfterContentInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(a){var s=a.name,l=a.templateRef;return o._iconOverrides[s]=l}),this.steps.changes.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,ts.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Ir.R)(this._destroyed)).subscribe(function(a){"current"===a.toState&&o.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(o,a){return a.completed||this.selectedIndex===o||!this.linear}},{key:"_getAnimationDuration",value:function(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}]),e}(Cm);$d.\u0275fac=function(r){return new(r||$d)(t.Y36(nl.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},$d.\u0275cmp=t.Xpm({type:$d,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,od,5),t.Suo(i,d2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Ok,5),2&r)&&(t.iGM(i=t.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,e){2&r&&(t.uIk("aria-orientation",e.orientation),t.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition)("mat-stepper-header-position-bottom","bottom"===e.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[t._Bn([{provide:Cm,useExisting:$d}]),t.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,xPe,5,2,"div",1),t.YNc(2,APe,2,1,"ng-container",2),t.BQk(),t.YNc(3,OPe,1,23,"ng-template",null,3,t.W1O)),2&r&&(t.Q6J("ngSwitch",e.orientation),t.xp6(1),t.Q6J("ngSwitchCase","horizontal"),t.xp6(1),t.Q6J("ngSwitchCase","vertical"))},dependencies:[le.sg,le.O5,le.tP,le.RF,le.n9,Ok],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Fie.horizontalStepTransition,Fie.verticalStepTransition]},changeDetection:0});var Ik=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(u2);Ik.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ik)))(e||Ik)}}(),Ik.\u0275dir=t.lG2({type:Ik,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Pk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(c2);Pk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pk)))(e||Pk)}}(),Pk.\u0275dir=t.lG2({type:Pk,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Rk=(0,U.Z)(function n(){(0,B.Z)(this,n)});function LPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.image," ")}}Rk.\u0275fac=function(r){return new(r||Rk)},Rk.\u0275mod=t.oAB({type:Rk}),Rk.\u0275inj=t.cJS({providers:[PPe,Gt.rD],imports:[Gt.BQ,le.ez,ao.eL,pm,Ak,Og,Gt.si,Gt.BQ]});var Uie=function(){return{standalone:!0}};function ZPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,LPe,2,2,"mat-option",24),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,Uie))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.dockerImages)}}function NPe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",16),t._UZ(2,"input",32),t.qZA()())}function BPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var p2=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new JG,this.virtualMachineForm=this.formBuilder.group({filename:new J.p4(null,J.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new J.p4("1",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.consoleTypes=e.configurationService.getConsoleTypes(),e.templateMocksService.getDockerTemplate().subscribe(function(a){e.dockerTemplate=a}),e.dockerService.getImages(o).subscribe(function(a){e.dockerImages=a})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ns(),this.newImageSelected?this.dockerTemplate.image=this.virtualMachineForm.get("filename").value:this.dockerTemplate.image=this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id="local",this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function FPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}p2.\u0275fac=function(r){return new(r||p2)(t.Y36(dr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Ip),t.Y36(Qd.X))},p2.\u0275cmp=t.Xpm({type:p2,selectors:[["app-add-docker-template"]],decls:43,vars:18,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"New Docker container template"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5)(7,"mat-vertical-stepper",6)(8,"mat-step",7)(9,"mat-radio-group",8)(10,"mat-radio-button",9),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(11,"Run this Docker container locally"),t.qZA()()(),t.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(16,"Existing image"),t.qZA(),t.TgZ(17,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(18,"New image"),t.qZA()(),t.YNc(19,ZPe,2,4,"mat-select",13),t.YNc(20,NPe,3,0,"div",14),t.qZA()(),t.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),t._UZ(24,"input",17),t.qZA()()(),t.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),t._UZ(28,"input",19),t.qZA()()(),t.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),t.qZA()()(),t.TgZ(32,"mat-step",22)(33,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),t.YNc(34,BPe,2,2,"mat-option",24),t.qZA()(),t.TgZ(35,"mat-step",25)(36,"mat-form-field",16)(37,"textarea",26),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),t.qZA()()()()(),t.TgZ(38,"div",27)(39,"button",28),t.NdJ("click",function(){return e.goBack()}),t._uU(40,"Cancel"),t.qZA(),t.TgZ(41,"button",29),t.NdJ("click",function(){return e.addTemplate()}),t._uU(42,"Add template"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),t.xp6(1),t.Q6J("formGroup",e.virtualMachineForm),t.xp6(6),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected),t.xp6(1),t.Q6J("completed",e.containerNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.containerNameForm),t.xp6(3),t.Q6J("completed",e.networkAdaptersForm.get("adapters").value),t.xp6(1),t.Q6J("formGroup",e.networkAdaptersForm),t.xp6(3),t.Q6J("completed",e.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",e.dockerTemplate.start_command),t.xp6(1),t.Q6J("completed",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,Uie))("ngModel",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(3),t.Q6J("ngModel",e.dockerTemplate.environment))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,qn,di.gD,Gt.ey,od,$d,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var h2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s,e.templateName="Copy of ".concat(e.dockerTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ns(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function UPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function HPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function jPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function GPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}h2.\u0275fac=function(r){return new(r||h2)(t.Y36(dr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},h2.\u0275cmp=t.Xpm({type:h2,selectors:[["app-copy-docker-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,FPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy Docker container template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,Dn,qn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ub=function(){return{standalone:!0}};function zPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.category=a)}),t.YNc(13,HPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(14,"mat-form-field",12)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.symbol=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(17,"Choose symbol"),t.qZA(),t._UZ(18,"br")(19,"br"),t.TgZ(20,"mat-form-field",12)(21,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.start_command=a)}),t.qZA()(),t.TgZ(22,"mat-form-field",12)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.adapters=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",21)(25,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_type=a)}),t.YNc(26,jPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(27,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_auto_start=a)}),t._uU(28," Auto start console "),t.qZA(),t.TgZ(29,"mat-form-field",21)(30,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_resolution=a)}),t.YNc(31,GPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(32,"mat-form-field",12)(33,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_port=a)}),t.qZA()(),t.TgZ(34,"mat-form-field",12)(35,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_path=a)}),t.qZA()()(),t.TgZ(36,"h6"),t._uU(37,"Environment"),t.qZA(),t.TgZ(38,"mat-form-field",12)(39,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.environment=a)}),t.qZA()()(),t.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),t._uU(43," Advanced "),t.qZA()(),t.TgZ(44,"h6"),t._uU(45,"Extra hosts"),t.qZA(),t.TgZ(46,"mat-form-field",12)(47,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.extra_hosts=a)}),t.qZA()()(),t.TgZ(48,"mat-expansion-panel")(49,"mat-expansion-panel-header")(50,"mat-panel-title"),t._uU(51," Usage "),t.qZA()(),t.TgZ(52,"mat-form-field",12)(53,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.usage=a)}),t.qZA()()()(),t.TgZ(54,"div",28)(55,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(56,"Cancel"),t.qZA(),t.TgZ(57,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(58,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.name),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.default_name_format),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(25,ub))("ngModel",i.dockerTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(26,ub))("ngModel",i.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(27,ub))("ngModel",i.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(28,ub))("ngModel",i.dockerTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(29,ub))("ngModel",i.dockerTemplate.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,ub))("ngModel",i.dockerTemplate.console_http_port),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(31,ub))("ngModel",i.dockerTemplate.console_http_path),t.xp6(4),t.Q6J("ngModel",i.dockerTemplate.environment),t.xp6(8),t.Q6J("ngModel",i.dockerTemplate.extra_hosts),t.xp6(6),t.Q6J("ngModel",i.dockerTemplate.usage)}}function WPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",31),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var VPe=function(r){return{shadowed:r}},m2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.dockerTemplate.symbol=e}}]),n}();function YPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function KPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function qPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function JPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function QPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,JPe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.dockerTemplates)}}function XPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,QPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}m2.\u0275fac=function(r){return new(r||m2)(t.Y36(dr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(Ip),t.Y36(J.QS),t.Y36(ur))},m2.\u0275cmp=t.Xpm({type:m2,selectors:[["app-docker-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,UPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker image configuration"),t.qZA()()()(),t.YNc(8,zPe,59,32,"div",7),t.qZA(),t.YNc(9,WPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,VPe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.dockerTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,Dn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var _2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.dockerService.getTemplates(this.controller).subscribe(function(i){e.dockerTemplates=i.filter(function(o){return"docker"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates",e.template_id,"copy"])}}]),n}();_2.\u0275fac=function(r){return new(r||_2)(t.Y36(dr),t.Y36(or),t.Y36(id),t.Y36(ur))},_2.\u0275cmp=t.Xpm({type:_2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,YPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,KPe,3,1,"button",7),t.qZA()()(),t.YNc(10,qPe,1,0,"app-empty-templates-list",8),t.YNc(11,XPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.dockerTemplates.length),t.xp6(1),t.Q6J("ngIf",e.dockerTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ad=function(){function n(){(0,B.Z)(this,n),this.countSource=new On.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new On.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,U.Z)(n,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),n}();ad.\u0275fac=function(r){return new(r||ad)},ad.\u0275prov=t.Yz7({token:ad,factory:ad.\u0275fac,providedIn:"root"});var $Pe=["primaryValueBar"],e3e=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}(),"primary"),t3e=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function n3e(){var n=(0,t.f3M)(le.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var r3e=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),i3e=0,cb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;(0,B.Z)(this,e),(d=r.call(this,i))._ngZone=o,d._animationMode=a,d._changeDetectorRef=u,d._isNoopAnimation=!1,d._value=0,d._bufferValue=0,d.animationEnd=new t.vpe,d._animationEndSubscription=xa.w.EMPTY,d.mode="determinate",d.progressbarId="mat-progress-bar-".concat(i3e++);var h=s?s.getPathname().split("#")[0]:"";return d._rectangleFillValue="url('".concat(h,"#").concat(d.progressbarId,"')"),d._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(d.color=d.defaultColor=l.color),d.mode=l.mode||d.mode),d}return(0,U.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=Hie((0,En.su)(o)||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(o){var a;this._bufferValue=Hie(o||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_primaryTransform",value:function(){var o=this.value/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}},{key:"_bufferTransform",value:function(){if("buffer"===this.mode){var o=this.bufferValue/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}return null}},{key:"ngAfterViewInit",value:function(){var o=this;this._ngZone.runOutsideAngular(function(){var a=o._primaryValueBar.nativeElement;o._animationEndSubscription=(0,Xf.R)(a,"transitionend").pipe((0,$r.h)(function(s){return s.target===a})).subscribe(function(){0!==o.animationEnd.observers.length&&("determinate"===o.mode||"buffer"===o.mode)&&o._ngZone.run(function(){return o.animationEnd.next({value:o.value})})})})}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}}]),e}(e3e);function Hie(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(e,n))}cb.\u0275fac=function(r){return new(r||cb)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(t3e,8),t.Y36(r3e,8),t.Y36(t.sBO))},cb.\u0275cmp=t.Xpm({type:cb,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&t.Gf($Pe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._primaryValueBar=i.first))},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),t.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&r&&(t.xp6(3),t.Q6J("id",e.progressbarId),t.xp6(2),t.uIk("fill",e._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",e._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",e._primaryTransform()))},dependencies:[le.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0});var Lk=(0,U.Z)(function n(){(0,B.Z)(this,n)});Lk.\u0275fac=function(r){return new(r||Lk)},Lk.\u0275mod=t.oAB({type:Lk}),Lk.\u0275inj=t.cJS({imports:[le.ez,Gt.BQ,Gt.BQ]});var Tm=function(){function n(r,e,i){(0,B.Z)(this,n),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.upload_file_type=this.data.upload_file_type,this.subscription=this._US.currentCount.subscribe(function(i){e.uploadProgress=i,(100===e.uploadProgress||null==e.uploadProgress)&&e.dismiss()})}},{key:"dismiss",value:function(){this._snackRef.dismiss()}},{key:"cancelItem",value:function(){this._US.cancelFileUploading(!0)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();Tm.\u0275fac=function(r){return new(r||Tm)(t.Y36(HG),t.Y36(MB),t.Y36(ad))},Tm.\u0275cmp=t.Xpm({type:Tm,selectors:[["app-uploading-processbar"]],decls:8,vars:3,consts:[[1,"row","proccessBar-row"],[1,"col-md-9","proccessBar-col"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-3","proccessBar-col"],["mat-button","","color","primary",1,"file-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"div",1),t._UZ(4,"mat-progress-bar",2),t.qZA(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){return e.cancelItem()}),t._uU(7,"Cancel"),t.qZA()()()),2&r&&(t.xp6(1),t.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),t.xp6(3),t.Q6J("value",e.uploadProgress))},dependencies:[fn,cb],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var QG=(0,U.Z)(function n(){(0,B.Z)(this,n)}),sd=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=ios")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/images/upload/").concat(i)}},{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();sd.\u0275fac=function(r){return new(r||sd)(t.LFG(ho.zw))},sd.\u0275prov=t.Yz7({token:sd,factory:sd.\u0275fac});var Mm=function(){function n(){(0,B.Z)(this,n),this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getDefaultRamSettings",value:function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}}},{key:"getDefaultNvRamSettings",value:function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}}},{key:"getAvailablePlatforms",value:function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]}},{key:"getPlatformsWithEtherSwitchRouterOption",value:function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}}},{key:"getPlatformsWithChassis",value:function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}}},{key:"getChassis",value:function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}}},{key:"getNetworkModules",value:function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}}},{key:"getNetworkAdapters",value:function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}}},{key:"getNetworkAdaptersForPlatform",value:function(){var e={};return e.c2691={0:["GT96100-FE"],1:this.c3700_nms},e.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},e.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},e.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}}}]),n}();function o3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function a3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function s3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function l3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function u3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",20)(1,"mat-select",39),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onChassisChosen(a))}),t.YNc(2,l3e,2,2,"mat-option",22),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function c3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-checkbox",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.isEtherSwitchRouter=a)}),t._uU(1," This is an EtherSwitch router "),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("ngModel",i.isEtherSwitchRouter)}}function d3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Mm.\u0275fac=function(r){return new(r||Mm)},Mm.\u0275prov=t.Yz7({token:Mm,factory:Mm.\u0275fac});var jie=function(){return{standalone:!0}};function f3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,d3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,jie)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function p3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,f3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][e])}}var h3e=function(){return[0,1,2,3,4,5,6,7]};function m3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,p3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,h3e)))}function _3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function g3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkModulesForTemplate[l]=s)}),t.YNc(1,_3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",t.DdM(4,jie)),t.xp6(1),t.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function v3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,g3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][e])}}var y3e=function(){return[0,1,2,3]};function b3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,v3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,y3e)))}function C3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"mat-vertical-stepper",11)(3,"mat-step",12)(4,"mat-radio-group",13)(5,"mat-radio-button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setControllerType("local"))}),t._uU(6,"Run this IOS router locally"),t.qZA()()(),t.TgZ(7,"mat-step",15)(8,"input",16,17),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.addImage(a))}),t.qZA(),t.TgZ(10,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(9);return t.KtG(a.click())}),t._uU(11,"Click to add image"),t.qZA(),t._uU(12," or create from existing one "),t.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onImageChosen(a))}),t.YNc(16,a3e,2,2,"mat-option",22),t.qZA()()()(),t.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),t._UZ(20,"input",24),t.qZA(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",25),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onPlatformChosen(a))}),t.YNc(23,s3e,2,2,"mat-option",22),t.qZA()(),t.YNc(24,u3e,3,1,"mat-form-field",26),t.qZA(),t.YNc(25,c3e,2,1,"mat-checkbox",27),t.qZA(),t.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),t._UZ(29,"input",29),t.TgZ(30,"span",30),t._uU(31,"MB"),t.qZA()(),t.TgZ(32,"mat-label")(33,"a",31),t._uU(34,"Check for minimum and maximum RAM requirement"),t.qZA()()()(),t.TgZ(35,"mat-step",32),t.YNc(36,m3e,2,2,"div",33),t.qZA(),t.TgZ(37,"mat-step",34),t.YNc(38,b3e,2,2,"div",33),t.qZA(),t.TgZ(39,"mat-step",35)(40,"mat-form-field",20)(41,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()()()()(),t.TgZ(42,"div",37)(43,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(44,"Cancel"),t.qZA(),t.TgZ(45,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(46,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",i.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",i.iosImageForm.get("imageName").value),t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("formGroup",i.iosImageForm),t.xp6(3),t.Q6J("ngForOf",i.iosImages),t.xp6(1),t.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),t.xp6(1),t.Q6J("formGroup",i.iosNameForm),t.xp6(5),t.Q6J("ngForOf",i.platforms),t.xp6(1),t.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),t.xp6(1),t.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),t.xp6(1),t.Q6J("completed",i.iosMemoryForm.get("memory").value),t.xp6(1),t.Q6J("formGroup",i.iosMemoryForm),t.xp6(6),t.s9C("href",i.ciscoUrl,t.LSH),t.xp6(3),t.Q6J("ngIf",i.selectedPlatform),t.xp6(2),t.Q6J("ngIf",i.iosNameForm.get("platform").value),t.xp6(3),t.Q6J("ngModel",i.iosTemplate.idlepc)}}var g2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=l,this.iosConfigurationService=u,this.computeService=d,this.uploadServiceService=h,this.snackBar=g,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iosTemplate=new QG,this.iosImageForm=this.formBuilder.group({imageName:new J.p4(null,[J.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required]),platform:new J.p4(null,[J.kI.required]),chassis:new J.p4(null,[J.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()});var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIosTemplate().subscribe(function(a){e.iosTemplate=a,e.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings()})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"getImages",value:function(){var e=this;this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i})}},{key:"addImage",value:function(e){var i=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(i);var o=e.target.files[0].name,a=this.iosService.getImagePath(this.controller,o);this.uploader.queue.forEach(function(l){return l.url=a});var s=this.uploader.queue[0];s.options&&(s.options.disableMultipart=!0),s.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(s),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"addTemplate",value:function(){var e=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=ns(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol="multilayer_switch",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id="local",this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"completeAdaptersData",value:function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var e=0;e<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(var i=0;i<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;i++)this.networkAdaptersForTemplate[i]||(this.networkAdaptersForTemplate[i]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"completeModulesData",value:function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var e=0;e<Object.keys(this.networkModules[this.iosTemplate.platform]).length;e++)this.networkModulesForTemplate[e]||(this.networkModulesForTemplate[e]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"onImageChosen",value:function(){var e=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(e),"c3620"===e||"c3640"===e||"c3660"===e?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(e),this.selectedPlatform=e),"c1700"===e?this.iosNameForm.controls.chassis.setValue("1720"):"c2600"===e?this.iosNameForm.controls.chassis.setValue("2610"):this.iosNameForm.controls.chassis.setValue(""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[e])}},{key:"onPlatformChosen",value:function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]}},{key:"onChassisChosen",value:function(){this.networkAdaptersForTemplate=[]}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function w3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}g2.\u0275fac=function(r){return new(r||g2)(t.Y36(dr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(J.QS),t.Y36(ur),t.Y36(Al),t.Y36(Mm),t.Y36(Qd.X),t.Y36(ad),t.Y36(rd))},g2.\u0275cmp=t.Xpm({type:g2,selectors:[["app-add-ios-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,o3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOS router template"),t.qZA()()()(),t.YNc(8,C3e,47,17,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.hX,kn.R9,fn,Dn,qn,ti,di.gD,Gt.ey,od,$d,rs,zs],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var v2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.templateName="Copy of ".concat(e.iosTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"addTemplate",value:function(){var e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=ns(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function k3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function T3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function M3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}v2.\u0275fac=function(r){return new(r||v2)(t.Y36(dr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},v2.\u0275cmp=t.Xpm({type:v2,selectors:[["app-copy-ios-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,w3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOS router template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.formGroup),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Sm=function(){return{standalone:!0}};function S3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",41),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,M3e,2,2,"mat-option",14),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Sm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function E3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,S3e,2,5,"mat-select",40),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][e])}}var Gie=function(){return[0,1,2,3,4,5,6,7]};function x3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,E3e,2,1,"div",39),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,Gie)))}function D3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function A3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",41),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,D3e,2,2,"mat-option",14),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Sm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function O3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,A3e,2,5,"mat-select",40),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][e])}}function I3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,O3e,2,1,"div",39),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,Gie)))}function P3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function R3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic0=a)}),t.YNc(2,P3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function L3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Z3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic1=a)}),t.YNc(2,L3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function N3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function B3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",44),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic2=a)}),t.YNc(2,N3e,2,2,"mat-option",14),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function F3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",7)(7,"mat-form-field",8)(8,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"input",10),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-label"),t._uU(12),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-label"),t._uU(16),t.qZA(),t._UZ(17,"br")(18,"br"),t.TgZ(19,"mat-form-field",8)(20,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.symbol=a)}),t.qZA()(),t.TgZ(21,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(22,"Choose symbol"),t.qZA(),t._UZ(23,"br")(24,"br"),t.TgZ(25,"mat-form-field",8)(26,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.category=a)}),t.YNc(27,k3e,2,2,"mat-option",14),t.qZA()(),t.TgZ(28,"mat-form-field",8)(29,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.image=a)}),t.qZA()(),t.TgZ(30,"mat-form-field",8)(31,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.startup_config=a)}),t.qZA()(),t.TgZ(32,"mat-form-field",8)(33,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.private_config=a)}),t.qZA()()(),t.TgZ(34,"mat-form-field",18)(35,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_type=a)}),t.YNc(36,T3e,2,2,"mat-option",14),t.qZA()(),t.TgZ(37,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_auto_start=a)}),t._uU(38," Auto start console "),t.qZA()(),t.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Memories and disks "),t.qZA()(),t.TgZ(43,"form",7)(44,"mat-form-field",8)(45,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.ram=a)}),t.qZA(),t.TgZ(46,"span",22),t._uU(47,"MB"),t.qZA()(),t.TgZ(48,"mat-form-field",8)(49,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.nvram=a)}),t.qZA(),t.TgZ(50,"span",22),t._uU(51,"MB"),t.qZA()(),t.TgZ(52,"mat-form-field",8)(53,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.iomem=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",8)(55,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk0=a)}),t.qZA()(),t.TgZ(56,"mat-form-field",8)(57,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk1=a)}),t.qZA()()(),t.TgZ(58,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.auto_delete_disks=a)}),t._uU(59," Automatically delete NVRAM and disk files "),t.qZA()(),t.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Slots "),t.qZA()(),t.TgZ(64,"h6"),t._uU(65,"Adapters"),t.qZA(),t.YNc(66,x3e,2,2,"div",27),t.YNc(67,I3e,2,2,"div",27),t._UZ(68,"br")(69,"br"),t.TgZ(70,"h6"),t._uU(71,"WICs"),t.qZA(),t.YNc(72,R3e,3,4,"div",27),t.YNc(73,Z3e,3,4,"div",27),t.YNc(74,B3e,3,4,"div",27),t.qZA(),t.TgZ(75,"mat-expansion-panel")(76,"mat-expansion-panel-header")(77,"mat-panel-title"),t._uU(78," Advanced "),t.qZA()(),t.TgZ(79,"form",7)(80,"mat-form-field",8)(81,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.system_id=a)}),t.qZA()(),t.TgZ(82,"mat-form-field",8)(83,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mac_addr=a)}),t.qZA()(),t.TgZ(84,"mat-form-field",8)(85,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()(),t.TgZ(86,"mat-form-field",8)(87,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlemax=a)}),t.qZA()(),t.TgZ(88,"mat-form-field",8)(89,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlesleep=a)}),t.qZA()(),t.TgZ(90,"mat-form-field",8)(91,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.exec_area=a)}),t.qZA()()(),t.TgZ(92,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mmap=a)}),t._uU(93," Enable mmap support "),t.qZA(),t._UZ(94,"br")(95,"br"),t.TgZ(96,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.sparsemem=a)}),t._uU(97," Enable sparse memory supoport "),t.qZA()(),t.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),t._uU(101," Usage "),t.qZA()(),t.TgZ(102,"mat-form-field",8)(103,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.usage=a)}),t.qZA()()()(),t.TgZ(104,"div",35)(105,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(106,"Cancel"),t.qZA(),t.TgZ(107,"button",37),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(108,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.default_name_format),t.xp6(2),t.hij("Platform - ",i.iosTemplate.platform,""),t.xp6(4),t.hij("Chassis - ",i.iosTemplate.chassis,""),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(40,Sm))("ngModel",i.iosTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.image),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(41,Sm))("ngModel",i.iosTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.console_auto_start),t.xp6(6),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.nvram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.iomem),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk0),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk1),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.auto_delete_disks),t.xp6(8),t.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),t.xp6(5),t.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),t.xp6(5),t.Q6J("formGroup",i.advancedForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.system_id),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(42,Sm))("ngModel",i.iosTemplate.mac_addr),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(43,Sm))("ngModel",i.iosTemplate.idlepc),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlemax),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlesleep),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.exec_area),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.mmap),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.sparsemem),t.xp6(7),t.Q6J("ngModel",i.iosTemplate.usage)}}function U3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",45),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var H3e=function(r){return{shadowed:r}},y2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required),iomemory:new J.p4("",J.kI.required),disk0:new J.p4("",J.kI.required),disk1:new J.p4("",J.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new J.p4("",J.kI.required),idlemax:new J.p4("",J.kI.required),idlesleep:new J.p4("",J.kI.required),execarea:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.fillAdaptersData()})})}},{key:"getConfiguration",value:function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes()}},{key:"fillAdaptersData",value:function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)}},{key:"completeAdaptersData",value:function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=e}}]),n}();function j3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function G3e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function z3e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function W3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function V3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,W3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iosTemplates)}}function Y3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,V3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}y2.\u0275fac=function(r){return new(r||y2)(t.Y36(dr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm),t.Y36(ur))},y2.\u0275cmp=t.Xpm({type:y2,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Dynamips IOS Router configuration"),t.qZA()()(),t.YNc(5,F3e,109,44,"div",4),t.qZA(),t.YNc(6,U3e,1,2,"app-symbols-menu",5)),2&r&&(t.Q6J("ngClass",t.VKq(3,H3e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.iosTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,fn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var b2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iosService.getTemplates(this.controller).subscribe(function(i){e.iosTemplates=i.filter(function(o){return"dynamips"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates",e.template_id,"copy"])}}]),n}();b2.\u0275fac=function(r){return new(r||b2)(t.Y36(dr),t.Y36(or),t.Y36(sd),t.Y36(ur))},b2.\u0275cmp=t.Xpm({type:b2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,j3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,G3e,3,1,"button",7),t.qZA()()(),t.YNc(10,z3e,1,0,"app-empty-templates-list",8),t.YNc(11,Y3e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iosTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iosTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var XG=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ld=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=iou")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/images/upload/").concat(i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function K3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function q3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function J3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.path),t.xp6(1),t.hij(" ",e.path," ")}}ld.\u0275fac=function(r){return new(r||ld)(t.LFG(ho.zw))},ld.\u0275prov=t.Yz7({token:ld,factory:ld.\u0275fac});var zie=function(){return{standalone:!0}};function Q3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.YNc(2,J3e,2,2,"mat-option",20),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",t.DdM(3,zie)),t.xp6(1),t.Q6J("ngForOf",i.iouImages)}}function X3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",28,29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",31),t._UZ(6,"input",32),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader)}}var C2=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.computeService=u,this.uploadServiceService=d,this.snackBar=h,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iouTemplate=new XG,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIouTemplate().subscribe(function(a){e.iouTemplate=a})}),this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"getImages",value:function(){var e=this;this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.imageForm.controls.imageName.setValue(i);var o=this.iouService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(100),this.toasterService.warning("File upload cancelled")}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=ns(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id="local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function $3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}C2.\u0275fac=function(r){return new(r||C2)(t.Y36(dr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Qd.X),t.Y36(ad),t.Y36(rd))},C2.\u0275cmp=t.Xpm({type:C2,selectors:[["app-add-iou-template"]],decls:36,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,K3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this IOU device locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA()()(),t.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(23,"Existing image"),t.qZA(),t.TgZ(24,"mat-radio-button",18),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(25,"New image"),t.qZA()(),t.TgZ(26,"mat-form-field",15)(27,"mat-select",19),t.NdJ("ngModelChange",function(o){return e.selectedType=o}),t.YNc(28,q3e,2,2,"mat-option",20),t.qZA()(),t.YNc(29,Q3e,3,4,"mat-form-field",21),t.YNc(30,X3e,7,1,"div",22),t.qZA()()()(),t.TgZ(31,"div",23)(32,"button",24),t.NdJ("click",function(){return e.goBack()}),t._uU(33,"Cancel"),t.qZA(),t.TgZ(34,"button",25),t.NdJ("click",function(){return e.addTemplate()}),t._uU(35,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.templateNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.templateNameForm),t.xp6(4),t.Q6J("formGroup",e.imageForm),t.xp6(7),t.Q6J("ngModel",e.selectedType)("ngModelOptions",t.DdM(11,zie)),t.xp6(1),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,fn,Dn,qn,di.gD,Gt.ey,od,$d,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var w2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s,e.templateName="Copy of ".concat(e.iouTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=ns(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),n}();w2.\u0275fac=function(r){return new(r||w2)(t.Y36(dr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},w2.\u0275cmp=t.Xpm({type:w2,selectors:[["app-copy-iou-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,$3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Lg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function e6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function t6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function n6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function r6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.ram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.ram)}}function i6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.nvram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.nvram)}}Lg.\u0275fac=function(r){return new(r||Lg)},Lg.\u0275prov=t.Yz7({token:Lg,factory:Lg.\u0275fac});var Wie=function(){return{standalone:!0}};function o6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",2)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",2)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",2)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.category=a)}),t.YNc(19,t6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"input",19,20),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(22,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(21);return t.KtG(a.click())}),t._uU(23,"Browse"),t.qZA(),t.TgZ(24,"mat-form-field",22)(25,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",2)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.startup_config=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",2)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.private_config=a)}),t.qZA()()(),t.TgZ(30,"mat-form-field",26)(31,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_type=a)}),t.YNc(32,n6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(33,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_auto_start=a)}),t._uU(34," Auto start console "),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.l1_keepalives=a)}),t._uU(37," Enable layer 1 keepalive messages (non-functional) "),t.qZA(),t._UZ(38,"br"),t.TgZ(39,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.use_default_iou_values=a)}),t._uU(40," Use default IOU values for memories "),t.qZA(),t.YNc(41,r6e,4,1,"mat-form-field",29),t.YNc(42,i6e,4,1,"mat-form-field",29),t.qZA(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," Network "),t.qZA()(),t.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.ethernet_adapters=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",2)(51,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.serial_adapters=a)}),t.qZA()()()(),t.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),t._uU(55," Usage "),t.qZA()(),t.TgZ(56,"mat-form-field",2)(57,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.usage=a)}),t.qZA()()()(),t.TgZ(58,"div",33)(59,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(60,"Cancel"),t.qZA(),t.TgZ(61,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(62,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(22,Wie))("ngModel",i.iouTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.path),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,Wie))("ngModel",i.iouTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iouTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.l1_keepalives),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(5),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.serial_adapters),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.usage)}}function a6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",39),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var s6e=function(r){return{shadowed:r}},k2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=l,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iouService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.controller,this.iouTemplate).subscribe(function(){e.toasterService.success("Changes saved")})}},{key:"uploadImageFile",value:function(e){this.iouTemplate.path=e.target.files[0].name}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=e}}]),n}();function l6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function u6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function c6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",16)(1,"mat-list-item",17),t._uU(2),t.qZA(),t.TgZ(3,"button",18)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,19)(8,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",21)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function d6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,c6e,23,4,"div",15),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iouTemplates)}}function f6e(n,r){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14),t.YNc(2,d6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}k2.\u0275fac=function(r){return new(r||k2)(t.Y36(dr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(Lg),t.Y36(ur),t.Y36(J.QS))},k2.\u0275cmp=t.Xpm({type:k2,selectors:[["app-iou-template-details"]],decls:11,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.YNc(5,e6e,3,0,"button",5),t.qZA(),t.TgZ(6,"div",6)(7,"h1",7),t._uU(8,"IOU device configuration"),t.qZA()()()()(),t.YNc(9,o6e,63,24,"div",8),t.qZA(),t.YNc(10,a6e,1,2,"app-symbols-menu",9)),2&r&&(t.Q6J("ngClass",t.VKq(4,s6e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iouTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,Dn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var T2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iouService.getTemplates(this.controller).subscribe(function(i){e.iouTemplates=i.filter(function(o){return"iou"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates",e.template_id,"copy"])}}]),n}();T2.\u0275fac=function(r){return new(r||T2)(t.Y36(dr),t.Y36(or),t.Y36(ld),t.Y36(ur))},T2.\u0275cmp=t.Xpm({type:T2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:16,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"IOU device templates"),t.qZA()(),t.TgZ(10,"div",3),t.YNc(11,l6e,3,1,"button",7),t.qZA()()(),t.YNc(12,u6e,1,0,"app-empty-templates-list",8),t.YNc(13,f6e,3,1,"div",9),t.qZA(),t.TgZ(14,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iouTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iouTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var M2=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();M2.\u0275fac=function(r){return new(r||M2)(t.Y36(dr))},M2.\u0275cmp=t.Xpm({type:M2,selectors:[["app-preferences"]],decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Template preferences"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Built-in "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Dynamips "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," IOS on Unix "),t.qZA(),t.TgZ(19,"mat-list-item",9),t._uU(20," VPCS "),t.qZA(),t.TgZ(21,"mat-list-item",9),t._uU(22," QEMU "),t.qZA(),t.TgZ(23,"mat-list-item",9),t._uU(24," VirtualBox "),t.qZA(),t.TgZ(25,"mat-list-item",9),t._uU(26," VMware "),t.qZA(),t.TgZ(27,"mat-list-item",9),t._uU(28," Docker "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/projects"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},dependencies:[$o,fn,Dn,Gs,Oa],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var $G=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Gu=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/images/upload/").concat(i)}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=qemu")}},{key:"addImage",value:function(e,i){return this.httpController.post(e,"/images/upload",i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();Gu.\u0275fac=function(r){return new(r||Gu)(t.LFG(ho.zw))},Gu.\u0275prov=t.Yz7({token:Gu,factory:Gu.\u0275fac});var Em=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getPlatform",value:function(){return["x86_64","aarch64","alpha","arm","cris","i386","lm32","m68k","microblaze","microblazeel","mips","mips64","mips64el","mipsel","moxie","or32","ppc","ppc64","ppcemb","s390x","sh4","sh4eb","sparc","sparc64","tricore","unicore32","xtensa","xtensaeb"]}},{key:"getConsoleTypes",value:function(){return["telnet","vnc","spice","spice+agent","none"]}},{key:"getDiskInterfaces",value:function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]}},{key:"getNetworkTypes",value:function(){return[{value:"e1000",name:"Intel Gigabit Ethernet"},{value:"e1000-82544gc",name:"Intel 82544GC Gigabit Ethernet"},{value:"e1000-82545em",name:"Intel 82545EM Gigabit Ethernet"},{value:"e1000e",name:"Intel PCIe Gigabit Ethernet"},{value:"i82550",name:"Intel i82550 Ethernet"},{value:"i82551",name:"Intel i82551 Ethernet"},{value:"i82557a",name:"Intel i82557A Ethernet"},{value:"i82557b",name:"Intel i82557B Ethernet"},{value:"i82557c",name:"Intel i82557C Ethernet"},{value:"i82558a",name:"Intel i82558A Ethernet"},{value:"i82558b",name:"Intel i82558B Ethernet"},{value:"i82559a",name:"Intel i82559A Ethernet"},{value:"i82559b",name:"Intel i82559B Ethernet"},{value:"i82559c",name:"Intel i82559C Ethernet"},{value:"i82559er",name:"Intel i82559ER Ethernet"},{value:"i82562",name:"Intel i82562 Ethernet"},{value:"i82801",name:"Intel i82801 Ethernet"},{value:"ne2k_pci",name:"NE2000 Ethernet"},{value:"pcnet",name:"AMD PCNet Ethernet"},{value:"rocker",name:"Rocker L2 switch device"},{value:"rtl8139",name:"Realtek 8139 Ethernet"},{value:"virtio-net-pci",name:"Paravirtualized Network I/O"},{value:"vmxnet3",name:"VMWare Paravirtualized Ethernet v3"}]}},{key:"getBootPriorities",value:function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]}},{key:"getOnCloseOptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getPriorities",value:function(){return["realtime","very high","high","normal","low","very low"]}}]),n}();function p6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function h6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function m6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.filename," ")}}Em.\u0275fac=function(r){return new(r||Em)},Em.\u0275prov=t.Yz7({token:Em,factory:Em.\u0275fac});var ez=function(){return{standalone:!0}};function g6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,_6e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,ez))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.qemuImages)}}function v6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",33,34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",35),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",36)(6,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.chosenImage=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("ngModel",i.chosenImage)}}var S2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.snackBar=h,this.uploadServiceService=g,this.selectPlatform=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new $G,this.nameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new J.p4("256",J.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.qemuService.getImages(e.controller).subscribe(function(u){e.qemuImages=u}),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.templateMocksService.getQemuTemplate().subscribe(function(a){e.qemuTemplate=a}),e.qemuService.getImages(e.controller).subscribe(function(a){e.qemuImages=a}),e.selectPlatform=e.configurationService.getPlatform(),e.selectedPlatform=e.selectPlatform[0],e.consoleTypes=e.configurationService.getConsoleTypes()}),this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.diskForm.controls.fileName.setValue(i);var o=this.qemuService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image Uploading canceled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.platform=this.selectedPlatform,this.newImageSelected?this.qemuTemplate.hda_disk_image=this.diskForm.get("fileName").value:this.qemuTemplate.hda_disk_image=this.selectedImage.path,this.qemuTemplate.template_id=ns(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id="local",this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function y6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}S2.\u0275fac=function(r){return new(r||S2)(t.Y36(dr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS),t.Y36(Al),t.Y36(Em),t.Y36(Qd.X),t.Y36(rd),t.Y36(ad))},S2.\u0275cmp=t.Xpm({type:S2,selectors:[["app-add-qemu-virtual-machine-template"]],decls:50,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","Platform and memory",3,"completed"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,p6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this QEMU VM locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA(),t._UZ(19,"br"),t.qZA()(),t.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),t.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),t.YNc(24,h6e,2,2,"mat-option",19),t.qZA()(),t._UZ(25,"br"),t.TgZ(26,"mat-form-field",15),t._UZ(27,"input",20),t.TgZ(28,"span",21),t._uU(29,"MB"),t.qZA()()()(),t.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),t.YNc(33,m6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(34,"mat-step",24)(35,"form",14)(36,"mat-radio-group",11)(37,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(38,"Existing image"),t.qZA(),t.TgZ(39,"mat-radio-button",25),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(40,"New image"),t.qZA()(),t._UZ(41,"br")(42,"br"),t.YNc(43,g6e,2,4,"mat-select",26),t.YNc(44,v6e,7,2,"div",27),t.qZA()()()(),t.TgZ(45,"div",28)(46,"button",29),t.NdJ("click",function(){return e.goBack()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",30),t.NdJ("click",function(){return e.addTemplate()}),t._uU(49,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.nameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.nameForm),t.xp6(4),t.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),t.xp6(1),t.Q6J("formGroup",e.memoryForm),t.xp6(2),t.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",t.DdM(17,ez)),t.xp6(1),t.Q6J("ngForOf",e.selectPlatform),t.xp6(6),t.Q6J("completed",e.qemuTemplate.console_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",t.DdM(18,ez)),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(2),t.Q6J("formGroup",e.diskForm),t.xp6(8),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.R9,fn,Dn,qn,di.gD,Gt.ey,od,$d,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var E2=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.nameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.templateName="Copy of ".concat(e.qemuTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=ns(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function b6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter number"),t.qZA())}function C6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Adapter ",e.adapter_number,"")}}function w6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Port name"),t.qZA())}function k6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Ethernet ",e.adapter_number,"")}}function T6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter type"),t.qZA())}function M6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function S6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"mat-select",12),t.NdJ("ngModelChange",function(s){var u=t.CHM(e).$implicit;return t.KtG(u.adapter_type=s)}),t.YNc(2,M6e,2,2,"mat-option",13),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngModel",i.adapter_type),t.xp6(1),t.Q6J("ngForOf",o.networkTypes)}}function E6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Actions"),t.qZA())}function x6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"button",15),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",16),t._uU(3,"delete"),t.qZA()()()}}function D6e(n,r){1&n&&t._UZ(0,"tr",17)}function A6e(n,r){1&n&&t._UZ(0,"tr",18)}E2.\u0275fac=function(r){return new(r||E2)(t.Y36(dr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},E2.\u0275cmp=t.Xpm({type:E2,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,y6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Zg=function(){function n(){(0,B.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,U.Z)(n,[{key:"onAdd",value:function(){var e={adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]};this.adapters=this.adapters.concat([e])}},{key:"delete",value:function(e){this.adapters=this.adapters.filter(function(i){return i!==e})}}]),n}();Zg.\u0275fac=function(r){return new(r||Zg)},Zg.\u0275cmp=t.Xpm({type:Zg,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,b6e,2,0,"th",2),t.YNc(3,C6e,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,w6e,2,0,"th",2),t.YNc(6,k6e,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,T6e,2,0,"th",2),t.YNc(9,S6e,3,2,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,E6e,2,0,"th",2),t.YNc(12,x6e,4,0,"td",3),t.BQk(),t.YNc(13,D6e,1,0,"tr",7),t.YNc(14,A6e,1,0,"tr",8),t.qZA(),t.TgZ(15,"button",9),t.NdJ("click",function(){return e.onAdd()}),t._uU(16,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.adapters),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[le.sg,J.JJ,J.On,fn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,di.gD,Gt.ey,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var O6e=["customAdapters"],db=function(){function n(){(0,B.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new t.vpe,this.saveConfigurationEmitter=new t.vpe}return(0,U.Z)(n,[{key:"cancelConfigureCustomAdapters",value:function(){this.closeConfiguratorEmitter.emit(!1)}},{key:"configureCustomAdapters",value:function(){var e=this;this.adapters=[],this.customAdapters.adapters.forEach(function(i){e.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)}}]),n}();db.\u0275fac=function(r){return new(r||db)},db.\u0275cmp=t.Xpm({type:db,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(O6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Custom adapters configuration"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5),t._UZ(7,"app-custom-adapters-table",6,7),t.qZA(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.configureCustomAdapters()}),t._uU(13,"Apply"),t.qZA(),t._UZ(14,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},dependencies:[fn,Zg],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var I6e=["customAdaptersConfigurator"];function P6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function R6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function L6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Z6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function N6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function B6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function F6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function U6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function H6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function j6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function G6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.AsE("",e.name," (",e.value,") ")}}function z6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",14)(1,"input",58),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.qemuTemplate.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function W6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",57),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function V6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.symbol=a)}),t.qZA()()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.category=a)}),t.YNc(19,R6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",14)(21,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.platform=a)}),t.YNc(22,L6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-form-field",14)(24,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.ram=a)}),t.qZA(),t.TgZ(25,"span",23),t._uU(26,"MB"),t.qZA()(),t.TgZ(27,"mat-form-field",14)(28,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cpus=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.boot_priority=a)}),t.YNc(31,Z6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(32,"mat-form-field",14)(33,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.on_close=a)}),t.YNc(34,N6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(35,"mat-form-field",27)(36,"mat-select",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_type=a)}),t.YNc(37,B6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(38,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_auto_start=a)}),t._uU(39," Auto start console "),t.qZA()(),t.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),t._uU(43," HDD "),t.qZA()(),t.TgZ(44,"mat-card"),t._UZ(45,"mat-card-title"),t.TgZ(46,"mat-card-subtitle"),t._uU(47," HDA (Primary Master) "),t.qZA(),t.TgZ(48,"mat-card-content")(49,"mat-form-field",14)(50,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_image=a)}),t.qZA()(),t.TgZ(51,"mat-form-field",14)(52,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_interface=a)}),t.YNc(53,F6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(54,"mat-card"),t._UZ(55,"mat-card-title"),t.TgZ(56,"mat-card-subtitle"),t._uU(57," HDB (Primary Slave) "),t.qZA(),t.TgZ(58,"mat-card-content")(59,"mat-form-field",14)(60,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_image=a)}),t.qZA()(),t.TgZ(61,"mat-form-field",14)(62,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_interface=a)}),t.YNc(63,U6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(64,"mat-card"),t._UZ(65,"mat-card-title"),t.TgZ(66,"mat-card-subtitle"),t._uU(67," HDC (Secondary Master) "),t.qZA(),t.TgZ(68,"mat-card-content")(69,"mat-form-field",14)(70,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_image=a)}),t.qZA()(),t.TgZ(71,"mat-form-field",14)(72,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_interface=a)}),t.YNc(73,H6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(74,"mat-card"),t._UZ(75,"mat-card-title"),t.TgZ(76,"mat-card-subtitle"),t._uU(77," HDD (Secondary Slave) "),t.qZA(),t.TgZ(78,"mat-card-content")(79,"mat-form-field",14)(80,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_image=a)}),t.qZA()(),t.TgZ(81,"mat-form-field",14)(82,"mat-select",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_interface=a)}),t.YNc(83,j6e,2,2,"mat-option",20),t.qZA()()()()(),t.TgZ(84,"mat-expansion-panel")(85,"mat-expansion-panel-header")(86,"mat-panel-title"),t._uU(87," CD/DVD "),t.qZA()(),t.TgZ(88,"div")(89,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(92);return t.KtG(a.click())}),t._uU(90,"Browse"),t.qZA(),t.TgZ(91,"input",33,34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(93,"mat-form-field",35)(94,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cdrom_image=a)}),t.qZA()()()(),t.TgZ(95,"mat-expansion-panel")(96,"mat-expansion-panel-header")(97,"mat-panel-title"),t._uU(98," Network "),t.qZA()(),t.TgZ(99,"mat-form-field",14)(100,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapters=a)}),t.qZA()(),t.TgZ(101,"mat-form-field",14)(102,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(103,"mat-form-field",14)(104,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(105,"mat-form-field",14)(106,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(107,"mat-form-field",14)(108,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.mac_address=a)}),t.qZA()(),t.TgZ(109,"mat-form-field",14)(110,"mat-select",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapter_type=a)}),t.YNc(111,G6e,2,3,"mat-option",20),t.qZA()(),t.TgZ(112,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(113," Configure custom adapters"),t.qZA(),t._UZ(114,"br"),t.TgZ(115,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.replicate_network_connection_state=a)}),t._uU(116," Replicate network connection state "),t.qZA()(),t.TgZ(117,"mat-expansion-panel")(118,"mat-expansion-panel-header")(119,"mat-panel-title"),t._uU(120," Advanced "),t.qZA()(),t.TgZ(121,"mat-card"),t._UZ(122,"mat-card-title"),t.TgZ(123,"mat-card-subtitle"),t._uU(124," Linux boot specific settings "),t.qZA(),t.TgZ(125,"mat-card-content")(126,"div")(127,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(130);return t.KtG(a.click())}),t._uU(128,"Browse"),t.qZA(),t.TgZ(129,"input",33,44),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(131,"mat-form-field",35)(132,"input",45),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.initrd=a)}),t.qZA()()(),t.TgZ(133,"div")(134,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(135," Browse "),t.qZA(),t.TgZ(136,"input",33,46),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(138,"mat-form-field",35)(139,"input",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_image=a)}),t.qZA()()(),t.TgZ(140,"mat-form-field",14)(141,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(142,"mat-card"),t._UZ(143,"mat-card-title"),t.TgZ(144,"mat-card-subtitle"),t._uU(145," Bios "),t.qZA(),t.TgZ(146,"mat-card-content")(147,"div")(148,"button",32),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(151);return t.KtG(a.click())}),t._uU(149,"Browse"),t.qZA(),t.TgZ(150,"input",33,49),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(152,"mat-form-field",35)(153,"input",50),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.bios_image=a)}),t.qZA()()()()(),t.TgZ(154,"mat-card"),t._UZ(155,"mat-card-title"),t.TgZ(156,"mat-card-subtitle"),t._uU(157," Optimization "),t.qZA(),t.TgZ(158,"mat-card-content")(159,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(160," Activate CPU throttling "),t.qZA(),t.YNc(161,z6e,2,1,"mat-form-field",51),t.TgZ(162,"mat-form-field",14)(163,"mat-select",52),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.process_priority=a)}),t.YNc(164,W6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(165,"mat-card"),t._UZ(166,"mat-card-title"),t.TgZ(167,"mat-card-subtitle"),t._uU(168," Additional settings "),t.qZA(),t.TgZ(169,"mat-card-content")(170,"mat-form-field",14)(171,"input",53),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.options=a)}),t.qZA()(),t.TgZ(172,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.linked_clone=a)}),t._uU(173," Use as a linked base VM "),t.qZA(),t._UZ(174,"br"),t.TgZ(175,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.tpm=a)}),t._uU(176," Enable the Trusted Platform Module (TPM)"),t.qZA(),t._UZ(177,"br"),t.TgZ(178,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.uefi=a)}),t._uU(179," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(180,"mat-expansion-panel")(181,"mat-expansion-panel-header")(182,"mat-panel-title"),t._uU(183," Usage "),t.qZA()(),t.TgZ(184,"mat-form-field",14)(185,"textarea",54),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.usage=a)}),t.qZA()()()(),t.TgZ(186,"div",55)(187,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(188,"Cancel"),t.qZA(),t.TgZ(189,"button",56),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(190,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.platform),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.cpus),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.console_auto_start),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.hda_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(11),t.Q6J("ngModel",i.qemuTemplate.cdrom_image),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.mac_address),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.replicate_network_connection_state),t.xp6(17),t.Q6J("ngModel",i.qemuTemplate.initrd),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.kernel_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.options),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.linked_clone),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.tpm),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.uefi),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.usage)}}function Y6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",59),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var K6e=function(r){return{shadowed:r}},x2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.selectPlatform=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.fillCustomAdapters()})}),this.selectPlatform=this.configurationService.getPlatform()}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()}},{key:"uploadCdromImageFile",value:function(e){this.qemuTemplate.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.qemuTemplate.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.qemuTemplate.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.qemuTemplate.bios_image=e.target.files[0].name}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var i=0;i<this.qemuTemplate.adapters;i++)e[i]?this.qemuTemplate.custom_adapters.push(e[i]):this.qemuTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=e}}]),n}();function q6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function J6e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function Q6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function X6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function $6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,X6e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.qemuTemplates)}}function eRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,$6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}x2.\u0275fac=function(r){return new(r||x2)(t.Y36(dr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(Em),t.Y36(J.QS),t.Y36(ur))},x2.\u0275cmp=t.Xpm({type:x2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(I6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Platform",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,P6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM configuration"),t.qZA()()()(),t.YNc(8,V6e,191,51,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,Y6e,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,K6e,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.qemuTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,Y0,lk,uk,Dn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var D2=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.qemuService.getTemplates(this.controller).subscribe(function(i){e.qemuTemplates=i.filter(function(o){return"qemu"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates",e.template_id,"copy"])}}]),n}();D2.\u0275fac=function(r){return new(r||D2)(t.Y36(dr),t.Y36(or),t.Y36(Gu),t.Y36(ur))},D2.\u0275cmp=t.Xpm({type:D2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,q6e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,J6e,3,1,"button",7),t.qZA()()(),t.YNc(10,Q6e,1,0,"app-empty-templates-list",8),t.YNc(11,eRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.qemuTemplates.length),t.xp6(1),t.Q6J("ngIf",e.qemuTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var xm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(ja.N.compute_id,"/virtualbox/vms"))}}]),n}();function tRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function nRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}function rRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,nRe,2,2,"mat-option",14),t.qZA()()(),t.TgZ(6,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(7," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(8,"div",16)(9,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(12,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.vmForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}xm.\u0275fac=function(r){return new(r||xm)(t.LFG(ho.zw))},xm.\u0275prov=t.Yz7({token:xm,factory:xm.\u0275fac});var A2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.vmForm=this.formBuilder.group({vm:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.virtualBoxService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVirtualBoxTemplate().subscribe(function(s){e.virtualBoxTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"addTemplate",value:function(){var e=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=ns(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),n}();A2.\u0275fac=function(r){return new(r||A2)(t.Y36(dr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},A2.\u0275cmp=t.Xpm({type:A2,selectors:[["app-add-virtual-box-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,tRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VirtualBox VM template"),t.qZA()()()(),t.YNc(8,rRe,13,4,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate))},dependencies:[le.sg,le.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,Dn,ti,di.gD,Gt.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Ng=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]}}]),n}();Ng.\u0275fac=function(r){return new(r||Ng)},Ng.\u0275prov=t.Yz7({token:Ng,factory:Ng.\u0275fac});var iRe=["customAdaptersConfigurator"];function oRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function aRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function sRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function lRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function uRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Zk=function(){return{standalone:!0}};function cRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.category=a)}),t.YNc(19,aRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_type=a)}),t.YNc(22,sRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.ram=a)}),t.qZA(),t.TgZ(27,"span",25),t._uU(28,"MB"),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.on_close=a)}),t.YNc(31,lRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(32,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.headless=a)}),t._uU(33," Start VM in headless mode "),t.qZA(),t._UZ(34,"br"),t.TgZ(35,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(36," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),t._uU(40," Network "),t.qZA()(),t.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapters=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(48,"mat-form-field",14)(49,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",14)(51,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapter_type=a)}),t.YNc(52,uRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(53,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(54," Configure custom adapters"),t.qZA(),t._UZ(55,"br"),t.TgZ(56,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.use_any_adapter=a)}),t._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA()(),t.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),t._uU(61," Usage "),t.qZA()(),t.TgZ(62,"mat-form-field",14)(63,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.usage=a)}),t.qZA()()()(),t.TgZ(64,"div",35)(65,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(66,"Cancel"),t.qZA(),t.TgZ(67,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(68,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(29,Zk))("ngModel",i.virtualBoxTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,Zk))("ngModel",i.virtualBoxTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Zk))("ngModel",i.virtualBoxTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Zk))("ngModel",i.virtualBoxTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.headless),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),t.xp6(6),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(33,Zk))("ngModel",i.virtualBoxTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,Zk))("ngModel",i.virtualBoxTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function dRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",38),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var fRe=function(r){return{shadowed:r}},O2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new J.p4("",J.kI.required),nameFormat:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.virtualBoxService.getTemplate(e.controller,o).subscribe(function(s){e.virtualBoxTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var i=0;i<this.virtualBoxTemplate.adapters;i++)e[i]?this.virtualBoxTemplate.custom_adapters.push(e[i]):this.virtualBoxTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=e}}]),n}();function pRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function hRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function mRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function _Re(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function gRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,_Re,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.virtualBoxTemplates)}}function vRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,gRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}O2.\u0275fac=function(r){return new(r||O2)(t.Y36(dr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng),t.Y36(ur))},O2.\u0275cmp=t.Xpm({type:O2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(iRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,oRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM configuration"),t.qZA()()()(),t.YNc(8,cRe,69,35,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,dRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,fRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,Dn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var I2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.virtualBoxService.getTemplates(this.controller).subscribe(function(i){e.virtualBoxTemplates=i.filter(function(o){return"virtualbox"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();I2.\u0275fac=function(r){return new(r||I2)(t.Y36(dr),t.Y36(or),t.Y36(xm))},I2.\u0275cmp=t.Xpm({type:I2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,pRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,hRe,3,1,"button",7),t.qZA()()(),t.YNc(10,mRe,1,0,"app-empty-templates-list",8),t.YNc(11,vRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("ngIf",e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Dm=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(ja.N.compute_id,"/vmware/vms"))}}]),n}();function yRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function bRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}Dm.\u0275fac=function(r){return new(r||Dm)(t.LFG(ho.zw))},Dm.\u0275prov=t.Yz7({token:Dm,factory:Dm.\u0275fac});var CRe=function(){return{standalone:!0}};function wRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,bRe,2,2,"mat-option",14),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(8," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(9,"div",16)(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(13,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.templateNameForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(5,CRe))("ngModel",i.vmwareTemplate.linked_clone)}}var P2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.vmwareService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVmwareTemplate().subscribe(function(s){e.vmwareTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=ns(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),n}();P2.\u0275fac=function(r){return new(r||P2)(t.Y36(dr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},P2.\u0275cmp=t.Xpm({type:P2,selectors:[["app-add-vmware-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,yRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VMware VM template"),t.qZA()()()(),t.YNc(8,wRe,14,6,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate))},dependencies:[le.sg,le.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,Dn,ti,di.gD,Gt.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Bg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]}}]),n}();Bg.\u0275fac=function(r){return new(r||Bg)},Bg.\u0275prov=t.Yz7({token:Bg,factory:Bg.\u0275fac});var kRe=["customAdaptersConfigurator"];function TRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function MRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function SRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function ERe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function xRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Nk=function(){return{standalone:!0}};function DRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.category=a)}),t.YNc(19,MRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_type=a)}),t.YNc(22,SRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.on_close=a)}),t.YNc(27,ERe,2,2,"mat-option",20),t.qZA()(),t.TgZ(28,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.headless=a)}),t._uU(29," Start VM in headless mode "),t.qZA(),t._UZ(30,"br")(31,"br"),t.TgZ(32,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(33," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),t._uU(37," Network "),t.qZA()(),t.TgZ(38,"mat-form-field",14)(39,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapters=a)}),t.qZA()(),t.TgZ(40,"mat-form-field",14)(41,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(42,"mat-form-field",14)(43,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapter_type=a)}),t.YNc(48,xRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(49,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(50," Configure custom adapters"),t.qZA(),t._UZ(51,"br"),t.TgZ(52,"mat-checkbox",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.use_any_adapter=a)}),t._uU(53," Allow GNS3 to override non custom VMware adapter "),t.qZA()(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._uU(57," Usage "),t.qZA()(),t.TgZ(58,"mat-form-field",14)(59,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.usage=a)}),t.qZA()()()(),t.TgZ(60,"div",33)(61,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(62,"Cancel"),t.qZA(),t.TgZ(63,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(64,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(27,Nk))("ngModel",i.vmwareTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(28,Nk))("ngModel",i.vmwareTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(29,Nk))("ngModel",i.vmwareTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(30,Nk))("ngModel",i.vmwareTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Nk))("ngModel",i.vmwareTemplate.headless),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Nk))("ngModel",i.vmwareTemplate.linked_clone),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.usage)}}function ARe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",36),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var ORe=function(r){return{shadowed:r}},R2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=l,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vmwareService.getTemplate(e.controller,o).subscribe(function(s){e.vmwareTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.controller,this.vmwareTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var i=0;i<this.vmwareTemplate.adapters;i++)e[i]?this.vmwareTemplate.custom_adapters.push(e[i]):this.vmwareTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.vmwareTemplate.symbol=e}}]),n}();function IRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function PRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function RRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function LRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function ZRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,LRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vmwareTemplates)}}function NRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,ZRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}R2.\u0275fac=function(r){return new(r||R2)(t.Y36(dr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg),t.Y36(ur))},R2.\u0275cmp=t.Xpm({type:R2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(kRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,TRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM configuration"),t.qZA()()()(),t.YNc(8,DRe,65,33,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,ARe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,ORe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,Dn,qn,ti,Dl,xl,au,Fu,di.gD,Gt.ey,Uu,db],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var L2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vmwareService.getTemplates(this.controller).subscribe(function(i){e.vmwareTemplates=i.filter(function(o){return"vmware"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();L2.\u0275fac=function(r){return new(r||L2)(t.Y36(dr),t.Y36(or),t.Y36(Dm))},L2.\u0275cmp=t.Xpm({type:L2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,IRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,PRe,3,1,"button",7),t.qZA()()(),t.YNc(10,RRe,1,0,"app-empty-templates-list",8),t.YNc(11,NRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vmwareTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vmwareTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Am=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function BRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}Am.\u0275fac=function(r){return new(r||Am)(t.LFG(ho.zw))},Am.\u0275prov=t.Yz7({token:Am,factory:Am.\u0275fac});var Z2=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"addTemplate",value:function(){var i,e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(o){i=o}),i.template_id=ns(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),n}();Z2.\u0275fac=function(r){return new(r||Z2)(t.Y36(dr),t.Y36(or),t.Y36(Am),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},Z2.\u0275cmp=t.Xpm({type:Z2,selectors:[["app-add-vpcs-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,BRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VPCS node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the VPCS node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.templateNameForm))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn,rs,zs],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Om=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function FRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function URe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function HRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Om.\u0275fac=function(r){return new(r||Om)},Om.\u0275prov=t.Yz7({token:Om,factory:Om.\u0275fac});var tz=function(){return{standalone:!0}};function jRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",13)(6,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",13)(8,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.base_script_file=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",13)(10,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.symbol=a)}),t.qZA()(),t.TgZ(11,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(12,"Choose symbol"),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-form-field",13)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.category=a)}),t.YNc(17,URe,2,2,"mat-option",20),t.qZA()(),t.TgZ(18,"mat-form-field",21)(19,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_type=a)}),t.YNc(20,HRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(21,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA()()(),t.TgZ(23,"div",24)(24,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(25,"Cancel"),t.qZA(),t.TgZ(26,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(27,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.base_script_file),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(13,tz))("ngModel",i.vpcsTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(14,tz))("ngModel",i.vpcsTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(15,tz))("ngModel",i.vpcsTemplate.console_auto_start)}}function GRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var zRe=function(r){return{shadowed:r}},N2=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),scriptFile:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vpcsService.getTemplate(e.controller,o).subscribe(function(s){e.vpcsTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.controller,this.vpcsTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=e}}]),n}();function WRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function VRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function YRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function KRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"delete"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function qRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,KRe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vpcsTemplates)}}function JRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,qRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}N2.\u0275fac=function(r){return new(r||N2)(t.Y36(dr),t.Y36(or),t.Y36(Am),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om),t.Y36(ur))},N2.\u0275cmp=t.Xpm({type:N2,selectors:[["app-vpcs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,FRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS device configuration"),t.qZA()()()(),t.YNc(8,jRe,28,16,"div",7),t.qZA(),t.YNc(9,GRe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,zRe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vpcsTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,Dn,qn,ti,di.gD,Gt.ey,Uu],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var B2=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vpcsService.getTemplates(this.controller).subscribe(function(i){e.vpcsTemplates=i.filter(function(o){return"vpcs"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();B2.\u0275fac=function(r){return new(r||B2)(t.Y36(dr),t.Y36(or),t.Y36(Am))},B2.\u0275cmp=t.Xpm({type:B2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(la,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,WRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,VRe,3,1,"button",7),t.qZA()()(),t.YNc(10,YRe,1,0,"app-empty-templates-list",8),t.YNc(11,JRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vpcsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vpcsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[le.sg,le.O5,$o,Ga,Er,ga,fn,Dn,Gs,Oa,mi,la,ju],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Ws=m(9971);function QRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(null==e?null:e.name)}}function XRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function $Re(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"form",1),t.NdJ("ngSubmit",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.export_project_form.valid&&a.exportPortableProject())}),t.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),t._uU(4,"Export Project"),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t._UZ(9,"mat-divider"),t.TgZ(10,"div",7)(11,"div",2)(12,"div",8),t._uU(13,"Compression:"),t.qZA(),t.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectCompression(a))}),t.YNc(17,QRe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(18,"div",2)(19,"div",8),t._uU(20,"Compression level:"),t.qZA(),t.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),t.YNc(24,XRe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),t._uU(29," Include base images "),t.qZA()()()(),t.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),t._uU(34," Include snapshots "),t.qZA()()()(),t.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),t._uU(39," Reset MAC addresses"),t.qZA()()()()(),t._UZ(40,"mat-divider"),t.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),t._uU(45,"Export"),t.qZA(),t.TgZ(46,"button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t._uU(47,"Cancel"),t.qZA()()()()()}if(2&n){var i=t.oxw();t.Q6J("formGroup",i.export_project_form),t.xp6(17),t.Q6J("ngForOf",i.compression_methods),t.xp6(7),t.Q6J("ngForOf",i.compression_filter_value),t.xp6(20),t.Q6J("disabled",i.isExport)}}var Bk=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.projectService=i,this._fb=o,this.chosenImage="",this.compression_methods=[],this.compression_level=[],this.compression_filter_value=[],this.index=4,this.isExport=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.controller=this.data.controllerDetails,this.project=this.data.projectDetails,this.project&&(this.fileName=this.project.name+".gns3project"),o.next=5,this.formControls();case 5:this.compression_methods=this.projectService.getCompression(),this.compression_level=this.projectService.getCompressionLevel(),this.selectCompression({value:this.compression_methods[this.index]}),this.export_project_form.get("compression").setValue(this.compression_methods[this.index]);case 9:case"end":return o.stop()}},e,this)}))}},{key:"formControls",value:function(){this.export_project_form=this._fb.group({compression:["",J.kI.required],compression_level:[""],include_base_image:[!1,J.kI.required],include_snapshots:[!1,J.kI.required],reset_mac_address:[!1,J.kI.required]}),this.export_project_form.valueChanges.subscribe(function(){})}},{key:"selectCompression",value:function(e){var i=this;this.compression_level.length>0&&this.compression_level.map(function(o){e.value.value===o.name&&(i.export_project_form.get("compression_level").setValue(o.value),i.compression_filter_value=o.selectionValues)})}},{key:"exportPortableProject",value:function(){var e;this.isExport=!0,this.export_project_form.value.compression=null!==(e=this.export_project_form.value.compression.value)&&void 0!==e?e:"zstd",window.location.assign(this.projectService.getexportPortableProjectPath(this.controller,this.project.project_id,this.export_project_form.value)),this.dialogRef.close()}}]),n}();Bk.\u0275fac=function(r){return new(r||Bk)(t.Y36(cr),t.Y36(ko),t.Y36(Ws.Y),t.Y36(J.QS))},Bk.\u0275cmp=t.Xpm({type:Bk,selectors:[["app-export-portable-project"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-10"],["mat-dialog-title",""],[1,"col-md-2","txt-align"],["mat-button","","type","button",1,"close-btn",3,"click"],[1,"mat-data"],[1,"col-md-4","col-data"],[1,"col-md-8"],[1,"input-full-width"],["formControlName","compression","required","",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","compression_level"],[1,"col-md-12","checkbox-row"],[1,"checkBox-section"],["formControlName","include_base_image",1,"checkBox-margin"],["formControlName","include_snapshots",1,"checkBox-margin"],["formControlName","reset_mac_address",1,"checkBox-margin"],[1,"col-md-12"],["mat-dialog-actions","","align","end"],["mat-button","","type","submit","cdkFocusInitial","",3,"disabled"],["type","button","mat-button","","cdkFocusInitial","",3,"click"],[3,"value"]],template:function(r,e){1&r&&t.YNc(0,$Re,48,4,"form",0),2&r&&t.Q6J("ngIf",e.export_project_form)},dependencies:[le.sg,le.O5,J._Y,J.JJ,J.JL,J.Q7,J.sg,J.u,kn.KE,fn,Dn,br,fr,ti,hm.d,di.gD,Gt.ey],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin:0;display:block}.mat-dialog-container[_ngcontent-%COMP%]{padding:14px 14px 5px!important}.checkBox-section[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;height:35px}.checkBox-margin[_ngcontent-%COMP%]{margin:0 10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.close-btn[_ngcontent-%COMP%]{margin:0 0 20px 40px}.mat-data[_ngcontent-%COMP%]{margin:15px 0}.input-full-width[_ngcontent-%COMP%]{width:100%}.col-data[_ngcontent-%COMP%]{text-align:left;align-self:self-end;margin-bottom:20px}.checkbox-row[_ngcontent-%COMP%]{margin-top:5px 0 5px 0}"]});var Fg=m(7521),WB=m(5735),VB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(WB.o),Im=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(VB);Im.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Im)))(e||Im)}}(),Im.\u0275prov=t.Yz7({token:Im,factory:Im.\u0275fac});var Pm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(VB);Pm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pm)))(e||Pm)}}(),Pm.\u0275prov=t.Yz7({token:Pm,factory:Pm.\u0275fac});var Rm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(VB);Rm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Rm)))(e||Rm)}}(),Rm.\u0275prov=t.Yz7({token:Rm,factory:Rm.\u0275fac});var Lm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(VB);Lm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lm)))(e||Lm)}}(),Lm.\u0275prov=t.Yz7({token:Lm,factory:Lm.\u0275fac});var fb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Fk=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Pp=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"calculate",value:function(e,i){var o=document.createElement("text");o.innerText=e,o.setAttribute("fill","#00000"),o.setAttribute("fill-opacity","0"),o.setAttribute("style",i),document.documentElement.appendChild(o);var a=o.getBoundingClientRect();return document.documentElement.removeChild(o),{width:a.width,height:a.height}}}]),n}();function Vie(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function Vr(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Vie(Object(e),!0).forEach(function(i){(0,Yw.Z)(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Vie(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}Pp.\u0275fac=function(r){return new(r||Pp)},Pp.\u0275prov=t.Yz7({token:Pp,factory:Pp.\u0275fac});function Vs(n){return n>=48&&n<=57}function Ug(n){return Vs(n)||n>=65&&n<=70||n>=97&&n<=102}function rz(n){return n>=65&&n<=90}function KB(n){return function nLe(n){return rz(n)||function tLe(n){return n>=97&&n<=122}(n)}(n)||function rLe(n){return n>=128}(n)||95===n}function Yie(n){return KB(n)||Vs(n)||45===n}function iLe(n){return n>=0&&n<=8||11===n||n>=14&&n<=31||127===n}function qB(n){return 10===n||13===n||12===n}function pb(n){return qB(n)||32===n||9===n}function Zp(n,r){return!(92!==n||qB(r)||0===r)}function JB(n,r,e){return 45===n?KB(r)||45===r||Zp(r,e):!!KB(n)||92===n&&Zp(n,r)}function iz(n,r,e){return 43===n||45===n?Vs(r)?2:46===r&&Vs(e)?3:0:46===n?Vs(r)?2:0:Vs(n)?1:0}function Kie(n){return 65279===n||65534===n?1:0}for(var oz=new Array(128),Hg=0;Hg<oz.length;Hg++)oz[Hg]=(pb(Hg)?130:Vs(Hg)&&131)||KB(Hg)&&132||iLe(Hg)&&133||Hg||128;function sz(n){return n<128?oz[n]:132}function Uk(n,r){return r<n.length?n.charCodeAt(r):0}function lz(n,r,e){return 13===e&&10===Uk(n,r+1)?2:1}function Hk(n,r,e){var i=n.charCodeAt(r);return rz(i)&&(i|=32),i===e}function U2(n,r,e,i){if(e-r!==i.length||r<0||e>n.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=n.charCodeAt(o);if(rz(s)&&(s|=32),s!==a)return!1}return!0}function XB(n,r){for(;r<n.length&&pb(n.charCodeAt(r));r++);return r}function uz(n,r){for(;r<n.length&&Vs(n.charCodeAt(r));r++);return r}function jk(n,r){if(Ug(Uk(n,(r+=2)-1))){for(var e=Math.min(n.length,r+5);r<e&&Ug(Uk(n,r));r++);var i=Uk(n,r);pb(i)&&(r+=lz(n,r,i))}return r}function $B(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(!Yie(e)){if(Zp(e,Uk(n,r+1))){r=jk(n,r)-1;continue}break}}return r}function e5(n,r){var e=n.charCodeAt(r);if((43===e||45===e)&&(e=n.charCodeAt(r+=1)),Vs(e)&&(r=uz(n,r+1),e=n.charCodeAt(r)),46===e&&Vs(n.charCodeAt(r+1))&&(r=uz(n,r+=2)),Hk(n,r,101)){var i=0;(45===(e=n.charCodeAt(r+1))||43===e)&&(i=1,e=n.charCodeAt(r+2)),Vs(e)&&(r=uz(n,r+1+i+1))}return r}function cz(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(41===e){r++;break}Zp(e,Uk(n,r+1))&&(r=jk(n,r))}return r}function Qie(n){if(1===n.length&&!Ug(n.charCodeAt(0)))return n[0];var r=parseInt(n,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var Xie=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function t5(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===n||n.length<r?new Uint32Array(Math.max(r+1024,16384)):n}function toe(n){for(var r=n.source,e=r.length,i=r.length>0?Kie(r.charCodeAt(0)):0,o=t5(n.lines,e),a=t5(n.columns,e),s=n.startLine,l=n.startColumn,u=i;u<e;u++){var d=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===d||13===d||12===d)&&(13===d&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,n.lines=o,n.columns=a,n.computed=!0}var uLe=function(){function n(){(0,B.Z)(this,n),this.lines=null,this.columns=null,this.computed=!1}return(0,U.Z)(n,[{key:"setSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=i,this.startLine=o,this.startColumn=a,this.computed=!1}},{key:"getLocation",value:function(e,i){return this.computed||toe(this),{source:i,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}},{key:"getLocationRange",value:function(e,i,o){return this.computed||toe(this),{source:o,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+i,line:this.lines[i],column:this.columns[i]}}}}]),n}(),cd=16777215,cLe=new Map([[2,22],[21,22],[19,20],[23,24]]),dLe=function(){function n(r,e){(0,B.Z)(this,n),this.setSource(r,e)}return(0,U.Z)(n,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=(e=String(e||"")).length,a=t5(this.offsetAndType,e.length+1),s=t5(this.balance,e.length+1),l=0,u=0,d=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(y,L,z){switch(y){default:s[l]=o;break;case u:var q=d&cd;for(d=s[q],u=d>>24,s[l]=q,s[q++]=l;q<l;q++)s[q]===o&&(s[q]=l);break;case 21:case 2:case 19:case 23:s[l]=d,u=cLe.get(y),d=u<<24|l}a[l++]=y<<24|z,-1===h&&(h=L)}),a[l]=0|o,s[l]=o,s[o]=o;0!==d;){var g=d&cd;d=s[g],s[g]=o}this.source=e,this.firstCharOffset=-1===h?0:h,this.tokenCount=l,this.offsetAndType=a,this.balance=s,this.reset(),this.next()}},{key:"lookupType",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>24:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&cd:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&U2(this.source,this.offsetAndType[e-1]&cd,this.offsetAndType[e]&cd,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&cd:this.offsetAndType[this.tokenCount]&cd:this.firstCharOffset}},{key:"substrToCursor",value:function(e){return this.source.substring(e,this.tokenStart)}},{key:"isBalanceEdge",value:function(e){return this.balance[this.tokenIndex]<e}},{key:"isDelim",value:function(e,i){return i?9===this.lookupType(i)&&this.source.charCodeAt(this.lookupOffset(i))===e:9===this.tokenType&&this.source.charCodeAt(this.tokenStart)===e}},{key:"skip",value:function(e){var i=this.tokenIndex+e;i<this.tokenCount?(this.tokenIndex=i,this.tokenStart=this.offsetAndType[i-1]&cd,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&cd):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=e&cd):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;13===this.tokenType||25===this.tokenType;)this.next()}},{key:"skipUntilBalanced",value:function(e,i){var a,s,o=e;e:for(;o<this.tokenCount&&!((a=this.balance[o])<e);o++)switch(s=o>0?this.offsetAndType[o-1]&cd:this.firstCharOffset,i(this.source.charCodeAt(s))){case 1:break e;case 2:o++;break e;default:this.balance[a]===o&&(o=a)}this.skip(o-this.tokenIndex)}},{key:"forEachToken",value:function(e){for(var i=0,o=this.firstCharOffset;i<this.tokenCount;i++){var a=o,s=this.offsetAndType[i],l=s&cd;o=l,e(s>>24,a,l,i)}}},{key:"dump",value:function(){var e=this,i=new Array(this.tokenCount);return this.forEachToken(function(o,a,s,l){i[l]={idx:l,type:Xie[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),n}();function n5(n,r){function e(y){return y<l?n.charCodeAt(y):0}function i(){return JB(e(d=e5(n,d)),e(d+1),e(d+2))?(h=12,void(d=$B(n,d))):37===e(d)?(h=11,void d++):void(h=10)}function o(){var y=d;return d=$B(n,d),U2(n,y,d,"url")&&40===e(d)?34===e(d=XB(n,d+1))||39===e(d)?(h=2,void(d=y+4)):void function s(){for(h=7,d=XB(n,d);d<n.length;d++){var y=n.charCodeAt(d);switch(sz(y)){case 41:return void d++;case 130:return 41===e(d=XB(n,d))||d>=n.length?void(d<n.length&&d++):(d=cz(n,d),void(h=8));case 34:case 39:case 40:case 133:return d=cz(n,d),void(h=8);case 92:if(Zp(y,e(d+1))){d=jk(n,d)-1;break}return d=cz(n,d),void(h=8)}}}():40===e(d)?(h=2,void d++):void(h=1)}function a(y){for(y||(y=e(d++)),h=5;d<n.length;d++){var L=n.charCodeAt(d);switch(sz(L)){case y:return void d++;case 130:if(qB(L))return d+=lz(n,d,L),void(h=6);break;case 92:if(d===n.length-1)break;var z=e(d+1);qB(z)?d+=lz(n,d+1,z):Zp(L,z)&&(d=jk(n,d)-1)}}}for(var h,l=(n=String(n||"")).length,u=Kie(e(0)),d=u;d<l;){var g=n.charCodeAt(d);switch(sz(g)){case 130:h=13,d=XB(n,d+1);break;case 34:case 39:a();break;case 35:Yie(e(d+1))||Zp(e(d+1),e(d+2))?(h=4,d=$B(n,d+1)):(h=9,d++);break;case 40:h=21,d++;break;case 41:h=22,d++;break;case 43:case 46:iz(g,e(d+1),e(d+2))?i():(h=9,d++);break;case 44:h=18,d++;break;case 45:iz(g,e(d+1),e(d+2))?i():45===e(d+1)&&62===e(d+2)?(h=15,d+=3):JB(g,e(d+1),e(d+2))?o():(h=9,d++);break;case 47:42===e(d+1)?(h=25,d=-1===(d=n.indexOf("*/",d+2))?n.length:d+2):(h=9,d++);break;case 58:h=16,d++;break;case 59:h=17,d++;break;case 60:33===e(d+1)&&45===e(d+2)&&45===e(d+3)?(h=14,d+=4):(h=9,d++);break;case 64:JB(e(d+1),e(d+2),e(d+3))?(h=3,d=$B(n,d+1)):(h=9,d++);break;case 91:h=19,d++;break;case 92:Zp(g,e(d+1))?o():(h=9,d++);break;case 93:h=20,d++;break;case 123:h=23,d++;break;case 125:h=24,d++;break;case 131:i();break;case 132:o();break;default:h=9,d++}r(h,u,u=d)}}var Gk=null,hb=function(n){function r(){(0,B.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,U.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Gk?(a=Gk,Gk=Gk.cursor,a.prev=i,a.next=o,a.cursor=this.cursor):a={prev:i,next:o,cursor:this.cursor},this.cursor=a,a}},{key:"releaseCursor",value:function(){var i=this.cursor;this.cursor=i.cursor,i.prev=null,i.next=null,i.cursor=Gk,Gk=i}},{key:"updateCursors",value:function(i,o,a,s){for(var l=this.cursor;null!==l;)l.prev===i&&(l.prev=o),l.next===a&&(l.next=s),l=l.cursor}},{key:n,value:Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:i=this.head;case 1:if(null===i){a.next=7;break}return a.next=4,i.data;case 4:i=i.next,a.next=1;break;case 7:case"end":return a.stop()}},e,this)})},{key:"size",get:function(){for(var i=0,o=this.head;null!==o;o=o.next)i++;return i}},{key:"isEmpty",get:function(){return null===this.head}},{key:"first",get:function(){return this.head&&this.head.data}},{key:"last",get:function(){return this.tail&&this.tail.data}},{key:"fromArray",value:function(i){var o=null;this.head=null;var s,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=r.createItem(l);null!==o?o.next=u:this.head=u,u.prev=o,o=u}}catch(d){a.e(d)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,cn.Z)(this)}},{key:"toJSON",value:function(){return(0,cn.Z)(this)}},{key:"forEach",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(null,this.head);null!==a.next;){var s=a.next;a.next=s.next,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"forEachRight",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(this.tail,null);null!==a.prev;){var s=a.prev;a.prev=s.prev,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"reduce",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(null,this.head),l=o;null!==s.next;)u=s.next,s.next=u.next,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"reduceRight",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(this.tail,null),l=o;null!==s.prev;)u=s.prev,s.prev=u.prev,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"some",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.head;null!==a;a=a.next)if(i.call(o,a.data,a,this))return!0;return!1}},{key:"map",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)a.appendData(i.call(o,s.data,s,this));return a}},{key:"filter",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)i.call(o,s.data,s,this)&&a.appendData(s.data);return a}},{key:"nextUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(null,i);null!==s.next;){var l=s.next;if(s.next=l.next,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"prevUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(i,null);null!==s.prev;){var l=s.prev;if(s.prev=l.prev,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"clear",value:function(){this.head=null,this.tail=null}},{key:"copy",value:function(){var a,i=new r,o=(0,An.Z)(this);try{for(o.s();!(a=o.n()).done;){var s=a.value;i.appendData(s)}}catch(l){o.e(l)}finally{o.f()}return i}},{key:"prepend",value:function(i){return this.updateCursors(null,i,this.head,i),null!==this.head?(this.head.prev=i,i.next=this.head):this.tail=i,this.head=i,this}},{key:"prependData",value:function(i){return this.prepend(r.createItem(i))}},{key:"append",value:function(i){return this.insert(i)}},{key:"appendData",value:function(i){return this.insert(r.createItem(i))}},{key:"insert",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==o)if(this.updateCursors(o.prev,i,o,i),null===o.prev){if(this.head!==o)throw new Error("before doesn't belong to list");this.head=i,o.prev=i,i.next=o,this.updateCursors(null,i)}else o.prev.next=i,i.prev=o.prev,o.prev=i,i.next=o;else this.updateCursors(this.tail,i,null,i),null!==this.tail?(this.tail.next=i,i.prev=this.tail):this.head=i,this.tail=i;return this}},{key:"insertData",value:function(i,o){return this.insert(r.createItem(i),o)}},{key:"remove",value:function(i){if(this.updateCursors(i,i.prev,i,i.next),null!==i.prev)i.prev.next=i.next;else{if(this.head!==i)throw new Error("item doesn't belong to list");this.head=i.next}if(null!==i.next)i.next.prev=i.prev;else{if(this.tail!==i)throw new Error("item doesn't belong to list");this.tail=i.prev}return i.prev=null,i.next=null,i}},{key:"push",value:function(i){this.insert(r.createItem(i))}},{key:"pop",value:function(){return null!==this.tail?this.remove(this.tail):null}},{key:"unshift",value:function(i){this.prepend(r.createItem(i))}},{key:"shift",value:function(){return null!==this.head?this.remove(this.head):null}},{key:"prependList",value:function(i){return this.insertList(i,this.head)}},{key:"appendList",value:function(i){return this.insertList(i)}},{key:"insertList",value:function(i,o){return null===i.head||(null!=o?(this.updateCursors(o.prev,i.tail,o,i.head),null!==o.prev?(o.prev.next=i.head,i.head.prev=o.prev):this.head=i.head,o.prev=i.tail,i.tail.next=o):(this.updateCursors(this.tail,i.tail,null,i.head),null!==this.tail?(this.tail.next=i.head,i.head.prev=this.tail):this.head=i.head,this.tail=i.tail),i.head=null,i.tail=null),this}},{key:"replace",value:function(i,o){"head"in o?this.insertList(o,i):this.insert(o,i),this.remove(i)}}],[{key:"createItem",value:function(i){return{prev:null,next:null,data:i}}}]),r}(Symbol.iterator);function r5(n,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:n,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(n,": ").concat(r,"\n"))}})}function ioe(n,r){var e=n.source,i=n.line,o=n.column;function a(y,L){return s.slice(y,L).map(function(z,q){return String(y+q+1).padStart(d)+" |"+z}).join("\n")}var s=e.split(/\r\n?|\n|\f/),l=Math.max(1,i-r)-1,u=Math.min(i+r,s.length+1),d=Math.max(4,String(u).length)+1,h=0;(o+=(" ".length-1)*(s[i-1].substr(0,o-1).match(/\t/g)||[]).length)>100&&(h=o-60+3,o=58);for(var g=l;g<=u;g++)g>=0&&g<s.length&&(s[g]=s[g].replace(/\t/g," "),s[g]=(h>0&&s[g].length>h?"\u2026":"")+s[g].substr(h,98)+(s[g].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+d+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function ooe(n,r,e,i,o){return Object.assign(r5("SyntaxError",n),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return ioe({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(n,"\n")+ioe({source:r,line:i,column:o},2)}})}function fLe(n){for(var r=this.createList(),e=!1,i={recognizer:n};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=n.getNode.call(this,i);if(void 0===o)break;e&&(n.onWhiteSpace&&n.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&n.onWhiteSpace&&n.onWhiteSpace.call(this,null,r,i),r}var aoe=function(){};function mLe(n){return function(){return this[n]()}}function pz(n){var r=Object.create(null);for(var e in n){var i=n[e],o=i.parse||i;o&&(r[e]=o)}return r}function gLe(n){var r="",e="<unknown>",i=!1,o=aoe,a=!1,s=new uLe,l=Object.assign(new dLe,function _Le(n){var r={context:Object.create(null),scope:Object.assign(Object.create(null),n.scope),atrule:pz(n.atrule),pseudo:pz(n.pseudo),node:pz(n.node)};for(var e in n.parseContext)switch(typeof n.parseContext[e]){case"function":r.context[e]=n.parseContext[e];break;case"string":r.context[e]=mLe(n.parseContext[e])}return Vr(Vr({config:r},r),r.node)}(n||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:fLe,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(h){return 123===h?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(h){return 123===h||59===h?1:0},consumeUntilExclamationMarkOrSemicolon:function(h){return 33===h||59===h?1:0},consumeUntilSemicolonIncluded:function(h){return 59===h?2:0},createList:function(){return new hb},createSingleNodeList:function(h){return(new hb).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,g){var y=this.tokenIndex;try{return h.call(this)}catch(z){if(a)throw z;var L=g.call(this,y);return a=!0,o(z,L),a=!1,L}},lookupNonWSType:function(h){var g;do{if(13!==(g=this.lookupType(h++)))return g}while(0!==g);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,g){return r.substring(h,g)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,g){return Hk(r,h,g)},cmpStr:function(h,g,y){return U2(r,h,g,y)},consume:function(h){var g=this.tokenStart;return this.eat(h),this.substrToCursor(g)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var g=r.substring(this.tokenStart,e5(r,this.tokenStart));return this.eat(h),g},eat:function(h){if(this.tokenType!==h){var g=Xie[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(z){return z.toUpperCase()}),y="".concat(/[[\](){}]/.test(g)?'"'.concat(g,'"'):g," is expected"),L=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(L=this.tokenEnd-1,y="Identifier is expected but function found"):y="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),L++,y="Name is expected");break;case 11:10===this.tokenType&&(L=this.tokenEnd,y="Percent sign is expected")}this.error(y,L)}this.next()},eatIdent:function(h){(1!==this.tokenType||!1===this.lookupValue(0,h))&&this.error('Identifier "'.concat(h,'" is expected')),this.next()},eatDelim:function(h){this.isDelim(h)||this.error('Delim "'.concat(String.fromCharCode(h),'" is expected')),this.next()},getLocation:function(h,g){return i?s.getLocationRange(h,g,e):null},getLocationFromList:function(h){if(i){var g=this.getFirstListNode(h),y=this.getLastListNode(h);return s.getLocationRange(null!==g?g.loc.start.offset-s.startOffset:this.tokenStart,null!==y?y.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,g){var y=void 0!==g&&g<r.length?s.getLocation(g):this.eof?s.getLocation(function aLe(n,r){for(;r>=0&&pb(n.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new ooe(h||"Unexpected input",r,y.offset,y.line,y.column)}});return Object.assign(function(h,g){r=h,g=g||{},l.setSource(r,n5),s.setSource(r,g.offset,g.line,g.column),e=g.filename||"<unknown>",i=Boolean(g.positions),o="function"==typeof g.onParseError?g.onParseError:aoe,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in g)||Boolean(g.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in g)||Boolean(g.parseRulePrelude),l.parseValue=!("parseValue"in g)||Boolean(g.parseValue),l.parseCustomProperty="parseCustomProperty"in g&&Boolean(g.parseCustomProperty);var y=g,L=y.context,z=void 0===L?"default":L,q=y.onComment;if(!(z in l.context))throw new Error("Unknown context `"+z+"`");"function"==typeof q&&l.forEachToken(function(ae,Se,Ce){if(25===ae){var Ee=l.getLocation(Se,Ce),Ke=U2(r,Ce-2,Ce,"*/")?r.slice(Se+2,Ce-2):r.slice(Se+2,Ce);q(Ke,Ee)}});var re=l.context[z].call(l,g);return l.eof||l.error(),re},{SyntaxError:ooe,config:l.config})}var vLe=m(3058),uoe=new Set(["Atrule","Selector","Declaration"]);var hz=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},coe=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],wLe=coe.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);function doe(n){var r=new Set(n.map(function(e){var i=(0,Yn.Z)(e,2),o=i[0],a=i[1];return hz(o)<<16|hz(a)}));return function(e,i,o){var a=hz(i,o),s=o.charCodeAt(0);return(45===s&&1!==i&&2!==i&&15!==i||43===s?r.has(e<<16|s<<8):r.has(e<<16|a))&&this.emit(" ",13,!0),a}}var kLe=doe(coe),foe=doe(wLe);function MLe(n,r){var e=this;if("function"!=typeof r)n.children.forEach(this.node,this);else{var i=null;n.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function SLe(n){var r=this;n5(n,function(e,i,o){r.token(e,n.slice(i,o))})}function ELe(n){var r=new Map;for(var e in n.node){var i=n.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,d={node:function(y){if(!r.has(y.type))throw new Error("Unknown node type: "+y.type);r.get(y.type).call(h,y)},tokenBefore:foe,token:function(y,L){u=this.tokenBefore(u,y,L),this.emit(L,y,!1),9===y&&92===L.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(y){l+=y},result:function(){return l}};s&&("function"==typeof s.decorator&&(d=s.decorator(d)),s.sourceMap&&(d=function yLe(n){var r=new vLe.h,e={line:1,column:0},i={line:0,column:0},o={line:1,column:0},a={generated:o},s=1,l=0,u=!1,d=n.node;n.node=function(y){if(y.loc&&y.loc.start&&uoe.has(y.type)){var L=y.loc.start.line,z=y.loc.start.column-1;(i.line!==L||i.column!==z)&&(i.line=L,i.column=z,e.line=s,e.column=l,u&&(u=!1,(e.line!==o.line||e.column!==o.column)&&r.addMapping(a)),u=!0,r.addMapping({source:y.loc.source,original:i,generated:e}))}d.call(this,y),u&&uoe.has(y.type)&&(o.line=s,o.column=l)};var h=n.emit;n.emit=function(y,L,z){for(var q=0;q<y.length;q++)10===y.charCodeAt(q)?(s++,l=0):l++;h(y,L,z)};var g=n.result;return n.result=function(){return u&&r.addMapping(a),{css:g(),map:r}},n}(d)),s.mode in W&&(d.tokenBefore=W[s.mode]));var h={node:function(y){return d.node(y)},children:MLe,token:function(y,L){return d.token(y,L)},tokenize:SLe};return d.node(a),d.result()}}var mz=Object.prototype.hasOwnProperty,H2=function(){};function poe(n){return"function"==typeof n?n:H2}function hoe(n,r){return function(e,i,o){e.type===r&&n.call(this,e,i,o)}}function DLe(n,r){var e=r.structure,i=[];for(var o in e)if(!1!==mz.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,An.Z)(a);try{for(l.s();!(u=l.n()).done;){var d=u.value;null===d?s.nullable=!0:"string"==typeof d?s.type="node":Array.isArray(d)&&(s.type="list")}}catch(h){l.e(h)}finally{l.f()}s.type&&i.push(s)}return i.length?{context:r.walkContext,fields:i}:null}function moe(n,r){var e=n.fields.slice(),i=n.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var d;o&&(d=s[i],s[i]=a);var g,h=(0,An.Z)(e);try{for(h.s();!(g=h.n()).done;){var y=g.value,L=a[y.name];if(!y.nullable||L)if("list"===y.type){if(r?L.reduceRight(u,!1):L.reduce(u,!1))return!0}else if(l(L))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=d)}}function _oe(n){var r=n.StyleSheet,e=n.Atrule,i=n.Rule,o=n.Block;return{Atrule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Rule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Declaration:{StyleSheet:r,Atrule:e,Rule:i,Block:o,DeclarationList:n.DeclarationList}}}function OLe(n){var r=function ALe(n){var r={};for(var e in n.node)if(mz.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=DLe(0,i)}return r}(n),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)mz.call(r,s)&&null!==r[s]&&(e[s]=moe(r[s],!1),i[s]=moe(r[s],!0));var l=_oe(e),u=_oe(i),d=function(g,y){function L(Ce,Ee,Ke){var st=z.call(Se,Ce,Ee,Ke);return st===o||st!==a&&!!(re.hasOwnProperty(Ce.type)&&re[Ce.type](Ce,Se,L,ae)||q.call(Se,Ce,Ee,Ke)===o)}var z=H2,q=H2,re=e,ae=function(Ee,Ke,st,De){return Ee||L(Ke,st,De)},Se={break:o,skip:a,root:g,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof y)z=y;else if(y&&(z=poe(y.enter),q=poe(y.leave),y.reverse&&(re=i),y.visit)){if(l.hasOwnProperty(y.visit))re=y.reverse?u[y.visit]:l[y.visit];else if(!r.hasOwnProperty(y.visit))throw new Error("Bad value `"+y.visit+"` for `visit` option (should be: "+Object.keys(r).sort().join(", ")+")");z=hoe(z,y.visit),q=hoe(q,y.visit)}if(z===H2&&q===H2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");L(g)};return d.break=o,d.skip=a,d.find=function(h,g){var y=null;return d(h,function(L,z,q){if(g.call(this,L,z,q))return y=L,o}),y},d.findLast=function(h,g){var y=null;return d(h,{reverse:!0,enter:function(z,q,re){if(g.call(this,z,q,re))return y=z,o}}),y},d.findAll=function(h,g){var y=[];return d(h,function(L,z,q){g.call(this,L,z,q)&&y.push(L)}),y},d}function ILe(n){return n}function _z(n,r,e,i){var o;switch(n.type){case"Group":o=function LLe(n,r,e,i){var o=" "===n.combinator||i?n.combinator:" "+n.combinator+" ",a=n.terms.map(function(s){return _z(s,r,e,i)}).join(o);return n.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(n,r,e,i)+(n.disallowEmpty?"!":"");break;case"Multiplier":return _z(n.term,r,e,i)+r(function PLe(n){var r=n.min,e=n.max,i=n.comma;return 0===r&&0===e?i?"#?":"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(n),n);case"Type":o="<"+n.name+(n.opts?r(function RLe(n){if("Range"===n.type)return" ["+(null===n.min?"-\u221e":n.min)+","+(null===n.max?"\u221e":n.max)+"]";throw new Error("Unknown node type `"+n.type+"`")}(n.opts),n.opts):"")+">";break;case"Property":o="<'"+n.name+"'>";break;case"Keyword":o=n.name;break;case"AtKeyword":o="@"+n.name;break;case"Function":o=n.name+"(";break;case"String":case"Token":o=n.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+n.type+"`")}return r(o,n)}function gz(n,r){var e=ILe,i=!1,o=!1;return"function"==typeof r?e=r:r&&(i=Boolean(r.forceBraces),o=Boolean(r.compact),"function"==typeof r.decorate&&(e=r.decorate)),_z(n,e,i,o)}var goe={offset:0,line:1,column:1};function i5(n,r){var e=n&&n.loc&&n.loc[r];return e?"line"in e?j2(e):e:null}function j2(n,r){var a={offset:n.offset,line:n.line,column:n.column};if(r){var s=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=s.length-1,a.column=1===s.length?a.column+r.length:s.pop().length+1}return a}var G2=function(r,e){var i=r5("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},NLe=function(r,e,i,o){var a=r5("SyntaxMatchError",r),s=function ZLe(n,r){for(var h,g,e=n.tokens,i=n.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,d="",y=0;y<e.length;y++){var L=e[y].value;y===i&&(l=L.length,s=d.length),null!==a&&e[y].node===a&&(y<=i?u++:u=0),d+=L}return i===e.length||u>1?(h=i5(a||r,"end")||j2(goe,d),g=j2(h)):(h=i5(a,"start")||j2(i5(r,"start")||goe,d.slice(0,s)),g=i5(a,"end")||j2(h,d.substr(s,l))),{css:d,mismatchOffset:s,mismatchLength:l,start:h,end:g}}(o,i),l=s.css,u=s.mismatchOffset,d=s.mismatchLength,h=s.start,g=s.end;return a.rawMessage=r,a.syntax=e?gz(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=d,a.message=r+"\n syntax: "+a.syntax+"\n value: "+(l||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,h),a.loc={source:i&&i.loc&&i.loc.source||"<unknown>",start:h,end:g},a},o5=new Map,zk=new Map,vz=function BLe(n){if(o5.has(n))return o5.get(n);var r=n.toLowerCase(),e=o5.get(r);if(void 0===e){var i=yz(r,0),o=i?"":yoe(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return o5.set(n,e),e},voe=function FLe(n){if(zk.has(n))return zk.get(n);var r=n,e=n[0];"/"===e?e="/"===n[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=yz(r,e.length);if(!i&&(r=r.toLowerCase(),zk.has(r))){var o=zk.get(r);return zk.set(n,o),o}var a=i?"":yoe(r,e.length),s=r.substr(0,e.length+a.length),l=Object.freeze({basename:r.substr(s.length),name:r.substr(e.length),hack:e,vendor:a,prefix:s,custom:i});return zk.set(n,l),l};function yz(n,r){return r=r||0,n.length-r>=2&&45===n.charCodeAt(r)&&45===n.charCodeAt(r+1)}function yoe(n,r){if(r=r||0,n.length-r>=3&&45===n.charCodeAt(r)&&45!==n.charCodeAt(r+1)){var e=n.indexOf("-",r+2);if(-1!==e)return n.substring(r,e+1)}return""}var boe=["initial","inherit","unset","revert","revert-layer"],Wk=!0;function Cz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function W2(n,r,e){for(;null!==n&&(13===n.type||25===n.type);)n=e(++r);return r}function Gg(n,r,e,i){if(!n)return 0;var o=n.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<n.value.length;r++)if(!Vs(n.value.charCodeAt(r)))return 0;return i+1}function wz(n,r,e){var i=!1,o=W2(n,r,e);if(null===(n=e(o)))return r;if(10!==n.type){if(!Cz(n,43)&&!Cz(n,45))return r;if(i=!0,o=W2(e(++o),o,e),null===(n=e(o))||10!==n.type)return 0}if(!i){var a=n.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return Gg(n,i?0:1,i,o)}function kz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function V2(n,r,e){for(var i=0,o=r;o<n.value.length;o++){var a=n.value.charCodeAt(o);if(45===a&&e&&0!==i)return V2(n,r+i+1,!1),6;if(!Ug(a)||++i>6)return 0}return i}function s5(n,r,e){if(!n)return 0;for(;kz(e(r),63);){if(++n>6)return 0;r++}return r}var VLe=["calc(","-moz-calc(","-webkit-calc("],Tz=new Map([[2,22],[21,22],[19,20],[23,24]]);function tf(n,r){return r<n.length?n.charCodeAt(r):0}function koe(n,r){return U2(n,0,n.length,r)}function Toe(n,r){for(var e=0;e<r.length;e++)if(koe(n,r[e]))return!0;return!1}function Moe(n,r){return r===n.length-2&&(92===tf(n,r)&&Vs(tf(n,r+1)))}function l5(n,r,e){if(n&&"Range"===n.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==n.min&&i<n.min&&"string"!=typeof n.min||null!==n.max&&i>n.max&&"string"!=typeof n.max)return!0}return!1}function dd(n){return function(r,e,i){return null===r?0:2===r.type&&Toe(r.value,VLe)?function YLe(n,r){var e=0,i=[],o=0;e:do{switch(n.type){case 24:case 22:case 20:if(n.type!==e)break e;if(e=i.pop(),0===i.length){o++;break e}break;case 2:case 21:case 19:case 23:i.push(e),e=Tz.get(n.type)}o++}while(n=r(o));return o}(r,e):n(r,e,i)}}function Vo(n){return function(r){return null===r||r.type!==n?0:1}}function Zm(n){return n&&(n=new Set(n)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=e5(r.value,0);if(null!==n){var a=r.value.indexOf("\\",o),s=-1!==a&&Moe(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===n.has(s.toLowerCase()))return 0}return l5(i,r.value,o)?0:1}}function Soe(n){return"function"!=typeof n&&(n=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:n(r,e,i)}}var rZe={"ident-token":Vo(1),"function-token":Vo(2),"at-keyword-token":Vo(3),"hash-token":Vo(4),"string-token":Vo(5),"bad-string-token":Vo(6),"url-token":Vo(7),"bad-url-token":Vo(8),"delim-token":Vo(9),"number-token":Vo(10),"percentage-token":Vo(11),"dimension-token":Vo(12),"whitespace-token":Vo(13),"CDO-token":Vo(14),"CDC-token":Vo(15),"colon-token":Vo(16),"semicolon-token":Vo(17),"comma-token":Vo(18),"[-token":Vo(19),"]-token":Vo(20),"(-token":Vo(21),")-token":Vo(22),"{-token":Vo(23),"}-token":Vo(24)},iZe={string:Vo(5),ident:Vo(1),percentage:dd(function eZe(n,r,e){return null===n||11!==n.type||l5(e,n.value,n.value.length-1)?0:1}),zero:Soe(),number:dd(function tZe(n,r,e){if(null===n)return 0;var i=e5(n.value,0);return!(i===n.value.length)&&!Moe(n.value,i)||l5(e,n.value,i)?0:1}),integer:dd(function nZe(n,r,e){if(null===n||10!==n.type)return 0;for(var i=43===tf(n.value,0)||45===tf(n.value,0)?1:0;i<n.value.length;i++)if(!Vs(tf(n.value,i)))return 0;return l5(e,n.value,i)?0:1}),"custom-ident":function KLe(n){if(null===n||1!==n.type)return 0;var r=n.value.toLowerCase();return Toe(r,boe)||koe(r,"default")?0:1},"custom-property-name":function qLe(n){return null===n||1!==n.type||45!==tf(n.value,0)||45!==tf(n.value,1)?0:1},"hex-color":function JLe(n){if(null===n||4!==n.type)return 0;var r=n.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!Ug(tf(n.value,e)))return 0;return 1},"id-selector":function QLe(n){return null!==n&&4===n.type&&JB(tf(n.value,1),tf(n.value,2),tf(n.value,3))?1:0},"an-plus-b":function HLe(n,r){var e=0;if(!n)return 0;if(10===n.type)return Gg(n,0,false,e);if(1===n.type&&45===n.value.charCodeAt(0)){if(!Hk(n.value,1,110))return 0;switch(n.value.length){case 2:return wz(r(++e),e,r);case 3:return 45!==n.value.charCodeAt(2)?0:(e=W2(r(++e),e,r),Gg(n=r(e),0,Wk,e));default:return 45!==n.value.charCodeAt(2)?0:Gg(n,3,Wk,e)}}else if(1===n.type||Cz(n,43)&&1===r(e+1).type){if(1!==n.type&&(n=r(++e)),null===n||!Hk(n.value,0,110))return 0;switch(n.value.length){case 1:return wz(r(++e),e,r);case 2:return 45!==n.value.charCodeAt(1)?0:(e=W2(r(++e),e,r),Gg(n=r(e),0,Wk,e));default:return 45!==n.value.charCodeAt(1)?0:Gg(n,2,Wk,e)}}else if(12===n.type){for(var i=n.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<n.value.length&&Vs(n.value.charCodeAt(a));a++);return a!==o&&Hk(n.value,a,110)?a+1===n.value.length?wz(r(++e),e,r):45!==n.value.charCodeAt(a+1)?0:a+2===n.value.length?(e=W2(r(++e),e,r),Gg(n=r(e),0,Wk,e)):Gg(n,a+2,Wk,e):0}return 0},urange:function WLe(n,r){var e=0;if(null===n||1!==n.type||!Hk(n.value,0,117)||null===(n=r(++e)))return 0;if(kz(n,43))return null===(n=r(++e))?0:1===n.type?s5(V2(n,0,!0),++e,r):kz(n,63)?s5(1,++e,r):0;if(10===n.type){var i=V2(n,1,!0);return 0===i?0:null===(n=r(++e))?e:12===n.type||10===n.type?function zLe(n,r){return n.value.charCodeAt(0)===r}(n,45)&&V2(n,1,!1)?e+1:0:s5(i,e,r)}return 12===n.type?s5(V2(n,1,!0),++e,r):0},"declaration-value":function XLe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===n.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=Tz.get(n.type)}o++}while(n=r(o));return o},"any-value":function $Le(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=Tz.get(n.type)}o++}while(n=r(o));return o}};function aZe(n){return Vr(Vr(Vr({},rZe),iZe),function oZe(n){var r=n||{},e=r.angle,i=r.decibel,o=r.frequency,a=r.flex,s=r.length,l=r.resolution,u=r.semitones,d=r.time;return{dimension:dd(Zm(null)),angle:dd(Zm(e)),decibel:dd(Zm(i)),frequency:dd(Zm(o)),flex:dd(Zm(a)),length:dd(Soe(Zm(s))),resolution:dd(Zm(l)),semitones:dd(Zm(u)),time:dd(Zm(d))}}(n))}var sZe=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],lZe=["deg","grad","rad","turn"],uZe=["s","ms"],cZe=["hz","khz"],dZe=["dpi","dpcm","dppx","x"],fZe=["fr"],pZe=["db"],hZe=["st"];function mZe(n,r,e){return Object.assign(r5("SyntaxError",n),{input:r,offset:e,rawMessage:n,message:n+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var CZe=function(){function n(r){(0,B.Z)(this,n),this.str=r,this.pos=0}return(0,U.Z)(n,[{key:"charCodeAt",value:function(e){return e<this.str.length?this.str.charCodeAt(e):0}},{key:"charCode",value:function(){return this.charCodeAt(this.pos)}},{key:"nextCharCode",value:function(){return this.charCodeAt(this.pos+1)}},{key:"nextNonWsCode",value:function(e){return this.charCodeAt(this.findWsEnd(e))}},{key:"findWsEnd",value:function(e){for(;e<this.str.length;e++){var i=this.str.charCodeAt(e);if(13!==i&&10!==i&&12!==i&&32!==i&&9!==i)break}return e}},{key:"substringToPos",value:function(e){return this.str.substring(this.pos,this.pos=e)}},{key:"eat",value:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}},{key:"peek",value:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}},{key:"error",value:function(e){throw new mZe(e,this.str,this.pos)}}]),n}(),Y2=new Uint8Array(128).map(function(n,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Zoe={" ":1,"&&":2,"||":3,"|":4};function f5(n){return n.substringToPos(n.findWsEnd(n.pos))}function Vk(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e>=128||0===Y2[e])break}return n.pos===r&&n.error("Expect a keyword"),n.substringToPos(r)}function p5(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e<48||e>57)break}return n.pos===r&&n.error("Expect a number"),n.substringToPos(r)}function DZe(n){var r=n.str.indexOf("'",n.pos+1);return-1===r&&(n.pos=n.str.length,n.error("Expect an apostrophe")),n.substringToPos(r+1)}function Noe(n){var r,e=null;return n.eat(123),r=p5(n),44===n.charCode()?(n.pos++,125!==n.charCode()&&(e=p5(n))):e=r,n.eat(125),{min:Number(r),max:e?Number(e):0}}function Yk(n,r){var e=function AZe(n){var r=null,e=!1;switch(n.charCode()){case 42:n.pos++,r={min:0,max:0};break;case 43:n.pos++,r={min:1,max:0};break;case 63:n.pos++,r={min:0,max:1};break;case 35:n.pos++,e=!0,123===n.charCode()?r=Noe(n):63===n.charCode()?(n.pos++,r={min:0,max:0}):r={min:1,max:0};break;case 123:r=Noe(n);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(n);return null!==e?(e.term=r,35===n.charCode()&&43===n.charCodeAt(n.pos-1)?Yk(n,e):e):r}function Oz(n){var r=n.peek();return""===r?null:{type:"Token",value:r}}function PZe(n){var r,e=null;return n.eat(60),r=Vk(n),40===n.charCode()&&41===n.nextCharCode()&&(n.pos+=2,r+="()"),91===n.charCodeAt(n.findWsEnd(n.pos))&&(f5(n),e=function IZe(n){var r=null,e=null,i=1;return n.eat(91),45===n.charCode()&&(n.peek(),i=-1),-1==i&&8734===n.charCode()?n.peek():(r=i*Number(p5(n)),0!==Y2[n.charCode()]&&(r+=Vk(n))),f5(n),n.eat(44),f5(n),8734===n.charCode()?n.peek():(i=1,45===n.charCode()&&(n.peek(),i=-1),e=i*Number(p5(n)),0!==Y2[n.charCode()]&&(e+=Vk(n))),n.eat(93),{type:"Range",min:r,max:e}}(n)),n.eat(62),Yk(n,{type:"Type",name:r,opts:e})}function LZe(n,r){function e(l,u){return{type:"Group",terms:l,combinator:u,disallowEmpty:!1,explicit:!1}}var i;for(r=Object.keys(r).sort(function(l,u){return Zoe[l]-Zoe[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<n.length;o++){var s=n[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),n.splice(o,1),o--):(-1!==a&&o-a>1&&(n.splice(a,o-a,e(n.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&n.splice(a,o-a,e(n.slice(a,o),i))}return i}function Boe(n){for(var i,r=[],e={},o=null,a=n.pos;i=NZe(n);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(n.pos=a,n.error("Unexpected combinator")),e[i.value]=!0):null!==o&&"Combinator"!==o.type&&(e[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(i),o=i,a=n.pos);return null!==o&&"Combinator"===o.type&&(n.pos-=a,n.error("Unexpected combinator")),{type:"Group",terms:r,combinator:LZe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function NZe(n){var r=n.charCode();if(r<128&&1===Y2[r])return function RZe(n){var r=Vk(n);return 40===n.charCode()?(n.pos++,{type:"Function",name:r}):Yk(n,{type:"Keyword",name:r})}(n);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return Yk(n,function ZZe(n){var r;return n.eat(91),r=Boe(n),n.eat(93),r.explicit=!0,33===n.charCode()&&(n.pos++,r.disallowEmpty=!0),r}(n));case 60:return 39===n.nextCharCode()?function OZe(n){var r;return n.eat(60),n.eat(39),r=Vk(n),n.eat(39),n.eat(62),Yk(n,{type:"Property",name:r})}(n):PZe(n);case 124:return{type:"Combinator",value:n.substringToPos(n.pos+(124===n.nextCharCode()?2:1))};case 38:return n.pos++,n.eat(38),{type:"Combinator",value:"&&"};case 44:return n.pos++,{type:"Comma"};case 39:return Yk(n,{type:"String",value:DZe(n)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:f5(n)};case 64:return(r=n.nextCharCode())<128&&1===Y2[r]?(n.pos++,{type:"AtKeyword",name:Vk(n)}):Oz(n);case 123:if((r=n.nextCharCode())<48||r>57)return Oz(n);break;default:return Oz(n)}}function Foe(n){var r=new CZe(n),e=Boe(r);return r.pos!==n.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var K2=function(){};function Uoe(n){return"function"==typeof n?n:K2}var FZe={decorator:function(r){var e=[],i=null;return Vr(Vr({},r),{},{node:function(a){var s=i;i=a,r.node.call(this,a),i=s},emit:function(a,s,l){e.push({type:s,value:a,node:l?null:i})},result:function(){return e}})}};function HZe(n,r){return"string"==typeof n?function UZe(n){var r=[];return n5(n,function(e,i,o){return r.push({type:e,value:n.slice(i,o),node:null})}),r}(n):r.generate(n,FZe)}var $i={type:"Match"},Mo={type:"Mismatch"},Iz={type:"DisallowEmpty"};function Rl(n,r,e){return r===$i&&e===Mo||n===$i&&r===$i&&e===$i?n:("If"===n.type&&n.else===Mo&&r===$i&&(r=n.then,n=n.match),{type:"If",match:n,then:r,else:e})}function Hoe(n){return n.length>2&&40===n.charCodeAt(n.length-2)&&41===n.charCodeAt(n.length-1)}function joe(n){return"Keyword"===n.type||"AtKeyword"===n.type||"Function"===n.type||"Type"===n.type&&Hoe(n.name)}function Pz(n,r,e){switch(n){case" ":for(var i=$i,o=r.length-1;o>=0;o--){i=Rl(r[o],i,Mo)}return i;case"|":for(var s=Mo,l=null,u=r.length-1;u>=0;u--){var d=r[u];if(joe(d)&&(null===l&&u>0&&joe(r[u-1])&&(s=Rl({type:"Enum",map:l=Object.create(null)},$i,s)),null!==l)){var h=(Hoe(d.name)?d.name.slice(0,-1):d.name).toLowerCase();if(!(h in l)){l[h]=d;continue}}l=null,s=Rl(d,$i,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var g=Mo,y=function(){var Ce,Se=r[L];Ce=r.length>1?Pz(n,r.filter(function(Ee){return Ee!==Se}),!1):$i,g=Rl(Se,Ce,g)},L=r.length-1;L>=0;L--)y();return g;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var z=e?$i:Mo,q=function(){var Ce,Se=r[re];Ce=r.length>1?Pz(n,r.filter(function(Ee){return Ee!==Se}),!0):$i,z=Rl(Se,Ce,z)},re=r.length-1;re>=0;re--)q();return z}}function Rz(n){if("function"==typeof n)return{type:"Generic",fn:n};switch(n.type){case"Group":var r=Pz(n.combinator,n.terms.map(Rz),!1);return n.disallowEmpty&&(r=Rl(r,Iz,Mo)),r;case"Multiplier":return function zZe(n){var r=$i,e=Rz(n.term);if(0===n.max)e=Rl(e,Iz,Mo),(r=Rl(e,null,Mo)).then=Rl($i,$i,r),n.comma&&(r.then.else=Rl({type:"Comma",syntax:n},r,Mo));else for(var i=n.min||1;i<=n.max;i++)n.comma&&r!==$i&&(r=Rl({type:"Comma",syntax:n},r,Mo)),r=Rl(e,Rl($i,$i,r),Mo);if(0===n.min)r=Rl($i,$i,r);else for(var o=0;o<n.min-1;o++)n.comma&&r!==$i&&(r=Rl({type:"Comma",syntax:n},r,Mo)),r=Rl(e,r,Mo);return r}(n);case"Type":case"Property":return{type:n.type,name:n.name,syntax:n};case"Keyword":return{type:n.type,name:n.name.toLowerCase(),syntax:n};case"AtKeyword":return{type:n.type,name:"@"+n.name.toLowerCase(),syntax:n};case"Function":return{type:n.type,name:n.name.toLowerCase()+"(",syntax:n};case"String":return 3===n.value.length?{type:"Token",value:n.value.charAt(1),syntax:n}:{type:n.type,value:n.value.substr(1,n.value.length-2).replace(/\\'/g,"'"),syntax:n};case"Token":return{type:n.type,value:n.value,syntax:n};case"Comma":return{type:n.type,syntax:n};default:throw new Error("Unknown node type:",n.type)}}function Lz(n,r){return"string"==typeof n&&(n=Foe(n)),{type:"MatchGraph",match:Rz(n),syntax:r||null,source:n}}var Goe=Object.prototype.hasOwnProperty;function Voe(n){for(var r=null,e=null,i=n;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Nz(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;e++){var i=r.charCodeAt(e),o=n.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function Yoe(n){return null===n||(18===n.type||2===n.type||21===n.type||19===n.type||23===n.type||function JZe(n){return 9===n.type&&"?"!==n.value}(n))}function Koe(n){return null===n||(22===n.type||20===n.type||24===n.type||9===n.type&&"/"===n.value)}function qoe(n,r,e){function i(){do{Se++,ae=Se<n.length?n[Se]:null}while(null!==ae&&(13===ae.type||25===ae.type))}function o(Tn){var jn=Se+Tn;return jn<n.length?n[jn]:null}function a(Tn,jn){return{nextState:Tn,matchStack:Ee,syntaxStack:g,thenStack:y,tokenIndex:Se,prev:jn}}function s(Tn){y={nextState:Tn,matchStack:Ee,syntaxStack:g,prev:y}}function l(Tn){L=a(Tn,L)}function u(){Ee={type:1,syntax:r.syntax,token:ae,prev:Ee},i(),z=null,Se>Ce&&(Ce=Se)}function h(){Ee=2===Ee.type?Ee.prev:{type:3,syntax:g.syntax,token:Ee.token,prev:Ee},g=g.prev}var g=null,y=null,L=null,z=null,q=0,re=null,ae=null,Se=-1,Ce=0,Ee={type:0,syntax:null,token:null,prev:null};for(i();null===re&&++q<15e3;)switch(r.type){case"Match":if(null===y){if(null!==ae&&(Se!==n.length-1||"\\0"!==ae.value&&"\\9"!==ae.value)){r=Mo;break}re="Match";break}if((r=y.nextState)===Iz){if(y.matchStack===Ee){r=Mo;break}r=$i}for(;y.syntaxStack!==g;)h();y=y.prev;break;case"Mismatch":if(null!==z&&!1!==z)(null===L||Se>L.tokenIndex)&&(L=z,z=!1);else if(null===L){re="Mismatch";break}r=L.nextState,y=L.thenStack,g=L.syntaxStack,Ee=L.matchStack,Se=L.tokenIndex,ae=Se<n.length?n[Se]:null,L=L.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==Mo&&l(r.else),r.then!==$i&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var Ke=r.syntax.terms;if(r.index===Ke.length){if(0===r.mask||r.syntax.all){r=Mo;break}r=$i;break}if(r.mask===(1<<Ke.length)-1){r=$i;break}for(;r.index<Ke.length;r.index++){var st=1<<r.index;if(0==(r.mask&st)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|st}),r=Ke[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==ae){var De=ae.value.toLowerCase();if(-1!==De.indexOf("\\")&&(De=De.replace(/\\[09].*$/,"")),Goe.call(r.map,De)){r=r.map[De];break}}r=Mo;break;case"Generic":var it=null!==g?g.opts:null,ft=Se+Math.floor(r.fn(ae,o,it));if(!isNaN(ft)&&ft>Se){for(;Se<ft;)u();r=$i}else r=Mo;break;case"Type":case"Property":var bt="Type"===r.type?"types":"properties",$e=Goe.call(e,bt)?e[bt][r.name]:null;if(!$e||!$e.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==z&&null!==ae&&"Type"===r.type)if("custom-ident"===r.name&&1===ae.type||"length"===r.name&&"0"===ae.value){null===z&&(z=a(r,L)),r=Mo;break}g={syntax:r.syntax,opts:r.syntax.opts||null!==g&&g.opts||null,prev:g},Ee={type:2,syntax:r.syntax,token:Ee.token,prev:Ee},r=$e.match;break;case"Keyword":var ct=r.name;if(null!==ae){var Bt=ae.value;if(-1!==Bt.indexOf("\\")&&(Bt=Bt.replace(/\\[09].*$/,"")),Nz(Bt,ct)){u(),r=$i;break}}r=Mo;break;case"AtKeyword":case"Function":if(null!==ae&&Nz(ae.value,r.name)){u(),r=$i;break}r=Mo;break;case"Token":if(null!==ae&&ae.value===r.value){u(),r=$i;break}r=Mo;break;case"Comma":null!==ae&&18===ae.type?Yoe(Ee.token)?r=Mo:(u(),r=Koe(ae)?Mo:$i):r=Yoe(Ee.token)||Koe(ae)?$i:Mo;break;case"String":for(var Ht="",Pt=Se;Pt<n.length&&Ht.length<r.value.length;Pt++)Ht+=n[Pt].value;if(Nz(Ht,r.value)){for(;Se<Pt;)u();r=$i}else r=Mo;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,re){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),re="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ee=null;break;case"Match":for(;null!==g;)h();break;default:Ee=null}return{tokens:n,reason:re,iterations:q,match:Ee,longestMatch:Ce}}function Joe(n,r,e){var i=qoe(n,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=Voe(o).prev;null!==o;){switch(o.type){case 2:a.match.push(a={syntax:o.syntax,match:[]}),s.push(a);break;case 3:s.pop(),a=s[s.length-1];break;default:a.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return i}function Qoe(n){function r(o){return null!==o&&("Type"===o.type||"Property"===o.type||"Keyword"===o.type)}var i=null;return null!==this.matched&&function e(o){if(Array.isArray(o.match)){for(var a=0;a<o.match.length;a++)if(e(o.match[a]))return r(o.syntax)&&i.unshift(o.syntax),!0}else if(o.node===n)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function QZe(n,r){return Bz(this,n,function(e){return"Type"===e.type&&e.name===r})}function XZe(n,r){return Bz(this,n,function(e){return"Property"===e.type&&e.name===r})}function $Ze(n){return Bz(this,n,function(r){return"Keyword"===r.type})}function Bz(n,r,e){var i=Qoe.call(n,r);return null!==i&&i.some(e)}function Xoe(n){return"node"in n?n.node:Xoe(n.match[0])}function $oe(n){return"node"in n?n.node:$oe(n.match[n.match.length-1])}function eae(n,r,e,i,o){var s=[];return null!==e.matched&&function a(l){if(null!==l.syntax&&l.syntax.type===i&&l.syntax.name===o){var u=Xoe(l),d=$oe(l);n.syntax.walk(r,function(h,g,y){if(h===u){var L=new hb;do{if(L.appendData(g.data),g.data===d)break;g=g.next}while(null!==g);s.push({parent:y,nodes:L})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var q2=Object.prototype.hasOwnProperty;function Fz(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function tae(n){return Boolean(n)&&Fz(n.offset)&&Fz(n.line)&&Fz(n.column)}function eNe(n,r){return function(i,o){if(!i||i.constructor!==Object)return o(i,"Type of node should be an Object");for(var a in i){var s=!0;if(!1!==q2.call(i,a)){if("type"===a)i.type!==n&&o(i,"Wrong node type `"+i.type+"`, expected `"+n+"`");else if("loc"===a){if(null===i.loc)continue;if(i.loc&&i.loc.constructor===Object)if("string"!=typeof i.loc.source)a+=".source";else if(tae(i.loc.start)){if(tae(i.loc.end))continue;a+=".end"}else a+=".start";s=!1}else if(r.hasOwnProperty(a)){s=!1;for(var l=0;!s&&l<r[a].length;l++){var u=r[a][l];switch(u){case String:s="string"==typeof i[a];break;case Boolean:s="boolean"==typeof i[a];break;case null:s=null===i[a];break;default:"string"==typeof u?s=i[a]&&i[a].type===u:Array.isArray(u)&&(s=i[a]instanceof hb)}}}else o(i,"Unknown field `"+a+"` for "+n+" node type");s||o(i,"Bad value for `"+n+"."+a+"`")}}for(var d in r)q2.call(r,d)&&!1===q2.call(i,d)&&o(i,"Field `"+n+"."+d+"` is missed")}}function tNe(n,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+n+'"'};for(var a in e)if(!1!==q2.call(e,a)){for(var s=[],l=i[a]=Array.isArray(e[a])?e[a].slice():[e[a]],u=0;u<l.length;u++){var d=l[u];if(d===String||d===Boolean)s.push(d.name);else if(null===d)s.push("null");else if("string"==typeof d)s.push("<"+d+">");else{if(!Array.isArray(d))throw new Error("Wrong value `"+d+"` in `"+n+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:eNe(n,i)}}var rNe=Lz(boe.join(" | "));function Uz(n,r,e){var i={};for(var o in n)n[o].syntax&&(i[o]=e?n[o].syntax:gz(n[o].syntax,{compact:r}));return i}function iNe(n,r,e){for(var i={},o=0,a=Object.entries(n);o<a.length;o++){var s=(0,Yn.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:gz(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&Uz(u.descriptors,r,e)}}return i}function nf(n,r,e){return Vr({matched:n,iterations:e,error:r},H)}function Kk(n,r,e,i){var a,o=HZe(e,n.syntax);return function oNe(n){for(var r=0;r<n.length;r++)if("var("===n[r].value.toLowerCase())return!0;return!1}(o)?nf(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Joe(o,n.cssWideKeywordsSyntax,n)),i&&a.match||(a=Joe(o,r.match,n)).match?nf(a.match,null,a.iterations):nf(null,new NLe(a.reason,r.syntax,e,a),a.iterations))}var nae=function(){function n(r,e,i){if((0,B.Z)(this,n),this.cssWideKeywordsSyntax=rNe,this.syntax=e,this.generic=!1,this.units=Vr({},A),this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function nNe(n){var r={};if(n.node)for(var e in n.node)if(q2.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=tNe(e,i)}return r}(r),r){if(r.units)for(var o=0,a=Object.keys(A);o<a.length;o++){var s=a[o];Array.isArray(r.units[s])&&(this.units[s]=r.units[s])}if(r.types)for(var l in r.types)this.addType_(l,r.types[l]);if(r.generic){this.generic=!0;for(var u=0,d=Object.entries(aZe(this.units));u<d.length;u++){var h=(0,Yn.Z)(d[u],2),g=h[0],y=h[1];this.addType_(g,y)}}if(r.atrules)for(var L in r.atrules)this.addAtrule_(L,r.atrules[L]);if(r.properties)for(var z in r.properties)this.addProperty_(z,r.properties[z])}}return(0,U.Z)(n,[{key:"checkStructure",value:function(e){function i(s,l){a.push({node:s,message:l})}var o=this.structure,a=[];return this.syntax.walk(e,function(s){o.hasOwnProperty(s.type)?o[s.type].check(s,i):i(s,"Unknown node type `"+s.type+"`")}),!!a.length&&a}},{key:"createDescriptor",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:i,name:o},l={type:i,name:o,parent:a,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?l.match=Lz(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Foe(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:Lz(l.syntax,s)}),l.match}})),l}},{key:"addAtrule_",value:function(e,i){var o=this;!i||(this.atrules[e]={type:"Atrule",name:e,prelude:i.prelude?this.createDescriptor(i.prelude,"AtrulePrelude",e):null,descriptors:i.descriptors?Object.keys(i.descriptors).reduce(function(a,s){return a[s]=o.createDescriptor(i.descriptors[s],"AtruleDescriptor",s,e),a},Object.create(null)):null})}},{key:"addProperty_",value:function(e,i){!i||(this.properties[e]=this.createDescriptor(i,"Property",e))}},{key:"addType_",value:function(e,i){!i||(this.types[e]=this.createDescriptor(i,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new G2("Unknown at-rule","@"+e)}},{key:"checkAtrulePrelude",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e);return!a.prelude&&i?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!a.prelude||i||Kk(this,a.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=vz(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new G2("Unknown at-rule descriptor",i):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}},{key:"checkPropertyName",value:function(e){if(!this.getProperty(e))return new G2("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);if(o)return nf(null,o);var a=this.getAtrule(e);return a.prelude?Kk(this,a.prelude,i||"",!1):nf(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return nf(null,a);var s=this.getAtrule(e),l=vz(i);return Kk(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?nf(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if(voe(e).custom)return nf(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?nf(null,o):Kk(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?Kk(this,o,i,!1):nf(null,new G2("Unknown type",e))}},{key:"match",value:function(e,i){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Kk(this,e,i,!1)):nf(null,new G2("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return eae(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return eae(this,e.value,this.matchDeclaration(e),i,o)}},{key:"findAllFragments",value:function(e,i,o){var a=this,s=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(u){s.push.apply(s,a.findDeclarationValueFragments(u,i,o))}}),s}},{key:"getAtrule",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=vz(e),a=o.vendor&&i?this.atrules[o.name]||this.atrules[o.basename]:this.atrules[o.name];return a||null}},{key:"getAtrulePrelude",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getAtrule(e,i);return o&&o.prelude||null}},{key:"getAtruleDescriptor",value:function(e,i){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[i]||null}},{key:"getProperty",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=voe(e),a=o.vendor&&i?this.properties[o.name]||this.properties[o.basename]:this.properties[o.name];return a||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(l,u,d,h){if(d.has(u))return d.get(u);d.set(u,!1),null!==h.syntax&&function BZe(n,r,e){var o=K2,a=K2;if("function"==typeof r?o=r:r&&(o=Uoe(r.enter),a=Uoe(r.leave)),o===K2&&a===K2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function i(s){switch(o.call(e,s),s.type){case"Group":s.terms.forEach(i);break;case"Multiplier":i(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}a.call(e,s)}(n)}(h.syntax,function(g){if("Type"===g.type||"Property"===g.type){var y="Type"===g.type?l.types:l.properties,L="Type"===g.type?i:o;(!hasOwnProperty.call(y,g.name)||e(l,g.name,L,y[g.name]))&&d.set(u,!0)}},this)}var i=new Map,o=new Map;for(var a in this.types)e(this,a,i,this.types[a]);for(var s in this.properties)e(this,s,o,this.properties[s]);return i=(0,cn.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,cn.Z)(o.keys()).filter(function(l){return o.get(l)}),i.length||o.length?{types:i,properties:o}:null}},{key:"dump",value:function(e,i){return{generic:this.generic,units:this.units,types:Uz(this.types,!i,e),properties:Uz(this.properties,!i,e),atrules:iNe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),n}();function Hz(n,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof n?n+r:r.replace(/^\s*\|\s*/,""):r||null}function rae(n,r){for(var e=Object.create(null),i=0,o=Object.entries(n);i<o.length;i++){var a=(0,Yn.Z)(o[i],2),s=a[0],l=a[1];if(l){e[s]={};for(var u=0,d=Object.keys(l);u<d.length;u++){var h=d[u];r.includes(h)&&(e[s][h]=l[h])}}}return e}function jz(n,r){for(var e=Vr({},n),i=0,o=Object.entries(r);i<o.length;i++){var a=(0,Yn.Z)(o[i],2),s=a[0],l=a[1];switch(s){case"generic":e[s]=Boolean(l);break;case"units":e[s]=Vr({},n[s]);for(var u=0,d=Object.entries(l);u<d.length;u++){var h=(0,Yn.Z)(d[u],2),g=h[0],y=h[1];e[s][g]=Array.isArray(y)?y:[]}break;case"atrules":e[s]=Vr({},n[s]);for(var L=0,z=Object.entries(l);L<z.length;L++){var q=(0,Yn.Z)(z[L],2),re=q[0],ae=q[1],Se=e[s][re]||{},Ce=e[s][re]={prelude:Se.prelude||null,descriptors:Vr({},Se.descriptors)};if(ae){Ce.prelude=ae.prelude?Hz(Ce.prelude,ae.prelude):Ce.prelude||null;for(var Ee=0,Ke=Object.entries(ae.descriptors||{});Ee<Ke.length;Ee++){var st=(0,Yn.Z)(Ke[Ee],2),De=st[0],it=st[1];Ce.descriptors[De]=it?Hz(Ce.descriptors[De],it):null}Object.keys(Ce.descriptors).length||(Ce.descriptors=null)}}break;case"types":case"properties":e[s]=Vr({},n[s]);for(var ft=0,bt=Object.entries(l);ft<bt.length;ft++){var $e=(0,Yn.Z)(bt[ft],2),Pe=$e[0],ct=$e[1];e[s][Pe]=Hz(e[s][Pe],ct)}break;case"scope":e[s]=Vr({},n[s]);for(var Bt=0,Ht=Object.entries(l);Bt<Ht.length;Bt++){var Pt=(0,Yn.Z)(Ht[Bt],2),Tn=Pt[0],jn=Pt[1];e[s][Tn]=Vr(Vr({},e[s][Tn]),jn)}break;case"parseContext":e[s]=Vr(Vr({},n[s]),l);break;case"atrule":case"pseudo":e[s]=Vr(Vr({},n[s]),rae(l,["parse"]));break;case"node":e[s]=Vr(Vr({},n[s]),rae(l,["name","structure","parse","generate","walkContext"]))}}return e}function iae(n){var r=gLe(n),e=OLe(n),i=ELe(n),o=function xLe(n){return{fromPlainObject:function(e){return n(e,{enter:function(o){o.children&&!(o.children instanceof hb)&&(o.children=(new hb).fromArray(o.children))}}),e},toPlainObject:function(e){return n(e,{leave:function(o){o.children&&o.children instanceof hb&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(d){return new nae(d,l,l.lexer.structure)},tokenize:n5,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(d){var h=jz({},n);return iae("function"==typeof d?d(h,Object.assign):jz(h,d))}};return l.lexer=new nae({generic:!0,units:n.units,types:n.types,atrules:n.atrules,properties:n.properties,node:n.node},l),l}var mb=!0;function _5(n,r){var e=this.tokenStart+n,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)Vs(this.charCodeAt(e))||this.error("Integer is expected",e)}function qk(n){return _5.call(this,0,n)}function zg(n,r){if(!this.cmpChar(this.tokenStart+n,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+n)}}function Gz(){for(var n=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++n);if(10!==e){if(!this.isDelim(43,n)&&!this.isDelim(45,n))return null;r=this.isDelim(43,n)?43:45;do{e=this.lookupType(++n)}while(13===e||25===e);10!==e&&(this.skip(n),qk.call(this,mb))}return n>0&&this.skip(n),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),qk.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var uNe="AnPlusB",cNe={a:[String,null],b:[String,null]};function oae(){var n=this.tokenStart,r=null,e=null;if(10===this.tokenType)qk.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",zg.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=Gz.call(this);break;case 3:zg.call(this,2,45),this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10);break;default:zg.call(this,2,45),_5.call(this,3,mb),this.next(),e=this.substrToCursor(n+2)}else if(1===this.tokenType||this.isDelim(43)&&1===this.lookupType(1)){var i=0;switch(r="1",this.isDelim(43)&&(i=1,this.next()),zg.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=Gz.call(this);break;case 2:zg.call(this,1,45),this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10);break;default:zg.call(this,1,45),_5.call(this,2,mb),this.next(),e=this.substrToCursor(n+i+1)}}else if(12===this.tokenType){for(var o=this.charCodeAt(this.tokenStart),a=43===o||45===o,s=this.tokenStart+a;s<this.tokenEnd&&Vs(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),zg.call(this,s-this.tokenStart,110),r=this.substring(n,s),s+1===this.tokenEnd?(this.next(),e=Gz.call(this)):(zg.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),qk.call(this,mb),e="-"+this.consume(10)):(_5.call(this,s-this.tokenStart+2,mb),this.next(),e=this.substrToCursor(s+1)))}else this.error();return null!==r&&43===r.charCodeAt(0)&&(r=r.substr(1)),null!==e&&43===e.charCodeAt(0)&&(e=e.substr(1)),{type:"AnPlusB",loc:this.getLocation(n,this.tokenStart),a:r,b:e}}function dNe(n){if(n.a){var r=("+1"===n.a||"1"===n.a?"n":"-1"===n.a&&"-n")||n.a+"n";if(n.b){var e="-"===n.b[0]||"+"===n.b[0]?n.b:"+"+n.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(n.b)}function aae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function fNe(){for(var r,n=1;r=this.lookupType(n);n++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var pNe="Atrule",hNe="atrule",mNe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function sae(){var e,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,o=null,a=null;switch(this.eat(3),i=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),aae):aae.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,i)&&"function"==typeof this.atrule[i].block?this.atrule[i].block.call(this,n):this.Block(fNe.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:o,block:a}}function _Ne(n){this.token(3,"@"+n.name),null!==n.prelude&&this.node(n.prelude),n.block?this.node(n.block):this.token(17,";")}var gNe="AtrulePrelude",vNe="atrulePrelude",yNe={children:[[]]};function lae(n){var r=null;return null!==n&&(n=n.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].prelude?this.atrule[n].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(r),children:r}}function bNe(n){this.children(n)}function TNe(){this.eof&&this.error("Unexpected end of input");var n=this.tokenStart,r=!1;return this.isDelim(42)?(r=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(1)):r&&this.error("Identifier is expected",this.tokenEnd):r&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function MNe(){var n=this.tokenStart,r=this.charCodeAt(n);return 61!==r&&126!==r&&94!==r&&36!==r&&42!==r&&124!==r&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==r&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(n)}var SNe="AttributeSelector",ENe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function cae(){var r,n=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=TNe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=MNe.call(this),this.skipSC(),i=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(n,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function xNe(n){this.token(9,"["),this.node(n.name),null!==n.matcher&&(this.tokenize(n.matcher),this.node(n.value)),null!==n.flags&&this.token(1,n.flags),this.token(9,"]")}function dae(n){return this.Raw(n,null,!0)}function fae(){return this.parseWithFallback(this.Rule,dae)}function pae(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}function ANe(){if(17===this.tokenType)return pae.call(this,this.tokenIndex);var n=this.parseWithFallback(this.Declaration,pae);return 17===this.tokenType&&this.next(),n}var ONe="Block",INe="block",PNe={children:[["Atrule","Rule","Declaration"]]};function hae(n){var r=n?ANe:fae,e=this.tokenStart,i=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:i.push(this.parseWithFallback(this.Atrule.bind(this,n),dae));break;default:n&&this.isDelim(38)?i.push(fae.call(this)):i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function RNe(n){var r=this;this.token(23,"{"),this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var LNe="Brackets",ZNe={children:[[]]};function mae(n,r){var i,e=this.tokenStart;return this.eat(19),i=n.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function NNe(n){this.token(9,"["),this.children(n),this.token(9,"]")}var BNe="CDC",FNe=[];function _ae(){var n=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(n,this.tokenStart)}}function UNe(){this.token(15,"--\x3e")}var HNe="CDO",jNe=[];function gae(){var n=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(n,this.tokenStart)}}function GNe(){this.token(14,"\x3c!--")}var WNe="ClassSelector",VNe={name:String};function vae(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function YNe(n){this.token(9,"."),this.token(1,n.name)}var QNe="Combinator",XNe={name:String};function bae(){var r,n=this.tokenStart;switch(this.tokenType){case 13:r=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}r=this.substrToCursor(n)}return{type:"Combinator",loc:this.getLocation(n,this.tokenStart),name:r}}function $Ne(n){this.tokenize(n.name)}var nBe="Comment",rBe={value:String};function Cae(){var n=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-n+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(n,this.tokenStart),value:this.substring(n+2,r)}}function iBe(n){this.token(25,"/*"+n.value+"*/")}function cBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!0)}function dBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!1)}function fBe(){var n=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(n)&&this.error(),r}var pBe="Declaration",hBe="declaration",mBe={important:[Boolean,String],property:String,value:["Value","Raw"]};function Tae(){var l,n=this.tokenStart,r=this.tokenIndex,e=gBe.call(this),i=yz(e),o=i?this.parseCustomProperty:this.parseValue,a=i?dBe:cBe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(fBe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var d=u-this.tokenIndex;d<=0;d++)if(13===this.lookupType(d)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=vBe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(n,this.tokenStart),important:s,property:e,value:l}}function _Be(n){this.token(1,n.property),this.token(16,":"),this.node(n.value),n.important&&(this.token(9,"!"),this.token(1,!0===n.important?"important":n.important))}function gBe(){var n=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(n)}function vBe(){this.eat(9),this.skipSC();var n=this.consume(1);return"important"===n||n}function Wz(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}var bBe="DeclarationList",CBe={children:[["Declaration","Atrule","Rule"]]};function Mae(){for(var n=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule.bind(this,!0),Wz));break;default:this.isDelim(38)?n.push(this.parseWithFallback(this.Rule,Wz)):n.push(this.parseWithFallback(this.Declaration,Wz))}return{type:"DeclarationList",loc:this.getLocationFromList(n),children:n}}function wBe(n){var r=this;this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")})}var kBe="Dimension",TBe={value:String,unit:String};function Sae(){var n=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(n,this.tokenStart),value:r,unit:this.substring(n+r.length,this.tokenStart)}}function MBe(n){this.token(12,n.value+n.unit)}var SBe="Function",EBe="function",xBe={name:String,children:[[]]};function Eae(n,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):n.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function DBe(n){this.token(2,n.name+"("),this.children(n),this.token(22,")")}var ABe="XXX",OBe="Hash",IBe={value:String};function xae(){var n=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n+1)}}function PBe(n){this.token(4,"#"+n.value)}var RBe="Identifier",LBe={name:String};function Dae(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function ZBe(n){this.token(1,n.name)}var NBe="IdSelector",BBe={name:String};function Aae(){var n=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n+1)}}function FBe(n){this.token(9,"#"+n.name)}var UBe="MediaFeature",HBe={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Oae(){var r,n=this.tokenStart,e=null;if(this.eat(21),this.skipSC(),r=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:e=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:e=this.Dimension();break;case 1:e=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(n,this.tokenStart),name:r,value:e}}function jBe(n){this.token(21,"("),this.token(1,n.name),null!==n.value&&(this.token(16,":"),this.node(n.value)),this.token(22,")")}var GBe="MediaQuery",zBe={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Iae(){var n=this.createList(),r=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:r=this.Identifier();break;case 21:r=this.MediaFeature();break;default:break e}n.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(n),children:n}}function WBe(n){this.children(n)}var VBe="MediaQueryList",YBe={children:[["MediaQuery"]]};function Pae(){var n=this.createList();for(this.skipSC();!this.eof&&(n.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(n),children:n}}function KBe(n){var r=this;this.children(n,function(){return r.token(18,",")})}var JBe="NestingSelector",QBe={};function Rae(){var n=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(n,this.tokenStart)}}function XBe(){this.token(9,"&")}var $Be="Nth",e5e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Lae(){this.skipSC();var i,n=this.tokenStart,r=n,e=null;return i=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),e=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(n,r),nth:i,selector:e}}function t5e(n){this.node(n.nth),null!==n.selector&&(this.token(1,"of"),this.node(n.selector))}var n5e="Number",r5e={value:String};function Zae(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function i5e(n){this.token(10,n.value)}var o5e="Operator",a5e={value:String};function Nae(){var n=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function s5e(n){this.tokenize(n.value)}var l5e="Parentheses",u5e={children:[[]]};function Bae(n,r){var i,e=this.tokenStart;return this.eat(21),i=n.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function c5e(n){this.token(21,"("),this.children(n),this.token(22,")")}var d5e="Percentage",f5e={value:String};function Fae(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function p5e(n){this.token(11,n.value+"%")}var h5e="PseudoClassSelector",m5e="function",_5e={name:String,children:[["Raw"],null]};function Uae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function g5e(n){this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}var v5e="PseudoElementSelector",y5e="function",b5e={name:String,children:[["Raw"],null]};function Hae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function C5e(n){this.token(16,":"),this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}function jae(){this.skipSC();for(var n=this.consume(10),r=0;r<n.length;r++){var e=n.charCodeAt(r);!Vs(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-n.length+r)}return 0===Number(n)&&this.error("Zero number is not allowed",this.tokenStart-n.length),n}var T5e="Ratio",M5e={left:String,right:String};function Gae(){var e,n=this.tokenStart,r=jae.call(this);return this.skipSC(),this.eatDelim(47),e=jae.call(this),{type:"Ratio",loc:this.getLocation(n,this.tokenStart),left:r,right:e}}function S5e(n){this.token(10,n.left),this.token(9,"/"),this.token(10,n.right)}function E5e(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var x5e="Raw",D5e={value:String};function zae(n,r,e){var o,i=this.getTokenStart(n);return this.skipUntilBalanced(n,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?E5e.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function A5e(n){this.tokenize(n.value)}function Wae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracket,!0)}function O5e(){var n=this.SelectorList();return"Raw"!==n.type&&!1===this.eof&&23!==this.tokenType&&this.error(),n}var I5e="Rule",P5e="rule",R5e={prelude:["SelectorList","Raw"],block:["Block"]};function Vae(){var e,i,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(O5e,Wae):Wae.call(this,n),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function L5e(n){this.node(n.prelude),this.node(n.block)}var Z5e="Selector",N5e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Yae(){var n=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(n)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(n),children:n}}function B5e(n){this.children(n)}var F5e="SelectorList",U5e="selector",H5e={children:[["Selector","Raw"]]};function Kae(){for(var n=this.createList();!this.eof&&(n.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(n),children:n}}function j5e(n){var r=this;this.children(n,function(){return r.token(18,",")})}function Qae(n){for(var r=n.length,e=n.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&n.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=n.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=n.substr(s+1));break}if(Zp(92,l=n.charCodeAt(++s))){var u=s-1,d=jk(n,u);s=d-1,a+=Qie(n.substring(u+1,d))}else 13===l&&10===n.charCodeAt(s+1)&&s++}else a+=n[s]}return a}var z5e="String",W5e={value:String};function Xae(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Qae(this.consume(5))}}function V5e(n){this.token(5,function G5e(n,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<n.length;s++){var l=n.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+n.charAt(s),a=!1):(a&&(Ug(l)||pb(l))&&(o+=" "),o+=n.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(n.value))}function $ae(n){return this.Raw(n,null,!1)}var K5e="StyleSheet",q5e="stylesheet",J5e={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function ese(){for(var e,n=this.tokenStart,r=this.createList();!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,$ae);break;default:e=this.parseWithFallback(this.Rule,$ae)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(n,this.tokenStart),children:r}}function Q5e(n){this.children(n)}function Yz(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var $5e="TypeSelector",eFe={name:String};function nse(){var n=this.tokenStart;return this.isDelim(124)?(this.next(),Yz.call(this)):(Yz.call(this),this.isDelim(124)&&(this.next(),Yz.call(this))),{type:"TypeSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function tFe(n){this.tokenize(n.name)}function J2(n,r){for(var e=0,i=this.tokenStart+n;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return J2.call(this,n+e+1,!1),-1;Ug(o)||this.error(r&&0!==e?"Hyphen minus"+(e<6?" or hex digit":"")+" is expected":e<6?"Hex digit is expected":"Unexpected input",i),++e>6&&this.error("Too many hex digits",i)}return this.next(),e}function v5(n){for(var r=0;this.isDelim(63);)++r>n&&this.error("Too many question marks"),this.next()}function nFe(n){this.charCodeAt(this.tokenStart)!==n&&this.error((43===n?"Plus sign":"Hyphen minus")+" is expected")}function rFe(){var n=0;switch(this.tokenType){case 10:if(n=J2.call(this,1,!0),this.isDelim(63)){v5.call(this,6-n);break}if(12===this.tokenType||10===this.tokenType){nFe.call(this,45),J2.call(this,1,!1);break}break;case 12:(n=J2.call(this,1,!0))>0&&v5.call(this,6-n);break;default:if(this.eatDelim(43),1===this.tokenType){(n=J2.call(this,0,!0))>0&&v5.call(this,6-n);break}if(this.isDelim(63)){this.next(),v5.call(this,5);break}this.error("Hex digit or question mark is expected")}}var iFe="UnicodeRange",oFe={value:String};function ose(){var n=this.tokenStart;return this.eatIdent("u"),rFe.call(this),{type:"UnicodeRange",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function aFe(n){this.tokenize(n.value)}var pFe="Url",hFe={value:String};function sse(){var r,n=this.tokenStart;switch(this.tokenType){case 7:r=function dFe(n){for(var r=n.length,e=4,i=41===n.charCodeAt(r-1)?r-2:r-1,o="";e<i&&pb(n.charCodeAt(e));)e++;for(;e<i&&pb(n.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=n.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=n.substr(a+1));break}if(Zp(92,s=n.charCodeAt(++a))){var l=a-1,u=jk(n,l);a=u-1,o+=Qie(n.substring(l+1,u))}else 13===s&&10===n.charCodeAt(a+1)&&a++}else o+=n[a]}return o}(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),r=Qae(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(n,this.tokenStart),value:r}}function mFe(n){this.token(7,function fFe(n){for(var r="",e=!1,i=0;i<n.length;i++){var o=n.charCodeAt(i);0!==o?o<=31||127===o?(r+="\\"+o.toString(16),e=!0):32===o||92===o||34===o||39===o||40===o||41===o?(r+="\\"+n.charAt(i),e=!1):(e&&Ug(o)&&(r+=" "),r+=n.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(n.value))}var _Fe="Value",gFe={children:[[]]};function lse(){var n=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(n,this.tokenStart),children:r}}function vFe(n){this.children(n)}var yFe=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),bFe="WhiteSpace",CFe={value:String};function use(){return this.eat(13),yFe}function wFe(n){this.token(13,n.value)}var kFe=Vr(Vr({generic:!0},{generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221e]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221e]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221e]> [/ <number [0,\u221e]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221e]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}}}),{},{node:Ct});function dse(n){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,n.recognizer);case 19:return this.Brackets(this.readSequence,n.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,n.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:var r=this.charCodeAt(this.tokenStart);if(47===r||42===r||43===r||45===r)return this.Operator();35===r&&this.error("Hex or identifier is expected",this.tokenStart+1)}}var DFe={getNode:dse};var UFe={onWhiteSpace:function BFe(n,r){null!==r.last&&"Combinator"!==r.last.type&&null!==n&&"Combinator"!==n.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function FFe(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return 16===this.lookupType(1)?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}};function pse(n){return null!==n&&"Operator"===n.type&&("-"===n.value[n.value.length-1]||"+"===n.value[n.value.length-1])}var GFe={getNode:dse,onWhiteSpace:function(r,e){pse(r)&&(r.value=" "+r.value),pse(e.last)&&(e.last.value+=" ")},expression:function HFe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function jFe(){var n=this.createList();if(this.skipSC(),n.push(this.Identifier()),this.skipSC(),18===this.tokenType){n.push(this.Operator());var r=this.tokenIndex,e=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===e.type&&e.children.isEmpty)for(var i=r-this.tokenIndex;i<=0;i++)if(13===this.lookupType(i)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}n.push(e)}return n}},WFe={parse:{prelude:function(){var r=this.createList();switch(this.skipSC(),this.tokenType){case 5:r.push(this.String());break;case 7:case 2:r.push(this.Url());break;default:this.error("String or url() is expected")}return(1===this.lookupNonWSType(0)||21===this.lookupNonWSType(0))&&r.push(this.MediaQueryList()),r},block:null}};function qFe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function JFe(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):hse.call(this)}function hse(){var r,n=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(qFe,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(JFe,this.scope.AtrulePrelude);break;default:break e}n.push(r)}return n}var QFe={parse:{prelude:function(){var r=hse.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},XFe={"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:WFe,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},nest:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:QFe},_b={parse:function(){return this.createSingleNodeList(this.SelectorList())}},Jz={parse:function(){return this.createSingleNodeList(this.Selector())}},mse={parse:function(){return this.createSingleNodeList(this.Identifier())}},y5={parse:function(){return this.createSingleNodeList(this.Nth())}},e4e={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(r){return this.AtrulePrelude(r.atrule?String(r.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:Ve,atrule:XFe,pseudo:{dir:mse,has:_b,lang:mse,matches:_b,is:_b,"-moz-any":_b,"-webkit-any":_b,where:_b,not:_b,"nth-child":y5,"nth-last-child":y5,"nth-last-of-type":y5,"nth-of-type":y5,slotted:Jz,host:Jz,"host-context":Jz},node:at},t4e={node:Ct},fd=function(n){return iae(jz({},n))}(Vr(Vr(Vr({},kFe),e4e),t4e));fd.tokenize;var Qz=fd.parse,vse=fd.generate,Sc=(fd.lexer,fd.createLexer,fd.walk,fd.find,fd.findLast,fd.findAll,fd.toPlainObject,fd.fromPlainObject,fd.fork,function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){var i=Qz(e,{context:"declarationList"});return i.children.forEach(function(o){"font-size"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){if("Number"===a.type){var s=a.value.toString();s.indexOf("pt")>=0||s.indexOf("px")>=0||(a.value="".concat(s,"pt"))}})}),vse(i)}}]),n}());Sc.\u0275fac=function(r){return new(r||Sc)},Sc.\u0275prov=t.Yz7({token:Sc,factory:Sc.\u0275fac});var os=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){return e.font_family===n.DEFAULT_FONT&&e.font_size===n.DEFAULT_SIZE&&(e.font_family=n.REPLACE_BY_FONT,e.font_size=n.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=Qz(e,{context:"declarationList"}),o=null,a=null,s=!0;if(i.children.forEach(function(h){"font-family"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Identifier"===g.type&&(o=g),"String"===g.type&&(o=g,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Dimension"===g.type&&(a=g)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var d=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=d.font_family:o.value=d.font_family,a.value=d.font_size}return vse(i)}}]),n}();os.DEFAULT_FONT="TypeWriter",os.DEFAULT_SIZE=10,os.REPLACE_BY_FONT="Noto Sans",os.REPLACE_BY_SIZE=11,os.\u0275fac=function(r){return new(r||os)},os.\u0275prov=t.Yz7({token:os,factory:os.\u0275fac});var Wg=function(){function n(r,e,i){(0,B.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,U.Z)(n,[{key:"convert",value:function(e,i){var o=new Fk;o.rotation=e.rotation,o.style=e.style,o.text=e.text,o.x=e.x,o.y=e.y,o.originalX=e.x,o.originalY=e.y,void 0!==i&&(o.id=i.node_id,o.nodeId=i.node_id);var a=this.cssFixer.fix(o.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.text,s);return null!==o.x&&(o.x+=3),null!==o.y&&(o.y+=l.height),o}}]),n}();Wg.\u0275fac=function(r){return new(r||Wg)(t.LFG(Pp),t.LFG(Sc),t.LFG(os))},Wg.\u0275prov=t.Yz7({token:Wg,factory:Wg.\u0275fac});var n4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Vg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new n4e;return i.adapterNumber=e.adapter_number,i.linkType=e.link_type,i.name=e.name,i.portNumber=e.port_number,i.shortName=e.short_name,i}}]),n}();Vg.\u0275fac=function(r){return new(r||Vg)},Vg.\u0275prov=t.Yz7({token:Vg,factory:Vg.\u0275fac});var Yg=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new fb;if(o.id=e.node_id,o.commandLine=e.command_line,o.computeId=e.compute_id,o.console=e.console,o.consoleHost=e.console_host,o.consoleType=e.console_type,o.firstPortName=e.first_port_name,o.height=e.height,o.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,o.locked=e.locked,o.name=e.name,o.nodeDirectory=e.node_directory,o.nodeType=e.node_type,o.portNameFormat=e.port_name_format,o.portSegmentSize=e.port_segment_size,o.ports=e.ports?e.ports.map(function(u){return i.portToMapPort.convert(u)}):[],o.projectId=e.project_id,o.status=e.status,o.symbol=e.symbol,o.symbolUrl=e.symbol_url,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,void 0!==o.label){var a=this.cssFixer.fix(o.label.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.label.text,s);(null===e.label.x||null===e.label.y)&&(o.label.x=e.width/2-l.width/2+3,o.label.y=-8)}return o}}]),n}();Yg.\u0275fac=function(r){return new(r||Yg)(t.LFG(Wg),t.LFG(Vg),t.LFG(Pp),t.LFG(Sc),t.LFG(os))},Yg.\u0275prov=t.Yz7({token:Yg,factory:Yg.\u0275fac});var yse=(0,U.Z)(function n(){(0,B.Z)(this,n),this.isSelected=!1,this.isMultiplied=!1}),Q2=(0,U.Z)(function n(){(0,B.Z)(this,n)}),gb=function(){function n(r){(0,B.Z)(this,n),this.labelToMapLabel=r}return(0,U.Z)(n,[{key:"convert",value:function(e,i){var o=new Q2;return o.nodeId=e.node_id,o.adapterNumber=e.adapter_number,o.portNumber=e.port_number,o.label=this.labelToMapLabel.convert(e.label),void 0!==i&&(o.linkId=i.link_id,o.id="".concat(o.nodeId,"-").concat(o.linkId)),o}}]),n}();gb.\u0275fac=function(r){return new(r||gb)(t.LFG(Wg))},gb.\u0275prov=t.Yz7({token:gb,factory:gb.\u0275fac});var Kg=function(){function n(r){(0,B.Z)(this,n),this.linkNodeToMapLinkNode=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new yse;return o.id=e.link_id,o.captureFileName=e.capture_file_name,o.captureFilePath=e.capture_file_path,o.capturing=e.capturing,o.filters=e.filters,o.link_style=e.link_style,o.linkType=e.link_type,o.nodes=e.nodes.map(function(a){return i.linkNodeToMapLinkNode.convert(a,{link_id:e.link_id})}),o.projectId=e.project_id,o.suspend=e.suspend,o}}]),n}();Kg.\u0275fac=function(r){return new(r||Kg)(t.LFG(gb))},Kg.\u0275prov=t.Yz7({token:Kg,factory:Kg.\u0275fac});var Nm=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Bm=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new Nm;return i.id=e.drawing_id,i.projectId=e.project_id,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i}}]),n}();Bm.\u0275fac=function(r){return new(r||Bm)},Bm.\u0275prov=t.Yz7({token:Bm,factory:Bm.\u0275fac});var r4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),vb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new r4e;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();vb.\u0275fac=function(r){return new(r||vb)},vb.\u0275prov=t.Yz7({token:vb,factory:vb.\u0275fac});var i4e=(0,U.Z)(function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];(0,B.Z)(this,n),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),Fm=function(){function n(){(0,B.Z)(this,n),this.layers={}}return(0,U.Z)(n,[{key:"getLayersList",value:function(){var e=this;return Object.keys(this.layers).sort(function(i,o){return Number(i)-Number(o)}).map(function(i){return e.layers[i]})}},{key:"setNodes",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).nodes.push(o)})}},{key:"setDrawings",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).drawings.push(o)})}},{key:"setLinks",value:function(e){var i=this;console.log("from set links 2"),e.filter(function(o){return o.source&&o.target}).forEach(function(o){var a=Math.min(o.source.z,o.target.z).toString();i.getLayerForKey(a).links.push(o)})}},{key:"clear",value:function(){this.layers={}}},{key:"getLayerForKey",value:function(e){return e in this.layers||(this.layers[e]=new i4e,this.layers[e].index=Number(e)),this.layers[e]}}]),n}();Fm.\u0275fac=function(r){return new(r||Fm)},Fm.\u0275prov=t.Yz7({token:Fm,factory:Fm.\u0275fac});var Fp=function(){function n(){(0,B.Z)(this,n),this.LINK_WIDTH=2}return(0,U.Z)(n,[{key:"linkTranslation",value:function(e,i,o){var l,u,a=o.x-i.x,s=o.y-i.y;if(0===s)l=0,u=e;else{var d=Math.atan(a/s);l=-e*Math.cos(d),u=e*Math.sin(d)}return{dx:l,dy:u}}},{key:"assignDataToLinks",value:function(e){var i=this,o={};e.forEach(function(a,s){var l=a.source.id,u=a.target.id,d=l<u?l+","+u:u+","+l,h=1;d in o?h=o[d].push(s):o[d]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),n}();Fp.\u0275fac=function(r){return new(r||Fp)},Fp.\u0275prov=t.Yz7({token:Fp,factory:Fp.\u0275fac});var Up=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.mapNodesDataSource=r,this.mapLinksDataSource=e,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=l,this.symbolToMapSymbol=u,this.layersManager=d,this.multiLinkCalculator=h}return(0,U.Z)(n,[{key:"setNodes",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.nodeToMapNode.convert(a)});this.mapNodesDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setLinks",value:function(e){var i=this;if(e){console.log("from set links");var o=e.map(function(a){return i.linkToMapLink.convert(a)});this.mapLinksDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setDrawings",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.drawingToMapDrawing.convert(a)});this.mapDrawingsDataSource.set(o),this.onDataUpdate()}}},{key:"setSymbols",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.symbolToMapSymbol.convert(a)});this.mapSymbolsDataSource.set(o)}}},{key:"getNodes",value:function(){return this.mapNodesDataSource.getItems()}},{key:"getLinks",value:function(){return this.mapLinksDataSource.getItems()}},{key:"getDrawings",value:function(){return this.mapDrawingsDataSource.getItems()}},{key:"getSymbols",value:function(){return this.mapSymbolsDataSource.getItems()}},{key:"onDataUpdate",value:function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),console.log(this.getLinks()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())}},{key:"assignDataToLinks",value:function(){var e={};this.getNodes().forEach(function(i){e[i.id]=i}),this.getLinks().forEach(function(i){var o=i.nodes[0].nodeId,a=i.nodes[1].nodeId;o in e&&(i.source=e[o]),a in e&&(i.target=e[a]),i.source&&i.target&&(i.x=i.source.x+.5*(i.target.x-i.source.x),i.y=i.source.y+.5*(i.target.y-i.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())}}]),n}();Up.\u0275fac=function(r){return new(r||Up)(t.LFG(Im),t.LFG(Pm),t.LFG(Rm),t.LFG(Lm),t.LFG(Yg),t.LFG(Kg),t.LFG(Bm),t.LFG(vb),t.LFG(Fm),t.LFG(Fp))},Up.\u0275prov=t.Yz7({token:Up,factory:Up.\u0275fac});var b5=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.x=r,this.y=e}),bse=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.width=r,this.height=e}),o4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.x=r,this.y=e,this.k=i}),Ys=function(){function n(){(0,B.Z)(this,n),this.centerZeroZeroPoint=!0,this.size=new bse(0,0),this.transformation=new o4e(0,0,1)}return(0,U.Z)(n,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new b5(this.size.width/2,this.size.height/2):new b5(0,0)}}]),n}();Ys.\u0275fac=function(r){return new(r||Ys)},Ys.\u0275prov=t.Yz7({token:Ys,factory:Ys.\u0275fac});var Hp=function(){function n(){(0,B.Z)(this,n),this.changesDetected=new t.vpe,this.hasBeenDrawn=!1}return(0,U.Z)(n,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),n}();Hp.\u0275fac=function(r){return new(r||Hp)},Hp.\u0275prov=t.Yz7({token:Hp,factory:Hp.\u0275fac});var qg=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getOptimalSize",value:function(e,i){var o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;return e>o&&(o=e),i>a&&(a=i),new bse(o,a)}}]),n}();qg.\u0275fac=function(r){return new(r||qg)},qg.\u0275prov=t.Yz7({token:qg,factory:qg.\u0275fac});var rf=(0,U.Z)(function n(){(0,B.Z)(this,n),this.isReadOnly=!1});rf.\u0275fac=function(r){return new(r||rf)},rf.\u0275prov=t.Yz7({token:rf,factory:rf.\u0275fac});var Xz=(0,U.Z)(function n(){(0,B.Z)(this,n)}),a4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}(Xz),s4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}(Xz),l4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,U.Z)(e)}(Xz),C5=function(){function n(){(0,B.Z)(this,n),this.start=new t.vpe,this.drag=new t.vpe,this.end=new t.vpe}return(0,U.Z)(n,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return gg().on("start",function(s){o=Ln.sourceEvent.clientX,a=Ln.sourceEvent.clientY,(i=new a4e(s)).dx=Ln.dx,i.dy=Ln.dy,i.x=Ln.x,i.y=Ln.y,e.start.emit(i)}).on("drag",function(s){var l=new s4e(s);l.dx=Ln.sourceEvent.clientX-o,l.dy=Ln.sourceEvent.clientY-a,o=Ln.sourceEvent.clientX,a=Ln.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new l4e(s);l.dx=Ln.x-i.x,l.dy=Ln.y-i.y,e.end.emit(l)})}}]),n}(),u4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.datum=r,this.dx=e,this.dy=i}),Jk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(u4e),c4e=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),d4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.x=r,this.y=e}),f4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.datum=r,this.x=e,this.y=i}),p4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.savedText=r,this.x=e,this.y=i}),h4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.textDrawingId=r,this.editedText=e,this.textElement=i}),m4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.drawing=e}),Qk=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.link=e}),_4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.interfaceLabel=e}),g4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.label=e}),Ll=function(){function n(){(0,B.Z)(this,n),this.selection={},this.selected=new t.vpe,this.unselected=new t.vpe}return(0,U.Z)(n,[{key:"setSelected",value:function(e){var i=this,o=this.convertToKeyDict(e),a=Object.keys(o).filter(function(l){return!i.isSelectedByKey(l)}).map(function(l){return o[l]}),s=Object.keys(this.selection).filter(function(l){return!(l in o)}).map(function(l){return i.selection[l]});this.selection=o,a.length>0&&this.selected.emit(a),s.length>0&&this.unselected.emit(s)}},{key:"getSelected",value:function(){var e=this;return Object.keys(this.selection).map(function(i){return e.selection[i]})}},{key:"isSelected",value:function(e){var i=this.getKey(e);return this.isSelectedByKey(i)}},{key:"isSelectedByKey",value:function(e){return e in this.selection}},{key:"getKey",value:function(e){var i=e.constructor.name;return"".concat(i,"-").concat(e.id)}},{key:"convertToKeyDict",value:function(e){var i=this,o={};return e.forEach(function(a){o[i.getKey(a)]=a}),o}}]),n}();Ll.\u0275fac=function(r){return new(r||Ll)},Ll.\u0275prov=t.Yz7({token:Ll,factory:Ll.\u0275fac});var of=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new C5,this.enabled=!0}return(0,U.Z)(n,[{key:"setEnabled",value:function(e){this.enabled=e}},{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.link_node_position").data(function(g){return[[g.source,g.nodes[0]],[g.target,g.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(g){return"translate(".concat(g[0].x,", ").concat(g[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(g){return i.enabled?[g[1]]:[]}),d=u.enter().append("g").classed("interface_label_container",!0);d.append("rect").attr("class","interface_label_selection"),d.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(g){return"".concat(g.id)});var h=u.merge(d).on("contextmenu",function(g,y){event.preventDefault(),o.onContextMenu.emit(new _4e(event,g))});h.select("text.interface_label").text(function(g){return g.label.text}).attr("style",function(g){var y=i.cssFixer.fix(g.label.style);return y=i.fontFixer.fixStyles(y)}).attr("x",function(g){return g.label.x}).attr("y",function(g){return g.label.y}).attr("transform",function(g){return"rotate(".concat(g.label.rotation,", ").concat(g.label.x,", ").concat(g.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(g){return i.selectionManager.isSelected(g)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(g){var y=Ci(this),z=h.select('text[interface_label_id="'.concat(g.id,'"]')).node().getBBox();y.attr("width",z.width+4),y.attr("height",z.height+4),y.attr("x",z.x-2),y.attr("y",z.y-2),y.attr("transform","rotate(".concat(g.label.rotation,", ").concat(z.x-2,", ").concat(z.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),n}();of.SURROUNDING_TEXT_BORDER=5,of.\u0275fac=function(r){return new(r||of)(t.LFG(Sc),t.LFG(os),t.LFG(Ll),t.LFG(rf))},of.\u0275prov=t.Yz7({token:of,factory:of.\u0275fac});var Cse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.width=i,this.height=o}),Jg=(0,U.Z)(function n(){(0,B.Z)(this,n),this.selected=new On.xQ});Jg.\u0275fac=function(r){return new(r||Jg)},Jg.\u0275prov=t.Yz7({token:Jg,factory:Jg.\u0275fac});var jp=function(){function n(r,e){(0,B.Z)(this,n),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new On.xQ,this.contextMenuOpened=new t.vpe,this.enabled=!1}return(0,U.Z)(n,[{key:"disableContextMenu",value:function(){}},{key:"setEnabled",value:function(e){this.enabled=e,this.contextMenuOpened.emit(!0)}},{key:"activate",value:function(e){var i=this;e.on("mousedown",function(){if(2==Ln.button)return e.on("contextmenu",function(){Ln.preventDefault()}),void i.contextMenuOpened.emit(Ln);var o=Ci(window),a=this.parentElement,s=i.transformation(Fd(a));i.startSelection(s),e.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Fd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Fd(a));i.endSelection(s,l),o.on("mousemove.selection",null).on("mouseup.selection",null)})})}},{key:"deactivate",value:function(e){e.on("mousedown",null)}},{key:"draw",value:function(e,i){var o=e.select("g.canvas");if(!o.select("g.selection-line-tool").node()){var a=o.append("g");a.attr("class","selection-line-tool"),this.path=a.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var s=o.select("g.selection-line-tool"),l=s.attr("status");"activated"!==l&&this.enabled&&(this.activate(e),s.attr("activated")),"deactivated"!==l&&!this.enabled&&(this.deactivate(e),s.attr("deactivated"))}},{key:"startSelection",value:function(e){this.path.attr("d",this.rect(e[0],e[1],0,0)).attr("visibility","visible")}},{key:"moveSelection",value:function(e,i){var o=e[0]/this.context.transformation.k,a=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(o,a,i[0]/this.context.transformation.k-o,i[1]/this.context.transformation.k-a)),this.selectedEvent(e,i)}},{key:"endSelection",value:function(e,i){this.path.attr("visibility","hidden"),this.selectedEvent(e,i)}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.selectionEventSource.selected.next(new Cse(o,a,s,l))}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"transformation",value:function(e){var i=this.context.getZeroZeroTransformationPoint();return[e[0]-i.x-this.context.transformation.x,e[1]-i.y-this.context.transformation.y]}}]),n}();jp.SELECTABLE_CLASS=".selectable",jp.\u0275fac=function(r){return new(r||jp)(t.LFG(Ys),t.LFG(Jg))},jp.\u0275prov=t.Yz7({token:jp,factory:jp.\u0275fac});var Qg=function(){function n(r){(0,B.Z)(this,n),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Fne().scaleExtent([.5,8])}return(0,U.Z)(n,[{key:"setEnabled",value:function(e){this.enabled!=e&&(e?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=e}},{key:"draw",value:function(e,i){this.needsActivate&&(this.activate(e),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(e),this.needsDeactivate=!1)}},{key:"activate",value:function(e){var i=this;this.zoom.filter(function(){return"mousedown"===Ln.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Ln;s.attr("transform",function(){i.context.transformation.x=l.transform.x,i.context.transformation.y=l.transform.y,i.context.transformation.k=l.transform.k;var u=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,d=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(d,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),n}();Qg.\u0275fac=function(r){return new(r||Qg)(t.LFG(Ys))},Qg.\u0275prov=t.Yz7({token:Qg,factory:Qg.\u0275fac});var v4e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.event=r,this.node=e}),wse=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(v4e),Gp=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new C5}return(0,U.Z)(n,[{key:"redrawLabel",value:function(e,i){this.drawLabel(this.selectLabel(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.label_container").data(function(l){return[l.label]}),a=o.enter().append("g").attr("class","label_container").attr("label_id",function(l){return l.id}),s=o.merge(a).on("contextmenu",function(l,u){event.preventDefault(),i.onContextMenu.emit(new g4e(event,l))});this.drawLabel(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(o)}},{key:"drawLabel",value:function(e){var i=this,o=e.selectAll("g.label_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","label_body");a.append("text").attr("class","label"),a.append("rect").attr("class","label_selection");var s=o.merge(a);s.select("text.label").attr("label_id",function(l){return l.id}).attr("style",function(l){var u=i.cssFixer.fix(l.style);return u=i.fontFixer.fixStyles(u)}).text(function(l){return l.text}).attr("x",function(l){return l.x}).attr("y",function(l){return l.y}).attr("transform",function(l){return"rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")")}),s.select("rect.label_selection").attr("visibility",function(l){return i.selectionManager.isSelected(l)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(l){var u=Ci(this),h=s.select('text[label_id="'.concat(l.id,'"]')).node().getBBox();u.attr("width",h.width+4),u.attr("height",h.height+4),u.attr("x",h.x-2),u.attr("y",h.y-2),u.attr("transform","rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")"))})}},{key:"selectLabel",value:function(e,i){return e.selectAll('g.label_container[label_id="'.concat(i.id,'"]'))}}]),n}();Gp.NODE_LABEL_MARGIN=3,Gp.\u0275fac=function(r){return new(r||Gp)(t.LFG(Sc),t.LFG(os),t.LFG(Ll),t.LFG(rf))},Gp.\u0275prov=t.Yz7({token:Gp,factory:Gp.\u0275fac});var pd=(0,U.Z)(function n(){(0,B.Z)(this,n),this.dragged=new t.vpe,this.labelDragged=new t.vpe,this.clicked=new t.vpe});pd.\u0275fac=function(r){return new(r||pd)},pd.\u0275prov=t.Yz7({token:pd,factory:pd.\u0275fac});var fl=function(){function n(){(0,B.Z)(this,n),this.symbolScalingSubject=new On.xQ,this.isScrollDisabled=new On.xQ,this.isMapLocked=new On.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new On.xQ,this.mapRenderedEmitter=new t.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget"));localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme="true"===localStorage.getItem("openReadme"):localStorage.setItem("openReadme","false")}return(0,U.Z)(n,[{key:"getSymbolScaling",value:function(){return"true"===localStorage.getItem("symbolScaling")}},{key:"setSymbolScaling",value:function(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)}},{key:"changeMapLockValue",value:function(e){this.isMapLocked.next(e)}},{key:"setConsoleContextMenuAction",value:function(e){localStorage.setItem("consoleContextMenu",e)}},{key:"getConsoleContextManuAction",value:function(){return localStorage.getItem("consoleContextMenu")}},{key:"toggleTopologySummary",value:function(e){this.isTopologySummaryVisible=e}},{key:"toggleLogConsole",value:function(e){this.isLogConsoleVisible=e}},{key:"toggleLayers",value:function(e){this.isLayerNumberVisible=e}},{key:"toggleShowInterfaceLabels",value:function(e){this.showInterfaceLabels=e}},{key:"toggleIntegrateInterfaceLabels",value:function(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")}},{key:"toggleOpenReadme",value:function(e){this.openReadme=e,localStorage.removeItem("openReadme"),e?localStorage.setItem("openReadme","true"):localStorage.setItem("openReadme","false")}},{key:"toggleOpenConsolesInWidget",value:function(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")}}]),n}();fl.\u0275fac=function(r){return new(r||fl)},fl.\u0275prov=t.Yz7({token:fl,factory:fl.\u0275fac,providedIn:"root"});var Xg=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new t.vpe,this.onContextConsoleMenu=new t.vpe,this.onNodeClicked=new t.vpe}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.node_body").data(function(u){return[u]}),s=a.enter().append("g").attr("class","node_body");s.append("image");var l=a.merge(s).classed("selected",function(u){return i.selectionManager.isSelected(u)}).on("click",function(u){i.nodesEventSource.clicked.emit(new f4e(u,Ln.pageX,Ln.pageY))});l.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),l.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),l.select("image").on("contextmenu",function(u,d){Ln.preventDefault(),o.onContextMenu.emit(new wse(Ln,u))}).on("dblclick",function(u,d){Ln.preventDefault(),o.onContextConsoleMenu.emit(new wse(Ln,u))}).attr("xnode:href",function(u){return u.symbolUrl}).attr("width",function(u){return u.width?u.width:60}).attr("height",function(u){return u.height?u.height:60}).attr("x",function(u){return 0}).attr("y",function(u){return 0}).on("mouseover",function(u){Ci(this).attr("class","over")}).on("mouseout",function(u){Ci(this).attr("class","")}),l.attr("transform",function(u){return u.width?"translate(".concat(u.x,",").concat(u.y,")"):"translate(".concat(u.x-30,",").concat(u.y-30,")")}),this.labelWidget.draw(l)}}]),n}();Xg.\u0275fac=function(r){return new(r||Xg)(t.LFG(Ll),t.LFG(Gp),t.LFG(pd),t.LFG(fl))},Xg.\u0275prov=t.Yz7({token:Xg,factory:Xg.\u0275fac});var zp=function(){function n(r,e){(0,B.Z)(this,n),this.nodeWidget=r,this.mapSettings=e,this.draggable=new C5}return(0,U.Z)(n,[{key:"redrawNode",value:function(e,i){this.nodeWidget.draw(this.selectNode(e,i))}},{key:"draw",value:function(e){var i=e.selectAll("g.node").data(function(s){return s.nodes?s.nodes:[]},function(s){return s.id}),o=i.enter().append("g").attr("class","node").attr("node_id",function(s){return s.id}),a=i.merge(o);this.nodeWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a)}},{key:"selectNode",value:function(e,i){return e.selectAll('g.node[node_id="'.concat(i.id,'"]'))}}]),n}();zp.NODE_LABEL_MARGIN=3,zp.\u0275fac=function(r){return new(r||zp)(t.LFG(Xg),t.LFG(rf))},zp.\u0275prov=t.Yz7({token:zp,factory:zp.\u0275fac});var y4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),$g=function(){function n(){(0,B.Z)(this,n),this.drawingLine=new y4e,this.drawing=!1,this.data={}}return(0,U.Z)(n,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new b5(e,i),this.drawingLine.end=new b5(e,i);this.selection.on("mousemove",function(u,d){var g=Fd(a.selection.select("g.canvas").node());a.drawingLine.end.x=g[0],a.drawingLine.end.y=g[1],a.draw(null,null)}),this.draw(null,null)}},{key:"isDrawing",value:function(){return this.drawing}},{key:"stop",value:function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data}},{key:"connect",value:function(e,i){this.selection=e}},{key:"draw",value:function(e,i){var o=this.selection.select("g.canvas");o.select("g.drawing-line-tool").node()||o.append("g").attr("class","drawing-line-tool");var a=[];this.drawing&&(a=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var s=EN(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),d=u.enter().append("path");u.merge(d).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),n}();$g.\u0275fac=function(r){return new(r||$g)},$g.\u0275prov=t.Yz7({token:$g,factory:$g.\u0275fac});var kse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.status=i,this.port=o}),yb=function(){function n(r){(0,B.Z)(this,n),this._mapSettingsService=r,this.mapSettingsService=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=[];e.each(function(a){o.push(a)}),o.forEach(function(a){o.forEach(function(s){s.nodes[0].linkId!==a.nodes[0].linkId&&(a.nodes[0].nodeId===s.nodes[0].nodeId&&a.nodes[1].nodeId===s.nodes[1].nodeId||a.nodes[0].nodeId===s.nodes[1].nodeId&&a.nodes[1].nodeId===s.nodes[0].nodeId||a.nodes[1].nodeId===s.nodes[0].nodeId&&a.nodes[0].nodeId===s.nodes[1].nodeId)&&(a.isMultiplied=!0)})}),e.each(function(a){var s=Ci(this),l=s.select("path"),u=[];if(l.node()){var d=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var g=a.nodes.find(function(Pt){return Pt.nodeId===a.source.id}).label.text,y=a.nodes.find(function(Pt){return Pt.nodeId===a.target.id}).label.text;u=[new kse(d.x,d.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,g),new kse(h.x,h.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.target.status,y)]}}if(s.selectAll("circle.status_started").remove(),s.selectAll("circle.status_stopped").remove(),s.selectAll("circle.status_suspended").remove(),s.selectAll("rect.status_started").remove(),s.selectAll("text.status_started_label").remove(),s.selectAll("rect.status_stopped").remove(),s.selectAll("text.status_stopped_label").remove(),s.selectAll("rect.status_suspended").remove(),s.selectAll("text.status_suspended_label").remove(),i.mapSettingsService.showInterfaceLabels&&i.mapSettingsService.integrateLinkLabelsToLinks&&!a.isMultiplied){var L=s.selectAll("rect.status_started").data(u.filter(function(Pt){return"started"===Pt.status})),z=L.enter().append("rect");L.merge(z).attr("class","status_started").attr("width",function(Pt){return 8*Pt.port.length+10}).attr("height",20).attr("x",function(Pt){return Pt.x-30}).attr("y",function(Pt){return Pt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),L.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(Pt){return"started"===Pt.status})),re=q.enter().append("text");q.merge(re).attr("class","status_started_label").text(function(Pt){return Pt.port}).attr("x",function(Pt){return Pt.x-25}).attr("y",function(Pt){return Pt.y+5}).attr("fill","black"),q.exit().remove();var ae=s.selectAll("rect.status_stopped").data(u.filter(function(Pt){return"stopped"===Pt.status})),Se=ae.enter().append("rect");ae.merge(Se).attr("class","status_stopped").attr("width",function(Pt){return 8*Pt.port.length+10}).attr("height",20).attr("x",function(Pt){return Pt.x-30}).attr("y",function(Pt){return Pt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),ae.exit().remove();var Ce=s.selectAll("text.status_stopped_label").data(u.filter(function(Pt){return"stopped"===Pt.status})),Ee=Ce.enter().append("text");Ce.merge(Ee).attr("class","status_stopped_label").text(function(Pt){return Pt.port}).attr("x",function(Pt){return Pt.x-25}).attr("y",function(Pt){return Pt.y+5}).attr("fill","black"),Ce.exit().remove();var Ke=s.selectAll("rect.status_suspended").data(u.filter(function(Pt){return"suspended"===Pt.status})),st=Ke.enter().append("rect");Ke.merge(st).attr("class","status_suspended").attr("width",function(Pt){return 8*Pt.port.length+10}).attr("height",20).attr("x",function(Pt){return Pt.x-30}).attr("y",function(Pt){return Pt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),Ke.exit().remove();var De=s.selectAll("text.status_suspended_label").data(u.filter(function(Pt){return"suspended"===Pt.status})),it=De.enter().append("text");De.merge(it).attr("class","status_suspended_label").text(function(Pt){return Pt.port}).attr("x",function(Pt){return Pt.x-25}).attr("y",function(Pt){return Pt.y+5}).attr("fill","black"),De.exit().remove()}else{var ft=s.selectAll("circle.status_started").data(u.filter(function(Pt){return"started"===Pt.status})),bt=ft.enter().append("circle");ft.merge(bt).attr("class","status_started").attr("cx",function(Pt){return Pt.x}).attr("cy",function(Pt){return Pt.y}).attr("r",6).attr("text",function(Pt){return Pt.port}).attr("fill","#2ecc71"),ft.exit().remove();var $e=s.selectAll("rect.status_stopped").data(u.filter(function(Pt){return"stopped"===Pt.status})),Pe=$e.enter().append("rect");$e.merge(Pe).attr("class","status_stopped").attr("x",function(Pt){return Pt.x-5}).attr("y",function(Pt){return Pt.y-5}).attr("width",10).attr("height",10).attr("fill","red"),$e.exit().remove();var Bt=s.selectAll("circle.status_suspended").data(u.filter(function(Pt){return"suspended"===Pt.status})),Ht=Bt.enter().append("circle");Bt.merge(Ht).attr("class","status_suspended").attr("cx",function(Pt){return Pt.x}).attr("cy",function(Pt){return Pt.y}).attr("r",6).attr("fill","#FFFF00"),Bt.exit().remove()}})}}]),n}();yb.\u0275fac=function(r){return new(r||yb)(t.LFG(fl))},yb.\u0275prov=t.Yz7({token:yb,factory:yb.\u0275fac});var Tse=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,null,[{key:"getLinkStyle",value:function(e){return 1==e.type?"10, 10":2==e.type?"".concat(e.width,", ").concat(e.width):3==e.type?"20, 10, ".concat(e.width,", ").concat(e.width,", ").concat(e.width,", 10"):"0, 0"}}]),n}(),b4e=(0,U.Z)(function n(r,e,i){(0,B.Z)(this,n),this.source=r,this.target=e,this.style=i}),ev=function(){function n(){(0,B.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,U.Z)(n,[{key:"linktoEthernetLink",value:function(e){return new b4e([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2],e.link_style.color?e.link_style:this.defaultEthernetLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.ethernet_link").data(function(l){return"ethernet"===l.linkType?[i.linktoEthernetLink(l)]:[]}),a=o.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Qk(d,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return Tse.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=Hd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();ev.\u0275fac=function(r){return new(r||ev)},ev.\u0275prov=t.Yz7({token:ev,factory:ev.\u0275fac});var C4e=(0,U.Z)(function n(r,e,i,o,a){(0,B.Z)(this,n),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),tv=function(){function n(){(0,B.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,U.Z)(n,[{key:"linkToSerialLink",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return new C4e([i.x,i.y],h,g,[o.x,o.y],e.link_style.color?e.link_style:this.defaultSerialLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.serial_link").data(function(l){return"serial"===l.linkType?[i.linkToSerialLink(l)]:[]}),a=o.enter().append("path").attr("class","serial_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Qk(d,u))});a.attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return Tse.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=Hd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.source_angle[0],l.source_angle[1]),u.lineTo(l.target_angle[0],l.target_angle[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();tv.\u0275fac=function(r){return new(r||tv)},tv.\u0275prov=t.Yz7({token:tv,factory:tv.\u0275fac});var nv=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new t.vpe}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","link_body"),s=o.merge(a).attr("transform",function(l){var u=i.multiLinkCalculatorHelper.linkTranslation(l.distance,l.source,l.target);return"translate (".concat(u.dx,", ").concat(u.dy,")")});o.select(".capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&!(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),o.select(".filter-capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","filter-capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),o.select(".filter-icon").remove(),o.filter(function(l){return!l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),o.select(".pause-icon").remove(),o.filter(function(l){return l.suspend}).append("g").on("contextmenu",function(l){var u=Ln;i.onContextMenu.emit(new Qk(u,l))}).attr("class","pause-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(s),this.ethernetLinkWidget.draw(s),s.select("path").classed("selected",function(l){return i.selectionManager.isSelected(l)}),this.interfaceLabelWidget.draw(s),this.interfaceStatusWidget.draw(s)}}]),n}();nv.\u0275fac=function(r){return new(r||nv)(t.LFG(Fp),t.LFG(of),t.LFG(yb),t.LFG(Ll),t.LFG(ev),t.LFG(tv))},nv.\u0275prov=t.Yz7({token:nv,factory:nv.\u0275fac});var Um=function(){function n(r,e){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,U.Z)(n,[{key:"redrawLink",value:function(e,i){console.log("redraw called"),this.linkWidget.draw(this.selectLink(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link").data(function(l){if(l.links){var u=l.links.filter(function(d){return d.target&&d.source});return i.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(l){return l.id}),a=o.enter().append("g").attr("class","link").attr("link_id",function(l){return l.id}).attr("map-source",function(l){return l.source.id}).attr("map-target",function(l){return l.target.id}),s=o.merge(a);this.linkWidget.draw(s),o.exit().remove()}},{key:"selectLink",value:function(e,i){return e.selectAll('g.link[link_id="'.concat(i.id,'"]'))}}]),n}();Um.\u0275fac=function(r){return new(r||Um)(t.LFG(Fp),t.LFG(nv))},Um.\u0275prov=t.Yz7({token:Um,factory:Um.\u0275fac});var w4e=(0,U.Z)(function n(){(0,B.Z)(this,n)}),ea=(0,U.Z)(function n(){(0,B.Z)(this,n)}),k4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new ea,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("cx");d&&(i.cx=parseInt(d.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,10));var y=e.attributes.getNamedItem("ry");return y&&(i.ry=parseInt(y.value,10)),i}}]),n}(),w5=(0,U.Z)(function n(){(0,B.Z)(this,n)}),T4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new w5,o=e.attributes.getNamedItem("xlink:href");o&&(i.data=o.value);var a=e.attributes.getNamedItem("width");a&&(i.width=parseInt(a.value,10));var s=e.attributes.getNamedItem("height");return s&&(i.height=parseInt(s.value,10)),i}}]),n}(),bb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),M4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new bb,o=e.attributes.getNamedItem("stroke");o&&(i.stroke=o.value);var a=e.attributes.getNamedItem("stroke-width");o&&(i.stroke_width=parseInt(a.value,10));var s=e.attributes.getNamedItem("stroke-dasharray");s&&(i.stroke_dasharray=s.value);var l=e.attributes.getNamedItem("x1");l&&(i.x1=parseInt(l.value,10));var u=e.attributes.getNamedItem("x2");u&&(i.x2=parseInt(u.value,10));var d=e.attributes.getNamedItem("y1");d&&(i.y1=parseInt(d.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),n}(),af=(0,U.Z)(function n(){(0,B.Z)(this,n)}),S4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new af,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("width");d&&(i.width=parseInt(d.value,10));var h=e.attributes.getNamedItem("height");h&&(i.height=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,0));var y=e.attributes.getNamedItem("ry");return y&&(i.ry=parseInt(y.value,0)),i}}]),n}(),Cb=(0,U.Z)(function n(){(0,B.Z)(this,n)}),E4e=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new Cb;i.text=e.textContent;var o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");a&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("font-family");s&&(i.font_family=s.value);var l=e.attributes.getNamedItem("font-size");l&&(i.font_size=+l.value);var u=e.attributes.getNamedItem("font-weight");u&&(i.font_weight=u.value);var d=e.attributes.getNamedItem("text-decoration");return d&&(i.text_decoration=d.value),i}}]),n}(),Wp=function(){function n(){(0,B.Z)(this,n),this.parser=new DOMParser,this.elementParsers={text:new E4e,image:new T4e,rect:new S4e,line:new M4e,ellipse:new k4e}}return(0,U.Z)(n,[{key:"supportedTags",value:function(){return Object.keys(this.elementParsers)}},{key:"convert",value:function(e){var o=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==o.length)throw new Error("Cannot locate svg element root in '".concat(e,"'"));var a=o[0],s=null,l=null;for(var u in a.children){var d=(l=a.children[u]).nodeName;if(d in this.elementParsers){s=this.elementParsers[d];break}}if(null===s)throw new Error("Cannot find parser for '".concat(e,"'"));var h=s.convert(l);return h.width=+a.getAttribute("width"),h.height=+a.getAttribute("height"),h}}]),n}();Wp.\u0275fac=function(r){return new(r||Wp)},Wp.\u0275prov=t.Yz7({token:Wp,factory:Wp.\u0275fac});var rv=function(){function n(r){(0,B.Z)(this,n),this.fontFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof Cb?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var g=i.fontFixer.fix(h),y=[];return g.font_family&&y.push('font-family: "'.concat(h.font_family,'"')),g.font_size&&y.push("font-size: ".concat(h.font_size,"pt")),g.font_weight&&y.push("font-weight: ".concat(h.font_weight)),y.join("; ")}).attr("fill",function(h){return h.fill}).attr("text-decoration",function(h){return h.text_decoration});var l=s.selectAll("tspan").data(function(h){return h.text.split(/\r?\n/)}),u=l.enter().append("tspan");l.merge(u).text(function(h){return h}).attr("xml:space","preserve").attr("x",0).attr("dy",function(h,g){return 0===g?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=Ci(this).selectAll("tspan"),g=this.getBBox().height/h.size();return"translate(".concat(n.MARGIN,", ").concat(g-n.MARGIN,")")}),o.exit().remove()}}]),n}();rv.MARGIN=4,rv.\u0275fac=function(r){return new(r||rv)(t.LFG(os))},rv.\u0275prov=t.Yz7({token:rv,factory:rv.\u0275fac});var wb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof w5?[s.element]:[]}),o=i.enter().append("image").attr("class","image_element noselect");i.merge(o).attr("xlink:href",function(s){return s.data}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}),i.exit().remove()}}]),n}();wb.\u0275fac=function(r){return new(r||wb)},wb.\u0275prov=t.Yz7({token:wb,factory:wb.\u0275fac});var Yu=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"fix",value:function(e){if(e||""==e)return e in n.MAPPING?n.MAPPING[e]:e}}]),n}();Yu.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"12, 3, 5, 3","25, 25, 5, 25, 5":"12, 3, 5, 3, 5, 3"},Yu.\u0275fac=function(r){return new(r||Yu)},Yu.\u0275prov=t.Yz7({token:Yu,factory:Yu.\u0275fac});var kb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof af?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("rect").attr("class","rect_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("width",function(l){return l.width}).attr("height",function(l){return l.height}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();kb.\u0275fac=function(r){return new(r||kb)(t.LFG(Yu))},kb.\u0275prov=t.Yz7({token:kb,factory:kb.\u0275fac});var Tb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof bb?[l.element]:[]});o.enter().append("circle").attr("class","right"),o.enter().append("circle").attr("class","left");var a=o.enter().append("line").attr("class","line_element noselect");o.merge(a).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("x1",function(l){return l.x1}).attr("x2",function(l){return l.x2}).attr("y1",function(l){return l.y1}).attr("y2",function(l){return l.y2}),o.exit().remove()}}]),n}();Tb.\u0275fac=function(r){return new(r||Tb)(t.LFG(Yu))},Tb.\u0275prov=t.Yz7({token:Tb,factory:Tb.\u0275fac});var Mb=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof ea?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("ellipse").attr("class","ellipse_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("cx",function(l){return l.cx}).attr("cy",function(l){return l.cy}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();Mb.\u0275fac=function(r){return new(r||Mb)(t.LFG(Yu))},Mb.\u0275prov=t.Yz7({token:Mb,factory:Mb.\u0275fac});var Sb=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.textDrawingWidget=r,this.imageDrawingWidget=e,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=l,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return(0,U.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","drawing_body"),s=o.merge(a).attr("transform",function(l){return"translate(".concat(l.x,",").concat(l.y,") rotate(").concat(l.rotation,")")});this.drawingWidgets.forEach(function(l){l.draw(s)}),s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof af||l.element instanceof ea}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(l){return l.element?l.element.width/2-13:0}).attr("y",function(l){return l.element?l.element.height/2-13:0}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof af||l.element instanceof ea}).append("text").attr("class","layer_label").text(function(l){return l.z}).attr("x",function(l){return l.z>=100?l.element?l.element.width/2-13:0:l.z>=10?l.element?l.element.width/2-9:0:l.element.width/2-5}).attr("y",function(l){return l.element?l.element.height/2+5:0}).attr("style",function(){var l=[];return l.push('font-family: "Noto Sans"'),l.push("font-size: 11pt"),l.push("font-weight: bold"),l.join("; ")}).attr("fill","#ffffff"),s.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),s.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1",function(l){return l.element.height}).attr("y2",function(l){return l.element.height}).attr("draggable","true").attr("cursor","ns-resize"),s.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element.width}).attr("x2",function(l){return l.element.width}).attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x1}).attr("cy",function(l){return l.element.y1}).attr("r",10).attr("cursor","move"),s.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x2}).attr("cy",function(l){return l.element.y2}).attr("r",10).attr("cursor","move"),s.classed("drawing_selected",function(l){return i.selectionManager.isSelected(l)})}}]),n}();Sb.\u0275fac=function(r){return new(r||Sb)(t.LFG(rv),t.LFG(wb),t.LFG(kb),t.LFG(Tb),t.LFG(Mb),t.LFG(Ll),t.LFG(fl))},Sb.\u0275prov=t.Yz7({token:Sb,factory:Sb.\u0275fac});var Vp=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new C5,this.draggingEnabled=!1,this.resizingFinished=new t.vpe,this.onContextMenu=new t.vpe,this.svgToDrawingConverter=new Wp}return(0,U.Z)(n,[{key:"redrawDrawing",value:function(e,i){this.drawingWidget.draw(this.selectDrawing(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing").data(function(De){return De.drawings.forEach(function(it){try{it.element=i.svgToDrawingConverter.convert(it.svg)}catch(ft){}}),De.drawings},function(De){return De.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(De){return De.id}).on("contextmenu",function(De){Ln.preventDefault(),i.onContextMenu.emit(new m4e(Ln,De))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,d,h,z,q,re,ae,g=!1,y=gg().on("start",function(De){document.body.style.cursor="ns-resize",d=De.y}).on("drag",function(De){var it=Ln;g?(u=l-(it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(g=!1,l=d,De.element.height=Math.abs(De.element.height+it.dy)):(De.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))):De.element.height+it.dy<0?(g=!0,l=d,De.element.height=Math.abs(De.element.height+it.dy)):(De.element.height+=it.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+it.dy/2<0?1:De.element.cy+=it.dy/2,De.element.ry=De.element.ry+it.dy/2<0?1:De.element.ry+=it.dy/2)),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),L=gg().on("start",function(De){l=Ln.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+De.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(De){var it=Ln;g?De.element.height+it.dy<0?(g=!1,l=h,De.element.height=Math.abs(De.element.height+it.dy)):(De.element.height+=it.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+it.dy/2<0?1:De.element.cy+=it.dy/2,De.element.ry=De.element.ry+it.dy/2<0?1:De.element.ry+=it.dy/2)):(u=l-(it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(l=h,g=!0,De.element.height=Math.abs(De.element.height+it.dy)):(De.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Se=!1,Ce=gg().on("start",function(De){z=Ln.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),ae=z+De.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(De){var it=Ln;Se?De.element.width+it.dx<0?(z=ae,Se=!1,De.element.width=Math.abs(De.element.width+it.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+it.dx/2<0?1:De.element.cx+=it.dx/2,De.element.rx=De.element.rx+it.dx/2<0?1:De.element.rx+=it.dx/2),De.element.width=De.element.width+it.dx<0?1:De.element.width+=it.dx):(q=z-(it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=ae,Se=!0,De.element.width=Math.abs(De.element.width+it.dx)):(De.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Ee=gg().on("start",function(De){document.body.style.cursor="ew-resize",re=De.x}).on("drag",function(De){var it=Ln;Se?(q=z-(it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=re,Se=!1,De.element.width=Math.abs(De.element.width+it.dx)):(De.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))):De.element.width+it.dx<0?(z=re,Se=!0,De.element.width=Math.abs(De.element.width+it.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+it.dx/2<0?1:De.element.cx+=it.dx/2,De.element.rx=De.element.rx+it.dx/2<0?1:De.element.rx+=it.dx/2),De.element.width=De.element.width+it.dx<0?1:De.element.width+=it.dx),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Ke=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var it=Ln;De.element.width+=it.dx,De.element.height+=it.dy,De.element.x2+=it.dx,De.element.y2+=it.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),st=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var it=Ln;De.element.width+=it.dx,De.element.height+=it.dy,De.element.x1+=it.dx,De.element.y1+=it.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))});s.select("line.bottom").call(y),s.select("line.top").call(L),s.select("line.right").call(Ce),s.select("line.left").call(Ee),s.select("circle.right").call(Ke),s.select("circle.left").call(st)}},{key:"createResizingEvent",value:function(e){var i=new w4e;return i.x=e.x,i.y=e.y,i.width=e.element.width,i.height=e.element.height,i.datum=e,i}},{key:"selectDrawing",value:function(e,i){return e.selectAll('g.drawing[drawing_id="'.concat(i.id,'"]'))}}]),n}();Vp.\u0275fac=function(r){return new(r||Vp)(t.LFG(Sb),t.LFG(Wp),t.LFG(Ys),t.LFG(rf))},Vp.\u0275prov=t.Yz7({token:Vp,factory:Vp.\u0275fac});var Eb=function(){function n(r,e,i){(0,B.Z)(this,n),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,U.Z)(n,[{key:"draw",value:function(e,i){var o=e.selectAll("g.layer").data(i,function(h){return h.index.toString()}),a=o.enter().append("g").attr("class","layer");a.append("g").attr("class","links"),a.append("g").attr("class","nodes"),a.append("g").attr("class","drawings");var s=o.merge(a);s.attr("data-index",function(h){return h.index});var l=s.select("g.links"),u=s.select("g.nodes"),d=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(d)}}]),n}();Eb.\u0275fac=function(r){return new(r||Eb)(t.LFG(Um),t.LFG(zp),t.LFG(Vp))},Eb.\u0275prov=t.Yz7({token:Eb,factory:Eb.\u0275fac});var iv=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,U.Z)(n,[{key:"getNodesWidget",value:function(){return this.nodesWidget}},{key:"getDrawingLineTool",value:function(){return this.drawingLineTool}},{key:"getSelectionTool",value:function(){return this.selectionTool}},{key:"connect",value:function(e,i){this.drawingLineTool.connect(e,i)}},{key:"draw",value:function(e,i){e.attr("width",i.size.width).attr("height",i.size.height);var o=e.selectAll("g.canvas").data([i]),a=o.enter().append("g").attr("class","canvas");o.merge(a).attr("transform",function(s){var l=s.getZeroZeroTransformationPoint().x+s.transformation.x,u=s.getZeroZeroTransformationPoint().y+s.transformation.y,d=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")}),this.layersWidget.draw(o,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,i),this.selectionTool.draw(e,i),this.movingTool.draw(e,i)}},{key:"disconnect",value:function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()}}]),n}();iv.\u0275fac=function(r){return new(r||iv)(t.LFG(zp),t.LFG($g),t.LFG(jp),t.LFG(Qg),t.LFG(Eb),t.LFG(Fm))},iv.\u0275prov=t.Yz7({token:iv,factory:iv.\u0275fac});var Yp=function(){function n(){(0,B.Z)(this,n),this.isSelectionToolActivated=new On.xQ,this.isMovingToolActivated=new On.xQ,this.isTextEditingToolActivated=new On.xQ,this.isTextAddingToolActivated=new On.xQ,this.isDrawLinkToolActivated=new On.xQ}return(0,U.Z)(n,[{key:"selectionToolActivation",value:function(e){this.isSelectionToolActivated.next(e)}},{key:"movingToolActivation",value:function(e){this.isMovingToolActivated.next(e)}},{key:"textEditingToolActivation",value:function(e){this.isTextEditingToolActivated.next(e)}},{key:"textAddingToolActivation",value:function(e){this.isTextAddingToolActivated.next(e)}},{key:"drawLinkToolActivation",value:function(e){this.isDrawLinkToolActivated.next(e)}}]),n}();Yp.\u0275fac=function(r){return new(r||Yp)},Yp.\u0275prov=t.Yz7({token:Yp,factory:Yp.\u0275fac});var sf=function(){function n(r){(0,B.Z)(this,n),this.context=r,this.scaleChangeEmitter=new t.vpe,this.currentScale=1}return(0,U.Z)(n,[{key:"getScale",value:function(){return this.currentScale}},{key:"setScale",value:function(e){this.currentScale=e,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}},{key:"resetToDefault",value:function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}}]),n}();sf.\u0275fac=function(r){return new(r||sf)(t.LFG(Ys))},sf.\u0275prov=t.Yz7({token:sf,factory:sf.\u0275fac});var Zl=(0,U.Z)(function n(){(0,B.Z)(this,n),this.dragged=new t.vpe,this.resized=new t.vpe,this.selected=new t.vpe,this.pointToAddSelected=new t.vpe,this.saved=new t.vpe,this.textAdded=new t.vpe,this.textEdited=new t.vpe,this.textSaved=new t.vpe});Zl.\u0275fac=function(r){return new(r||Zl)},Zl.\u0275prov=t.Yz7({token:Zl,factory:Zl.\u0275fac});var X2=function(){function n(r,e){(0,B.Z)(this,n),this.drawingsEventSource=r,this.context=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(i){""===i?e.deactivate():e.activate()})}},{key:"activate",value:function(){var e=this;this.deactivate(),this.mapListener=function(a){var s=(a.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,l=(a.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new d4e(s,l)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivate",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"ngOnDestroy",value:function(){this.drawingSelected.unsubscribe()}}]),n}();X2.\u0275fac=function(r){return new(r||X2)(t.Y36(Zl),t.Y36(Ys))},X2.\u0275cmp=t.Xpm({type:X2,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var $2=function(){function n(r,e){(0,B.Z)(this,n),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new c4e(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),n}();$2.\u0275fac=function(r){return new(r||$2)(t.Y36(Vp),t.Y36(Zl))},$2.\u0275cmp=t.Xpm({type:$2,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var pl=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"createLink",value:function(e,i,o,a,s,l,u,d,h){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links"),{nodes:[{node_id:i.node_id,port_number:o.port_number,adapter_number:o.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:o.short_name,x:l,y:u}},{node_id:a.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:s.short_name,x:d,y:h}}]})}},{key:"getLink",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/links/").concat(o))}},{key:"deleteLink",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id))}},{key:"updateLink",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"updateLinkStyle",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"getAvailableFilters",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/available_filters"))}},{key:"updateNodes",value:function(e,i,o){var a=o.map(function(s){return{node_id:s.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:s.label.rotation,style:s.label.style,text:s.label.text,x:s.label.x,y:s.label.y}}});return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),{nodes:a})}},{key:"startCaptureOnLink",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/start"),o)}},{key:"stopCaptureOnLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stop"),{})}},{key:"resetLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/reset"),{})}},{key:"streamPcap",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stream"))}}]),n}();pl.\u0275fac=function(r){return new(r||pl)(t.LFG(ho.zw))},pl.\u0275prov=t.Yz7({token:pl,factory:pl.\u0275fac});var Hm=m(6215),za=m(5366),D4e=["temporaryTextElement"],eA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.drawingsEventSource=r,this.toolsService=e,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=l,this.nodesDataSource=u,this.selectionManager=d,this.fontFixer=h,this.ngZone=g,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(i){i?e.activateTextAdding():e.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))}},{key:"activateTextAdding",value:function(){var e=this;this.deactivateTextAdding(),this.mapListener=function(a){e.leftPosition=a.pageX.toString()+"px",e.topPosition=a.pageY.toString()+"px",e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.temporaryTextElement.nativeElement.focus(),document.documentElement.style.cursor="default";e.textListener=function(){e.drawingsEventSource.textAdded.emit(new p4e(e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),a.pageX,a.pageY)),e.deactivateTextAdding(),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener)},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivateTextAdding",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"activateTextEditingForNodeLabels",value:function(){var e=this,i=Ci(this.svg);i.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(o,a,s){e.selectionManager.setSelected([]),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedLink=o,Ci(s[a]).attr("visibility","hidden"),Ci(s[a]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(o.nodeId),e.editedLink=o;var l=(o.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=(o.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=l.toString()+"px",e.topPosition=u.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.label.text;var g,d=[],h=(0,An.Z)(o.label.style.split(";"));try{for(h.s();!(g=h.n()).done;){var y=g.value;d.push({property:y.split(": ")[0],value:y.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var L={font_family:d.find(function(q){return"font-family"===q.property})?d.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:d.find(function(q){return"font-size"===q.property})?Number(d.find(function(q){return"font-size"===q.property}).value):10,font_weight:d.find(function(q){return"font-weight"===q.property})?d.find(function(q){return"font-weight"===q.property}).value:"normal"};L=e.fontFixer.fix(L),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",d.find(function(q){return"fill"===q.property})?d.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",L.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(L.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",L.font_weight);e.textListener=function(){var re=e.temporaryTextElement.nativeElement.innerText,ae=e.linksDataSource.get(e.editedLink.linkId);ae.nodes.find(function(Se){return Se.node_id===e.editedNode.node_id}).label.text=re,e.linkService.updateLink(e.controller,ae).subscribe(function(Se){i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")})},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"activateTextEditingForDrawings",value:function(){var e=this,i=Ci(this.svg);i.selectAll("text.text_element").on("dblclick",function(o,a,s){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedElement=o,Ci(s[a]).attr("visibility","hidden"),Ci(s[a]).classed("editingMode",!0),e.editingDrawingId=s[a].parentElement.parentElement.getAttribute("drawing_id");var l=s[a].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(l[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,d=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=d.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",o.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",o.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(o.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",o.font_weight);e.textListener=function(){var y=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new h4e(e.editingDrawingId,y.replace(/\n$/,""),e.editedElement)),i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"ngOnDestroy",value:function(){this.textAddingSubscription.unsubscribe()}},{key:"clearStyle",value:function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")}}]),n}();eA.\u0275fac=function(r){return new(r||eA)(t.Y36(Zl),t.Y36(Yp),t.Y36(Ys),t.Y36(t.Qsj),t.Y36(sf),t.Y36(pl),t.Y36(Hm.F),t.Y36(za.G),t.Y36(Ll),t.Y36(os),t.Y36(t.R0b))},eA.\u0275cmp=t.Xpm({type:eA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(D4e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.temporaryTextElement=i.first))},inputs:{svg:"svg",controller:"controller"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0,1),t._uU(2),t.qZA()),2&r&&(t.Udp("top",e.topPosition)("left",e.leftPosition),t.xp6(2),t.hij(" ",e.innerText,"\n"))},styles:[".temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:Noto Sans;font-size:11pt;font-weight:700;color:#000}"]});var xb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),n}();xb.\u0275fac=function(r){return new(r||xb)},xb.\u0275prov=t.Yz7({token:xb,factory:xb.\u0275fac});var tA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(i){var o=e.graphDataManager.getNodes().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),a=e.graphDataManager.getLinks().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),s=e.graphDataManager.getDrawings().filter(function(y){return e.inRectangleHelper.inRectangle(i,y.x,y.y)}),l=e.graphDataManager.getNodes().filter(function(y){if(void 0===y.label)return!1;var L=y.x+y.label.x,z=y.y+y.label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.label}),u=e.graphDataManager.getLinks().filter(function(y){if(void 0===y.source||2!=y.nodes.length||void 0===y.nodes[0].label)return!1;var L=y.source.x+y.nodes[0].label.x,z=y.source.y+y.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.nodes[0]}),d=e.graphDataManager.getLinks().filter(function(y){if(void 0===y.target||2!=y.nodes.length||void 0===y.nodes[1].label)return!1;var L=y.target.x+y.nodes[1].label.x,z=y.target.y+y.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,L,z)}).map(function(y){return y.nodes[1]}),h=[].concat((0,cn.Z)(u),(0,cn.Z)(d)),g=[].concat((0,cn.Z)(o),(0,cn.Z)(a),(0,cn.Z)(s),(0,cn.Z)(l),(0,cn.Z)(h));e.selectionManager.setSelected(g)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),n}();tA.\u0275fac=function(r){return new(r||tA)(t.Y36(Jg),t.Y36(Up),t.Y36(xb),t.Y36(Ll))},tA.\u0275cmp=t.Xpm({type:tA,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){}});var nA=function(){function n(r,e){(0,B.Z)(this,n),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelected=this.selectionManager.selected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()}}]),n}();nA.\u0275fac=function(r){return new(r||nA)(t.Y36(Ll),t.Y36(Hp))},nA.\u0275cmp=t.Xpm({type:nA,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){}});var hd=(0,U.Z)(function n(){(0,B.Z)(this,n),this.created=new t.vpe,this.edited=new t.vpe,this.interfaceDragged=new t.vpe});hd.\u0275fac=function(r){return new(r||hd)},hd.\u0275prov=t.Yz7({token:hd,factory:hd.\u0275fac});var rA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,B.Z)(this,n),this.nodesWidget=r,this.drawingsWidget=e,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=l,this.drawingsEventSource=u,this.graphDataManager=d,this.linksEventSource=h,this.mapSettingsService=g,this.isMapLocked=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=Ci(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,Gi.T)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe(function(o){var a=e.selectionManager.getSelected();o.datum instanceof fb&&0===a.filter(function(s){return s instanceof fb&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Nm&&0===a.filter(function(s){return s instanceof Nm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Fk&&0===a.filter(function(s){return s instanceof Fk&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Q2&&0===a.filter(function(s){return s instanceof Q2&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,Gi.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof fb}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.nodesWidget.redrawNode(i,q),e.graphDataManager.getLinks().filter(function(ae){return void 0!==ae.target&&ae.target.id===q.id||void 0!==ae.source&&ae.source.id===q.id}).forEach(function(ae){e.linksWidget.redrawLink(i,ae)})}),a.filter(function(q){return q instanceof Nm}).filter(function(q){return!q.locked}).forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.drawingsWidget.redrawDrawing(i,q)}),a.filter(function(q){return q instanceof Fk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getNodes().filter(function(Se){return Se.id===q.nodeId})[0];ae.label.x+=o.dx,ae.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof Q2}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getLinks().filter(function(Se){return Se.nodes[0].id===q.id||Se.nodes[1].id===q.id})[0];ae.nodes[0].id===q.id&&(ae.nodes[0].label.x+=o.dx,ae.nodes[0].label.y+=o.dy),ae.nodes[1].id===q.id&&(ae.nodes[1].label.x+=o.dx,ae.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,ae)}})}}),this.end=(0,Gi.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof fb}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){e.nodesEventSource.dragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Nm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Fk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Jk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Q2}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Jk(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),n}();rA.\u0275fac=function(r){return new(r||rA)(t.Y36(zp),t.Y36(Vp),t.Y36(Um),t.Y36(Gp),t.Y36(of),t.Y36(Ll),t.Y36(pd),t.Y36(Zl),t.Y36(Up),t.Y36(hd),t.Y36(fl))},rA.\u0275cmp=t.Xpm({type:rA,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var iA=function(){function n(r,e){(0,B.Z)(this,n),this.linksWidget=r,this.linksEventSource=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=Ci(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),n}();iA.\u0275fac=function(r){return new(r||iA)(t.Y36(Um),t.Y36(hd))},iA.\u0275cmp=t.Xpm({type:iA,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var jm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.movingModeState=new t.vpe});jm.\u0275fac=function(r){return new(r||jm)},jm.\u0275prov=t.Yz7({token:jm,factory:jm.\u0275fac});var oA=function(){function n(r,e,i){(0,B.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){e.activated=i,i||e.removelisteners()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"onMouseDown",value:function(e){var i=this;this.activated&&(this.mousemoveListener=function(o){Ci(i.element.nativeElement).selectAll("g.canvas").data([i.context]).attr("transform",function(){i.context.transformation.x=i.context.transformation.x+o.movementX,i.context.transformation.y=i.context.transformation.y+o.movementY;var l=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,u=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,d=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.mouseupListener=function(o){i.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))}},{key:"removelisteners",value:function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)}}]),n}();oA.\u0275fac=function(r){return new(r||oA)(t.Y36(t.SBq),t.Y36(jm),t.Y36(Ys))},oA.\u0275dir=t.lG2({type:oA,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&t.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var aA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){i?e.addListener():e.removeListener()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"addListener",value:function(){var e=this;this.wheelListener=function(i){i.stopPropagation(),i.preventDefault();var o=i.deltaY;o=0===i.deltaMode?o/100:o/3,Ci(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",function(){e.context.transformation.k=e.context.transformation.k-o/10;var l=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,d=e.context.transformation.k;return e.mapsScaleService.setScale(d),"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),n}();aA.\u0275fac=function(r){return new(r||aA)(t.Y36(t.SBq),t.Y36(jm),t.Y36(Ys),t.Y36(sf))},aA.\u0275dir=t.lG2({type:aA,selectors:[["","zoomingCanvas",""]]});var A4e=["svg"],O4e=["textEditor"],Xk=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L){(0,B.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=l,this.selectionToolWidget=u,this.movingToolWidget=d,this.graphLayout=h,this.toolsService=g,this.mapScaleService=y,this.mapSettingsService=L,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=s.nativeElement}return(0,U.Z)(n,[{key:"showInterfaceLabels",set:function(e){e&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){this.mapSettings.isReadOnly=e}},{key:"resize",value:function(e){if(e)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var i=window.innerHeight-16;this.height>i?this.svg.attr("height",this.height):this.svg.attr("height",i)}}},{key:"ngOnChanges",value:function(e){(e.width&&!e.width.isFirstChange()||e.height&&!e.height.isFirstChange()||e.drawings&&!e.drawings.isFirstChange()||e.nodes&&!e.nodes.isFirstChange()||e.links&&!e.links.isFirstChange()||e.symbols&&!e.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(e.symbols&&this.onSymbolsChange(e.symbols),this.changeLayout())}},{key:"ngOnInit",value:function(){var e=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.mapChangeDetectorRef.hasBeenDrawn&&e.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(i){return e.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(i){e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(i){e.selectionToolWidget.setEnabled(i),e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(i){e.drawLinkTool=i})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(i){return e.resize(i)})}},{key:"ngOnDestroy",value:function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"applyMapSettingsChanges",value:function(){this.redraw()}},{key:"createGraph",value:function(e){var i=Ci(e);this.svg=i.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"changeLayout",value:function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()}},{key:"onSymbolsChange",value:function(e){this.graphDataManager.setSymbols(this.symbols)}},{key:"redraw",value:function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"updateGrid",value:function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)}},{key:"onResize",value:function(e){this.changeLayout()}}]),n}();Xk.\u0275fac=function(r){return new(r||Xk)(t.Y36(Up),t.Y36(Ys),t.Y36(Hp),t.Y36(qg),t.Y36(rf),t.Y36(t.SBq),t.Y36(of),t.Y36(jp),t.Y36(Qg),t.Y36(iv),t.Y36(Yp),t.Y36(sf),t.Y36(fl))},Xk.\u0275cmp=t.Xpm({type:Xk,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(A4e,5),t.Gf(O4e,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.svgRef=i.first),t.iGM(i=t.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",controller:"controller",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[t.TTD],decls:20,vars:19,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"controller","svg"],["textEditor",""]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"filter",2),t._UZ(3,"feColorMatrix",3),t.qZA(),t.TgZ(4,"defs")(5,"pattern",4),t._UZ(6,"path",5),t.qZA()(),t.TgZ(7,"defs")(8,"pattern",6),t._UZ(9,"path",7),t.qZA()(),t._UZ(10,"rect",8)(11,"rect",9),t.qZA(),t.kcU(),t._UZ(12,"app-drawing-adding",10)(13,"app-drawing-resizing")(14,"app-selection-control")(15,"app-selection-select")(16,"app-text-editor",11,12)(18,"app-draggable-selection",10)(19,"app-link-editing",10)),2&r){var i=t.MAs(1);t.xp6(5),t.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),t.xp6(1),t.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(2),t.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),t.xp6(1),t.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(3),t.Q6J("svg",i),t.xp6(4),t.Q6J("controller",e.controller)("svg",i),t.xp6(2),t.Q6J("svg",i),t.xp6(1),t.Q6J("svg",i)}},dependencies:[X2,$2,eA,tA,nA,rA,iA,oA,aA],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var I4e=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function P4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",2),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"No"),t.qZA(),t.TgZ(3,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onYesClick())}),t._uU(4," Yes "),t.qZA()()}}function R4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",4),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"Ok"),t.qZA()()}}var $k=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project ".concat(this.existingProject.name," is open. You can not overwrite it."),this.isOpen=!0):this.confirmationMessage="Project ".concat(this.existingProject.name," already exist, overwrite it?")}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();$k.\u0275fac=function(r){return new(r||$k)(t.Y36(cr),t.Y36(ko))},$k.\u0275cmp=t.Xpm({type:$k,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.YNc(2,P4e,5,0,"div",0),t.YNc(3,R4e,3,0,"div",0)),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage),t.xp6(1),t.Q6J("ngIf",!e.isOpen),t.xp6(1),t.Q6J("ngIf",e.isOpen))},dependencies:[le.O5,fn,fr]});var Ku=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function L4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function Z4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}function N4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project with this name exists"),t.qZA())}Ku.\u0275fac=function(r){return new(r||Ku)},Ku.\u0275prov=t.Yz7({token:Ku,factory:Ku.\u0275fac});var B4e=function(r){return{"is-invalid":r}},eT=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,this.projectNameValidator.get],[I4e(this.controller,this.projectService)])})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.uuid=ns(),this.projectService.add(this.controller,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added")),e.router.navigate(["/controller",e.controller.id,"project",i.project_id])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open($k,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.addProject()})})})}}]),n}();function F4e(n,r){}eT.\u0275fac=function(r){return new(r||eT)(t.Y36(cr),t.Y36(ur),t.Y36(Gr),t.Y36(Ws.Y),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku))},eT.\u0275cmp=t.Xpm({type:eT,selectors:[["app-add-blank-project-dialog"]],features:[t._Bn([Ku])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new project"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,L4e,2,0,"mat-error",4),t.YNc(6,Z4e,2,0,"mat-error",4),t.YNc(7,N4e,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add project "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,B4e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var U4e={bottomSheetState:(0,Zt.X$)("state",[(0,Zt.SB)("void, hidden",(0,Zt.oB)({transform:"translateY(100%)"})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"translateY(0%)"})),(0,Zt.eR)("visible => void, visible => hidden",(0,Zt.ru)([(0,Zt.jt)("".concat(Gt.mZ.COMPLEX," ").concat(Gt.yN.ACCELERATION_CURVE)),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})])),(0,Zt.eR)("void => visible",(0,Zt.ru)([(0,Zt.jt)("".concat(Gt.mZ.EXITING," ").concat(Gt.yN.DECELERATION_CURVE)),(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})]))])},sA=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,y){var L;return(0,B.Z)(this,e),(L=r.call(this,i,o,a,s,l,u,d,y))._changeDetectorRef=g,L._animationState="void",L._animationStateChanged=new t.vpe,L._breakpointSubscription=h.observe([nd.u3.Medium,nd.u3.Large,nd.u3.XLarge]).subscribe(function(){L._toggleClass("mat-bottom-sheet-container-medium",h.isMatched(nd.u3.Medium)),L._toggleClass("mat-bottom-sheet-container-large",h.isMatched(nd.u3.Large)),L._toggleClass("mat-bottom-sheet-container-xlarge",h.isMatched(nd.u3.XLarge))}),L}return(0,U.Z)(e,[{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_captureInitialFocus",value:function(){}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}}]),e}(ab);sA.\u0275fac=function(r){return new(r||sA)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(le.K0,8),t.Y36(qD),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(nd.Yg),t.Y36(t.sBO),t.Y36(Yr.tE))},sA.\u0275cmp=t.Xpm({type:sA,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,e){1&r&&t.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.uIk("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-label",e._config.ariaLabel),t.d8E("@state",e._animationState))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,F4e,0,0,"ng-template",0)},dependencies:[ao.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[U4e.bottomSheetState]}});var Db=(0,U.Z)(function n(){(0,B.Z)(this,n)});Db.\u0275fac=function(r){return new(r||Db)},Db.\u0275mod=t.oAB({type:Db}),Db.\u0275inj=t.cJS({imports:[sb,Gt.BQ,ao.eL,Gt.BQ]});var H4e=new t.OlP("MatBottomSheetData"),j4e=(0,U.Z)(function n(){(0,B.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),k5=function(){function n(r,e,i){var o=this;(0,B.Z)(this,n),this._ref=r,this._afterOpened=new On.xQ,this.containerInstance=i,this.disableClose=e.disableClose,i._animationStateChanged.pipe((0,$r.h)(function(a){return"done"===a.phaseName&&"visible"===a.toState}),(0,Ri.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,$r.h)(function(a){return"done"===a.phaseName&&"hidden"===a.toState}),(0,Ri.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._ref.close(o._result)}),r.overlayRef.detachments().subscribe(function(){o._ref.close(o._result)}),(0,Gi.T)(this.backdropClick(),this.keydownEvents().pipe((0,$r.h)(function(a){return a.keyCode===Tr.hY}))).subscribe(function(a){!o.disableClose&&("keydown"!==a.type||!(0,Tr.Vb)(a))&&(a.preventDefault(),o.dismiss())})}return(0,U.Z)(n,[{key:"instance",get:function(){return this._ref.componentInstance}},{key:"dismiss",value:function(e){var i=this;!this.containerInstance||(this.containerInstance._animationStateChanged.pipe((0,$r.h)(function(o){return"start"===o.phaseName}),(0,Ri.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._ref.close(i._result)},o.totalTime+100),i._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}},{key:"afterDismissed",value:function(){return this._ref.closed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}}]),n}(),G4e=new t.OlP("mat-bottom-sheet-default-options"),lf=function(){function n(r,e,i,o){(0,B.Z)(this,n),this._overlay=r,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=e.get(vm)}return(0,U.Z)(n,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,i){var s,o=this,a=Object.assign(Object.assign({},this._defaultOptions||new j4e),i);return this._dialog.open(e,Object.assign(Object.assign({},a),{disableClose:!0,maxWidth:"100%",container:sA,scrollStrategy:a.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:function(){return{bottomSheetRef:s}},providers:function(u,d,h){return s=new k5(u,a,h),[{provide:k5,useValue:s},{provide:H4e,useValue:a.data}]}})),s.afterDismissed().subscribe(function(){o._openedBottomSheetRef===s&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){var l;return null===(l=s.containerInstance)||void 0===l?void 0:l.enter()}),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}]),n}();lf.\u0275fac=function(r){return new(r||lf)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(lf,12),t.LFG(G4e,8))},lf.\u0275prov=t.Yz7({token:lf,factory:lf.\u0275fac,providedIn:Db});var z4e=function(r){return{lightTheme:r}},md=function(){function n(r,e){(0,B.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();md.\u0275fac=function(r){return new(r||md)(t.Y36(k5),t.Y36(wc.f))},md.\u0275cmp=t.Xpm({type:md,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,z4e,e.isLightThemeEnabled)),t.xp6(2),t.Oqu(e.message))},dependencies:[le.mk,fn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var uf=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),n}();uf.\u0275fac=function(r){return new(r||uf)},uf.\u0275prov=t.Yz7({token:uf,factory:uf.\u0275fac});var Fi=m(3251);function $z(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var ov={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var Mse=/[&<>"']/,V4e=new RegExp(Mse.source,"g"),Sse=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Y4e=new RegExp(Sse.source,"g"),K4e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ese=function(r){return K4e[r]};function Nl(n,r){if(r){if(Mse.test(n))return n.replace(V4e,Ese)}else if(Sse.test(n))return n.replace(Y4e,Ese);return n}var q4e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xse(n){return n.replace(q4e,function(r,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var J4e=/(^|[^\[])\^/g;function Uo(n,r){n="string"==typeof n?n:n.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(J4e,"$1"),n=n.replace(o,a),e},getRegex:function(){return new RegExp(n,r)}};return e}var Q4e=/[^\w:]/g,X4e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Dse(n,r,e){if(n){var i;try{i=decodeURIComponent(xse(e)).replace(Q4e,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!X4e.test(e)&&(e=function n8e(n,r){T5[" "+n]||($4e.test(n)?T5[" "+n]=n+"/":T5[" "+n]=S5(n,"/",!0));var e=-1===(n=T5[" "+n]).indexOf(":");return"//"===r.substring(0,2)?e?r:n.replace(e8e,"$1")+r:"/"===r.charAt(0)?e?r:n.replace(t8e,"$1")+r:n+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var T5={},$4e=/^[^:]+:\/*[^/]*$/,e8e=/^([^:]+:)[\s\S]*$/,t8e=/^([^:]+:\/*[^/]*)[\s\S]*$/;var M5={exec:function(){}};function Ase(n,r){var i=n.replace(/\|/g,function(a,s,l){for(var u=!1,d=s;--d>=0&&"\\"===l[d];)u=!u;return u?"|":" |"}).split(/ \|/),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function S5(n,r,e){var i=n.length;if(0===i)return"";for(var o=0;o<i;){var a=n.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return n.slice(0,i-o)}function Ose(n,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=n),r>>=1,n+=n;return e+n}function Ise(n,r,e,i){var o=r.href,a=r.title?Nl(r.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;var l={type:"link",raw:e,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:a,text:Nl(s)}}var E5=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"space",value:function(e){var i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}},{key:"code",value:function(e){var i=this.rules.block.code.exec(e);if(i){var o=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:S5(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function o8e(n,r){var e=n.match(/^(\s+)(?:```)/);if(null===e)return r;var i=e[1];return r.split("\n").map(function(o){var a=o.match(/^\s+/);return null===a?o:(0,Yn.Z)(a,1)[0].length>=i.length?o.slice(i.length):o}).join("\n")}(o,i[3]||"");return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:a}}}},{key:"heading",value:function(e){var i=this.rules.block.heading.exec(e);if(i){var o=i[2].trim();if(/#$/.test(o)){var a=S5(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}},{key:"hr",value:function(e){var i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}},{key:"blockquote",value:function(e){var i=this.rules.block.blockquote.exec(e);if(i){var o=i[0].replace(/^ *>[ \t]?/gm,""),a=this.lexer.state.top;this.lexer.state.top=!0;var s=this.lexer.blockTokens(o);return this.lexer.state.top=a,{type:"blockquote",raw:i[0],tokens:s,text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,d,h,g,y,L,z,q,re=i[1].trim(),ae=re.length>1,Se={type:"list",raw:"",ordered:ae,start:ae?+re.slice(0,-1):"",loose:!1,items:[]};re=ae?"\\d{1,9}\\".concat(re.slice(-1)):"\\".concat(re),this.options.pedantic&&(re=ae?re:"[*+-]");for(var Ce=new RegExp("^( {0,3}".concat(re,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Ce.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),g=i[2].split("\n",1)[0].replace(/^\t+/,function($e){return" ".repeat(3*$e.length)}),y=e.split("\n",1)[0],this.options.pedantic?(l=2,z=g.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,z=g.slice(l),l+=i[1].length),d=!1,!g&&/^ *$/.test(y)&&(o+=y+"\n",e=e.substring(y.length+1),q=!0),!q)for(var Ee=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),Ke=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),st=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:```|~~~)")),De=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));e&&(y=L=e.split("\n",1)[0],this.options.pedantic&&(y=y.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(st.test(y)||De.test(y)||Ee.test(y)||Ke.test(e)));){if(y.search(/[^ ]/)>=l||!y.trim())z+="\n"+y.slice(l);else{if(d||g.search(/[^ ]/)>=4||st.test(g)||De.test(g)||Ke.test(g))break;z+="\n"+y}!d&&!y.trim()&&(d=!0),o+=L+"\n",e=e.substring(L.length+1),g=y.slice(l)}Se.loose||(h?Se.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(z))&&(s="[ ] "!==a[0],z=z.replace(/^\[[ xX]\] +/,""))),Se.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:z}),Se.raw+=o}Se.items[Se.items.length-1].raw=o.trimRight(),Se.items[Se.items.length-1].text=z.trimRight(),Se.raw=Se.raw.trimRight();var it=Se.items.length;for(u=0;u<it;u++)if(this.lexer.state.top=!1,Se.items[u].tokens=this.lexer.blockTokens(Se.items[u].text,[]),!Se.loose){var ft=Se.items[u].tokens.filter(function($e){return"space"===$e.type}),bt=ft.length>0&&ft.some(function($e){return/\n.*\n/.test($e.raw)});Se.loose=bt}if(Se.loose)for(u=0;u<it;u++)Se.items[u].loose=!0;return Se}}},{key:"html",value:function(e){var i=this.rules.block.html.exec(e);if(i){var o={type:"html",raw:i[0],pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]};if(this.options.sanitize){var a=this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]);o.type="paragraph",o.text=a,o.tokens=this.lexer.inline(a)}return o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i){var o=i[1].toLowerCase().replace(/\s+/g," "),a=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:a,title:s}}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:Ase(i[1]).map(function(h){return{text:h}}),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(o.header.length===o.align.length){o.raw=i[0];var s,l,u,d,a=o.align.length;for(s=0;s<a;s++)/^ *-+: *$/.test(o.align[s])?o.align[s]="right":/^ *:-+: *$/.test(o.align[s])?o.align[s]="center":/^ *:-+ *$/.test(o.align[s])?o.align[s]="left":o.align[s]=null;for(a=o.rows.length,s=0;s<a;s++)o.rows[s]=Ase(o.rows[s],o.header.length).map(function(h){return{text:h}});for(a=o.header.length,l=0;l<a;l++)o.header[l].tokens=this.lexer.inline(o.header[l].text);for(a=o.rows.length,l=0;l<a;l++)for(d=o.rows[l],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i)return{type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o="\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Nl(i[1])}}},{key:"tag",value:function(e){var i=this.rules.inline.tag.exec(e);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]):i[0]}}},{key:"link",value:function(e){var i=this.rules.inline.link.exec(e);if(i){var o=i[2].trim();if(!this.options.pedantic&&/^</.test(o)){if(!/>$/.test(o))return;var a=S5(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function r8e(n,r){if(-1===n.indexOf(r[1]))return-1;for(var e=n.length,i=0,o=0;o<e;o++)if("\\"===n[o])o++;else if(n[o]===r[0])i++;else if(n[o]===r[1]&&--i<0)return o;return-1}(i[2],"()");if(s>-1){var u=(0===i[0].indexOf("!")?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,u).trim(),i[3]=""}}var d=i[2],h="";if(this.options.pedantic){var g=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(d);g&&(d=g[1],h=g[3])}else h=i[3]?i[3].slice(1,-1):"";return d=d.trim(),/^</.test(d)&&(d=this.options.pedantic&&!/>$/.test(o)?d.slice(1):d.slice(1,-1)),Ise(i,{href:d&&d.replace(this.rules.inline._escapes,"$1"),title:h&&h.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}},{key:"reflink",value:function(e,i){var o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){var a=(o[2]||o[1]).replace(/\s+/g," ");if(!(a=i[a.toLowerCase()])){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return Ise(o,a,o[0],this.lexer)}}},{key:"emStrong",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(e);if(a&&(!a[3]||!o.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,d,l=a[0].length-1,h=l,g=0,y="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,i=i.slice(-1*e.length+l);null!=(a=y.exec(i));)if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(d=u.length,a[3]||a[4]){h+=d;continue}if((a[5]||a[6])&&l%3&&!((l+d)%3)){g+=d;continue}if(!((h-=d)>0)){d=Math.min(d,d+h+g);var L=e.slice(0,l+a.index+(a[0].length-u.length)+d);if(Math.min(l,d)%2){var z=L.slice(1,-1);return{type:"em",raw:L,text:z,tokens:this.lexer.inlineTokens(z)}}var q=L.slice(2,-2);return{type:"strong",raw:L,text:q,tokens:this.lexer.inlineTokens(q)}}}}}}},{key:"codespan",value:function(e){var i=this.rules.inline.code.exec(e);if(i){var o=i[2].replace(/\n/g," "),a=/[^ ]/.test(o),s=/^ /.test(o)&&/ $/.test(o);return a&&s&&(o=o.substring(1,o.length-1)),o=Nl(o,!0),{type:"codespan",raw:i[0],text:o}}}},{key:"br",value:function(e){var i=this.rules.inline.br.exec(e);if(i)return{type:"br",raw:i[0]}}},{key:"del",value:function(e){var i=this.rules.inline.del.exec(e);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}},{key:"autolink",value:function(e,i){var a,s,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?s="mailto:"+(a=Nl(this.options.mangle?i(o[1]):o[1])):s=a=Nl(o[1]),{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(e,i){var o;if(o=this.rules.inline.url.exec(e)){var a,s;if("@"===o[2])s="mailto:"+(a=Nl(this.options.mangle?i(o[0]):o[0]));else{var l;do{l=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0]}while(l!==o[0]);a=Nl(o[0]),s="www."===o[1]?"http://"+o[0]:o[0]}return{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(e,i){var a,o=this.rules.inline.text.exec(e);if(o)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Nl(o[0]):o[0]:Nl(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),n}(),Zr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:M5,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Zr.def=Uo(Zr.def).replace("label",Zr._label).replace("title",Zr._title).getRegex(),Zr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Zr.listItemStart=Uo(/^( *)(bull) */).replace("bull",Zr.bullet).getRegex(),Zr.list=Uo(Zr.list).replace(/bull/g,Zr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Zr.def.source+")").getRegex(),Zr._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Zr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Zr.html=Uo(Zr.html,"i").replace("comment",Zr._comment).replace("tag",Zr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zr.paragraph=Uo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.blockquote=Uo(Zr.blockquote).replace("paragraph",Zr.paragraph).getRegex(),Zr.normal=Vr({},Zr),Zr.gfm=Vr(Vr({},Zr.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Zr.gfm.table=Uo(Zr.gfm.table).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.gfm.paragraph=Uo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Zr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.pedantic=Vr(Vr({},Zr.normal),{},{html:Uo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Zr._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M5,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Uo(Zr.normal._paragraph).replace("hr",Zr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Zr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var pr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M5,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M5,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function a8e(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function Pse(n){var e,i,r="",o=n.length;for(e=0;e<o;e++)i=n.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}pr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pr.punctuation=Uo(pr.punctuation).replace(/punctuation/g,pr._punctuation).getRegex(),pr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pr._comment=Uo(Zr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),pr.emStrong.lDelim=Uo(pr.emStrong.lDelim).replace(/punct/g,pr._punctuation).getRegex(),pr.emStrong.rDelimAst=Uo(pr.emStrong.rDelimAst,"g").replace(/punct/g,pr._punctuation).getRegex(),pr.emStrong.rDelimUnd=Uo(pr.emStrong.rDelimUnd,"g").replace(/punct/g,pr._punctuation).getRegex(),pr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pr._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pr.autolink=Uo(pr.autolink).replace("scheme",pr._scheme).replace("email",pr._email).getRegex(),pr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pr.tag=Uo(pr.tag).replace("comment",pr._comment).replace("attribute",pr._attribute).getRegex(),pr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pr.link=Uo(pr.link).replace("label",pr._label).replace("href",pr._href).replace("title",pr._title).getRegex(),pr.reflink=Uo(pr.reflink).replace("label",pr._label).replace("ref",Zr._label).getRegex(),pr.nolink=Uo(pr.nolink).replace("ref",Zr._label).getRegex(),pr.reflinkSearch=Uo(pr.reflinkSearch,"g").replace("reflink",pr.reflink).replace("nolink",pr.nolink).getRegex(),pr.normal=Vr({},pr),pr.pedantic=Vr(Vr({},pr.normal),{},{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Uo(/^!?\[(label)\]\((.*?)\)/).replace("label",pr._label).getRegex(),reflink:Uo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pr._label).getRegex()}),pr.gfm=Vr(Vr({},pr.normal),{},{escape:Uo(pr.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),pr.gfm.url=Uo(pr.gfm.url,"i").replace("email",pr.gfm._extended_email).getRegex(),pr.breaks=Vr(Vr({},pr.gfm),{},{br:Uo(pr.br).replace("{2,}","*").getRegex(),text:Uo(pr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var tT=function(){function n(r){(0,B.Z)(this,n),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||ov,this.options.tokenizer=this.options.tokenizer||new E5,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var e={block:Zr.normal,inline:pr.normal};this.options.pedantic?(e.block=Zr.pedantic,e.inline=pr.pedantic):this.options.gfm&&(e.block=Zr.gfm,this.options.breaks?e.inline=pr.breaks:e.inline=pr.gfm),this.tokenizer.rules=e}return(0,U.Z)(n,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var i;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(g,y,L){return y+" ".repeat(L.length)});for(var a,s,l,u,d=function(){if(i.options.extensions&&i.options.extensions.block&&i.options.extensions.block.some(function(re){return!!(a=re.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return"continue";if(a=i.tokenizer.space(e))return e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a),"continue";if(a=i.tokenizer.code(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?o.push(a):(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue[i.inlineQueue.length-1].src=s.text),"continue";if((a=i.tokenizer.fences(e))||(a=i.tokenizer.heading(e))||(a=i.tokenizer.hr(e))||(a=i.tokenizer.blockquote(e))||(a=i.tokenizer.list(e))||(a=i.tokenizer.html(e)))return e=e.substring(a.raw.length),o.push(a),"continue";if(a=i.tokenizer.def(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?i.tokens.links[a.tag]||(i.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,i.inlineQueue[i.inlineQueue.length-1].src=s.text),"continue";if((a=i.tokenizer.table(e))||(a=i.tokenizer.lheading(e)))return e=e.substring(a.raw.length),o.push(a),"continue";if(l=e,i.options.extensions&&i.options.extensions.startBlock){var z,y=1/0,L=e.slice(1);i.options.extensions.startBlock.forEach(function(re){"number"==typeof(z=re.call({lexer:this},L))&&z>=0&&(y=Math.min(y,z))}),y<1/0&&y>=0&&(l=e.substring(0,y+1))}if(i.state.top&&(a=i.tokenizer.paragraph(l)))return s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length),"continue";if(a=i.tokenizer.text(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),"continue";if(e){var q="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(q),"break";throw new Error(q)}};e;){var h=d();if("continue"!==h&&"break"===h)break}return this.state.top=!0,o}},{key:"inline",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:i}),i}},{key:"inlineTokens",value:function(e){var a,s,l,d,h,g,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var y=Object.keys(this.tokens.links);if(y.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(u));)y.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+Ose("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(d=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,d.index)+"["+Ose("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(d=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,d.index+d[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var L=function(){if(h||(g=""),h=!1,i.options.extensions&&i.options.extensions.inline&&i.options.extensions.inline.some(function(Ee){return!!(a=Ee.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return"continue";if(a=i.tokenizer.escape(e))return e=e.substring(a.raw.length),o.push(a),"continue";if(a=i.tokenizer.tag(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),"continue";if(a=i.tokenizer.link(e))return e=e.substring(a.raw.length),o.push(a),"continue";if(a=i.tokenizer.reflink(e,i.tokens.links))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),"continue";if((a=i.tokenizer.emStrong(e,u,g))||(a=i.tokenizer.codespan(e))||(a=i.tokenizer.br(e))||(a=i.tokenizer.del(e))||(a=i.tokenizer.autolink(e,Pse))||!i.state.inLink&&(a=i.tokenizer.url(e,Pse)))return e=e.substring(a.raw.length),o.push(a),"continue";if(l=e,i.options.extensions&&i.options.extensions.startInline){var Se,re=1/0,ae=e.slice(1);i.options.extensions.startInline.forEach(function(Ee){"number"==typeof(Se=Ee.call({lexer:this},ae))&&Se>=0&&(re=Math.min(re,Se))}),re<1/0&&re>=0&&(l=e.substring(0,re+1))}if(a=i.tokenizer.inlineText(l,a8e))return e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(g=a.raw.slice(-1)),h=!0,(s=o[o.length-1])&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),"continue";if(e){var Ce="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(Ce),"break";throw new Error(Ce)}};e;){var z=L();if("continue"!==z&&"break"===z)break}return o}}],[{key:"rules",get:function(){return{block:Zr,inline:pr}}},{key:"lex",value:function(e,i){return new n(i).lex(e)}},{key:"lexInline",value:function(e,i){return new n(i).inlineTokens(e)}}]),n}(),x5=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"code",value:function(e,i,o){var a=(i||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,a);null!=s&&s!==e&&(o=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+Nl(a)+'">'+(o?e:Nl(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Nl(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,i,o,a){if(this.options.headerIds){var s=this.options.headerPrefix+a.slug(o);return"<h".concat(i,' id="').concat(s,'">').concat(e,"</h").concat(i,">\n")}return"<h".concat(i,">").concat(e,"</h").concat(i,">\n")}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,i,o){var a=i?"ol":"ul";return"<"+a+(i&&1!==o?' start="'+o+'"':"")+">\n"+e+"</"+a+">\n"}},{key:"listitem",value:function(e){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,i){return i&&(i="<tbody>".concat(i,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+i+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,i){var o=i.header?"th":"td";return(i.align?"<".concat(o,' align="').concat(i.align,'">'):"<".concat(o,">"))+e+"</".concat(o,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,i,o){if(null===(e=Dse(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+e+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=Dse(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<img src="'.concat(e,'" alt="').concat(o,'"');return i&&(a+=' title="'.concat(i,'"')),a+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),n}(),eW=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,i,o){return""+o}},{key:"image",value:function(e,i,o){return""+o}},{key:"br",value:function(){return""}}]),n}(),tW=function(){function n(){(0,B.Z)(this,n),this.seen={}}return(0,U.Z)(n,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,i){var o=e,a=0;if(this.seen.hasOwnProperty(o)){a=this.seen[e];do{o=e+"-"+ ++a}while(this.seen.hasOwnProperty(o))}return i||(this.seen[e]=a,this.seen[o]=0),o}},{key:"slug",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.serialize(e);return this.getNextSafeSlug(o,i.dryrun)}}]),n}(),nT=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov,this.options.renderer=this.options.renderer||new x5,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new eW,this.slugger=new tW}return(0,U.Z)(n,[{key:"parse",value:function(e){var a,s,l,u,d,h,g,y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,De,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",it=e.length;for(a=0;a<it;a++)if(z=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[z.type]&&(!1!==(De=this.options.extensions.renderers[z.type].call({parser:this},z))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(z.type)))o+=De||"";else switch(z.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(z.tokens),z.depth,xse(this.parseInline(z.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(z.text,z.lang,z.escaped);continue;case"table":for(y="",g="",u=z.header.length,s=0;s<u;s++)g+=this.renderer.tablecell(this.parseInline(z.header[s].tokens),{header:!0,align:z.align[s]});for(y+=this.renderer.tablerow(g),L="",u=z.rows.length,s=0;s<u;s++){for(g="",d=(h=z.rows[s]).length,l=0;l<d;l++)g+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:z.align[l]});L+=this.renderer.tablerow(g)}o+=this.renderer.table(y,L);continue;case"blockquote":L=this.parse(z.tokens),o+=this.renderer.blockquote(L);continue;case"list":for(q=z.ordered,re=z.start,ae=z.loose,u=z.items.length,L="",s=0;s<u;s++)Ee=(Ce=z.items[s]).checked,Ke=Ce.task,Se="",Ce.task&&(st=this.renderer.checkbox(Ee),ae?Ce.tokens.length>0&&"paragraph"===Ce.tokens[0].type?(Ce.tokens[0].text=st+" "+Ce.tokens[0].text,Ce.tokens[0].tokens&&Ce.tokens[0].tokens.length>0&&"text"===Ce.tokens[0].tokens[0].type&&(Ce.tokens[0].tokens[0].text=st+" "+Ce.tokens[0].tokens[0].text)):Ce.tokens.unshift({type:"text",text:st}):Se+=st),Se+=this.parse(Ce.tokens,ae),L+=this.renderer.listitem(Se,Ke,Ee);o+=this.renderer.list(L,q,re);continue;case"html":o+=this.renderer.html(z.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(z.tokens));continue;case"text":for(L=z.tokens?this.parseInline(z.tokens):z.text;a+1<it&&"text"===e[a+1].type;)L+="\n"+((z=e[++a]).tokens?this.parseInline(z.tokens):z.text);o+=i?this.renderer.paragraph(L):L;continue;default:var ft='Token with "'+z.type+'" type was not found.';if(this.options.silent)return void console.error(ft);throw new Error(ft)}return o}},{key:"parseInline",value:function(e,i){i=i||this.renderer;var a,s,l,o="",u=e.length;for(a=0;a<u;a++)if(s=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(!1!==(l=this.options.extensions.renderers[s.type].call({parser:this},s))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)))o+=l||"";else switch(s.type){case"escape":case"text":o+=i.text(s.text);break;case"html":o+=i.html(s.text);break;case"link":o+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break;case"image":o+=i.image(s.href,s.title,s.text);break;case"strong":o+=i.strong(this.parseInline(s.tokens,i));break;case"em":o+=i.em(this.parseInline(s.tokens,i));break;case"codespan":o+=i.codespan(s.text);break;case"br":o+=i.br();break;case"del":o+=i.del(this.parseInline(s.tokens,i));break;default:var d='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(d);throw new Error(d)}return o}}],[{key:"parse",value:function(e,i){return new n(i).parse(e)}},{key:"parseInline",value:function(e,i){return new n(i).parseInline(e)}}]),n}(),lA=function(){function n(r){(0,B.Z)(this,n),this.options=r||ov}return(0,U.Z)(n,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),n}();function Rse(n,r){return function(e,i,o){"function"==typeof i&&(o=i,i=null);var a=Vr({},i),s=function s8e(n,r,e){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){var o="<p>An error occurred:</p><pre>"+Nl(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):e?void e(null,o):o}if(r)return Promise.reject(i);if(!e)throw i;e(i)}}((i=Vr(Vr({},Nr.defaults),a)).silent,i.async,o);if(null==e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function i8e(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),o){var u,l=i.highlight;try{i.hooks&&(e=i.hooks.preprocess(e)),u=n(e,i)}catch(L){return s(L)}var d=function(z){var q;if(!z)try{i.walkTokens&&Nr.walkTokens(u,i.walkTokens),q=r(u,i),i.hooks&&(q=i.hooks.postprocess(q))}catch(re){z=re}return i.highlight=l,z?s(z):o(null,q)};if(!l||l.length<3||(delete i.highlight,!u.length))return d();var h=0;return Nr.walkTokens(u,function(L){"code"===L.type&&(h++,setTimeout(function(){l(L.text,L.lang,function(z,q){if(z)return d(z);null!=q&&q!==L.text&&(L.text=q,L.escaped=!0),0===--h&&d()})},0))}),void(0===h&&d())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(function(L){return n(L,i)}).then(function(L){return i.walkTokens?Promise.all(Nr.walkTokens(L,i.walkTokens)).then(function(){return L}):L}).then(function(L){return r(L,i)}).then(function(L){return i.hooks?i.hooks.postprocess(L):L}).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));var g=n(e,i);i.walkTokens&&Nr.walkTokens(g,i.walkTokens);var y=r(g,i);return i.hooks&&(y=i.hooks.postprocess(y)),y}catch(L){return s(L)}}}function Nr(n,r,e){return Rse(tT.lex,nT.parse)(n,r,e)}(0,Yw.Z)(lA,"passThroughHooks",new Set(["preprocess","postprocess"])),Nr.options=Nr.setOptions=function(n){return Nr.defaults=Vr(Vr({},Nr.defaults),n),function W4e(n){ov=n}(Nr.defaults),Nr},Nr.getDefaults=$z,Nr.defaults=ov,Nr.use=function(){for(var n=Nr.defaults.extensions||{renderers:{},childTokens:{}},r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];e.forEach(function(o){var a=Vr({},o);if(a.async=Nr.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach(function(re){if(!re.name)throw new Error("extension name required");if(re.renderer){var ae=n.renderers[re.name];n.renderers[re.name]=ae?function(){for(var Se=arguments.length,Ce=new Array(Se),Ee=0;Ee<Se;Ee++)Ce[Ee]=arguments[Ee];var Ke=re.renderer.apply(this,Ce);return!1===Ke&&(Ke=ae.apply(this,Ce)),Ke}:re.renderer}if(re.tokenizer){if(!re.level||"block"!==re.level&&"inline"!==re.level)throw new Error("extension level must be 'block' or 'inline'");n[re.level]?n[re.level].unshift(re.tokenizer):n[re.level]=[re.tokenizer],re.start&&("block"===re.level?n.startBlock?n.startBlock.push(re.start):n.startBlock=[re.start]:"inline"===re.level&&(n.startInline?n.startInline.push(re.start):n.startInline=[re.start]))}re.childTokens&&(n.childTokens[re.name]=re.childTokens)}),a.extensions=n),o.renderer){var s=Nr.defaults.renderer||new x5,l=function(ae){var Se=s[ae];s[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.renderer[ae].apply(s,Ee);return!1===st&&(st=Se.apply(s,Ee)),st}};for(var u in o.renderer)l(u);a.renderer=s}if(o.tokenizer){var d=Nr.defaults.tokenizer||new E5,h=function(ae){var Se=d[ae];d[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.tokenizer[ae].apply(d,Ee);return!1===st&&(st=Se.apply(d,Ee)),st}};for(var g in o.tokenizer)h(g);a.tokenizer=d}if(o.hooks){var y=Nr.defaults.hooks||new lA,L=function(ae){var Se=y[ae];lA.passThroughHooks.has(ae)?y[ae]=function(Ce){if(Nr.defaults.async)return Promise.resolve(o.hooks[ae].call(y,Ce)).then(function(Ke){return Se.call(y,Ke)});var Ee=o.hooks[ae].call(y,Ce);return Se.call(y,Ee)}:y[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke<Ce;Ke++)Ee[Ke]=arguments[Ke];var st=o.hooks[ae].apply(y,Ee);return!1===st&&(st=Se.apply(y,Ee)),st}};for(var z in o.hooks)L(z);a.hooks=y}if(o.walkTokens){var q=Nr.defaults.walkTokens;a.walkTokens=function(re){var ae=[];return ae.push(o.walkTokens.call(this,re)),q&&(ae=ae.concat(q.call(this,re))),ae}}Nr.setOptions(a)})},Nr.walkTokens=function(n,r){var o,e=[],i=(0,An.Z)(n);try{var a=function(){var l=o.value;switch(e=e.concat(r.call(Nr,l)),l.type){case"table":var d,u=(0,An.Z)(l.header);try{for(u.s();!(d=u.n()).done;){var h=d.value;e=e.concat(Nr.walkTokens(h.tokens,r))}}catch(ae){u.e(ae)}finally{u.f()}var y,g=(0,An.Z)(l.rows);try{for(g.s();!(y=g.n()).done;){var q,L=y.value,z=(0,An.Z)(L);try{for(z.s();!(q=z.n()).done;){var re=q.value;e=e.concat(Nr.walkTokens(re.tokens,r))}}catch(ae){z.e(ae)}finally{z.f()}}}catch(ae){g.e(ae)}finally{g.f()}break;case"list":e=e.concat(Nr.walkTokens(l.items,r));break;default:Nr.defaults.extensions&&Nr.defaults.extensions.childTokens&&Nr.defaults.extensions.childTokens[l.type]?Nr.defaults.extensions.childTokens[l.type].forEach(function(ae){e=e.concat(Nr.walkTokens(l[ae],r))}):l.tokens&&(e=e.concat(Nr.walkTokens(l.tokens,r)))}};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}return e},Nr.parseInline=Rse(tT.lexInline,nT.parseInline),Nr.Parser=nT,Nr.parser=nT.parse,Nr.Renderer=x5,Nr.TextRenderer=eW,Nr.Lexer=tT,Nr.lexer=tT.lex,Nr.Tokenizer=E5,Nr.Slugger=tW,Nr.Hooks=lA,Nr.parse=Nr;var l8e=Nr.options,u8e=Nr.setOptions,c8e=Nr.use,d8e=Nr.walkTokens,f8e=Nr.parseInline,p8e=Nr,h8e=nT.parse,m8e=tT.lex,uA=function(){function n(r,e){(0,B.Z)(this,n),this.elementRef=r,this.renderer=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.updateText()}},{key:"ngOnChanges",value:function(){this.updateText()}},{key:"updateText",value:function(){var e=this.text;if(e&&e.length>0){var i=ht(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),n}();function _8e(n,r){if(1&n&&(t.TgZ(0,"span"),t._UZ(1,"div",4),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.s9C("text",e.markdown)}}uA.\u0275fac=function(r){return new(r||uA)(t.Y36(t.SBq),t.Y36(t.Qsj))},uA.\u0275dir=t.lG2({type:uA,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[t.TTD]});var cA=function(){function n(r){(0,B.Z)(this,n),this.projectService=r,this.markdown=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e.markdown=i)})}}]),n}();cA.\u0275fac=function(r){return new(r||cA)(t.Y36(Ws.Y))},cA.\u0275cmp=t.Xpm({type:cA,selectors:[["app-readme-editor"]],inputs:{controller:"controller",project:"project"},decls:5,vars:2,consts:[["label","Edit"],["matInput","","type","text",1,"editorWrapper",3,"ngModel","ngModelChange"],["label","Preview"],[4,"ngIf"],["appMarked","",1,"textWrapper",3,"text"]],template:function(r,e){1&r&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),t.NdJ("ngModelChange",function(o){return e.markdown=o}),t.qZA()(),t.TgZ(3,"mat-tab",2),t.YNc(4,_8e,2,1,"span",3),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngModel",e.markdown),t.xp6(2),t.Q6J("ngIf",e.markdown))},dependencies:[le.O5,J.Fj,J.JJ,J.On,qn,Fi.SP,Fi.uX,uA],styles:[".textWrapper{height:500px!important;overflow-y:scroll}.editorWrapper{background-color:#fff;color:#000;height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var g8e=["editor"];function v8e(n,r){if(1&n&&(t.TgZ(0,"mat-tab",27),t._UZ(1,"app-readme-editor",28,29),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function y8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Name"),t.qZA())}function b8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.name," ")}}function C8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Value"),t.qZA())}function w8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.value)}}function k8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Actions"),t.qZA())}function T8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",31)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteVariable(a))}),t.TgZ(2,"mat-icon",33),t._uU(3,"delete"),t.qZA()()()}}function M8e(n,r){1&n&&t._UZ(0,"tr",34)}function S8e(n,r){1&n&&t._UZ(0,"tr",35)}var D5=function(){return{standalone:!0}},dA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,a.get]),height:new J.p4("",[J.kI.required,a.get]),nodeGridSize:new J.p4("",[J.kI.required,a.get]),drawingGridSize:new J.p4("",[J.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new J.p4("",[J.kI.required]),value:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(i){return e.variables.push(i)}),this.auto_close=!this.project.auto_close}},{key:"addVariable",value:function(){if(this.variableFormGroup.valid){var e={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([e])}else this.toasterService.error("Fill all required fields with correct values.")}},{key:"deleteVariable",value:function(e){this.variables=this.variables.filter(function(i){return i!==e})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.controller,this.project).subscribe(function(i){e.projectService.postReadmeFile(e.controller,e.project.project_id,e.editor.markdown).subscribe(function(o){e.toasterService.success("Project ".concat(i.name," updated.")),e.onNoClick()})})):this.toasterService.error("Fill all required fields with correct values.")}}]),n}();function E8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function x8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}dA.\u0275fac=function(r){return new(r||dA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Ws.Y),t.Y36(Zn),t.Y36(uf))},dA.\u0275cmp=t.Xpm({type:dA,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(g8e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.editor=i.first))},decls:50,vars:18,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Readme",4,"ngIf"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Readme"],[3,"controller","project"],["editor",""],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Edit project"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",4),t._UZ(9,"input",6),t.qZA(),t.TgZ(10,"mat-form-field",4),t._UZ(11,"input",7),t.qZA(),t.TgZ(12,"mat-form-field",4),t._UZ(13,"input",8),t.qZA(),t.TgZ(14,"mat-form-field",4),t._UZ(15,"input",9),t.qZA()(),t.TgZ(16,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),t._uU(17," Open this project in the background when GNS3 controller starts "),t.qZA(),t.TgZ(18,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),t._uU(19," Start all nodes when this project is opened "),t.qZA(),t.TgZ(20,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.auto_close=o}),t._uU(21," Leave this project running in the background after closing "),t.qZA(),t.TgZ(22,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),t._uU(23," Show interface labels at start "),t.qZA()(),t.YNc(24,v8e,3,2,"mat-tab",11),t.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),t._UZ(28,"input",13),t.qZA(),t.TgZ(29,"mat-form-field",4),t._UZ(30,"input",14),t.qZA()(),t.TgZ(31,"button",15),t.NdJ("click",function(){return e.addVariable()}),t._uU(32,"Add variable"),t.qZA(),t.TgZ(33,"table",16),t.ynx(34,17),t.YNc(35,y8e,2,0,"th",18),t.YNc(36,b8e,2,1,"td",19),t.BQk(),t.ynx(37,20),t.YNc(38,C8e,2,0,"th",18),t.YNc(39,w8e,2,1,"td",19),t.BQk(),t.ynx(40,21),t.YNc(41,k8e,2,0,"th",18),t.YNc(42,T8e,4,0,"td",19),t.BQk(),t.YNc(43,M8e,1,0,"tr",22),t.YNc(44,S8e,1,0,"tr",23),t.qZA()()()(),t.TgZ(45,"div",24)(46,"button",25),t.NdJ("click",function(){return e.onNoClick()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",26),t.NdJ("click",function(){return e.onYesClick()}),t._uU(49,"Apply"),t.qZA()()),2&r&&(t.xp6(5),t.Q6J("formGroup",e.formGroup),t.xp6(11),t.Q6J("ngModelOptions",t.DdM(14,D5))("ngModel",e.project.auto_open),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,D5))("ngModel",e.project.auto_start),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,D5))("ngModel",e.auto_close),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,D5))("ngModel",e.project.show_interface_labels),t.xp6(2),t.Q6J("ngIf",e.controller&&e.project),t.xp6(2),t.Q6J("formGroup",e.variableFormGroup),t.xp6(7),t.Q6J("dataSource",e.variables),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,br,fr,ti,mi,Fi.SP,Fi.uX,cA],styles:[".form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]});var D8e=function(r){return{empty:r}},A8e=function(r){return{"is-invalid":r}},rT=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.dialog=r,this.dialogRef=e,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.toasterService=l,this.uploadServiceService=u,this.snackBar=d,this.uploadProgress=0,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){var l=JSON.parse(o);e.resultMessage="An error has occurred: "+l.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(i,o,a,s){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0},this.uploader.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"uploadProjectFile",value:function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0}},{key:"onImportClick",value:function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.importProject()})}},{key:"importProject",value:function(){var e=this.prepareUploadPath();this.uploader.queue.forEach(function(o){return o.url=e}),this.uploader.authToken="Bearer ".concat(this.controller.authToken),this.isFirstStepCompleted=!0;var i=this.uploader.queue[0];this.uploader.uploadItem(i),this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open($k,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.importProject()})})})}},{key:"onNoClick",value:function(){this.uploader.cancelAll(),this.dialogRef.close(!1)}},{key:"onFinishClick",value:function(){this.dialogRef.close(!1)}},{key:"onDeleteClick",value:function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")}},{key:"prepareUploadPath",value:function(){this.uuid=ns();var e=this.projectNameForm.controls.projectName.value;return this.projectService.getUploadPath(this.controller,this.uuid,e)}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1),this.isFirstStepCompleted=!1,this.uploader.cancelAll(),this.dialogRef.close(!0)}}]),n}();rT.\u0275fac=function(r){return new(r||rT)(t.Y36(Gr),t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Ws.Y),t.Y36(Ku),t.Y36(Zn),t.Y36(ad),t.Y36(rd))},rT.\u0275cmp=t.Xpm({type:rT,selectors:[["app-import-project-dialog"]],features:[t._Bn([Ku])],decls:27,vars:16,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Import project"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),t.NdJ("change",function(a){return e.uploadProjectFile(a)}),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(5);return t.KtG(a.click())}),t._uU(7," Choose file "),t.qZA(),t.TgZ(8,"mat-form-field",6),t._UZ(9,"input",7),t.YNc(10,E8e,2,0,"mat-error",8),t.YNc(11,x8e,2,0,"mat-error",8),t.qZA(),t.TgZ(12,"button",9)(13,"mat-icon",10),t.NdJ("click",function(){return e.onDeleteClick()}),t._uU(14,"clear"),t.qZA()(),t.TgZ(15,"div",11)(16,"button",12),t.NdJ("click",function(){return e.onNoClick()}),t._uU(17,"Cancel"),t.qZA(),t.TgZ(18,"button",13),t.NdJ("click",function(){return e.onImportClick()}),t._uU(19," Import "),t.qZA()()()(),t.TgZ(20,"div",1)(21,"div",14)(22,"span"),t._uU(23),t.qZA()(),t.TgZ(24,"div",11)(25,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(26," Finish "),t.qZA()()()}2&r&&(t.xp6(2),t.Q6J("hidden",e.isFirstStepCompleted),t.xp6(1),t.Q6J("formGroup",e.projectNameForm),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(4),t.Q6J("ngClass",t.VKq(12,D8e,!e.isDeleteVisible)),t.xp6(1),t.Q6J("ngClass",t.VKq(14,A8e,e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),t.xp6(1),t.Q6J("hidden",!e.isDeleteVisible),t.xp6(6),t.Q6J("disabled",!e.isImportEnabled),t.xp6(2),t.Q6J("hidden",!e.isFirstStepCompleted),t.xp6(3),t.Oqu(e.resultMessage),t.xp6(2),t.Q6J("disabled",!e.isFinishEnabled))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,Mp,kn.TO,kn.KE,fn,Dn,qn,br,fr,mi],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']});var O8e=function(r){return{lightTheme:r}},iT=function(){function n(r,e){(0,B.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();function I8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function P8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}iT.\u0275fac=function(r){return new(r||iT)(t.Y36(k5),t.Y36(wc.f))},iT.\u0275cmp=t.Xpm({type:iT,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,O8e,e.isLightThemeEnabled)),t.xp6(2),t.hij("Do you want to navigate to ",e.projectMessage,"?"))},dependencies:[le.mk,fn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var R8e=function(r){return{"is-invalid":r}},fA=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Project with this name already exists."):e.nodesDataSource.getItems().filter(function(s){return"started"===s.status&&"vpcs"===s.node_type||"started"===s.status&&"virtualbox"===s.node_type||"started"===s.status&&"vmware"===s.node_type}).length>0?e.toasterService.error("Please stop all nodes in order to save project."):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added"))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();fA.\u0275fac=function(r){return new(r||fA)(t.Y36(cr),t.Y36(Ws.Y),t.Y36(za.G),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku))},fA.\u0275cmp=t.Xpm({type:fA,selectors:[["app-save-project-dialog"]],features:[t._Bn([Ku])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,I8e,2,0,"mat-error",4),t.YNc(6,P8e,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(11,"Save project"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,R8e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Fr=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getNodeById",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/nodes/").concat(o))}},{key:"isolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/isolate"),{})}},{key:"unisolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/unisolate"),{})}},{key:"start",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/start"),{})}},{key:"startAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/start"),{})}},{key:"stop",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/stop"),{})}},{key:"stopAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/stop"),{})}},{key:"suspend",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/suspend"),{})}},{key:"suspendAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/suspend"),{})}},{key:"reload",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/reload"),{})}},{key:"reloadAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/reload"),{})}},{key:"resetAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/console/reset"),{})}},{key:"createFromTemplate",value:function(e,i,o,a,s,l){return l?this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:l}):this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:"local"})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(l=Math.round((l+o.width/2)/i.grid_size)*i.grid_size,u=Math.round((u+o.height/2)/i.grid_size)*i.grid_size,l=Math.round(l-o.width/2),u=Math.round(u-o.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/nodes/").concat(o.node_id),{x:l,y:u})}},{key:"updateLabel",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{label:{rotation:o.rotation,style:o.style,text:o.text,x:Math.round(o.x),y:Math.round(o.y)}})}},{key:"updateSymbol",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{symbol:o})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"updateNode",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,locked:i.locked,name:i.name,properties:i.properties})}},{key:"updateNodeWithCustomAdapters",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,custom_adapters:i.custom_adapters,name:i.name,properties:i.properties})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"duplicate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/duplicate"),{x:i.x+10,y:i.y+10,z:i.z})}},{key:"getNode",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"getDefaultCommand",value:function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'}},{key:"getNetworkConfiguration",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),{responseType:"text"})}},{key:"saveNetworkConfiguration",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),o)}},{key:"getStartupConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?o+="/files/startup.vpc":"iou"===i.node_type?o+="/files/startup-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"getPrivateConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?o+="/files/private-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"saveConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?a+="/files/startup.vpc":"iou"===i.node_type?a+="/files/startup-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.post(e,a,o)}},{key:"savePrivateConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?a+="/files/private-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.post(e,a,o)}}]),n}();function L8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start"),t.qZA()()}}Fr.\u0275fac=function(r){return new(r||Fr)(t.LFG(ho.zw))},Fr.\u0275prov=t.Yz7({token:Fr,factory:Fr.\u0275fac});var pA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(o){("stopped"===o.status||"suspended"===o.status)&&(i.isNodeWithStoppedStatus=!0)}))}},{key:"startNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.start(e.controller,i).subscribe(function(o){},function(o){e.toasterService.error(o.error.message)})})}}]),n}();pA.\u0275fac=function(r){return new(r||pA)(t.Y36(Fr),t.Y36(Zn))},pA.\u0275cmp=t.Xpm({type:pA,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,L8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStoppedStatus)},dependencies:[le.O5,Er,Dn],encapsulation:2});var hA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"isolate",value:function(){var e=this;this.nodeService.isolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();hA.\u0275fac=function(r){return new(r||hA)(t.Y36(Fr),t.Y36(Zn))},hA.\u0275cmp=t.Xpm({type:hA,selectors:[["app-isolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.isolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_off"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Isolate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var mA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"unisolate",value:function(){var e=this;this.nodeService.unisolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();function Z8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"stop"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop"),t.qZA()()}}mA.\u0275fac=function(r){return new(r||mA)(t.Y36(Fr),t.Y36(Zn))},mA.\u0275cmp=t.Xpm({type:mA,selectors:[["app-unisolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.unisolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_not_fixed"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Un-isolate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _A=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"stopNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.stop(e.controller,i).subscribe(function(o){})})}}]),n}();_A.\u0275fac=function(r){return new(r||_A)(t.Y36(Fr))},_A.\u0275cmp=t.Xpm({type:_A,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,Z8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[le.O5,Er,Dn],encapsulation:2});var ya=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(WB.o);ya.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ya)))(e||ya)}}(),ya.\u0275prov=t.Yz7({token:ya,factory:ya.\u0275fac});var Wa=function(){function n(r,e){(0,B.Z)(this,n),this.httpController=r,this.svgToDrawingConverter=e}return(0,U.Z)(n,[{key:"add",value:function(e,i,o,a,s){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:s,x:Math.round(o),y:Math.round(a),z:1})}},{key:"duplicate",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:o.svg,rotation:o.rotation,x:o.x+10,y:o.y+10,z:o.z})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(o.element=this.svgToDrawingConverter.convert(o.svg),l=Math.round((l+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,u=Math.round((u+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,l=Math.round(l-o.element.width/2),u=Math.round(u-o.element.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/drawings/").concat(o.drawing_id),{x:l,y:u})}},{key:"updateSizeAndPosition",value:function(e,i,o,a,s){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:s,x:Math.round(o),y:Math.round(a)})}},{key:"updateText",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:o,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{locked:i.locked,svg:i.svg,rotation:i.rotation,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id))}},{key:"lockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/lock"),{})}},{key:"unLockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/unlock"),{})}}]),n}();Wa.\u0275fac=function(r){return new(r||Wa)(t.LFG(ho.zw),t.LFG(Wp))},Wa.\u0275prov=t.Yz7({token:Wa,factory:Wa.\u0275fac});var gA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerDown",value:function(){var e=this;this.nodes.forEach(function(i){i.z--,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z--,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();gA.\u0275fac=function(r){return new(r||gA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},gA.\u0275cmp=t.Xpm({type:gA,selectors:[["app-move-layer-down-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerDown()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_down"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer down"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var vA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerUp",value:function(){var e=this;this.nodes.forEach(function(i){i.z++,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z++,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();vA.\u0275fac=function(r){return new(r||vA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},vA.\u0275cmp=t.Xpm({type:vA,selectors:[["app-move-layer-up-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerUp()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_up"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer up"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _d=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i,o="";if(e.element instanceof af)o="".concat(""==e.element.stroke_dasharray?'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'):'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'));else if(e.element instanceof ea)o="".concat(""==e.element.stroke_dasharray?'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'"/>'):'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" />'));else if(e.element instanceof bb)o='<line stroke="'.concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" x1="').concat(e.element.x1,'" x2="').concat(e.element.x2,'" y1="').concat(e.element.y1,'" y2="').concat(e.element.y2,'" stroke-dasharray="').concat(null!==(i=e.element.stroke_dasharray)&&void 0!==i?i:"none",'" />');else{if(!(e.element instanceof Cb))return"";o='<text fill="'.concat(e.element.fill,'" fill-opacity="1.0" font-family="').concat(e.element.font_family,'" font-size="').concat(e.element.font_size,'" font-weight="').concat(e.element.font_weight,'">').concat(e.element.text,"</text>")}return'<svg height="'.concat(e.element.height,'" width="').concat(e.element.width,'">').concat(o,"</svg>")}}]),n}();_d.\u0275fac=function(r){return new(r||_d)},_d.\u0275prov=t.Yz7({token:_d,factory:_d.\u0275fac});var av=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),n}();av.\u0275fac=function(r){return new(r||av)},av.\u0275prov=t.Yz7({token:av,factory:av.\u0275fac});var A5=function(){return{standalone:!0}};function N8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.fill=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,A5))("ngModel",i.element.fill)}}function B8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function F8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.rx=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,A5))("ngModel",i.element.rx)}}var yA=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=l,this.nonNegativeValidator=u,this.rotationValidator=d,this.qtDasharrayFixer=h,this.borderTypes=[{qt:"none",value:"none",name:"Solid"},{qt:"10, 2",value:"25, 25",name:"Dash"},{qt:"4, 2",value:"5, 25",name:"Dot"},{qt:"12, 3, 5, 3",value:"5, 25, 25",name:"Dash Dot"},{qt:"12, 3, 5, 3, 5, 3",value:"25, 25, 5, 25, 5",name:"Dash Dot Dot"},{qt:"",value:"",name:"No border"}],this.formGroup=this.formBuilder.group({borderWidth:new J.p4("",[J.kI.required,u.get]),rotation:new J.p4("",[J.kI.required,d.get])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e,i;this.element=new U8e,this.drawing.element instanceof af||this.drawing.element instanceof ea?(this.element.fill=this.drawing.element.fill,this.element.stroke=this.drawing.element.stroke,console.log(this.drawing.element.stroke_dasharray,this.drawing.element.stroke_width),this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(e=this.drawing.element.stroke_dasharray)&&void 0!==e?e:"none",this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof bb&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(i=this.drawing.element.stroke_dasharray)&&void 0!==i?i:"none",this.element.stroke_width=this.drawing.element.stroke_width),this.drawing.element instanceof af&&(this.element.rx=this.drawing.element.rx,this.element.ry=this.drawing.element.ry),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var i,o,e=this;if(this.formGroup.valid){""==this.element.stroke_dasharray?this.element.stroke_width=0:this.element.stroke_width=0===this.formGroup.get("borderWidth").value?2:this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof af||this.drawing.element instanceof ea?(this.drawing.element.fill=this.element.fill,this.drawing.element.stroke=null!==(i=this.element.stroke)&&void 0!==i?i:"#000000",this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof bb&&(""!=this.element.stroke_dasharray?(this.drawing.element.stroke=null!==(o=this.element.stroke)&&void 0!==o?o:"#000000",this.drawing.element.stroke_dasharray=""===this.element.stroke_dasharray?"none":this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width):this.toasterService.warning("No border style line element not supported"),this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width),this.drawing.element instanceof af&&(this.drawing.element.rx=this.element.rx,this.drawing.element.ry=this.element.rx);var a=this.drawingToMapDrawingConverter.convert(this.drawing);a.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(a),this.drawingService.update(this.controller,this.drawing).subscribe(function(s){e.drawingsDataSource.update(s),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();yA.\u0275fac=function(r){return new(r||yA)(t.Y36(cr),t.Y36(Bm),t.Y36(_d),t.Y36(Wa),t.Y36(ya),t.Y36(J.QS),t.Y36(Zn),t.Y36(uf),t.Y36(av),t.Y36(Yu))},yA.\u0275cmp=t.Xpm({type:yA,selectors:[["app-style-editor"]],decls:20,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number","min","0","max","100"],["placeholder","Border style",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","placeholder","Corner radius","type","number","min","0","max","100",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2),t.YNc(4,N8e,2,3,"mat-form-field",3),t.TgZ(5,"mat-form-field",4)(6,"input",5),t.NdJ("ngModelChange",function(o){return e.element.stroke=o}),t.qZA()(),t.TgZ(7,"mat-form-field",4),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-form-field",4)(10,"mat-select",7),t.NdJ("ngModelChange",function(o){return e.element.stroke_dasharray=o}),t.YNc(11,B8e,2,2,"mat-option",8),t.qZA()(),t.YNc(12,F8e,2,3,"mat-form-field",3),t.TgZ(13,"mat-form-field",4),t._UZ(14,"input",9),t.qZA()()(),t.TgZ(15,"div",10)(16,"button",11),t.NdJ("click",function(){return e.onNoClick()}),t._uU(17,"Cancel"),t.qZA(),t.TgZ(18,"button",12),t.NdJ("click",function(){return e.onYesClick()}),t._uU(19,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.fill),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,A5))("ngModel",e.element.stroke),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(9,A5))("ngModel",e.element.stroke_dasharray),t.xp6(1),t.Q6J("ngForOf",e.borderTypes),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.rx))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,fn,qn,br,fr,di.gD,Gt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var U8e=(0,U.Z)(function n(){(0,B.Z)(this,n)});function H8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editStyle())}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()()}}var bA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r,this.isImageDrawing=!1}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof w5}},{key:"editStyle",value:function(){var i=this.dialog.open(yA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),n}();function j8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}bA.\u0275fac=function(r){return new(r||bA)(t.Y36(Gr))},bA.\u0275cmp=t.Xpm({type:bA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,H8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.isImageDrawing)},dependencies:[le.O5,Er,Dn],encapsulation:2});var CA=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.linkService=o,this.linksDataSource=a,this.linksEventSource=s,this.linkToMapLink=l,this.nonNegativeValidator=u,this.borderTypes=["Solid","Dash","Dot","Dash Dot","Dash Dot Dot"],this.formGroup=this.formBuilder.group({color:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,u.get]),type:new J.p4("",[J.kI.required])})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e,i;null!==(e=this.link.link_style)&&void 0!==e&&e.color?this.formGroup.controls.color.setValue(this.link.link_style.color):this.formGroup.controls.color.setValue("#000000"),this.formGroup.controls.width.setValue(this.link.link_style.width);var o=this.borderTypes[0];!(null===(i=this.link.link_style)||void 0===i)&&i.type&&(o=this.borderTypes[this.link.link_style.type]),this.formGroup.controls.type.setValue(o)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){this.link.link_style.color=this.formGroup.get("color").value,this.link.link_style.width=this.formGroup.get("width").value;var i=this.borderTypes.indexOf(this.formGroup.get("type").value);this.link.link_style.type=i,this.linkService.updateLinkStyle(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.linksEventSource.edited.next(e.linkToMapLink.convert(o)),location.reload(),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();CA.\u0275fac=function(r){return new(r||CA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Zn),t.Y36(pl),t.Y36(Hm.F),t.Y36(hd),t.Y36(Kg),t.Y36(uf))},CA.\u0275cmp=t.Xpm({type:CA,selectors:[["app-link-style-editor"]],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Color","formControlName","color","type","color"],["matInput","","formControlName","width","placeholder","Width","type","number"],["placeholder","Type","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),t._UZ(5,"input",4),t.qZA(),t.TgZ(6,"mat-form-field",3),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",3)(9,"mat-select",6),t.YNc(10,j8e,2,2,"mat-option",7),t.qZA()()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(7),t.Q6J("ngForOf",e.borderTypes))},dependencies:[le.sg,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,qn,br,fr,di.gD,Gt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var wA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(CA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();wA.\u0275fac=function(r){return new(r||wA)(t.Y36(Gr))},wA.\u0275cmp=t.Xpm({type:wA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[t.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editStyle()}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var G8e=["textArea"],kA=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z){(0,B.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=l,this.nodesDataSource=u,this.linkService=d,this.linksDataSource=h,this.formBuilder=g,this.toasterService=y,this.rotationValidator=L,this.fontFixer=z}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new J.p4("",[J.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(o){return o.node_id===e.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var i={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};i=this.fontFixer.fix(i),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",i.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size","".concat(i.font_size,"pt")),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",i.font_weight)}},{key:"getTextElementFromLabel",value:function(){var a,e=[],i=new Cb,o=(0,An.Z)(this.label.style.split(";"));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.push({property:s.split(": ")[0],value:s.split(": ")[1]})}}catch(l){o.e(l)}finally{o.f()}return i.text=this.label.text?this.label.text:"",i.font_family=e.find(function(l){return"font-family"===l.property})?e.find(function(l){return"font-family"===l.property}).value:"TypeWriter",i.font_size=e.find(function(l){return"font-size"===l.property})?+e.find(function(l){return"font-size"===l.property}).value:10,i.font_weight=e.find(function(l){return"font-weight"===l.property})?e.find(function(l){return"font-weight"===l.property}).value:"normal",i.fill=e.find(function(l){return"fill"===l.property})?e.find(function(l){return"fill"===l.property}).value:"#000000",i.fill_opacity=e.find(function(l){return"fill-opacity"===l.property})?+e.find(function(l){return"fill-opacity"===l.property}).value:1,i}},{key:"getStyleFromTextElement",value:function(){return"font-family: ".concat(this.element.font_family,";font-size: ").concat(this.element.font_size,";font-weight: ").concat(this.element.font_weight,";fill: ").concat(this.element.fill,";fill-opacity: ").concat(this.element.fill_opacity,";")}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.controller,this.node,this.node.label).subscribe(function(o){e.nodesDataSource.update(o),e.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var i=this.drawingToMapDrawingConverter.convert(this.drawing);i.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(i),this.drawingService.update(this.controller,this.drawing).subscribe(function(o){e.drawingsDataSource.update(o),e.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")}},{key:"changeTextColor",value:function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)}}]),n}();kA.\u0275fac=function(r){return new(r||kA)(t.Y36(cr),t.Y36(Bm),t.Y36(_d),t.Y36(Wa),t.Y36(ya),t.Y36(t.Qsj),t.Y36(Fr),t.Y36(za.G),t.Y36(pl),t.Y36(Hm.F),t.Y36(J.QS),t.Y36(Zn),t.Y36(av),t.Y36(os))},kA.\u0275cmp=t.Xpm({type:kA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(G8e,7),2&r)&&(t.iGM(i=t.CRH())&&(e.textArea=i.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Text editor"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),t.qZA()(),t.TgZ(5,"form",4)(6,"mat-form-field",2),t._UZ(7,"input",5),t.qZA()(),t.TgZ(8,"textarea",6,7),t.NdJ("ngModelChange",function(o){return e.element.text=o}),t.qZA()(),t.TgZ(10,"div",8)(11,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(14,"Apply"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.element.fill),t.xp6(1),t.Q6J("formGroup",e.formGroup),t.xp6(3),t.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,qn,br,fr],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var TA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(kA,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing,i.node=this.node,i.label=this.label,i.link=this.link,i.linkNode=this.linkNode}}]),n}();TA.\u0275fac=function(r){return new(r||TA)(t.Y36(Gr))},TA.\u0275cmp=t.Xpm({type:TA,selectors:[["app-edit-text-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editText()}),t.TgZ(1,"mat-icon"),t._uU(2,"text_format"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit text"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var MA=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=l}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){a&&e.delete()})}},{key:"delete",value:function(){var e=this;this.nodes.forEach(function(i){e.nodesDataSource.remove(i),e.nodeService.delete(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){e.drawingsDataSource.remove(i),e.drawingService.delete(e.controller,i).subscribe(function(o){})}),this.links.forEach(function(i){e.linksDataSource.remove(i),e.linkService.deleteLink(e.controller,i).subscribe(function(){})})}}]),n}();MA.\u0275fac=function(r){return new(r||MA)(t.Y36(za.G),t.Y36(ya),t.Y36(Hm.F),t.Y36(Fr),t.Y36(Wa),t.Y36(pl),t.Y36(lf))},MA.\u0275cmp=t.Xpm({type:MA,selectors:[["app-delete-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.confirmDelete()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Delete"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var SA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,U.Z)(n,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,An.Z)(this.nodes);try{for(o.s();!(a=o.n()).done;){var s=a.value;"stopped"===s.status?this.nodeService.duplicate(this.controller,s).subscribe(function(h){e.nodesDataSource.add(h)}):i+="".concat(s.name,", ")}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,An.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var d=u.value;this.drawingService.duplicate(this.controller,d.project_id,d).subscribe(function(h){e.drawingsDataSource.add(h)})}}catch(h){l.e(h)}finally{l.f()}i.length>0&&(i=i.substring(0,i.length-2),this.toasterService.error("Cannot duplicate node data for nodes: ".concat(i)))}}]),n}();function z8e(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"h6"),t._uU(2),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.description," ")}}SA.\u0275fac=function(r){return new(r||SA)(t.Y36(Fr),t.Y36(za.G),t.Y36(Wa),t.Y36(ya),t.Y36(Zn))},SA.\u0275cmp=t.Xpm({type:SA,selectors:[["app-duplicate-action"]],inputs:{controller:"controller",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.duplicate()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Duplicate"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var EA=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();function W8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.frequency_drop[0]=a)}),t.qZA()()(),t.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.packet_loss[0]=a)}),t.qZA()()(),t.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[0]=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",10)(11,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[1]=a)}),t.qZA()()(),t.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.corrupt[0]=a)}),t.qZA()()(),t.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.bpf[0]=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.filters.frequency_drop[0]),t.xp6(3),t.Q6J("ngModel",i.filters.packet_loss[0]),t.xp6(3),t.Q6J("ngModel",i.filters.delay[0]),t.xp6(2),t.Q6J("ngModel",i.filters.delay[1]),t.xp6(3),t.Q6J("ngModel",i.filters.corrupt[0]),t.xp6(3),t.Q6J("ngModel",i.filters.bpf[0])}}EA.\u0275fac=function(r){return new(r||EA)(t.Y36(cr))},EA.\u0275cmp=t.Xpm({type:EA,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,z8e,5,2,"div",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(6,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.title),t.xp6(2),t.Q6J("ngForOf",e.messages))},dependencies:[le.sg,fn,br,fr],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var xA=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkService.getLink(this.controller,this.link.project_id,this.link.link_id).subscribe(function(i){e.link=i,e.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},e.link.filters&&(e.filters.bpf=e.link.filters.bpf?e.link.filters.bpf:[],e.filters.corrupt=e.link.filters.corrupt?e.link.filters.corrupt:[0],e.filters.delay=e.link.filters.delay?e.link.filters.delay:[0,0],e.filters.frequency_drop=e.link.filters.frequency_drop?e.link.filters.frequency_drop:[0],e.filters.packet_loss=e.link.filters.packet_loss?e.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.controller,this.link).subscribe(function(i){e.availableFilters=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onResetClick",value:function(){var e=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onYesClick",value:function(){var e=this;this.link.filters=this.filters,this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onHelpClick",value:function(){var i=this.dialog.open(EA,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.title="Help for filters";var o=[];this.availableFilters.forEach(function(a){o.push({name:a.name,description:a.description})}),i.messages=o}}]),n}();xA.\u0275fac=function(r){return new(r||xA)(t.Y36(cr),t.Y36(pl),t.Y36(Gr))},xA.\u0275cmp=t.Xpm({type:xA,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet filters"),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,W8e,18,6,"mat-tab-group",2),t.qZA(),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"div",5)(7,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"Cancel"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onResetClick()}),t._uU(10,"Reset"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onYesClick()}),t._uU(12,"Apply"),t.qZA(),t._UZ(13,"div",8),t.TgZ(14,"button",6),t.NdJ("click",function(){return e.onHelpClick()}),t._uU(15,"Help"),t.qZA()()()),2&r&&(t.xp6(3),t.Q6J("ngIf",e.filters))},dependencies:[le.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,fn,qn,br,fr,Fi.SP,Fi.uX],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]});var DA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(xA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();DA.\u0275fac=function(r){return new(r||DA)(t.Y36(Gr))},DA.\u0275cmp=t.Xpm({type:DA,selectors:[["app-packet-filters-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openPacketFilters()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_list"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Packet filters"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var sv=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"startCapture",value:function(e,i,o,a){location.assign("gns3+pcap://".concat(e.host,":").concat(e.port,"?project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&name=").concat(a))}}]),n}();function V8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}sv.\u0275fac=function(r){return new(r||sv)},sv.\u0275prov=t.Yz7({token:sv,factory:sv.\u0275fac});var Y8e=function(){return{standalone:!0}},AA=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.linkService=e,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new J.p4("",J.kI.required),fileName:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){"ethernet"===this.link.link_type?this.linkTypes=[["Ethernet","DLT_EN10MB"]]:this.linkTypes=[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var e=this.nodesDataSource.get(this.link.nodes[0].node_id),i=this.nodesDataSource.get(this.link.nodes[1].node_id),o=e.ports[this.link.nodes[0].port_number],a=i.ports[this.link.nodes[1].port_number];this.inputForm.controls.fileName.setValue("".concat(e.name,"_").concat(o.name,"_to_").concat(i.name,"_").concat(a.name).replace(new RegExp("[^0-9A-Za-z_-]","g"),""))}},{key:"onYesClick",value:function(){var e=this,i=!1;if(this.link.nodes.forEach(function(a){"started"===e.nodesDataSource.get(a.node_id).status&&(i=!0)}),i)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var o={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.controller,this.project,this.link,o.capture_file_name),this.linkService.startCaptureOnLink(this.controller,this.link,o).subscribe(function(){e.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function K8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"loupe"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start capture"),t.qZA()()}}AA.\u0275fac=function(r){return new(r||AA)(t.Y36(cr),t.Y36(pl),t.Y36(J.QS),t.Y36(Zn),t.Y36(za.G),t.Y36(sv))},AA.\u0275cmp=t.Xpm({type:AA,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet capture"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),t.YNc(6,V8e,2,2,"mat-option",5),t.qZA()(),t.TgZ(7,"mat-form-field",3),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-checkbox",7),t.NdJ("ngModelChange",function(o){return e.startProgram=o}),t._uU(10," Start the capture visualization program "),t.qZA()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Ok"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngForOf",e.linkTypes),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(4,Y8e))("ngModel",e.startProgram))},dependencies:[le.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,qn,br,fr,ti,di.gD,Gt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var OA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"startCapture",value:function(){var i=this.dialog.open(AA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();function q8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause_circle_filled"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop capture"),t.qZA()()}}OA.\u0275fac=function(r){return new(r||OA)(t.Y36(Gr))},OA.\u0275cmp=t.Xpm({type:OA,selectors:[["app-start-capture-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,K8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.capturing)},dependencies:[le.O5,Er,Dn],encapsulation:2});var IA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),n}();function J8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.resumeLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Resume"),t.qZA()()}}IA.\u0275fac=function(r){return new(r||IA)(t.Y36(pl))},IA.\u0275cmp=t.Xpm({type:IA,selectors:[["app-stop-capture-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,q8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[le.O5,Er,Dn],encapsulation:2});var PA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();function Q8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}PA.\u0275fac=function(r){return new(r||PA)(t.Y36(pl))},PA.\u0275cmp=t.Xpm({type:PA,selectors:[["app-resume-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,J8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.suspend)},dependencies:[le.O5,Er,Dn],encapsulation:2});var RA=function(){function n(r){(0,B.Z)(this,n),this.linkService=r}return(0,U.Z)(n,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();RA.\u0275fac=function(r){return new(r||RA)(t.Y36(pl))},RA.\u0275cmp=t.Xpm({type:RA,selectors:[["app-suspend-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,Q8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.suspend)},dependencies:[le.O5,Er,Dn],encapsulation:2});var Gm=m(9449),LA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0!==this.nodes.filter(function(g){return"started"===g.status&&"none"!==g.console_type}).length){h.next=5;break}return this.toasterService.error("Device needs to be started in order to console to it."),h.abrupt("return");case 5:a=(0,An.Z)(this.nodes),h.prev=6,a.s();case 8:if((s=a.n()).done){h.next=17;break}if("started"===(l=s.value).status||"none"===l.console_type){h.next=12;break}return h.abrupt("continue",15);case 12:return u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=15,this.openConsole(u);case 15:h.next=8;break;case 17:h.next=22;break;case 19:h.prev=19,h.t0=h.catch(6),a.e(h.t0);case 22:return h.prev=22,a.f(),h.finish(22);case 25:case"end":return h.stop()}},e,this,[[6,19,22,25]])}))}},{key:"openConsole",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./console-executor.js").openConsole(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}}]),n}();LA.\u0275fac=function(r){return new(r||LA)(t.Y36(ul),t.Y36(or),t.Y36(Gm.g),t.Y36(Zn),t.Y36(Fr))},LA.\u0275cmp=t.Xpm({type:LA,selectors:[["app-console-device-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.console()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var Ab=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getInfoAboutNode",value:function(e,i){var o=[];return"cloud"===e.node_type?o.push("Cloud ".concat(e.name," is always on.")):"nat"===e.node_type?o.push("NAT ".concat(e.name," is always on.")):"ethernet-hub"===e.node_type?o.push("Ethernet hub ".concat(e.name," is always on.")):"ethernet_switch"===e.node_type?o.push("Ethernet switch ".concat(e.name," is always on.")):"frame_relay_switch"===e.node_type?o.push("Frame relay switch ".concat(e.name," is always on.")):"atm_switch"===e.node_type?o.push("ATM switch ".concat(e.name," is always on.")):"docker"===e.node_type?o.push("Docker ".concat(e.name," is ").concat(e.status,".")):"dynamips"===e.node_type?o.push("Dynamips ".concat(e.name," is always on.")):"virtualbox"===e.node_type?o.push("VirtualBox VM ".concat(e.name," is ").concat(e.status,".")):"vmware"===e.node_type?o.push("VMware VM ".concat(e.name," is ").concat(e.status,".")):"qemu"===e.node_type?o.push("QEMU VM ".concat(e.name," is ").concat(e.status,".")):"iou"===e.node_type?o.push("IOU ".concat(e.name," is always on.")):"vpcs"===e.node_type&&o.push("Node ".concat(e.name," is ").concat(e.status,".")),o.push("Running on controller ".concat(i.name," with port ").concat(i.port,".")),o.push("Controller ID is ".concat(i.id,".")),"none"!==e.console_type&&"null"!==e.console_type&&o.push("Console is on port ".concat(e.console," and type is ").concat(e.console_type,".")),o=o.concat(this.getInfoAboutPorts(e.ports))}},{key:"getInfoAboutPorts",value:function(e){var i="Ports: ";return e.forEach(function(o){i+="link_type: ".concat(o.link_type,",\n name: ").concat(o.name,"; ")}),i=i.substring(0,i.length-2)}},{key:"getCommandLine",value:function(e){return"cloud"===e.node_type||"nat"===e.node_type||"ethernet_hub"===e.node_type||"ethernet_switch"===e.node_type||"frame_relay_switch"===e.node_type||"atm_switch"===e.node_type||"dynamips"===e.node_type||"iou"===e.node_type?"Command line information is not supported for this type of node.":e.command_line?e.command_line:"Please start the node in order to get the command line information."}}]),n}();function X8e(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e," ")}}Ab.\u0275fac=function(r){return new(r||Ab)},Ab.\u0275prov=t.Yz7({token:Ab,factory:Ab.\u0275fac});var ZA=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.controller),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."}},{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();ZA.\u0275fac=function(r){return new(r||ZA)(t.Y36(cr),t.Y36(Ab))},ZA.\u0275cmp=t.Xpm({type:ZA,selectors:[["app-info-dialog"]],inputs:{controller:"controller",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),t.YNc(6,X8e,2,1,"div",5),t.qZA()(),t.TgZ(7,"mat-tab",6)(8,"div",4),t._uU(9),t.qZA()(),t.TgZ(10,"mat-tab",7)(11,"div",4),t._uU(12),t.qZA()()()(),t.TgZ(13,"div",8)(14,"button",9),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(15,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.node.name),t.xp6(5),t.Q6J("ngForOf",e.infoList),t.xp6(3),t.hij(" ",e.usage," "),t.xp6(3),t.hij(" ",e.commandLine," "))},dependencies:[le.sg,fn,br,fr,Fi.SP,Fi.uX],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var NA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"showNode",value:function(){var i=this.dialog.open(ZA,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),n}();function $8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.config)}}function eUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()(),t.TgZ(4,"mat-tab",11)(5,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.privateConfig=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngModel",i.config),t.xp6(3),t.Q6J("ngModel",i.privateConfig)}}NA.\u0275fac=function(r){return new(r||NA)(t.Y36(Gr))},NA.\u0275cmp=t.Xpm({type:NA,selectors:[["app-show-node-action"]],inputs:{node:"node",controller:"controller"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.showNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"info"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Show node information"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var BA=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(i){e.config=i}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.controller,this.node).subscribe(function(i){e.privateConfig=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveConfiguration(this.controller,this.node,this.config).subscribe(function(i){"iou"===e.node.node_type||"dynamips"===e.node.node_type?e.nodeService.savePrivateConfiguration(e.controller,e.node,e.privateConfig).subscribe(function(o){e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))}):(e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved.")))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function tUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit config"),t.qZA()()}}BA.\u0275fac=function(r){return new(r||BA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},BA.\u0275cmp=t.Xpm({type:BA,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,$8e,3,1,"div",1),t.YNc(3,eUe,7,2,"mat-tab-group",2),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(8,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf","vpcs"===e.node.node_type),t.xp6(1),t.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},dependencies:[le.O5,J.Fj,J.JJ,J.On,fn,br,fr,Fi.SP,Fi.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var FA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"editConfig",value:function(){var i=this.dialog.open(BA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),n}();FA.\u0275fac=function(r){return new(r||FA)(t.Y36(Gr))},FA.\u0275cmp=t.Xpm({type:FA,selectors:[["app-edit-config-action"]],inputs:{controller:"controller",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,tUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},dependencies:[le.O5,Er,Dn],encapsulation:2});var UA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,cn.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,cn.Z)(this.drawings.map(function(s){return s.z}))),a=Math.max(i,o);a<100&&a++,this.nodes.forEach(function(s){s.z=a,e.nodesDataSource.update(s),e.nodeService.update(e.controller,s).subscribe(function(l){})}),this.drawings.forEach(function(s){s.z=a,e.drawingsDataSource.update(s),e.drawingService.update(e.controller,s).subscribe(function(l){})})}}]),n}();UA.\u0275fac=function(r){return new(r||UA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},UA.\u0275cmp=t.Xpm({type:UA,selectors:[["app-bring-to-front-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.bringToFront()}),t.TgZ(1,"mat-icon"),t._uU(2,"vertical_align_top"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Bring to front"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var oT=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),n}();function nUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.exportConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"call_made"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Export config"),t.qZA()()}}oT.\u0275fac=function(r){return new(r||oT)(t.Y36(cr))},oT.\u0275cmp=t.Xpm({type:oT,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Choose configuration file"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),t.NdJ("click",function(){return e.close("startup-config")}),t._uU(6,"startup configuration"),t.qZA()(),t.TgZ(7,"div")(8,"button",3),t.NdJ("click",function(){return e.close("private-config")}),t._uU(9,"private configuration"),t.qZA()()()())},dependencies:[fn,br],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var HA=function(){function n(r,e){(0,B.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,U.Z)(n,[{key:"exportConfig",value:function(){var e=this;if("vpcs"===this.node.node_type)this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(a){e.downloadByHtmlTag(a)});else{var i=this.dialog.open(oT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){"startup-config"===a?e.nodeService.getStartupConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)}):"private-config"===a&&e.nodeService.getPrivateConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)})})}}},{key:"downloadByHtmlTag",value:function(e){var i=document.createElement("a");i.setAttribute("href","data:".concat("text/plain",";charset=utf-8,").concat(encodeURIComponent(e))),"vpcs"===this.node.node_type?i.setAttribute("download","".concat(this.node.name,"_startup.vpc")):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&i.setAttribute("download","".concat(this.node.name,"_startup.cfg"));var a=new MouseEvent("click");i.dispatchEvent(a)}}]),n}();HA.\u0275fac=function(r){return new(r||HA)(t.Y36(Fr),t.Y36(Gr))},HA.\u0275cmp=t.Xpm({type:HA,selectors:[["app-export-config-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,nUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},dependencies:[le.O5,Er,Dn],encapsulation:2});var rUe=["fileInput"],jA=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,U.Z)(n,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open(oT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){e.configType=a,e.fileInput.nativeElement.click()})}else this.configType="startup-config",this.fileInput.nativeElement.click()}},{key:"importConfig",value:function(e){var i=this,o=e.target.files[0],a=new FileReader;a.onload=function(s){var l=a.result;"string"!=typeof l&&(l=l.toString()),"startup-config"===i.configType?i.nodeService.saveConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))}):"private-config"===i.configType&&i.nodeService.savePrivateConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))})},a.readAsText(o)}}]),n}();jA.\u0275fac=function(r){return new(r||jA)(t.Y36(Fr),t.Y36(Zn),t.Y36(Gr))},jA.\u0275cmp=t.Xpm({type:jA,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(rUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.fileInput=i.first))},inputs:{controller:"controller",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"input",0,1),t.NdJ("change",function(o){return e.importConfig(o)}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){return e.triggerClick()}),t.TgZ(3,"mat-icon"),t._uU(4,"call_received"),t.qZA(),t.TgZ(5,"span"),t._uU(6,"Import config"),t.qZA()())},dependencies:[Er,Dn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var lT,I5,aT={UKNOWN:"Unknown"},nW={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:aT.UKNOWN},O5={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},sT={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},lv={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:aT.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Lse=[lv.PS4,lv.CHROME_BOOK,lv.MAC,lv.DELL,lv.ASUS,lv.UNKNOWN],iUe={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:aT.UKNOWN},oUe={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:aT.UKNOWN.toLowerCase()},Zse={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},sUe=Object.assign(Object.assign(Object.assign(Object.assign({},O5),sT),Zse),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),rW={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},iW={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},lUe=Object.keys(rW).reduce(function(n,r){return n[r]=rW[r],n},{}),Nse=Object.keys(iW).reduce(function(n,r){return n[nW[r]]=iW[r],n},{}),Kp=Object.freeze({__proto__:null,GENERAL:aT,BROWSERS:nW,MOBILES_RE:O5,TABLETS_RE:sT,DEVICES:lv,DESKTOP_DEVICES:Lse,OS:iUe,OS_VERSIONS:oUe,OS_RE:Zse,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:sUe,OS_VERSIONS_RE_MAP:rW,BROWSER_VERSIONS_RE_MAP:iW,OS_VERSIONS_RE:lUe,BROWSER_VERSIONS_RE:Nse}),uUe=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"test",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(e):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(e,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(e,a)}):!(!i||!i.not)&&!this.test(e,i.not)}},{key:"exec",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(e):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(e,s)},null):null}}]),n}();!function(n){n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown"}(lT||(lT={})),function(n){n.Portrait="portrait",n.Landscape="landscape"}(I5||(I5={}));var oW="iPad",Ob=function(){function n(r){(0,B.Z)(this,n),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new uUe,this.deviceType="",this.orientation="",(0,le.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,U.Z)(n,[{key:"setDeviceInfo",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;i!==this.userAgent&&(this.userAgent=i);var o=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).reduce(function(u,d){return"device"===Kp[l.const][d]&&(0,le.NF)(e.platformId)&&(e.reTree.test(e.userAgent,sT[oW])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[Kp[l.const][d]]=oW,Object):(u[Kp[l.const][d]]=e.reTree.test(i,Kp["".concat(l.const,"_RE")][d]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).map(function(u){return Kp[l.const][u]}).reduce(function(u,d){return"device"===l.prop&&u===Kp[l.const].ANDROID?e[l.prop][d]?d:u:u===Kp[l.const].UNKNOWN&&e[l.prop][d]?d:u},Kp[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==nW.UNKNOWN){var a=Nse[this.browser],s=this.reTree.exec(i,a);s&&(this.browser_version=s[1])}"undefined"!=typeof window&&window.matchMedia?this.orientation=window.matchMedia("(orientation: landscape)").matches?I5.Landscape:I5.Portrait:this.orientation=aT.UKNOWN,this.deviceType=this.isTablet()?lT.Tablet:this.isMobile(this.userAgent)?lT.Mobile:this.isDesktop(this.userAgent)?lT.Desktop:lT.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(i))return!1;var o=Object.keys(O5).find(function(a){return e.reTree.test(i,O5[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,le.NF)(this.platformId)&&(this.reTree.test(this.userAgent,sT[oW])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(sT).find(function(a){return!!e.reTree.test(i,sT[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==lv.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&Lse.indexOf(this.device)>-1}}]),n}();Ob.\u0275fac=function(r){return new(r||Ob)(t.LFG(t.Lbi))},Ob.\u0275prov=t.Yz7({token:Ob,factory:Ob.\u0275fac,providedIn:"root"});var GA=function(){function n(r,e,i){(0,B.Z)(this,n),this.toasterService=r,this.nodeService=e,this.deviceService=i}return(0,U.Z)(n,[{key:"openConsole",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.startConsole()})}},{key:"createHiddenIframe",value:function(e,i){var o=document.createElement("iframe");return o.src=i,o.id="hiddenIframe",o.style.display="none",e.appendChild(o),o}},{key:"openUriUsingFirefox",value:function(e){var i=document.querySelector("#hiddenIframe");i||(i=this.createHiddenIframe(document.body,"about:blank"));try{i.contentWindow.location.href=e}catch(o){"NS_ERROR_UNKNOWN_PROTOCOL"===o.name&&this.toasterService.error("Protocol handler does not exist")}}},{key:"startConsole",value:function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else{("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.controller.host);var e=this.deviceService.getDeviceInfo();try{var i;if("telnet"===this.node.console_type)i="gns3+telnet://".concat(this.node.console_host,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else if("vnc"===this.node.console_type)i="gns3+vnc://".concat(this.node.console_host,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else if(this.node.console_type.startsWith("spice"))i="gns3+spice://".concat(this.node.console_host,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else{if(this.node.console_type.startsWith("http"))return i="".concat(this.node.console_type,"://").concat(this.node.console_host,":").concat(this.node.console),window.open(i);this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.")}"Firefox"===e.browser?this.openUriUsingFirefox(i):location.assign(i)}catch(o){this.toasterService.error(o)}}}}]),n}();GA.\u0275fac=function(r){return new(r||GA)(t.Y36(Zn),t.Y36(Fr),t.Y36(Ob))},GA.\u0275cmp=t.Xpm({type:GA,selectors:[["app-console-device-action-browser"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var zA=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.symbol=this.node.symbol}},{key:"symbolChanged",value:function(e){this.symbol=e}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSelectClick",value:function(){var e=this;this.nodeService.updateSymbol(this.controller,this.node,this.symbol).subscribe(function(){e.onCloseClick()})}}]),n}();zA.\u0275fac=function(r){return new(r||zA)(t.Y36(cr),t.Y36(Fr))},zA.\u0275cmp=t.Xpm({type:zA,selectors:[["app-change-symbol-dialog"]],inputs:{controller:"controller",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"controller","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSelectClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change symbol for node: ",e.node.name,""),t.xp6(3),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[fn,br,fr,Tk],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var WA=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(zA,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function cUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.reloadNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"refresh"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Reload"),t.qZA()()}}WA.\u0275fac=function(r){return new(r||WA)(t.Y36(Gr))},WA.\u0275cmp=t.Xpm({type:WA,selectors:[["app-change-symbol-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeSymbol()}),t.TgZ(1,"mat-icon"),t._uU(2,"find_replace"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change symbol"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var VA=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r,this.filteredNodes=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodes.forEach(function(i){("vpcs"===i.node_type||"qemu"===i.node_type||"virtualbox"===i.node_type||"vmware"===i.node_type)&&e.filteredNodes.push(i)})}},{key:"reloadNodes",value:function(){var e=this;this.filteredNodes.forEach(function(i){e.nodeService.reload(e.controller,i).subscribe(function(o){})})}}]),n}();function dUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}VA.\u0275fac=function(r){return new(r||VA)(t.Y36(Fr))},VA.\u0275cmp=t.Xpm({type:VA,selectors:[["app-reload-node-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,cUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.filteredNodes.length>0)},dependencies:[le.O5,Er,Dn],encapsulation:2});var YA=function(){function n(r){(0,B.Z)(this,n),this.nodeService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"suspendNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.suspend(e.controller,i).subscribe(function(o){})})}}]),n}();function fUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function pUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function hUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function mUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function _Ue(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Actions"),t.qZA())}function gUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",28)(1,"button",29),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",30),t._uU(3,"delete"),t.qZA()()()}}function vUe(n,r){1&n&&t._UZ(0,"tr",31)}function yUe(n,r){1&n&&t._UZ(0,"tr",32)}function bUe(n,r){if(1&n&&(t.TgZ(0,"table",19),t.ynx(1,20),t.YNc(2,fUe,2,0,"th",21),t.YNc(3,pUe,2,1,"td",22),t.BQk(),t.ynx(4,23),t.YNc(5,hUe,2,0,"th",21),t.YNc(6,mUe,2,1,"td",22),t.BQk(),t.ynx(7,24),t.YNc(8,_Ue,2,0,"th",21),t.YNc(9,gUe,4,0,"td",22),t.BQk(),t.YNc(10,vUe,1,0,"tr",25),t.YNc(11,yUe,1,0,"tr",26),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}YA.\u0275fac=function(r){return new(r||YA)(t.Y36(Fr))},YA.\u0275cmp=t.Xpm({type:YA,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,dUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[le.O5,Er,Dn],encapsulation:2});var KA=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceVci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationVci:new J.p4("",J.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new J.p4("",J.kI.required),destinationVpi:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVpi,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVpi,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Yn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Yw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function CUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Name"),t.qZA())}function wUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function kUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Local port"),t.qZA())}function TUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rport)}}function MUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function SUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rhost)}}function EUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Remote port"),t.qZA())}function xUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.lport)}}function DUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function AUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function OUe(n,r){1&n&&t._UZ(0,"tr",22)}function IUe(n,r){1&n&&t._UZ(0,"tr",23)}function PUe(n,r){if(1&n&&(t.TgZ(0,"table",8),t.ynx(1,9),t.YNc(2,CUe,2,0,"th",10),t.YNc(3,wUe,2,1,"td",11),t.BQk(),t.ynx(4,12),t.YNc(5,kUe,2,0,"th",10),t.YNc(6,TUe,2,1,"td",11),t.BQk(),t.ynx(7,13),t.YNc(8,MUe,2,0,"th",10),t.YNc(9,SUe,2,1,"td",11),t.BQk(),t.ynx(10,14),t.YNc(11,EUe,2,0,"th",10),t.YNc(12,xUe,2,1,"td",11),t.BQk(),t.ynx(13,15),t.YNc(14,DUe,2,0,"th",10),t.YNc(15,AUe,4,0,"td",11),t.BQk(),t.YNc(16,OUe,1,0,"tr",16),t.YNc(17,IUe,1,0,"tr",17),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.dataSourceUdp),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function RUe(n,r){1&n&&t._UZ(0,"br")}KA.\u0275fac=function(r){return new(r||KA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},KA.\u0275cmp=t.Xpm({type:KA,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,bUe,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"mat-checkbox",8),t.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),t._uU(12," Use VPI only (VP tunnel) "),t.qZA(),t.TgZ(13,"form",5),t._uU(14," Source "),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()()(),t.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),t.qZA()()(),t.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),t.NdJ("ngModelChange",function(o){return e.sourceVci=o}),t.qZA()(),t._uU(23," Destination "),t.TgZ(24,"mat-form-field",6)(25,"input",12),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()()(),t.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),t.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),t.qZA()()(),t.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),t.NdJ("ngModelChange",function(o){return e.destinationVci=o}),t.qZA()()(),t.TgZ(32,"button",15),t.NdJ("click",function(){return e.add()}),t._uU(33,"Add"),t.qZA()()()()(),t.TgZ(34,"div",16)(35,"button",17),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(36,"Cancel"),t.qZA(),t.TgZ(37,"button",18),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(38,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("ngModel",e.useVpiOnly),t.xp6(2),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.sourceVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.sourceVci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.destinationVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.destinationVci))},dependencies:[le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,br,fr,ti,mi],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var qA=function(){function n(r){(0,B.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAddUdpInterface",value:function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.dataSourceUdp=this.dataSourceUdp.filter(function(i){return i!==e})}}]),n}();qA.\u0275fac=function(r){return new(r||qA)(t.Y36(kc))},qA.\u0275cmp=t.Xpm({type:qA,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.YNc(0,PUe,18,3,"table",0),t.YNc(1,RUe,1,0,"br",1),t.TgZ(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(o){return e.newPort.name=o}),t.qZA()(),t.TgZ(4,"mat-form-field",2)(5,"input",4),t.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),t.qZA()(),t.TgZ(6,"mat-form-field",2)(7,"input",5),t.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),t.qZA()(),t.TgZ(8,"mat-form-field",2)(9,"input",6),t.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),t.qZA()(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddUdpInterface()}),t._uU(11,"Add"),t.qZA()),2&r&&(t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",e.newPort.name),t.xp6(2),t.Q6J("ngModel",e.newPort.lport),t.xp6(2),t.Q6J("ngModel",e.newPort.rhost),t.xp6(2),t.Q6J("ngModel",e.newPort.rport))},dependencies:[le.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,mi],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var LUe=["udpTunnels"];function ZUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function NUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function BUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function FUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var UUe=function(){return{standalone:!0}};function HUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t.YNc(2,ZUe,5,1,"div",10),t.TgZ(3,"mat-form-field",11)(4,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(5,NUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(6,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(7,"Add"),t.qZA()(),t.TgZ(8,"mat-tab",15),t.YNc(9,BUe,5,1,"div",10),t.TgZ(10,"mat-form-field",16)(11,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(12,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(13,"Add"),t.qZA()(),t.TgZ(14,"mat-tab",18),t._UZ(15,"app-udp-tunnels",19,20),t.qZA(),t.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(21,"mat-form-field",11)(22,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,FUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(24,"mat-form-field",16)(25,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_host=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",16)(27,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",16)(29,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,UUe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(4),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(4),t.Q6J("dataSourceUdp",i.portsMappingUdp),t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_http_path),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var JA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.portsMappingEthernet=e.node.properties.ports_mapping.filter(function(o){return"ethernet"===o.type}),e.portsMappingTap=e.node.properties.ports_mapping.filter(function(o){return"tap"===o.type}),e.portsMappingUdp=e.node.properties.ports_mapping.filter(function(o){return"udp"===o.type})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function jUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),t._uU(3),t.qZA(),t.TgZ(4,"span",7)(5,"input",9),t.NdJ("ngModelChange",function(a){var l=t.CHM(e).$implicit;return t.KtG(l.port_name=a)}),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.hij(" Adapter ",i.adapter_number," "),t.xp6(2),t.Q6J("ngModel",i.port_name)}}function GUe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"span",7),t._uU(3," Adapter number "),t.qZA(),t.TgZ(4,"span",7),t._uU(5," Port name "),t.qZA()(),t.TgZ(6,"div")(7,"mat-list"),t.YNc(8,jUe,6,2,"mat-list-item",8),t.qZA()()()),2&n){var e=t.oxw();t.xp6(8),t.Q6J("ngForOf",e.adapters)}}JA.\u0275fac=function(r){return new(r||JA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},JA.\u0275cmp=t.Xpm({type:JA,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(LUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.udpTunnels=i.first))},decls:13,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,HUe,33,16,"mat-tab-group",5),t.qZA(),t._UZ(7,"div"),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(12,"Apply"),t.qZA()()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr,di.gD,Gt.ey,Fi.SP,Fi.uX,qA],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var QA=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(o){e.adapters.push({adapter_number:0,port_name:""})})}},{key:"onSaveClick",value:function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node ".concat(e.node.name))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();QA.\u0275fac=function(r){return new(r||QA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ip))},QA.\u0275cmp=t.Xpm({type:QA,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,GUe,9,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configure custom adapters for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[le.sg,le.O5,J.Fj,J.JJ,J.On,fn,qn,br,fr,mm,Oa],styles:["th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]});function zUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",5)(1,"textarea",6),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.configuration=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.configuration)}}var XA=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNetworkConfiguration(this.controller,this.node).subscribe(function(i){e.configuration=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveNetworkConfiguration(this.controller,this.node,this.configuration).subscribe(function(i){e.onCancelClick(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function WUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function VUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}XA.\u0275fac=function(r){return new(r||XA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},XA.\u0275cmp=t.Xpm({type:XA,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,zUe,2,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Edit network configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[le.O5,J.Fj,J.JJ,J.On,fn,qn,br,fr],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var aW=function(){return{standalone:!0}};function YUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.start_command=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapters=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.memory=a)}),t.qZA(),t.TgZ(12,"span",16),t._uU(13,"MB"),t.qZA()(),t.TgZ(14,"mat-form-field",11)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.configureCustomAdapters())}),t._uU(17," Configure custom adapters "),t.qZA(),t.TgZ(18,"mat-form-field",19)(19,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(20,WUe,2,2,"mat-option",21),t.qZA()(),t.TgZ(21,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA(),t.TgZ(23,"mat-form-field",11)(24,"mat-select",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_resolution=a)}),t.YNc(25,VUe,2,2,"mat-option",21),t.qZA()(),t.TgZ(26,"mat-form-field",11)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",11)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_path=a)}),t.qZA()(),t.TgZ(30,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.editNetworkConfiguration())}),t._uU(31," Edit network configuration "),t.qZA()(),t.TgZ(32,"h6"),t._uU(33,"Environment"),t.qZA(),t.TgZ(34,"mat-form-field",11)(35,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.environment=a)}),t.qZA()()(),t.TgZ(36,"mat-tab",27)(37,"h6"),t._uU(38,"Extra hosts"),t.qZA(),t.TgZ(39,"mat-form-field",11)(40,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_hosts=a)}),t.qZA()(),t._UZ(41,"br"),t.TgZ(42,"h6"),t._uU(43,"Additional volumes"),t.qZA(),t.TgZ(44,"mat-form-field",11)(45,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_volumes=a)}),t.qZA()()(),t.TgZ(46,"mat-tab",28)(47,"mat-form-field",11)(48,"textarea",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.start_command),t.xp6(2),t.Q6J("ngModel",i.node.properties.adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.memory),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(20,aW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(21,aW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(22,aW))("ngModel",i.node.properties.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_path),t.xp6(6),t.Q6J("ngModel",i.node.properties.environment),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_hosts),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_volumes),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var $A=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogReference=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.nonNegativeValidator=s,this.dialog=l,this.consoleTypes=[],this.consoleResolutions=["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),memory:new J.p4("",s.get),cpus:new J.p4("",s.get),startCommand:new J.p4(""),consoleHttpPort:new J.p4("",J.kI.required),consoleHttpPath:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.node.properties.cpus||(e.node.properties.cpus=0)})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes()}},{key:"configureCustomAdapters",value:function(){this.dialogRef=this.dialog.open(QA,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open(XA,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogReference.close()}}]),n}();function KUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qUe(n,r){if(1&n&&t._UZ(0,"app-ports",17,18),2&n){var e=t.oxw(2);t.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}$A.\u0275fac=function(r){return new(r||$A)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ip),t.Y36(uf),t.Y36(Gr))},$A.\u0275cmp=t.Xpm({type:$A,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["formControlName","memory","matInput","","type","number","placeholder","Maximum memory",3,"ngModel","ngModelChange"],["matSuffix",""],["formControlName","cpus","matInput","","type","number","placeholder","Maximum CPUs",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,YUe,49,23,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var JUe=function(){return{standalone:!0}};function QUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(7,KUe,2,2,"mat-option",14),t.qZA()()(),t.YNc(8,qUe,2,1,"app-ports",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(6,JUe))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngIf",i.node.properties)}}var eO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();eO.\u0275fac=function(r){return new(r||eO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},eO.\u0275cmp=t.Xpm({type:eO,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Rg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2),t.YNc(4,QUe,9,7,"div",3),t.qZA()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(3),t.Q6J("ngIf",e.node))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr,di.gD,Gt.ey,Rg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var XUe=function(){return{standalone:!0}},tO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.numberOfPorts=e.node.ports.length,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"onSaveClick",value:function(){var e=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.node.properties.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})}else this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function $Ue(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function e7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,$Ue,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.qZA(),t.TgZ(12,"mat-tab",17),t._UZ(13,"br"),t.TgZ(14,"form",10)(15,"mat-form-field",11)(16,"input",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(17,"span",19),t._uU(18,"MB"),t.qZA()(),t.TgZ(19,"mat-form-field",11)(20,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(21,"span",19),t._uU(22,"MB"),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(5),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.nvram),t.xp6(5),t.Q6J("ngModel",i.node.properties.usage)}}tO.\u0275fac=function(r){return new(r||tO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},tO.\u0275cmp=t.Xpm({type:tO,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",6)(10,"input",8),t.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),t.qZA()()()()()()(),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",t.DdM(5,XUe)))},dependencies:[J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var nO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function t7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function n7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.ram)}}function r7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.nvram)}}function i7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,t7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_default_iou_values=a)}),t._uU(13," Use default IOU values for memories "),t.qZA(),t.YNc(14,n7e,4,1,"mat-form-field",17),t.YNc(15,r7e,4,1,"mat-form-field",17),t.qZA(),t.TgZ(16,"mat-tab",18),t._UZ(17,"br"),t.TgZ(18,"form",10)(19,"mat-form-field",11)(20,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ethernet_adapters=a)}),t.qZA()(),t.TgZ(21,"mat-form-field",11)(22,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.serial_adapters=a)}),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(3),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.serial_adapters),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}nO.\u0275fac=function(r){return new(r||nO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm))},nO.\u0275cmp=t.Xpm({type:nO,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,e7e,26,9,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var rO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();rO.\u0275fac=function(r){return new(r||rO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Lg))},rO.\u0275cmp=t.Xpm({type:rO,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,i7e,26,12,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var iO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function o7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function a7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function s7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function l7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function u7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function c7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Size options "),t.TgZ(2,"mat-form-field",6)(3,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.preallocation=a)}),t.YNc(4,a7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(5,"mat-form-field",6)(6,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.cluster_size=a)}),t.YNc(7,s7e,2,2,"mat-option",9),t.qZA()(),t._uU(8," Refcounts "),t.TgZ(9,"mat-form-field",6)(10,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.lazy_refcounts=a)}),t.YNc(11,l7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(12,"mat-form-field",6)(13,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.refcount_bits=a)}),t.YNc(14,u7e,2,2,"mat-option",9),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.qemuImg.preallocation),t.xp6(1),t.Q6J("ngForOf",i.preallocationsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.cluster_size),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions),t.xp6(3),t.Q6J("ngModel",i.qemuImg.lazy_refcounts),t.xp6(1),t.Q6J("ngForOf",i.lazyRefcountsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.refcount_bits),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions)}}function d7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("dynamic"))}),t._uU(3,"Dynamic"),t.qZA(),t.TgZ(4,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("fixed"))}),t._uU(5,"Fixed"),t.qZA()()()}}function f7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function p7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Adapter type"),t._UZ(2,"br"),t.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("ide"))}),t._uU(5,"IDE"),t.qZA(),t.TgZ(6,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("lsilogic"))}),t._uU(7,"LSI Logic"),t.qZA(),t.TgZ(8,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("buslogic"))}),t._uU(9,"BusLogic"),t.qZA(),t.TgZ(10,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("legacyESX"))}),t._uU(11,"Legacy (ESX)"),t.qZA()(),t._UZ(12,"br")(13,"br"),t._uU(14," Image file sizing mode"),t._UZ(15,"br"),t.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("streamOptimized"))}),t._uU(18,"Stream optimized"),t.qZA(),t.TgZ(19,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentSparse"))}),t._uU(20,"Split every 2GB (sparse)"),t.qZA(),t.TgZ(21,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentFlat"))}),t._uU(22,"Split every 2GB (flat)"),t.qZA(),t.TgZ(23,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicSparse"))}),t._uU(24,"Monolithic sparse"),t.qZA(),t.TgZ(25,"mat-radio-button",26),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicFlat"))}),t._uU(26,"Monolithic flat"),t.qZA()(),t._UZ(27,"br")(28,"br"),t.TgZ(29,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.zeroed_grain=a)}),t.YNc(30,f7e,2,2,"mat-option",9),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(29),t.Q6J("ngModel",i.qemuImg.zeroed_grain),t.xp6(1),t.Q6J("ngForOf",i.zeroedGrainOptions)}}iO.\u0275fac=function(r){return new(r||iO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},iO.\u0275cmp=t.Xpm({type:iO,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,qn,br,fr],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var oO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.qemuImg={}}},{key:"setSubformat",value:function(e){this.qemuImg.subformat=e}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.controller,this.qemuImg).subscribe(function(){e.dialogRef.close()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();oO.\u0275fac=function(r){return new(r||oO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu))},oO.\u0275cmp=t.Xpm({type:oO,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Qemu image configurator"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),t.qZA()()(),t.TgZ(9,"mat-form-field",6)(10,"mat-select",8),t.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),t.YNc(11,o7e,2,2,"mat-option",9),t.qZA()(),t.YNc(12,c7e,15,8,"div",10),t.YNc(13,d7e,6,0,"div",10),t.YNc(14,p7e,31,2,"div",10),t.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),t.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),t.qZA()(),t.TgZ(18,"mat-form-field",6)(19,"input",12),t.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),t.qZA()()()()()()(),t.TgZ(20,"div",13)(21,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(24,"Apply"),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.qemu_img),t.xp6(2),t.Q6J("ngModel",e.qemuImg.format),t.xp6(1),t.Q6J("ngForOf",e.formatOptions),t.xp6(1),t.Q6J("ngIf","qcow2"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vmdk"===e.qemuImg.format),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.path),t.xp6(2),t.Q6J("ngModel",e.qemuImg.size))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr,di.gD,Gt.ey,rs,zs],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var h7e=["customAdapters"];function m7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function g7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function v7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function y7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function b7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function C7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function w7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function k7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function T7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function M7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function S7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",50),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.cpu_throttling)}}function x7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",49),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var D7e=function(){return{standalone:!0}};function A7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.platform=a)}),t.YNc(8,m7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(9,"mat-form-field",11)(10,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(11,"span",16),t._uU(12,"MB"),t.qZA()()(),t.TgZ(13,"mat-form-field",11)(14,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.boot_priority=a)}),t.YNc(17,_7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(18,"mat-form-field",11)(19,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(20,g7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,v7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(24,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_auto_start=a)}),t._uU(25," Auto start console "),t.qZA()(),t.TgZ(26,"mat-tab",23)(27,"mat-card")(28,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.openQemuImageCreator())}),t._uU(29," Create Qemu image "),t.qZA(),t._UZ(30,"mat-card-title"),t.TgZ(31,"mat-card-subtitle"),t._uU(32," HDA (Primary Master) "),t.qZA(),t.TgZ(33,"mat-card-content")(34,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_image=a)}),t.YNc(35,y7e,2,2,"mat-option",14),t.qZA(),t.TgZ(36,"mat-form-field",11)(37,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_interface=a)}),t.YNc(38,b7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(39,"mat-card"),t._UZ(40,"mat-card-title"),t.TgZ(41,"mat-card-subtitle"),t._uU(42," HDB (Primary Slave) "),t.qZA(),t.TgZ(43,"mat-card-content")(44,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_image=a)}),t.YNc(45,C7e,2,2,"mat-option",14),t.qZA(),t.TgZ(46,"mat-form-field",11)(47,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_interface=a)}),t.YNc(48,w7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(49,"mat-card"),t._UZ(50,"mat-card-title"),t.TgZ(51,"mat-card-subtitle"),t._uU(52," HDC (Secondary Master) "),t.qZA(),t.TgZ(53,"mat-card-content")(54,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_image=a)}),t.YNc(55,k7e,2,2,"mat-option",14),t.qZA(),t.TgZ(56,"mat-form-field",11)(57,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_interface=a)}),t.YNc(58,T7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(59,"mat-card"),t._UZ(60,"mat-card-title"),t.TgZ(61,"mat-card-subtitle"),t._uU(62," HDD (Secondary Slave) "),t.qZA(),t.TgZ(63,"mat-card-content")(64,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_image=a)}),t.YNc(65,M7e,2,2,"mat-option",14),t.qZA(),t.TgZ(66,"mat-form-field",11)(67,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_interface=a)}),t.YNc(68,S7e,2,2,"mat-option",14),t.qZA()()()()(),t.TgZ(69,"mat-tab",27)(70,"div")(71,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(74);return t.KtG(a.click())}),t._uU(72,"Browse"),t.qZA(),t.TgZ(73,"input",29,30),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(75,"mat-form-field",31)(76,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cdrom_image=a)}),t.qZA()()()(),t.TgZ(77,"mat-tab",33),t._UZ(78,"br")(79,"br"),t.TgZ(80,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.replicate_network_connection_state=a)}),t._uU(81," Replicate network connection state "),t.qZA(),t._UZ(82,"app-custom-adapters-table",34,35),t.qZA(),t.TgZ(84,"mat-tab",36)(85,"mat-card"),t._UZ(86,"mat-card-title"),t.TgZ(87,"mat-card-subtitle"),t._uU(88," Linux boot specific settings "),t.qZA(),t.TgZ(89,"mat-card-content")(90,"div")(91,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(94);return t.KtG(a.click())}),t._uU(92," Browse "),t.qZA(),t.TgZ(93,"input",29,37),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(95,"mat-form-field",31)(96,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.initrd=a)}),t.qZA()()(),t.TgZ(97,"div")(98,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(99," Browse "),t.qZA(),t.TgZ(100,"input",29,39),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(102,"mat-form-field",31)(103,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_image=a)}),t.qZA()()(),t.TgZ(104,"mat-form-field",11)(105,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(106,"mat-card"),t._UZ(107,"mat-card-title"),t.TgZ(108,"mat-card-subtitle"),t._uU(109," Bios "),t.qZA(),t.TgZ(110,"mat-card-content")(111,"div")(112,"button",28),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(115);return t.KtG(a.click())}),t._uU(113," Browse "),t.qZA(),t.TgZ(114,"input",29,42),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(116,"mat-form-field",31)(117,"input",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.bios_image=a)}),t.qZA()()()()(),t.TgZ(118,"mat-card"),t._UZ(119,"mat-card-title"),t.TgZ(120,"mat-card-subtitle"),t._uU(121," Optimization "),t.qZA(),t.TgZ(122,"mat-card-content")(123,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(124," Activate CPU throttling "),t.qZA(),t.YNc(125,E7e,2,1,"mat-form-field",44),t.TgZ(126,"mat-form-field",11)(127,"mat-select",45),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.process_priority=a)}),t.YNc(128,x7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(129,"mat-card"),t._UZ(130,"mat-card-title"),t.TgZ(131,"mat-card-subtitle"),t._uU(132," Additional settings "),t.qZA(),t.TgZ(133,"mat-card-content")(134,"mat-form-field",11)(135,"input",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.options=a)}),t.qZA()(),t._UZ(136,"br"),t.TgZ(137,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.tpm=a)}),t._uU(138," Enable the Trusted Platform Module (TPM) "),t.qZA(),t._UZ(139,"br"),t.TgZ(140,"mat-checkbox",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.uefi=a)}),t._uU(141," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(142,"mat-tab",47)(143,"mat-form-field",11)(144,"textarea",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",t.DdM(47,D7e)),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(2),t.Q6J("ngModel",i.node.properties.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.properties.console_auto_start),t.xp6(10),t.Q6J("ngModel",i.node.properties.hda_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdb_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdc_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdd_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(8),t.Q6J("ngModel",i.node.properties.cdrom_image),t.xp6(4),t.Q6J("ngModel",i.node.properties.replicate_network_connection_state),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(14),t.Q6J("ngModel",i.node.properties.initrd),t.xp6(7),t.Q6J("ngModel",i.node.properties.kernel_image),t.xp6(2),t.Q6J("ngModel",i.node.properties.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.node.properties.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.node.properties.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.node.properties.options),t.xp6(2),t.Q6J("ngModel",i.node.properties.tpm),t.xp6(3),t.Q6J("ngModel",i.node.properties.uefi),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var aO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialog=r,this.dialogRef=e,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=l,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.selectPlatform=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.selectPlatform=this.qemuConfigurationService.getPlatform()}},{key:"openQemuImageCreator",value:function(){this.dialogRefQemuImageCreator=this.dialog.open(oO,this.conf),this.dialogRefQemuImageCreator.componentInstance.controller=this.controller}},{key:"uploadCdromImageFile",value:function(e){this.node.properties.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.node.properties.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.node.properties.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.node.properties.bios_image=e.target.files[0].name}},{key:"getConfiguration",value:function(){var e=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(i){e.networkTypes.push(i)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function O7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function I7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function P7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function R7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function L7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Actions"),t.qZA())}function Z7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",25)(1,"button",26),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",27),t._uU(3,"delete"),t.qZA()()()}}function N7e(n,r){1&n&&t._UZ(0,"tr",28)}function B7e(n,r){1&n&&t._UZ(0,"tr",29)}function F7e(n,r){if(1&n&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,O7e,2,0,"th",18),t.YNc(3,I7e,2,1,"td",19),t.BQk(),t.ynx(4,20),t.YNc(5,P7e,2,0,"th",18),t.YNc(6,R7e,2,1,"td",19),t.BQk(),t.ynx(7,21),t.YNc(8,L7e,2,0,"th",18),t.YNc(9,Z7e,4,0,"td",19),t.BQk(),t.YNc(10,N7e,1,0,"tr",22),t.YNc(11,B7e,1,0,"tr",23),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}aO.\u0275fac=function(r){return new(r||aO)(t.Y36(Gr),t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu),t.Y36(Em))},aO.\u0275cmp=t.Xpm({type:aO,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(h7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,A7e,145,48,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,Y0,lk,uk,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var sO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceDlci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationDlci:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){if(this.inputForm.valid){var e={portIn:"".concat(this.sourcePort,":").concat(this.sourceDlci),portOut:"".concat(this.destinationPort,":").concat(this.destinationDlci)};this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Yn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Yw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();sO.\u0275fac=function(r){return new(r||sO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},sO.\u0275cmp=t.Xpm({type:sO,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,F7e,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"form",5),t._uU(12," Source "),t.TgZ(13,"mat-form-field",6)(14,"input",8),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()(),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),t.qZA()(),t._uU(17," Destination "),t.TgZ(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()(),t.TgZ(20,"mat-form-field",6)(21,"input",11),t.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),t.qZA()()(),t.TgZ(22,"button",12),t.NdJ("click",function(){return e.add()}),t._uU(23,"Add"),t.qZA()()()()(),t.TgZ(24,"div",13)(25,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(28,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(2),t.Q6J("ngModel",e.sourceDlci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(2),t.Q6J("ngModel",e.destinationDlci))},dependencies:[le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,br,fr,mi],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var U7e=["customAdapters"];function H7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function j7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var sW=function(){return{standalone:!0}};function G7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,H7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(13,"span",18),t._uU(14,"MB"),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(17,j7e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(18,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(19," Start VM in headless mode "),t.qZA()(),t.TgZ(20,"mat-tab",21),t._UZ(21,"br"),t.TgZ(22,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA(),t._UZ(24,"app-custom-adapters-table",22,23),t.qZA(),t.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,sW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,sW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(19,sW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var lO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();lO.\u0275fac=function(r){return new(r||lO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng))},lO.\u0275cmp=t.Xpm({type:lO,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(U7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,G7e,29,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,fn,ci,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var z7e=["customAdapters"];function W7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function V7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var lW=function(){return{standalone:!0}};function Y7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,W7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(13,V7e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(14,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(15," Start VM in headless mode "),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.linked_clone=a)}),t._uU(18," Use a linked base VM (experimental) "),t.qZA()(),t.TgZ(19,"mat-tab",19),t._UZ(20,"br"),t.TgZ(21,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(22," Allow GNS3 to override non custom VMware adapter "),t.qZA(),t._UZ(23,"app-custom-adapters-table",20,21),t.qZA(),t.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,lW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,lW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(19,lW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(3),t.Q6J("ngModel",i.node.properties.linked_clone),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var uO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function K7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}uO.\u0275fac=function(r){return new(r||uO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg))},uO.\u0275cmp=t.Xpm({type:uO,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(z7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,Y7e,28,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr,ti,di.gD,Gt.ey,Fi.SP,Fi.uX,Zg],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var Bse=function(){return{standalone:!0}},cO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();cO.\u0275fac=function(r){return new(r||cO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},cO.\u0275cmp=t.Xpm({type:cO,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"mat-select",9),t.NdJ("ngModelChange",function(o){return e.node.console_type=o}),t.YNc(11,K7e,2,2,"mat-option",10),t.qZA()(),t.TgZ(12,"mat-checkbox",11),t.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),t._uU(13," Auto start console "),t.qZA()()()()()(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(18,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Bse))("ngModel",e.node.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(9,Bse))("ngModel",e.node.console_auto_start))},dependencies:[le.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,fn,ci,qn,br,fr,ti,di.gD,Gt.ey],styles:[".form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var dO=function(){function n(r){(0,B.Z)(this,n),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,U.Z)(n,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(cO,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(tO,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(eO,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(JA,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(nO,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(rO,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(aO,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(lO,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(uO,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open($A,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(iO,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(sO,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(KA,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),n}();function q7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"search"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start Wireshark"),t.qZA()()}}dO.\u0275fac=function(r){return new(r||dO)(t.Y36(Gr))},dO.\u0275cmp=t.Xpm({type:dO,selectors:[["app-config-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.configureNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_applications"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Configure"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var fO=function(){function n(r){(0,B.Z)(this,n),this.packetCaptureService=r}return(0,U.Z)(n,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),n}();fO.\u0275fac=function(r){return new(r||fO)(t.Y36(sv))},fO.\u0275cmp=t.Xpm({type:fO,selectors:[["app-start-capture-on-started-link-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,q7e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[le.O5,Er,Dn],encapsulation:2});var pO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){1===this.nodes.length&&0===this.drawings.length?this.command=this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.command=this.drawings[0].locked?"Unlock item":"Lock item":this.command="Lock/unlock items"}},{key:"lock",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i=this;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.nodes.forEach(function(s){s.locked=!s.locked,i.nodeService.updateNode(i.controller,s).subscribe(function(l){i.nodesDataSource.update(l)})});case 2:return a.next=4,this.drawings.forEach(function(s){s.locked=!s.locked,i.drawingService.update(i.controller,s).subscribe(function(l){i.drawingsDataSource.update(l)})});case 4:this.projectService.projectUpdateLockIcon();case 5:case"end":return a.stop()}},e,this)}))}}]),n}();pO.\u0275fac=function(r){return new(r||pO)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa),t.Y36(Ws.Y))},pO.\u0275cmp=t.Xpm({type:pO,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[t.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.lock()}),t.TgZ(1,"mat-icon"),t._uU(2,"lock"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&r&&(t.xp6(4),t.Oqu(e.command))},dependencies:[Er,Dn],encapsulation:2});var hO=function(){function n(r,e){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignHorizontally",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.y}),i/=this.nodes.length,this.nodes.forEach(function(o){o.y=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();hO.\u0275fac=function(r){return new(r||hO)(t.Y36(za.G),t.Y36(Fr))},hO.\u0275cmp=t.Xpm({type:hO,selectors:[["app-align-horizontally-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignHorizontally()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_horiz"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align horizontally"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var mO=function(){function n(r,e){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignVertically",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.x}),i/=this.nodes.length,this.nodes.forEach(function(o){o.x=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();mO.\u0275fac=function(r){return new(r||mO)(t.Y36(za.G),t.Y36(Fr))},mO.\u0275cmp=t.Xpm({type:mO,selectors:[["app-align-vertically-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignVertically()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align vertically"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var _O=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),n}();_O.\u0275fac=function(r){return new(r||_O)(t.Y36(ul))},_O.\u0275cmp=t.Xpm({type:_O,selectors:[["app-open-file-explorer-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.open()}),t.TgZ(1,"mat-icon"),t._uU(2,"tab"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Open file explorer"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var uu=function(){function n(r,e,i){(0,B.Z)(this,n),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new t.vpe,this.closeNodeConsoleTrigger=new On.xQ,this.consoleResized=new On.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,U.Z)(n,[{key:"getNumberOfColumns",value:function(){return this.lastNumberOfColumns}},{key:"getNumberOfRows",value:function(){return this.lastNumberOfRows}},{key:"setNumberOfColumns",value:function(e){this.lastNumberOfColumns=e}},{key:"setNumberOfRows",value:function(e){this.lastNumberOfRows=e}},{key:"openConsoleForNode",value:function(e){this.nodeConsoleTrigger.emit(e)}},{key:"closeConsoleForNode",value:function(e){this.closeNodeConsoleTrigger.next(e)}},{key:"resizeTerminal",value:function(e){this.consoleResized.next(e)}},{key:"getLineWidth",value:function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}},{key:"getLineHeight",value:function(){return this.defaultConsoleHeight/this.defaultNumberOfRows}},{key:"getUrl",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws")}},{key:"openConsolesForAllNodesInWidget",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles for them: ",a=0;e.forEach(function(s){"none"!==s.console_type&&("started"===s.status?(i.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){i.openConsoleForNode(s)},500)):(a++,o+=s.name+" "))}),a>0&&this.toasterService.error(o)}},{key:"openConsolesForAllNodesInNewTabs",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles in tabs for them: ",a=0;e.forEach(function(s){if("telnet"===s.console_type)if("started"===s.status){var l=i.router.url.split("/"),u="/static/web-ui/".concat(l[1],"/").concat(l[2],"/").concat(l[3],"/").concat(l[4],"/nodes/").concat(s.node_id);window.open(u)}else a++,o+=s.name+" "}),a>0&&this.toasterService.error(o)}}]),n}();uu.\u0275fac=function(r){return new(r||uu)(t.LFG(ur),t.LFG(Zn),t.LFG(fl))},uu.\u0275prov=t.Yz7({token:uu,factory:uu.\u0275fac});var gO=function(){function n(r){(0,B.Z)(this,n),this.nodeConsoleService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),n}();gO.\u0275fac=function(r){return new(r||gO)(t.Y36(uu))},gO.\u0275cmp=t.Xpm({type:gO,selectors:[["app-http-console-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var vO=function(){function n(r){(0,B.Z)(this,n),this.nodeConsoleService=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),n}();vO.\u0275fac=function(r){return new(r||vO)(t.Y36(uu))},vO.\u0275cmp=t.Xpm({type:vO,selectors:[["app-http-console-new-tab-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console in new tab"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var yO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name})}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();yO.\u0275fac=function(r){return new(r||yO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},yO.\u0275cmp=t.Xpm({type:yO,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change hostname for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,qn,br,fr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var bO=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(yO,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function J7e(n,r){if(1&n&&t._UZ(0,"app-show-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function Q7e(n,r){if(1&n&&t._UZ(0,"app-config-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function X7e(n,r){if(1&n&&t._UZ(0,"app-start-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function $7e(n,r){if(1&n&&t._UZ(0,"app-suspend-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function e9e(n,r){if(1&n&&t._UZ(0,"app-stop-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function t9e(n,r){if(1&n&&t._UZ(0,"app-reload-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function n9e(n,r){if(1&n&&t._UZ(0,"app-http-console-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function r9e(n,r){if(1&n&&t._UZ(0,"app-http-console-new-tab-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function i9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function o9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action-browser",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function a9e(n,r){if(1&n&&t._UZ(0,"app-open-file-explorer-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function s9e(n,r){if(1&n&&t._UZ(0,"app-isolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function l9e(n,r){if(1&n&&t._UZ(0,"app-unisolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function u9e(n,r){if(1&n&&t._UZ(0,"app-change-hostname-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function c9e(n,r){if(1&n&&t._UZ(0,"app-change-symbol-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function d9e(n,r){if(1&n&&t._UZ(0,"app-duplicate-action",16),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function f9e(n,r){if(1&n&&t._UZ(0,"app-edit-style-action",17),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function p9e(n,r){if(1&n&&t._UZ(0,"app-edit-text-action",18),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])("node",e.nodes[0])("label",e.labels[0])("link",e.links[0])("linkNode",e.linkNodes[0])}}function h9e(n,r){if(1&n&&t._UZ(0,"app-edit-config-action",19),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function m9e(n,r){if(1&n&&t._UZ(0,"app-export-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function _9e(n,r){if(1&n&&t._UZ(0,"app-import-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function g9e(n,r){if(1&n&&t._UZ(0,"app-move-layer-up-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function v9e(n,r){if(1&n&&t._UZ(0,"app-move-layer-down-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function y9e(n,r){if(1&n&&t._UZ(0,"app-bring-to-front-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function b9e(n,r){if(1&n&&t._UZ(0,"app-start-capture-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function C9e(n,r){if(1&n&&t._UZ(0,"app-stop-capture-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function w9e(n,r){if(1&n&&t._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function k9e(n,r){if(1&n&&t._UZ(0,"app-packet-filters-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function T9e(n,r){if(1&n&&t._UZ(0,"app-resume-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function M9e(n,r){if(1&n&&t._UZ(0,"app-suspend-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function S9e(n,r){if(1&n&&t._UZ(0,"app-reset-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function E9e(n,r){if(1&n&&t._UZ(0,"app-edit-link-style-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function x9e(n,r){if(1&n&&t._UZ(0,"app-lock-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function D9e(n,r){if(1&n&&t._UZ(0,"app-delete-action",23),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function A9e(n,r){if(1&n&&t._UZ(0,"app-align-horizontally-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function O9e(n,r){if(1&n&&t._UZ(0,"app-align-vertically-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}bO.\u0275fac=function(r){return new(r||bO)(t.Y36(Gr))},bO.\u0275cmp=t.Xpm({type:bO,selectors:[["app-change-hostname-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeHostname()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change hostname"),t.qZA()())},dependencies:[Er,Dn],encapsulation:2});var uT=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledController=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledController="bundled"===this.controller.location}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"openMenuForDrawing",value:function(e,i,o){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof Cb,this.drawings=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForNode",value:function(e,i,o){this.resetCapabilities(),this.nodes=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForLabel",value:function(e,i,o,a){this.resetCapabilities(),this.labels=[e],this.nodes=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForInterfaceLabel",value:function(e,i,o,a){this.resetCapabilities(),this.linkNodes=[e],this.links=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForListOfElements",value:function(e,i,o,a,s,l){this.resetCapabilities(),this.drawings=e,this.nodes=i,this.labels=o,this.links=a,this.setPosition(s,l),this.contextMenu.openMenu()}},{key:"resetCapabilities",value:function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1}}]),n}();function I9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function P9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s._changePageSize(a.value))}),t.YNc(2,I9e,2,2,"mat-option",18),t.qZA()()}if(2&n){var i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("panelClass",i.selectConfig.panelClass||"")("disableOptionCentering",i.selectConfig.disableOptionCentering)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function R9e(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e.pageSize)}}function L9e(n,r){if(1&n&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,P9e,3,8,"mat-form-field",14),t.YNc(4,R9e,2,1,"div",15),t.qZA()),2&n){var e=t.oxw();t.xp6(2),t.hij(" ",e._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Z9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function N9e(n,r){if(1&n){var e=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}uT.\u0275fac=function(r){return new(r||uT)(t.Y36(Dr),t.Y36(t.sBO),t.Y36(ul),t.Y36(Ws.Y))},uT.\u0275cmp=t.Xpm({type:uT,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ga,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{project:"project",controller:"controller"},decls:40,vars:41,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"controller","node",4,"ngIf"],[3,"controller","nodes",4,"ngIf"],[3,"controller","project","nodes","drawings",4,"ngIf"],[3,"controller","project","drawing",4,"ngIf"],[3,"controller","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"controller","project","node",4,"ngIf"],[3,"controller","nodes","drawings",4,"ngIf"],[3,"controller","project","link",4,"ngIf"],[3,"controller","link",4,"ngIf"],[3,"controller","nodes","drawings","links",4,"ngIf"],[3,"controller","node"],[3,"controller","nodes"],[3,"controller","project","nodes","drawings"],[3,"controller","project","drawing"],[3,"controller","project","drawing","node","label","link","linkNode"],[3,"controller","project","node"],[3,"controller","nodes","drawings"],[3,"controller","project","link"],[3,"controller","link"],[3,"controller","nodes","drawings","links"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0),t._UZ(1,"span",1),t.TgZ(2,"mat-menu",2,3),t.YNc(4,J7e,1,2,"app-show-node-action",4),t.YNc(5,Q7e,1,2,"app-config-node-action",4),t.YNc(6,X7e,1,2,"app-start-node-action",5),t.YNc(7,$7e,1,2,"app-suspend-node-action",5),t.YNc(8,e9e,1,2,"app-stop-node-action",5),t.YNc(9,t9e,1,2,"app-reload-node-action",5),t.YNc(10,n9e,1,2,"app-http-console-action",5),t.YNc(11,r9e,1,2,"app-http-console-new-tab-action",5),t.YNc(12,i9e,1,2,"app-console-device-action",5),t.YNc(13,o9e,1,2,"app-console-device-action-browser",4),t.YNc(14,a9e,1,2,"app-open-file-explorer-action",4),t.YNc(15,s9e,1,2,"app-isolate-node-action",4),t.YNc(16,l9e,1,2,"app-unisolate-node-action",4),t.YNc(17,u9e,1,2,"app-change-hostname-action",4),t.YNc(18,c9e,1,2,"app-change-symbol-action",4),t.YNc(19,d9e,1,4,"app-duplicate-action",6),t.YNc(20,f9e,1,3,"app-edit-style-action",7),t.YNc(21,p9e,1,7,"app-edit-text-action",8),t.YNc(22,h9e,1,3,"app-edit-config-action",9),t.YNc(23,m9e,1,2,"app-export-config-action",4),t.YNc(24,_9e,1,2,"app-import-config-action",4),t.YNc(25,g9e,1,3,"app-move-layer-up-action",10),t.YNc(26,v9e,1,3,"app-move-layer-down-action",10),t.YNc(27,y9e,1,3,"app-bring-to-front-action",10),t.YNc(28,b9e,1,3,"app-start-capture-action",11),t.YNc(29,C9e,1,2,"app-stop-capture-action",12),t.YNc(30,w9e,1,3,"app-start-capture-on-started-link-action",11),t.YNc(31,k9e,1,3,"app-packet-filters-action",11),t.YNc(32,T9e,1,2,"app-resume-link-action",12),t.YNc(33,M9e,1,2,"app-suspend-link-action",12),t.YNc(34,S9e,1,2,"app-reset-link-action",12),t.YNc(35,E9e,1,3,"app-edit-link-style-action",11),t.YNc(36,x9e,1,3,"app-lock-action",10),t.YNc(37,D9e,1,4,"app-delete-action",13),t.YNc(38,A9e,1,2,"app-align-horizontally-action",5),t.YNc(39,O9e,1,2,"app-align-vertically-action",5),t.qZA()()),2&r){var i=t.MAs(3);t.Udp("left",e.leftPosition)("top",e.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(3),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(1===e.drawings.length&&e.hasTextCapabilities&&0===e.labels.length&&0===e.linkNodes.length||1===e.labels.length&&0===e.linkNodes.length&&0===e.drawings.length||1===e.linkNodes.length&&0===e.labels.length&&0===e.drawings.length)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},dependencies:[le.O5,Ga,ga,pA,hA,mA,_A,gA,vA,bA,wA,TA,MA,SA,DA,OA,IA,PA,RA,LA,NA,FA,UA,HA,jA,GA,WA,VA,YA,dO,fO,pO,hO,mO,_O,gO,vO,bO],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0px}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0px!important}"]});var zm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(r,e,i){if(0==i||0==e)return"0 of ".concat(i);var o=r*e,a=o<(i=Math.max(i,0))?Math.min(o+e,i):o+e;return"".concat(o+1," \u2013 ").concat(a," of ").concat(i)}});zm.\u0275fac=function(r){return new(r||zm)},zm.\u0275prov=t.Yz7({token:zm,factory:zm.\u0275fac,providedIn:"root"});var F9e={provide:zm,deps:[[new t.FiY,new t.tp0,zm]],useFactory:function B9e(n){return n||new zm}},H9e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),j9e=(0,Gt.Id)((0,Gt.dB)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),P5=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;if((0,B.Z)(this,e),(s=r.call(this))._intl=i,s._changeDetectorRef=o,s._pageIndex=0,s._length=0,s._pageSizeOptions=[],s._hidePageSize=!1,s._showFirstLastButtons=!1,s.selectConfig={},s.page=new t.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,d=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=d&&(s._hidePageSize=d),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,U.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,En.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,En.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,En.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,En.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,En.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,En.Ig)(o)}},{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 o=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(o)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(o)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=0,this._emitPageEvent(o)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var o=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(o)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var o=this.getNumberOfPages()-1;return this.pageIndex<o&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(o){var a=this.pageIndex*this.pageSize,s=this.pageIndex;this.pageIndex=Math.floor(a/o)||0,this.pageSize=o,this._emitPageEvent(s)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(o,a){return o-a}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(o){this.page.emit({previousPageIndex:o,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),e}(j9e);P5.\u0275fac=function(r){t.$Z()},P5.\u0275dir=t.lG2({type:P5,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]});var gd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,U.Z)(e)}(P5);gd.\u0275fac=function(r){return new(r||gd)(t.Y36(zm),t.Y36(t.sBO),t.Y36(H9e,8))},gd.\u0275cmp=t.Xpm({type:gd,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,L9e,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,Z9e,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return e.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return e.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,N9e,3,5,"button",11),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("ngIf",!e.hidePageSize),t.xp6(3),t.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),t.xp6(1),t.Q6J("ngIf",e.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),t.uIk("aria-label",e._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),t.uIk("aria-label",e._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",e.showFirstLastButtons))},dependencies:[le.sg,le.O5,fn,kn.KE,di.gD,Gt.ey,mi],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0});var cT=(0,U.Z)(function n(){(0,B.Z)(this,n)});cT.\u0275fac=function(r){return new(r||cT)},cT.\u0275mod=t.oAB({type:cT}),cT.\u0275inj=t.cJS({providers:[F9e],imports:[le.ez,pm,di.LD,G0,Gt.BQ]});var G9e=m(1452),dT=function(){function n(r){(0,B.Z)(this,n),this.dialogRef=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function z9e(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function W9e(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Console type: ",e.appliance.qemu.console_type,"")}}dT.\u0275fac=function(r){return new(r||dT)(t.Y36(cr))},dT.\u0275cmp=t.Xpm({type:dT,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"button",1),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4,"No"),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(6," Yes "),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage))},dependencies:[fn,fr]});var CO=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();CO.\u0275fac=function(r){return new(r||CO)(t.Y36(cr),t.Y36(ko))},CO.\u0275cmp=t.Xpm({type:CO,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.qZA()(),t.TgZ(3,"div",2)(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div"),t._uU(7),t.qZA(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.YNc(10,z9e,2,1,"div",3),t.YNc(11,W9e,2,1,"div",3),t.qZA(),t.TgZ(12,"div",4)(13,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Close"),t.qZA()()),2&r&&(t.xp6(2),t.Oqu(e.appliance.name),t.xp6(3),t.hij("Vendor: ",e.appliance.vendor_name,""),t.xp6(2),t.hij("Status: ",e.appliance.status,""),t.xp6(2),t.hij("Maintainer: ",e.appliance.maintainer,""),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu))},dependencies:[le.O5,fn,br,Hu,fr],encapsulation:2});var V9e=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function Y9e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is required"),t.qZA())}function K9e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is incorrect"),t.qZA())}function q9e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template with this name exists"),t.qZA())}var J9e=function(r){return{"is-invalid":r}},uv=function(){function n(r,e,i,o,a,s,l,u){(0,B.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=l,this.data=u}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new J.p4(i,[J.kI.required,this.templateNameValidator.get],[V9e(this.controller,this.templateService)])}),setTimeout(function(){e.templateNameForm.controls.templateName.markAsTouched()},100)}},{key:"form",get:function(){return this.templateNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.controller).subscribe(function(i){var o=e.templateNameForm.controls.templateName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Template with this name exists"):e.dialogRef.close(e.templateNameForm.controls.templateName.value)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();uv.\u0275fac=function(r){return new(r||uv)(t.Y36(cr),t.Y36(ur),t.Y36(Gr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku),t.Y36(Xd),t.Y36(ko))},uv.\u0275cmp=t.Xpm({type:uv,selectors:[["app-template-name-dialog"]],features:[t._Bn([Ku])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Please enter name for the new template"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,Y9e,2,0,"mat-error",4),t.YNc(6,K9e,2,0,"mat-error",4),t.YNc(7,q9e,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add template "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,J9e,null==e.form.templateName?null:e.form.templateName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.touched)&&(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Ib=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getAppliances",value:function(e){return this.httpController.get(e,"/appliances")}},{key:"getAppliance",value:function(e,i){return this.httpController.get(e,i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/images/upload/").concat(o,"?allow_raw_image=true")}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),n}();Ib.\u0275fac=function(r){return new(r||Ib)(t.LFG(ho.zw))},Ib.\u0275prov=t.Yz7({token:Ib,factory:Ib.\u0275fac});function X9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",i._getArrowDirectionState())}}var Fse=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),eHe=(0,Gt.dB)((0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}())),qu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new On.xQ,o.start="asc",o._direction="",o.sortChange=new t.vpe,o}return(0,U.Z)(e,[{key:"direction",get:function(){return this._direction},set:function(o){this._direction=o}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,En.Ig)(o)}},{key:"register",value:function(o){this.sortables.set(o.id,o)}},{key:"deregister",value:function(o){this.sortables.delete(o.id)}},{key:"sort",value:function(o){this.active!=o.id?(this.active=o.id,this.direction=o.start?o.start:this.start):this.direction=this.getNextSortDirection(o),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(o){var a,s,l;if(!o)return"";var u=null!==(s=null!==(a=null==o?void 0:o.disableClear)&&void 0!==a?a:this.disableClear)&&void 0!==s?s:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear),d=function tHe(n,r){var e=["asc","desc"];return"desc"==n&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=d.indexOf(this.direction)+1;return h>=d.length&&(h=0),d[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(eHe);qu.\u0275fac=function(r){return new(r||qu)(t.Y36(Fse,8))},qu.\u0275dir=t.lG2({type:qu,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]});var cv=Gt.mZ.ENTERING+" "+Gt.yN.STANDARD_CURVE,fT={indicator:(0,Zt.X$)("indicator",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"translateY(0px)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"translateY(10px)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),leftPointer:(0,Zt.X$)("leftPointer",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"rotate(-45deg)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"rotate(45deg)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),rightPointer:(0,Zt.X$)("rightPointer",[(0,Zt.SB)("active-asc, asc",(0,Zt.oB)({transform:"rotate(45deg)"})),(0,Zt.SB)("active-desc, desc",(0,Zt.oB)({transform:"rotate(-45deg)"})),(0,Zt.eR)("active-asc <=> active-desc",(0,Zt.jt)(cv))]),arrowOpacity:(0,Zt.X$)("arrowOpacity",[(0,Zt.SB)("desc-to-active, asc-to-active, active",(0,Zt.oB)({opacity:1})),(0,Zt.SB)("desc-to-hint, asc-to-hint, hint",(0,Zt.oB)({opacity:.54})),(0,Zt.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,Zt.oB)({opacity:0})),(0,Zt.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,Zt.jt)("0ms")),(0,Zt.eR)("* <=> *",(0,Zt.jt)(cv))]),arrowPosition:(0,Zt.X$)("arrowPosition",[(0,Zt.eR)("* => desc-to-hint, * => desc-to-active",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(-25%)"}),(0,Zt.oB)({transform:"translateY(0)"})]))),(0,Zt.eR)("* => hint-to-desc, * => active-to-desc",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(0)"}),(0,Zt.oB)({transform:"translateY(25%)"})]))),(0,Zt.eR)("* => asc-to-hint, * => asc-to-active",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(25%)"}),(0,Zt.oB)({transform:"translateY(0)"})]))),(0,Zt.eR)("* => hint-to-asc, * => active-to-asc",(0,Zt.jt)(cv,(0,Zt.F4)([(0,Zt.oB)({transform:"translateY(0)"}),(0,Zt.oB)({transform:"translateY(-25%)"})]))),(0,Zt.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,Zt.oB)({transform:"translateY(0)"})),(0,Zt.SB)("hint-to-desc, active-to-desc, desc",(0,Zt.oB)({transform:"translateY(-25%)"})),(0,Zt.SB)("hint-to-asc, active-to-asc, asc",(0,Zt.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,Zt.X$)("allowChildren",[(0,Zt.eR)("* <=> *",[(0,Zt.IO)("@*",(0,Zt.pV)(),{optional:!0})])])},Wm=(0,U.Z)(function n(){(0,B.Z)(this,n),this.changes=new On.xQ});Wm.\u0275fac=function(r){return new(r||Wm)},Wm.\u0275prov=t.Yz7({token:Wm,factory:Wm.\u0275fac,providedIn:"root"});var rHe={provide:Wm,deps:[[new t.FiY,new t.tp0,Wm]],useFactory:function nHe(n){return n||new Wm}},iHe=(0,Gt.Id)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),cf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this))._intl=i,g._changeDetectorRef=o,g._sort=a,g._columnDef=s,g._focusMonitor=l,g._elementRef=u,g._ariaDescriber=d,g._showIndicatorHint=!1,g._viewState={},g._arrowDirection="",g._disableViewStateAnimation=!1,g.arrowPosition="after",g._sortActionDescription="Sort",null!=h&&h.arrowPosition&&(g.arrowPosition=null==h?void 0:h.arrowPosition),g._handleStateChanges(),g}return(0,U.Z)(e,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(o){this._updateSortActionDescription(o)}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,En.Ig)(o)}},{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),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){var s=!!a;s!==o._showIndicatorHint&&(o._setIndicatorHintVisible(s),o._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(o){this._isDisabled()&&o||(this._showIndicatorHint=o,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(o){this._viewState=o||{},this._disableViewStateAnimation&&(this._viewState={toState:o.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(o){!this._isDisabled()&&(o.keyCode===Tr.L_||o.keyCode===Tr.K5)&&(o.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 o=this._viewState.fromState;return(o?"".concat(o,"-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:"_updateSortActionDescription",value:function(o){var a,s;this._sortButton&&(null===(a=this._ariaDescriber)||void 0===a||a.removeDescription(this._sortButton,this._sortActionDescription),null===(s=this._ariaDescriber)||void 0===s||s.describe(this._sortButton,o)),this._sortActionDescription=o}},{key:"_handleStateChanges",value:function(){var o=this;this._rerenderSubscription=(0,Gi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){o._isSorted()&&(o._updateArrowDirection(),("hint"===o._viewState.toState||"active"===o._viewState.toState)&&(o._disableViewStateAnimation=!0),o._setAnimationTransitionState({fromState:o._arrowDirection,toState:"active"}),o._showIndicatorHint=!1),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),o._changeDetectorRef.markForCheck()})}}]),e}(iHe);cf.\u0275fac=function(r){return new(r||cf)(t.Y36(Wm),t.Y36(t.sBO),t.Y36(qu,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(Yr.$s,8),t.Y36(Fse,8))},cf.\u0275cmp=t.Xpm({type:cf,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._handleClick()})("keydown",function(o){return e._handleKeydown(o)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&r&&(t.uIk("aria-sort",e._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[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(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,X9e,6,6,"div",2),t.qZA()),2&r&&(t.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"===e.arrowPosition),t.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",e._renderArrow()))},dependencies:[le.O5],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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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}"],encapsulation:2,data:{animation:[fT.indicator,fT.leftPointer,fT.rightPointer,fT.arrowOpacity,fT.arrowPosition,fT.allowChildren]},changeDetection:0});var pT=(0,U.Z)(function n(){(0,B.Z)(this,n)});pT.\u0275fac=function(r){return new(r||pT)},pT.\u0275mod=t.oAB({type:pT}),pT.\u0275inj=t.cJS({providers:[rHe],imports:[le.ez,Gt.BQ]});var wO=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();wO.\u0275fac=function(r){return new(r||wO)},wO.\u0275pipe=t.Yjl({name:"datasourcefilter",type:wO,pure:!0});var oHe=["stepper"];function aHe(n,r){1&n&&t._uU(0,"Please select how you want to create new template")}function sHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw();t.Oqu(e.actionTitle)}}function lHe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function uHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function cHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function dHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Emulator "),t.qZA())}function fHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.emulator," ")}}function pHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Vendor "),t.qZA())}function hHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.vendor_name," ")}}function mHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function _He(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",34)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.install(a))}),t.TgZ(2,"mat-icon",36),t._uU(3,"archive"),t.qZA()(),t.TgZ(4,"button",37),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.showInfo(a))}),t.TgZ(5,"mat-icon",38),t._uU(6,"info"),t.qZA()()()}}function gHe(n,r){1&n&&t._UZ(0,"mat-header-row")}function vHe(n,r){1&n&&t._UZ(0,"mat-row")}function yHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw(2);t.Oqu(e.secondActionTitle)}}function bHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function CHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function wHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,bHe,3,0,"span",32),t.YNc(5,CHe,3,0,"span",32),t.TgZ(6,"input",46,47),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.bios_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.bios_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.bios_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function kHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function THe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function MHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,kHe,3,0,"span",32),t.YNc(5,THe,3,0,"span",32),t.TgZ(6,"input",46,51),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hda_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hda_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hda_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function SHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function EHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function xHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,SHe,3,0,"span",32),t.YNc(5,EHe,3,0,"span",32),t.TgZ(6,"input",46,52),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdb_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdb_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function DHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function AHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function OHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,DHe,3,0,"span",32),t.YNc(5,AHe,3,0,"span",32),t.TgZ(6,"input",46,53),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdc_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdc_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function IHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function PHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function RHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,IHe,3,0,"span",32),t.YNc(5,PHe,3,0,"span",32),t.TgZ(6,"input",46,54),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdd_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdd_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdd_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function LHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function ZHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function NHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,LHe,3,0,"span",32),t.YNc(5,ZHe,3,0,"span",32),t.TgZ(6,"input",46,55),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.cdrom_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.cdrom_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.cdrom_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function BHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createQemuTemplateFromVersion(l))}),t._uU(6," Create "),t.qZA()()(),t.YNc(7,wHe,12,4,"div",44),t.YNc(8,MHe,12,4,"div",44),t.YNc(9,xHe,12,4,"div",44),t.YNc(10,OHe,12,4,"div",44),t.YNc(11,RHe,12,4,"div",44),t.YNc(12,NHe,12,4,"div",44),t.qZA()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.AsE("",o.applianceToInstall.name," version ",i.name,""),t.xp6(4),t.Q6J("ngIf",i.images.bios_image),t.xp6(1),t.Q6J("ngIf",i.images.hda_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdb_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdc_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdd_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.cdrom_image)}}function FHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"div"),t.YNc(8,BHe,13,8,"div",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.versions)}}function UHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.createDockerTemplate())}),t._uU(2," Create docker template "),t.qZA()()}}function HHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(7,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(6);return t.KtG(s.click())}),t._uU(8,"Import"),t.qZA(),t.TgZ(9,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIosTemplate(l))}),t._uU(10," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("uploader",o.uploaderImage)}}function jHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,HHe,11,2,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function GHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(7,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(6);return t.KtG(s.click())}),t._uU(8,"Import"),t.qZA(),t.TgZ(9,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIouTemplate(l))}),t._uU(10," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("uploader",o.uploaderImage)}}function zHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,GHe,11,2,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function WHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step"),t.YNc(1,yHe,1,1,"ng-template",3),t.TgZ(2,"mat-card",9),t.YNc(3,FHe,9,1,"div",32),t.YNc(4,UHe,3,0,"div",32),t.YNc(5,jHe,9,1,"div",32),t.YNc(6,zHe,9,1,"div",32),t.qZA(),t.TgZ(7,"div")(8,"button",30),t._uU(9,"Back"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onCloseClick())}),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.qemu),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.docker),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.dynamips),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.iou)}}var VHe=function(){return{standalone:!0}},YHe=function(){return[5,10,20,50,100]},hT=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z,q){(0,B.Z)(this,n),this.dialogRef=r,this.applianceService=e,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=l,this.iouService=u,this.templateService=d,this.dialog=h,this.computeService=g,this.changeDetectorRef=y,this.progressService=L,this.snackBar=z,this.uploadServiceService=q,this.action="install",this.actionTitle="Install appliance from controller",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isLinuxPlatform=!1,this.isLocalComputerChosen=!1,this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[],this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.templateService.list(this.controller).subscribe(function(i){e.templates=i}),this.computeService.getComputes(this.controller).subscribe(function(i){i.forEach(function(o){"linux"===o.capabilities.platform&&(e.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i}),this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(i,o,a,s){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(i.url)},this.uploaderImage=new Eg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured because image already exists"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(i,o,a,s){e.toasterService.success("Image imported succesfully"),e.refreshImages(),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"updateAppliances",value:function(){var e=this;this.progressService.activate(),this.applianceService.updateAppliances(this.controller).subscribe(function(i){e.appliances=i,e.progressService.deactivate(),e.toasterService.success("Appliances are up-to-date.")},function(i){e.progressService.deactivate(),e.toasterService.error("Appliances were not updated correctly.")})}},{key:"refreshImages",value:function(){var e=this;this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"getAppliance",value:function(e){var i=this,o=e.split("/".concat(ja.N.current_version)),a=o[o.length-1];this.applianceService.getAppliance(this.controller,a).subscribe(function(s){i.applianceToInstall=s,setTimeout(function(){i.stepper.next()},100)})}},{key:"addAppliance",value:function(e){var u,i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){var d=JSON.parse(l.result);d.docker&&(u="docker"),d.dynamips&&(u="dynamips"),d.iou&&(u="iou"),d.qemu&&(u="qemu");var h=i.applianceService.getUploadPath(i.controller,u,a);i.uploader.queue.forEach(function(y){return y.url=h});var g=i.uploader.queue[0];g.options&&(g.options.disableMultipart=!0),g.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(g)},l.readAsText(s)}},{key:"filterAppliances",value:function(e){var i=this,o=this.allAppliances.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all categories"!==this.category&&this.category?this.appliances=o.filter(function(a){return a.category===i.category}):this.appliances=o,this.dataSource=new Ap(this.appliances),this.dataSource.paginator=this.paginator}},{key:"setAction",value:function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from controller":"import"===e&&(this.actionTitle="Import an appliance file")}},{key:"setControllerType",value:function(e){this.isLocalComputerChosen=!0}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.appliances.slice();this.appliances=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?uW(o.name,a.name,s):"emulator"===e.active?uW(o.emulator,a.emulator,s):"vendor"===e.active?uW(o.vendor_name,a.vendor_name,s):0})}}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"install",value:function(e){var i=this;this.applianceToInstall=e,setTimeout(function(){i.stepper.next()},100)}},{key:"showInfo",value:function(e){this.dialog.open(CO,{width:"250px",data:{appliance:e}}).componentInstance.appliance=e}},{key:"importImage",value:function(e,i){var o=this;this.computeChecksumMd5(e.target.files[0],!1).then(function(a){var s=o.applianceToInstall.images.filter(function(u){return u.filename===i})[0];if(s.md5sum!==a){o.progressService.deactivate();var l=o.dialog.open(dT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});l.componentInstance.confirmationMessage="This is not the correct file.\n The MD5 sum is ".concat(a," and should be ").concat(s.md5sum,". Do you want to accept it at your own risks?"),l.afterClosed().subscribe(function(u){u?(o.importImageFile(e),o.openSnackBar()):o.uploaderImage.clearQueue()})}else o.importImageFile(e),o.openSnackBar()})}},{key:"importImageFile",value:function(e){var u,i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){i.applianceToInstall.qemu&&(u="qemu"),i.applianceToInstall.dynamips&&(u="dynamips"),i.applianceToInstall.iou&&(u="iou");var d=i.applianceService.getUploadPath(i.controller,u,a);i.uploaderImage.queue.forEach(function(g){return g.url=d});var h=i.uploaderImage.queue[0];h.options&&(h.options.disableMultipart=!0),h.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploaderImage.uploadItem(h)},l.readAsText(s)}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"checkImageFromVersion",value:function(e){var i=this.applianceToInstall.images.filter(function(o){return o.filename===e})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0;return!1}},{key:"checkImages",value:function(e){return e.images.hdb_disk_image?!(!this.checkImageFromVersion(e.images.hda_disk_image)||!this.checkImageFromVersion(e.images.hdb_disk_image)):!!this.checkImageFromVersion(e.images.hda_disk_image)}},{key:"openConfirmationDialog",value:function(e,i){var o=this.dialog.open(dT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});o.componentInstance.confirmationMessage=e,o.afterClosed().subscribe(function(a){a&&window.open(i)})}},{key:"downloadImage",value:function(e){var o="The file is compressed with ".concat(e.compression,", it must be uncompressed first.");e.direct_download_url?e.compression?this.openConfirmationDialog(o,e.direct_download_url):window.open(e.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",e.download_url)}},{key:"downloadImageFromVersion",value:function(e){var i=this;this.applianceToInstall.images.forEach(function(o){o.filename===e&&i.downloadImage(o)})}},{key:"getCategory",value:function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category}},{key:"createIouTemplate",value:function(e){var i=this,o=new XG;o.nvram=this.applianceToInstall.iou.nvram,o.ram=this.applianceToInstall.iou.ram,o.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,o.serial_adapters=this.applianceToInstall.iou.serial_adapters,o.startup_config=this.applianceToInstall.iou.startup_config,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.path=e.filename,o.template_type="iou";var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.iouService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createIosTemplate",value:function(e){var i=this,o=new QG;o.chassis=this.applianceToInstall.dynamips.chassis,o.nvram=this.applianceToInstall.dynamips.nvram,o.platform=this.applianceToInstall.dynamips.platform,o.ram=this.applianceToInstall.dynamips.ram,o.startup_config=this.applianceToInstall.dynamips.startup_config,o.slot0=this.applianceToInstall.dynamips.slot0,o.slot1=this.applianceToInstall.dynamips.slot1,o.slot2=this.applianceToInstall.dynamips.slot2,o.slot3=this.applianceToInstall.dynamips.slot3,o.slot4=this.applianceToInstall.dynamips.slot4,o.slot5=this.applianceToInstall.dynamips.slot5,o.slot6=this.applianceToInstall.dynamips.slot6,o.slot7=this.applianceToInstall.dynamips.slot7,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.image=e.filename,o.template_type="dynamips";var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.iosService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createDockerTemplate",value:function(){var e=this,i=new JG;i.adapters=this.applianceToInstall.docker.adapters,i.console_type=this.applianceToInstall.docker.console_type,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=ns(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.controller=this.controller,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,e.dockerService.addTemplate(e.controller,i).subscribe(function(s){e.templateService.newTemplateCreated.next(s),e.toasterService.success("Template added"),e.dialogRef.close()})})}},{key:"createQemuTemplateFromVersion",value:function(e){var i=this;if(this.checkImages(e)){var o=new $G;o.ram=this.applianceToInstall.qemu.ram,o.adapters=this.applianceToInstall.qemu.adapters,o.adapter_type=this.applianceToInstall.qemu.adapter_type,o.boot_priority=this.applianceToInstall.qemu.boot_priority,o.console_type=this.applianceToInstall.qemu.console_type,o.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,o.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,o.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,o.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.first_port_name=this.applianceToInstall.first_port_name,o.port_name_format=this.applianceToInstall.port_name_format,o.port_segment_size=this.applianceToInstall.port_segment_size,o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ns(),o.hda_disk_image=e.images.hda_disk_image,o.hdb_disk_image=e.images.hdb_disk_image,o.hdc_disk_image=e.images.hdc_disk_image,o.hdd_disk_image=e.images.hdd_disk_image,o.cdrom_image=e.images.cdrom_image,o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(uv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.qemuService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}else this.toasterService.error("Please install required images first")}},{key:"computeChecksumMd5",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(o,a){var s=2097152,l=new G9e.ArrayBuffer,u=new FileReader,d=0;function h(g){var y=Math.min(e.size,g+s);u.readAsArrayBuffer(e.slice(g,y))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(g){l.append(g.target.result),(d+=s)<e.size?h(d):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(Tm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),n}();function uW(n,r,e){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}hT.\u0275fac=function(r){return new(r||hT)(t.Y36(cr),t.Y36(Ib),t.Y36(t.sBO),t.Y36(Zn),t.Y36(Gu),t.Y36(id),t.Y36(sd),t.Y36(ld),t.Y36(Xd),t.Y36(Gr),t.Y36(Qd.X),t.Y36(t.sBO),t.Y36(El),t.Y36(rd),t.Y36(ad))},hT.\u0275cmp=t.Xpm({type:hT,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(gd,7),t.Gf(oHe,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.paginator=i.first),t.iGM(i=t.CRH())&&(e.stepper=i.first))},inputs:{controller:"controller",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["fileBios",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file2",""],["file3",""],["file4",""],["file5",""],["file6",""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Add new template"),t.qZA(),t.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),t.YNc(5,aHe,1,0,"ng-template",3),t.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),t.NdJ("click",function(){return e.setAction("install")}),t._uU(8,"Install new appliance from the GNS controller"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"mat-radio-button",6),t.NdJ("click",function(){return e.setAction("import")}),t._uU(11,"Import an appliance file"),t.qZA()(),t.TgZ(12,"div")(13,"button",7),t._uU(14,"Next"),t.qZA(),t.TgZ(15,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(16,"Cancel"),t.qZA()()(),t.TgZ(17,"mat-step"),t.YNc(18,sHe,1,1,"ng-template",3),t.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(23,"mat-select",13),t.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),t.YNc(24,lHe,2,2,"mat-option",14),t.qZA()(),t.TgZ(25,"mat-table",15,16),t.NdJ("matSortChange",function(a){return e.sortData(a)}),t.ALo(27,"datasourcefilter"),t.ynx(28,17),t.YNc(29,uHe,2,0,"mat-header-cell",18),t.YNc(30,cHe,2,1,"mat-cell",19),t.BQk(),t.ynx(31,20),t.YNc(32,dHe,2,0,"mat-header-cell",18),t.YNc(33,fHe,2,1,"mat-cell",19),t.BQk(),t.ynx(34,21),t.YNc(35,pHe,2,0,"mat-header-cell",18),t.YNc(36,hHe,2,1,"mat-cell",19),t.BQk(),t.ynx(37,22),t.YNc(38,mHe,2,0,"mat-header-cell",18),t.YNc(39,_He,7,0,"mat-cell",23),t.BQk(),t.YNc(40,gHe,1,0,"mat-header-row",24),t.YNc(41,vHe,1,0,"mat-row",25),t.qZA(),t._UZ(42,"mat-paginator",26),t.qZA(),t.TgZ(43,"mat-card",9)(44,"input",27,28),t.NdJ("change",function(a){return e.addAppliance(a)}),t.qZA(),t.TgZ(46,"button",29),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(45);return t.KtG(a.click())}),t._uU(47," Click to import appliance "),t.qZA()(),t.TgZ(48,"div")(49,"button",30),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",31),t.NdJ("click",function(){return e.updateAppliances()}),t._uU(52," Update from online registry "),t.qZA(),t.TgZ(53,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(54,"Cancel"),t.qZA()()(),t.YNc(55,WHe,12,5,"mat-step",32),t.qZA()}2&r&&(t.xp6(2),t.Q6J("linear",!1),t.xp6(17),t.Q6J("hidden","install"!==e.action),t.xp6(3),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,VHe))("ngModel",e.category),t.xp6(1),t.Q6J("ngForOf",e.categories),t.xp6(1),t.Q6J("dataSource",t.xi3(27,14,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(18,YHe)),t.xp6(1),t.Q6J("hidden","install"===e.action),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(7),t.Q6J("hidden","install"!==e.action),t.xp6(4),t.Q6J("ngIf",e.applianceToInstall))},dependencies:[le.sg,le.O5,J.Fj,J.JJ,J.On,Mp,kn.KE,gd,fn,ci,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,br,mm,Oa,qu,di.gD,Gt.ey,mi,od,wm,$d,Ik,Pk,rs,zs,wO],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.tableHeader[_ngcontent-%COMP%], .filter-field[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;padding-left:30px;margin-bottom:15px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}"],data:{animation:[(0,Zt.X$)("detailExpand",[(0,Zt.SB)("collapsed",(0,Zt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed",(0,Zt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var KHe=m(2033),qHe='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Pb_xmlns="http://www.w3.org/2000/xmlns/",Pb_xlink="http://www.w3.org/1999/xlink",Pb_svg="http://www.w3.org/2000/svg",Use="untitled";function QHe(){var n=document.createElementNS(Pb_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function $He(n,r){function e(s){for(var u,d,l=getComputedStyle(s),h="",g=0,y=l.length;g<y;g++)u=l[g],(d=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(d,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(d){if(d&&d.hasChildNodes())for(var h=d.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(n),a=o.length;a--;)e(o[a])}function eje(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(e){return!e.href||e.href.startsWith(document.location.origin)}).map(function(e){return Array.from(e.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}var tje=function XHe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(Pb_xmlns,"xmlns")||n.setAttributeNS(Pb_xmlns,"xmlns",Pb_svg),n.hasAttributeNS(Pb_xmlns,"xmlns:xlink")||n.setAttributeNS(Pb_xmlns,"xmlns:xlink",Pb_xlink),"inline"===i?$He(n,QHe()):"internal"===i&&eje(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:qHe+o};return s};function rje(n,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var oje=function ije(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Use,e=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));rje("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var lje=function(r,e,i){return oje(tje(r,i),e||function nje(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||Use}(r))};function uje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Name for screenshot is required"),t.qZA())}function cje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Entered name is incorrect"),t.qZA())}var dje=function(r){return{"is-invalid":r}},kO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.toasterService=e,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new J.p4("screenshot-".concat(Date.now()),[J.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.nameForm.controls}},{key:"onAddClick",value:function(){if(!this.nameForm.invalid){var e={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(e)}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"setFiletype",value:function(e){this.isPngAvailable&&(this.filetype=e)}}]),n}();kO.\u0275fac=function(r){return new(r||kO)(t.Y36(cr),t.Y36(Zn),t.Y36(J.QS),t.Y36(ul),t.Y36(Ob))},kO.\u0275cmp=t.Xpm({type:kO,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Take a screenshot"),t.qZA(),t.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),t.NdJ("click",function(){return e.setFiletype("svg")}),t._uU(4,"SVG"),t.qZA(),t.TgZ(5,"mat-radio-button",3),t.NdJ("click",function(){return e.setFiletype("png")}),t._uU(6,"PNG"),t.qZA()(),t.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(10,uje,2,0,"mat-error",7),t.YNc(11,cje,2,0,"mat-error",7),t.qZA(),t.TgZ(12,"div",8)(13,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Cancel"),t.qZA(),t.TgZ(15,"button",10),t.NdJ("click",function(){return e.onAddClick()}),t._uU(16,"Take a screenshot"),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("disabled",!e.isPngAvailable),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,dje,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.acreenshotName?null:e.form.acreenshotName.errors.invalidName)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr,rs,zs],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var TO=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data.actionType}},{key:"confirmAction",value:function(){this.confirmActionData.isAction="Lock"==this.data.actionType,this.dialogRef.close(this.confirmActionData)}}]),n}();TO.\u0275fac=function(r){return new(r||TO)(t.Y36(ko),t.Y36(cr))},TO.\u0275cmp=t.Xpm({type:TO,selectors:[["app-project-map-lock-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[fn,Ig,Hu,fr,hm.d]});var Rb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new Cb;return e.height=100,e.width=100,e.fill="#000000",e.fill_opacity=0,e.font_family="Noto Sans",e.font_size=11,e.font_weight="bold",e}}]),n}();Rb.\u0275fac=function(r){return new(r||Rb)},Rb.\u0275prov=t.Yz7({token:Rb,factory:Rb.\u0275fac});var Lb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new ea;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.cx=100,e.cy=100,e.rx=100,e.ry=100,e.width=200,e.height=200,e}}]),n}();Lb.\u0275fac=function(r){return new(r||Lb)},Lb.\u0275prov=t.Yz7({token:Lb,factory:Lb.\u0275fac});var Zb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new af;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e.rx=0,e.ry=0,e}}]),n}();Zb.\u0275fac=function(r){return new(r||Zb)},Zb.\u0275prov=t.Yz7({token:Zb,factory:Zb.\u0275fac});var Nb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"getDrawingElement",value:function(){var e=new bb;return e.stroke="#000000",e.stroke_width=2,e.x1=0,e.x2=200,e.y1=0,e.y2=0,e.width=100,e.height=0,e}}]),n}();Nb.\u0275fac=function(r){return new(r||Nb)},Nb.\u0275prov=t.Yz7({token:Nb,factory:Nb.\u0275fac});var dv=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.textElementFactory=r,this.ellipseElementFactory=e,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return(0,U.Z)(n,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new Nm;return i.element=this.factory.getDrawingElement(),i}}]),n}();dv.\u0275fac=function(r){return new(r||dv)(t.LFG(Rb),t.LFG(Lb),t.LFG(Zb),t.LFG(Nb))},dv.\u0275prov=t.Yz7({token:dv,factory:dv.\u0275fac});var MO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(i){return e.onDrawingSaved(i)})}},{key:"ngOnChanges",value:function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))}},{key:"onDrawingSaved",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock(this.selectedDrawing),a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.pointToAddSelected.unsubscribe()}}]),n}();MO.\u0275fac=function(r){return new(r||MO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d))},MO.\u0275cmp=t.Xpm({type:MO,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[t.TTD],decls:0,vars:0,template:function(r,e){}});var Hse=function(r){return{selected:r}};function fje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",14),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Hse,i.drawTools.isLineChosen))}}function pje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Hse,i.drawTools.isLineChosen))}}var hje=function(r,e){return{unmarkedLight:r,marked:e}},mje=function(r){return{unmarkedLight:r}},mT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.toolsService=r,this.mapSettingsService=e,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.projectServices=l,this.nodeService=u,this.nodesDataSource=d,this.drawingsDataSource=h,this.nodes=[],this.drawing=[],this.lock="lock_open",this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.projectSubscription=this.projectServices.projectLockIconSubject.subscribe(function(i){i&&e.getAllNodesAndDrawingStatus()}),this.getAllNodesAndDrawingStatus()}},{key:"getCssClassForIcon",value:function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}}},{key:"takeScreenshot",value:function(){var e=this;this.dialog.open(kO,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.saveImage(o)})}},{key:"saveImage",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l,u,d,h,g,y;return Rn().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if("png"!==e.filetype){q.next=21;break}o=document.getElementsByTagName("svg")[0].outerHTML.split("image"),a=1;case 3:if(!(a<o.length)){q.next=14;break}return s=o[a].split('"'),l=s[1].split("/"),q.next=8,this.symbolService.raw(this.controller,l[7]).toPromise();case 8:u=q.sent,d=u.split("--\x3e"),o[a]=d[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(g=document.createElement("div")).innerHTML=h,y=g.firstChild,KHe.saveSvgAsPng(y,"".concat(e.name,".png")),q.next=23;break;case 21:Ci("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),lje(Ci("svg").node(),"".concat(e.name));case 23:case"end":return q.stop()}},i,this)}))}},{key:"addDrawing",value:function(e){switch("rectangle"===e&&this.drawTools.isRectangleChosen||"ellipse"===e&&this.drawTools.isEllipseChosen||"line"===e&&this.drawTools.isLineChosen||"text"===e&&this.drawTools.isTextChosen?document.documentElement.style.cursor="default":document.documentElement.style.cursor="crosshair",e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e}},{key:"onDrawingSaved",value:function(){this.resetDrawToolChoice()}},{key:"resetDrawToolChoice",value:function(){document.documentElement.style.cursor="default",this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}},{key:"getAllNodesAndDrawingStatus",value:function(){var e=this;this.projectServices.getProjectStatus(this.controller,this.project.project_id).subscribe(function(i){i?(e.isLocked=!0,e.lock="lock"):(e.isLocked=!1,e.lock="lock_open")}),this.projectServices.nodes(this.controller,this.project.project_id).subscribe(function(i){e.nodes=i,e.nodes.forEach(function(o){e.nodeService.updateNode(e.controller,o).subscribe(function(a){e.nodesDataSource.update(a)})})}),this.projectServices.drawings(this.controller,this.project.project_id).subscribe(function(i){e.drawing=i,e.drawing.forEach(function(o){e.drawingService.update(e.controller,o).subscribe(function(a){e.drawingsDataSource.update(a)})})})}},{key:"changeLockValue",value:function(){var e=this;this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked),this.dialog.open(TO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:{isAction:this.isLocked,actionType:1==this.isLocked?"Lock":"Unlock"}}).afterClosed().subscribe(function(o){o&&""!=o&&("Lock"==o.actionType&&o.isAction?e.lockAllNode():e.unlockAllNode())})}},{key:"lockAllNode",value:function(){var e=this;this.lock="lock",this.drawingService.lockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"unlockAllNode",value:function(){var e=this;this.lock="lock_open",this.drawingService.unLockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u=i.createSvgFileForImage(l,s);i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"ngOnDestroy",value:function(){}}]),n}();mT.\u0275fac=function(r){return new(r||mT)(t.Y36(Yp),t.Y36(fl),t.Y36(Wa),t.Y36(Op),t.Y36(Gr),t.Y36(wc.f),t.Y36(Ws.Y),t.Y36(Fr),t.Y36(za.G),t.Y36(ya))},mT.\u0275cmp=t.Xpm({type:mT,selectors:[["app-project-map-menu"]],inputs:{project:"project",controller:"controller"},decls:24,vars:16,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"controller","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){return e.addDrawing("text")}),t.TgZ(1,"mat-icon",1),t._uU(2,"create"),t.qZA()(),t.TgZ(3,"input",2,3),t.NdJ("change",function(a){return e.uploadImageFile(a)}),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(4);return t.KtG(a.click())}),t.TgZ(6,"mat-icon"),t._uU(7,"image"),t.qZA()(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.addDrawing("rectangle")}),t.TgZ(9,"mat-icon",1),t._uU(10,"crop_3_2"),t.qZA()(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.addDrawing("ellipse")}),t.TgZ(12,"mat-icon",1),t._uU(13,"panorama_fish_eye"),t.qZA()(),t.YNc(14,fje,3,3,"button",7),t.YNc(15,pje,3,3,"button",7),t.TgZ(16,"button",8),t.NdJ("click",function(){return e.changeLockValue()}),t.TgZ(17,"mat-icon",1),t._uU(18),t.qZA()(),t.TgZ(19,"button",9),t.NdJ("click",function(){return e.takeScreenshot()}),t.TgZ(20,"mat-icon",1),t._uU(21,"photo_camera"),t.qZA()(),t.TgZ(22,"app-drawing-added",10),t.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),t.qZA(),t._UZ(23,"div",11)}2&r&&(t.xp6(1),t.Q6J("ngClass",e.getCssClassForIcon("text")),t.xp6(8),t.Q6J("ngClass",e.getCssClassForIcon("rectangle")),t.xp6(3),t.Q6J("ngClass",e.getCssClassForIcon("ellipse")),t.xp6(2),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(2),t.Q6J("ngClass",t.WLB(11,hje,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),t.xp6(1),t.Oqu(e.lock),t.xp6(2),t.Q6J("ngClass",t.VKq(14,mje,!e.isLocked&&e.isLightThemeEnabled)),t.xp6(2),t.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},dependencies:[le.mk,le.O5,fn,Dn,mi,MO],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var _je=["text"],SO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,U.Z)(n,[{key:"ngAfterViewInit",value:function(){var e="";this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e=i,setTimeout(function(){var o=ht(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();SO.\u0275fac=function(r){return new(r||SO)(t.Y36(cr),t.Y36(Ws.Y),t.Y36(t.SBq),t.Y36(t.Qsj))},SO.\u0275cmp=t.Xpm({type:SO,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_je,5),2&r)&&(t.iGM(i=t.CRH())&&(e.text=i.first))},decls:6,vars:0,consts:[["mat-dialog-title",""],["id","text",1,"textWrapper"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Project README"),t.qZA(),t._UZ(2,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"Close"),t.qZA()())},dependencies:[fn,br,fr],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var fv=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new t.vpe,this.linkNotificationEmitter=new t.vpe,this.drawingNotificationEmitter=new t.vpe,this.infoNotificationEmitter=new t.vpe,this.warningNotificationEmitter=new t.vpe,this.errorNotificationEmitter=new t.vpe}return(0,U.Z)(n,[{key:"handleMessage",value:function(e){"node.updated"===e.action&&(this.nodesDataSource.update(e.event),this.nodeNotificationEmitter.emit(e)),"node.created"===e.action&&(this.nodesDataSource.add(e.event),this.nodeNotificationEmitter.emit(e)),"node.deleted"===e.action&&(this.nodesDataSource.remove(e.event),this.nodeNotificationEmitter.emit(e)),"link.created"===e.action&&(this.linksDataSource.add(e.event),this.linkNotificationEmitter.emit(e)),"link.updated"===e.action&&(this.linksDataSource.update(e.event),this.linkNotificationEmitter.emit(e)),"link.deleted"===e.action&&(this.linksDataSource.remove(e.event),this.linkNotificationEmitter.emit(e)),"drawing.created"===e.action&&(this.drawingsDataSource.add(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.updated"===e.action&&(this.drawingsDataSource.update(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.deleted"===e.action&&(this.drawingsDataSource.remove(e.event),this.drawingNotificationEmitter.emit(e)),"log.error"===e.action&&this.errorNotificationEmitter.emit(e.event.message),"log.warning"===e.action&&this.warningNotificationEmitter.emit(e.event.message),"log.info"===e.action&&this.infoNotificationEmitter.emit(e.event.message)}}]),n}();fv.\u0275fac=function(r){return new(r||fv)(t.LFG(za.G),t.LFG(Hm.F),t.LFG(ya))},fv.\u0275prov=t.Yz7({token:fv,factory:fv.\u0275fac});var gje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),vje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),qp=function(){function n(r,e,i){(0,B.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this.cssFixer.fix(e.style),o=this.fontFixer.fixStyles(i),a=this.fontBBoxCalculator.calculate(e.text,o),s=new vje;return s.rotation=e.rotation,s.style=e.style,s.text=e.text,s.x=e.x,s.y=e.y,null!==s.x&&(s.x-=3),null!==s.y&&(s.y-=a.height),s}}]),n}();qp.\u0275fac=function(r){return new(r||qp)(t.LFG(Pp),t.LFG(Sc),t.LFG(os))},qp.\u0275prov=t.Yz7({token:qp,factory:qp.\u0275fac});var yje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),pv=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new yje;return i.adapter_number=e.adapterNumber,i.link_type=e.linkType,i.name=e.name,i.port_number=e.portNumber,i.short_name=e.shortName,i}}]),n}();pv.\u0275fac=function(r){return new(r||pv)},pv.\u0275prov=t.Yz7({token:pv,factory:pv.\u0275fac});var Vm=function(){function n(r,e){(0,B.Z)(this,n),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new gje;return o.node_id=e.id,o.command_line=e.commandLine,o.compute_id=e.computeId,o.console=e.console,o.console_host=e.consoleHost,o.console_type=e.consoleType,o.first_port_name=e.firstPortName,o.height=e.height,o.label=e.label?this.mapLabelToLabel.convert(e.label):void 0,o.locked=e.locked,o.name=e.name,o.node_directory=e.nodeDirectory,o.node_type=e.nodeType,o.port_name_format=e.portNameFormat,o.port_segment_size=e.portSegmentSize,o.ports=e.ports?e.ports.map(function(a){return i.mapPortToPort.convert(a)}):[],o.project_id=e.projectId,o.status=e.status,o.symbol=e.symbol,o.symbol_url=e.symbolUrl,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,o}}]),n}();Vm.\u0275fac=function(r){return new(r||Vm)(t.LFG(qp),t.LFG(pv))},Vm.\u0275prov=t.Yz7({token:Vm,factory:Vm.\u0275fac});var bje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Bb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new bje;return i.drawing_id=e.id,i.project_id=e.projectId,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i.element=e.element,i}}]),n}();Bb.\u0275fac=function(r){return new(r||Bb)},Bb.\u0275prov=t.Yz7({token:Bb,factory:Bb.\u0275fac});var Cje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),wje=(0,U.Z)(function n(){(0,B.Z)(this,n)}),hv=function(){function n(r){(0,B.Z)(this,n),this.mapLabelToLabel=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new wje;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),n}();hv.\u0275fac=function(r){return new(r||hv)(t.LFG(qp))},hv.\u0275prov=t.Yz7({token:hv,factory:hv.\u0275fac});var Fb=function(){function n(r){(0,B.Z)(this,n),this.mapLinkNodeToMapLinkNode=r}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=this,o=new Cje;return o.link_id=e.id,o.capture_file_name=e.captureFileName,o.capture_file_path=e.captureFilePath,o.capturing=e.capturing,o.filters=e.filters,o.link_type=e.linkType,o.link_style=e.link_style,o.nodes=e.nodes.map(function(a){return i.mapLinkNodeToMapLinkNode.convert(a)}),o.project_id=e.projectId,o.suspend=e.suspend,o}}]),n}();Fb.\u0275fac=function(r){return new(r||Fb)(t.LFG(hv))},Fb.\u0275prov=t.Yz7({token:Fb,factory:Fb.\u0275fac});var L5=m(9740),Ub=function(){function n(r){(0,B.Z)(this,n),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,U.Z)(n,[{key:"fix",value:function(e){e.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var i=this.fontBBCalculator.calculate(e.label.text,e.label.style);return e.label.x=e.width/2-i.width/2,e.label.y=-i.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,e}}]),n}();Ub.\u0275fac=function(r){return new(r||Ub)(t.LFG(Pp))},Ub.\u0275prov=t.Yz7({token:Ub,factory:Ub.\u0275fac});var Hb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/notifications/ws?token=").concat(e.authToken)}},{key:"projectNotificationsPath",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),n}();Hb.\u0275fac=function(r){return new(r||Hb)},Hb.\u0275prov=t.Yz7({token:Hb,factory:Hb.\u0275fac});var jse=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.x=r,this.y=e,this.dx=i,this.dy=o}),_T=function(){function n(r){(0,B.Z)(this,n),this.elementRef=r,this.dragging=new t.vpe,this.dragged=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=oo.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){e.posX=e.item.x,e.posY=e.item.y,e.startX=d.clientX,e.startY=d.clientY});var o=oo.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=oo.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=oo.y.fromEvent(document,"scroll").startWith({}),l=oo.y.combineLatest(a,s),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Yn.Z)(h,2),y=g[0];g[1];return y}).do(function(h){var g=e.startX-h.clientX,y=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-y),e.dragging.emit(new jse(e.item.x,e.item.y,-g,-y))}).skipUntil(o.take(1).do(function(h){var g=e.startX-h.clientX,y=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-y),e.dragged.emit(new jse(e.item.x,e.item.y,-g,-y))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),n}();_T.\u0275fac=function(r){return new(r||_T)(t.Y36(t.SBq))},_T.\u0275cmp=t.Xpm({type:_T,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:["app-draggable",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var Mje=["label"],Sje=["image"],gT=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"ngOnChanges",value:function(e){this.cd.detectChanges()}},{key:"ngAfterViewInit",value:function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()}},{key:"OnDragging",value:function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new Jk(this.node,e.dx,e.dy))}},{key:"symbol",get:function(){var e=this;if(this.symbols){var i=this.symbols.find(function(o){return o.symbol_id===e.node.symbol});return i?"data:image/svg+xml;base64,"+btoa(i.raw):"data:image/svg+xml;base64,none"}}},{key:"label_style",get:function(){if(null!=this.node){var e=this.cssFixer.fix(this.node.label.style);return e=this.fontFixer.fixStyles(e),this.sanitizer.bypassSecurityTrustStyle(e)}}},{key:"label_x",get:function(){if(null!=this.node)return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN}},{key:"label_y",get:function(){if(this.labelHeight=this.getLabelHeight(),null!=this.node)return null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),n}();gT.NODE_LABEL_MARGIN=3,gT.\u0275fac=function(r){return new(r||gT)(t.Y36(Sc),t.Y36(os),t.Y36(Dr),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(pd))},gT.\u0275cmp=t.Xpm({type:gT,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Mje,5),t.Gf(Sje,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.label=i.first),t.iGM(i=t.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[t.TTD],attrs:["app-node",""],decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0)(1,"image",1,2),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.qZA(),t.TgZ(3,"text",3,4),t._uU(5),t.qZA()()),2&r&&(t.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),t.xp6(1),t.Q6J("app-draggable",e.node),t.uIk("width",null==e.node?null:e.node.width)("height",null==e.node?null:e.node.height)("x",0)("y",0)("href",e.symbol,null,"xlink"),t.xp6(2),t.uIk("style",e.label_style,t.Ckj)("x",e.label_x)("y",e.label_y),t.xp6(2),t.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},dependencies:[_T],changeDetection:0});var xje=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"d",value:function(e){var i,o,a,s,l,u,d,h=[[(null===(i=null==e?void 0:e.source)||void 0===i?void 0:i.x)+(null===(o=null==e?void 0:e.source)||void 0===o?void 0:o.width)/2,(null==e?void 0:e.source.y)+(null===(a=null==e?void 0:e.source)||void 0===a?void 0:a.height)/2],[(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.x)+(null===(l=null==e?void 0:e.target)||void 0===l?void 0:l.width)/2,(null===(u=null==e?void 0:e.target)||void 0===u?void 0:u.y)+(null===(d=null==e?void 0:e.target)||void 0===d?void 0:d.height)/2]],g=Hd();return g.moveTo(h[0][0],h[0][1]),g.lineTo(h[1][0],h[1][1]),g.toString()}}]),n}(),Dje=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"linkToPoints",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return[[i.x,i.y],h,g,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=Hd();return o.moveTo(i[0][0],i[0][1]),o.lineTo(i[1][0],i[1][1]),o.lineTo(i[2][0],i[2][1]),o.lineTo(i[3][0],i[3][1]),o.toString()}}]),n}();function Oje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",3)),2&n){var e=t.oxw(2);t.uIk("cx",e.point.x)("cy",e.point.y)}}function Ije(n,r){if(1&n&&(t.O4$(),t._UZ(0,"rect",4)),2&n){var e=t.oxw(2);t.uIk("x",e.point.x-5)("y",e.point.y-5)}}function Pje(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Oje,1,2,"circle",1),t.YNc(2,Ije,1,2,"rect",2),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf","started"==e.status),t.xp6(1),t.Q6J("ngIf","stopped"==e.status)}}var vT=function(){function n(r,e){(0,B.Z)(this,n),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,U.Z)(n,[{key:"status",get:function(){return this.data.status},set:function(e){this.data.status=e,this.ref.markForCheck()}},{key:"path",get:function(){return this.data.path},set:function(e){this.data.path=e,this.ref.markForCheck()}},{key:"direction",get:function(){return this.data.direction},set:function(e){this.data.direction=e,this.ref.markForCheck()}},{key:"d",set:function(e){this.data.d!==e&&(this.data.d=e,this.ref.markForCheck())}},{key:"sourceStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null}},{key:"targetStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null}},{key:"point",get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint}}]),n}();vT.STOPPED_STATUS_RECT_WIDTH=10,vT.\u0275fac=function(r){return new(r||vT)(t.Y36(t.SBq),t.Y36(t.sBO))},vT.\u0275cmp=t.Xpm({type:vT,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:["app-status",""],decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(r,e){1&r&&t.YNc(0,Pje,3,2,"g",0),2&r&&t.Q6J("ngIf",e.status&&e.point&&e.direction)},dependencies:[le.O5]});var Rje=["textSvg"],EO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.elementRef=r,this.ref=e,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"x",set:function(e){this.label.x=e,this.ref.detectChanges()}},{key:"y",set:function(e){this.label.y=e,this.ref.detectChanges()}},{key:"text",get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()}},{key:"style",set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()}},{key:"rotation",set:function(e){this.label.rotation=e,this.ref.detectChanges()}},{key:"sanitizedStyle",get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)}},{key:"rectX",get:function(){return 0}},{key:"rectY",get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize}},{key:"rectWidth",get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize}},{key:"rectHeight",get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize}},{key:"transform",get:function(){if(this.elementRef.nativeElement.getBBox){var e=this.elementRef.nativeElement.getBBox(),i=this.label.x,o=this.label.y+e.height;return"translate(".concat(i,", ").concat(o,") rotate(").concat(this.label.rotation,", ").concat(i,", ").concat(o,")")}}}]),n}();EO.\u0275fac=function(r){return new(r||EO)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Dr),t.Y36(Sc))},EO.\u0275cmp=t.Xpm({type:EO,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Rje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:["app-interface-label",""],decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t._UZ(1,"rect",1),t.TgZ(2,"text",2,3),t._uU(4),t.qZA()()),2&r&&(t.uIk("transform",e.transform),t.xp6(1),t.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),t.xp6(1),t.uIk("style",e.sanitizedStyle,t.Ckj)("x",e.borderSize)("y",-e.borderSize),t.xp6(2),t.hij(" ",e.text," "))}});var Zje=["path"];function Bje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",5,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function Fje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",7,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function Uje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),t.Q6J("x",(null==e.link||null==e.link.source?null:e.link.source.x)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.x))("y",(null==e.link||null==e.link.source?null:e.link.source.y)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.y))("text",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.text)("rotation",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.rotation)}}function Hje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),t.Q6J("x",(null==e.link||null==e.link.target?null:e.link.target.x)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.x))("y",(null==e.link||null==e.link.target?null:e.link.target.y)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.y))("text",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.text)("rotation",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.rotation)}}var xO=function(){function n(r,e){(0,B.Z)(this,n),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new xje,this.serialLinkStrategy=new Dje}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.ref.detectChanges()}},{key:"ngOnDestroy",value:function(){}},{key:"strategy",get:function(){return this.link&&null!=this.link&&"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy}},{key:"transform",get:function(){if(this.link){var e=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate (".concat(e.dx,", ").concat(e.dy,")")}}},{key:"d",get:function(){return this.strategy.d(this.link)}}]),n}();xO.\u0275fac=function(r){return new(r||xO)(t.Y36(Fp),t.Y36(t.sBO))},xO.\u0275cmp=t.Xpm({type:xO,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Zje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.path=i.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:["app-link",""],decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,Bje,2,1,"path",1),t.YNc(2,Fje,2,1,"path",2),t._UZ(3,"g",3)(4,"g",3),t.YNc(5,Uje,1,6,"g",4),t.YNc(6,Hje,1,6,"g",4),t.qZA()),2&r&&(t.uIk("link_id",null==e.link?null:e.link.id)("map-source",null==e.link||null==e.link.source?null:e.link.source.id)("map-target",null==e.link||null==e.link.target?null:e.link.target.id)("transform",e.transform),t.xp6(1),t.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels))},dependencies:[le.O5,vT,EO]});var DO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.ellipse&&isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null}},{key:"stroke_width",get:function(){return this.ellipse&&isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.ellipse&&this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null}}]),n}();DO.\u0275fac=function(r){return new(r||DO)(t.Y36(Yu))},DO.\u0275cmp=t.Xpm({type:DO,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:["app-ellipse",""],decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"ellipse",0)),2&r&&t.uIk("fill",null==e.ellipse?null:e.ellipse.fill)("fill-opacity",e.fill_opacity)("stroke",null==e.ellipse?null:e.ellipse.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("cx",null==e.ellipse?null:e.ellipse.cx)("cy",null==e.ellipse?null:e.ellipse.cy)("rx",null==e.ellipse?null:e.ellipse.rx)("ry",null==e.ellipse?null:e.ellipse.ry)}});var AO=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();AO.\u0275fac=function(r){return new(r||AO)},AO.\u0275cmp=t.Xpm({type:AO,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:["app-image",""],decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"image",0)),2&r&&t.uIk("href",null==e.image?null:e.image.data,null,"xlink")("width",null==e.image?null:e.image.width)("height",null==e.image?null:e.image.height)}});var OO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"stroke_width",get:function(){return this.line&&isFinite(this.line.stroke_width)?this.line.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.line&&this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null}}]),n}();OO.\u0275fac=function(r){return new(r||OO)(t.Y36(Yu))},OO.\u0275cmp=t.Xpm({type:OO,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:["app-line",""],decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(r,e){var i;(1&r&&(t.O4$(),t._UZ(0,"line",0)),2&r)&&t.uIk("stroke",null==e.line?null:e.line.stroke)("stroke-width",null!==(i=e.stroke_width)&&void 0!==i?i:"")("stroke-dasharray",e.stroke_dasharray)("x1",null==e.line?null:e.line.x1)("x2",null==e.line?null:e.line.x2)("y1",null==e.line?null:e.line.y1)("y2",null==e.line?null:e.line.y2)}});var IO=function(){function n(r){(0,B.Z)(this,n),this.qtDasharrayFixer=r}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.rect&&isFinite(this.rect.fill_opacity)&&this.rect.fill_opacity?this.rect.fill_opacity:null}},{key:"stroke_width",get:function(){return this.rect&&isFinite(this.rect.stroke_width)&&this.rect.stroke_width?this.rect.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.rect&&this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null}}]),n}();IO.\u0275fac=function(r){return new(r||IO)(t.Y36(Yu))},IO.\u0275cmp=t.Xpm({type:IO,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:9,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("fill",null==e.rect?null:e.rect.fill)("fill-opacity",e.fill_opacity?e.fill_opacity:"")("stroke",null==e.rect?null:e.rect.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("width",null==e.rect?null:e.rect.width)("height",null==e.rect?null:e.rect.height)("rx",null==e.rect?null:e.rect.rx)("ry",null==e.rect?null:e.rect.ry)}});var Vje=["text"];function Kje(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan",3),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.uIk("dy",0==i?"0em":"1.4em"),t.xp6(1),t.hij(" ",e," ")}}var yT=function(){function n(r,e){(0,B.Z)(this,n),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.text&&(this.lines=this.getLines(this.text.text))}},{key:"ngDoCheck",value:function(){this.transformation=this.calculateTransformation()}},{key:"style",get:function(){if(this.text){var e=this.fontFixer.fix(this.text),i=[];return e.font_family&&i.push('font-family: "'.concat(this.text.font_family,'"')),e.font_size&&i.push("font-size: ".concat(this.text.font_size,"pt")),e.font_weight&&i.push("font-weight: ".concat(this.text.font_weight)),this.sanitizer.bypassSecurityTrustStyle(i.join("; "))}}},{key:"textDecoration",get:function(){if(this.text)return this.text.text_decoration}},{key:"calculateTransformation",value:function(){if(null!=this.textRef){var e=this.textRef.nativeElement.getElementsByTagName("tspan");if(e.length>0){var i=this.textRef.nativeElement.getBBox().height/e.length;return"translate(".concat(n.MARGIN,", ").concat(i-n.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),n}();yT.MARGIN=4,yT.\u0275fac=function(r){return new(r||yT)(t.Y36(os),t.Y36(Dr))},yT.\u0275cmp=t.Xpm({type:yT,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Vje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{text:["app-text","text"]},attrs:["app-text",""],decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"text",0,1),t.YNc(2,Kje,2,2,"tspan",2),t.qZA()),2&r){var i=t.MAs(1);t.uIk("style",e.style,t.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),t.xp6(2),t.Q6J("ngForOf",e.lines)}},dependencies:[le.sg]});function Jje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",6)),2&n){var e=t.oxw();t.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function Qje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",7)),2&n){var e=t.oxw();t.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function Xje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function $je(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",9)),2&n){var e=t.oxw();t.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function eGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",10)),2&n){var e=t.oxw();t.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var PO=function(){function n(r,e,i){(0,B.Z)(this,n),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(e){}}},{key:"OnDragging",value:function(e){this.drawing.x=e?e.x:"",this.drawing.y=e?e.y:"",this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new Jk(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof ea:"image"===i?e instanceof w5:"line"===i?e instanceof bb:"rect"===i?e instanceof af:"text"===i&&e instanceof Cb)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),n}();PO.\u0275fac=function(r){return new(r||PO)(t.Y36(Wp),t.Y36(Zl),t.Y36(t.sBO))},PO.\u0275cmp=t.Xpm({type:PO,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:["app-drawing",""],decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.YNc(1,Jje,1,1,"g",1),t.YNc(2,Qje,1,1,"g",2),t.YNc(3,Xje,1,1,"g",3),t.YNc(4,$je,1,1,"g",4),t.YNc(5,eGe,1,1,"g",5),t.qZA()),2&r&&(t.Q6J("app-draggable",e.drawing),t.uIk("transform",e.transformation),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},dependencies:[le.O5,DO,AO,OO,IO,yT,_T]});function nGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",2)),2&n){var e=t.oxw();t.uIk("d",e.d)}}var RO=function(){function n(r){(0,B.Z)(this,n),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=oo.y.fromEvent(this.svg,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){d.target===e.svg&&(e.started=!0,e.startX=(null==d?void 0:d.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==d?void 0:d.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=oo.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=oo.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=oo.y.fromEvent(document,"scroll").startWith({}),l=oo.y.combineLatest([a,s]),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Yn.Z)(h,2),y=g[0];g[1];return y}).do(function(h){!e.started||(e.visible=!0,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))}).skipUntil(o.take(1).do(function(h){!e.started||(e.visible=!1,e.started=!1,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}},{key:"d",get:function(){return this.rect(this.startX,this.startY,this.width,this.height)}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.rectangleSelected.emit(new Cse(o,a,s,l))}}]),n}();RO.\u0275fac=function(r){return new(r||RO)(t.Y36(t.sBO))},RO.\u0275cmp=t.Xpm({type:RO,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:["app-selection",""],decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,nGe,1,1,"path",1),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",e.visible))},dependencies:[le.O5]});var rGe=["svg"];function iGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",12)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function oGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",13)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-node",e)("symbols",i.symbols)}}function aGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",14)),2&n){var e=r.$implicit;t.Q6J("app-drawing",e)}}function sGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g")(1,"g",6),t.YNc(2,iGe,1,2,"g",7),t.qZA(),t.TgZ(3,"g",8),t.YNc(4,oGe,1,2,"g",9),t.qZA(),t.TgZ(5,"g",10),t.YNc(6,aGe,1,1,"g",11),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("ngForOf",e.nodes),t.xp6(2),t.Q6J("ngForOf",e.drawings)}}var LO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=l,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return(0,U.Z)(n,[{key:"showInterfaceLabels",set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()}},{key:"movingTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"selectionTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){}},{key:"ngOnChanges",value:function(e){}},{key:"ngOnInit",value:function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.changesDetected.unsubscribe()}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"layers",get:function(){return this.layersManger.getLayersList()}},{key:"transform",get:function(){var e=new Ys;e.size=this.getSize();var i=e.getZeroZeroTransformationPoint().x+e.transformation.x,o=e.getZeroZeroTransformationPoint().y+e.transformation.y,a=e.transformation.k;return"translate(".concat(i,", ").concat(o,") scale(").concat(a,")")}},{key:"onResize",value:function(e){}}]),n}();LO.\u0275fac=function(r){return new(r||LO)(t.Y36(Up),t.Y36(Ys),t.Y36(Hp),t.Y36(qg),t.Y36(t.sBO),t.Y36(Fm),t.Y36(iv))},LO.\u0275cmp=t.Xpm({type:LO,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(rGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[t.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"g"),t.YNc(3,sGe,7,3,"g",2),t.qZA(),t._UZ(4,"g",3),t.TgZ(5,"filter",4),t._UZ(6,"feColorMatrix",5),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("width",e.width)("height",e.height),t.xp6(2),t.uIk("transform",e.transform),t.xp6(1),t.Q6J("ngForOf",e.layers),t.xp6(1),t.Q6J("app-selection",i)}},dependencies:[le.sg,gT,xO,PO,RO],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var jb=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"onCancelClick",value:function(){this.dialogRef.close(n.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),n}();jb.\u0275fac=function(r){return new(r||jb)(t.Y36(cr),t.Y36(ko))},jb.\u0275cmp=t.Xpm({type:jb,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Operation in progress"),t.qZA(),t.TgZ(2,"div",1),t._UZ(3,"mat-progress-bar",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("value",e.value))},dependencies:[fn,br,Hu,fr,cb]});var lGe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),Ym=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"create",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots"),o)}},{key:"delete",value:function(e,i,o){return this.httpController.delete(e,"/projects/".concat(i,"/snapshots/").concat(o))}},{key:"list",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i,"/snapshots"))}},{key:"restore",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots/").concat(o,"/restore"),{})}}]),n}();Ym.\u0275fac=function(r){return new(r||Ym)(t.LFG(ho.zw))},Ym.\u0275prov=t.Yz7({token:Ym,factory:Ym.\u0275fac});var ZO=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new lGe,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new J.p4("",J.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(d){l.snapshots.push(d.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,U.Z)(n,[{key:"isAlwaysRunningNode",value:function(e){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou"].includes(e)}},{key:"onAddClick",value:function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();ZO.\u0275fac=function(r){return new(r||ZO)(t.Y36(cr),t.Y36(J.QS),t.Y36(Zn),t.Y36(Ym),t.Y36(za.G),t.Y36(ko))},ZO.\u0275cmp=t.Xpm({type:ZO,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Create snapshot"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to snapshots "),t.qZA()(),t.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),t._UZ(8,"input",6),t.qZA()()(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",9),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13,"Add"),t.qZA()()),2&r&&(t.xp6(3),t.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),t.xp6(3),t.Q6J("formGroup",e.inputForm))},dependencies:[$o,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,qn,br,Hu,fr],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]});var mv=function(){function n(r){(0,B.Z)(this,n),this.dialog=r}return(0,U.Z)(n,[{key:"open",value:function(){return this.dialog.open(jb,{width:"250px",autoFocus:!1,disableClose:!0})}}]),n}();mv.\u0275fac=function(r){return new(r||mv)(t.LFG(Gr))},mv.\u0275prov=t.Yz7({token:mv,factory:mv.\u0275fac});var NO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(ZO,{width:"450px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){if(o&&e.project.project_id){var a=e.snapshotService.create(e.controller,e.project.project_id,o),s=e.progressDialogService.open(),l=a.subscribe(function(u){e.toaster.success("Snapshot '".concat(o.name,"' has been created.")),s.close()});s.afterClosed().subscribe(function(u){u===jb.CANCELLED&&l.unsubscribe()})}})}}]),n}();NO.\u0275fac=function(r){return new(r||NO)(t.Y36(Gr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},NO.\u0275cmp=t.Xpm({type:NO,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",controller:"controller"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.createSnapshotModal()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA()())},dependencies:[fn,Dn,mi]});var BO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.templateService=e,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeControllers=["local","vm"],this.controller=o.controller,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new J.p4(1,[J.kI.compose([J.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new J.p4(0,J.kI.required),left:new J.p4(0,J.kI.required)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.templates=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});this.filteredTemplates=o.filter(function(a){return a.template_type===e.value.toString()})}},{key:"chooseTemplate",value:function(e){this.selectedTemplate=e.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")}},{key:"onAddClick",value:function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var e=this.positionForm.get("left").value,i=this.positionForm.get("top").value;if(e>this.project.scene_width/2||e<-this.project.scene_width/2||i>this.project.scene_height/2||i<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var o={template:this.selectedTemplate,controller:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:e,y:i};this.dialogRef.close(o)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")}}]),n}();BO.\u0275fac=function(r){return new(r||BO)(t.Y36(cr),t.Y36(Xd),t.Y36(J.QS),t.Y36(ko),t.Y36(Zn),t.Y36(uf))},BO.\u0275cmp=t.Xpm({type:BO,selectors:[["app-template-list-dialog"]],decls:0,vars:0,template:function(r,e){},styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}"]});function uGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Z5=function(r,e){return{templateText:r,lightTemplateText:e}};function cGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+1]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,Z5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+1].name)}}function dGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+2]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,Z5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+2].name)}}function fGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+3]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,Z5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+3].name)}}function pGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",13)(1,"span",14)(2,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(2);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw().index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l]))}),t._UZ(3,"img",16),t.qZA(),t.TgZ(4,"div",17),t._uU(5),t.qZA()(),t.YNc(6,cGe,5,6,"span",18),t.YNc(7,dGe,5,6,"span",18),t.YNc(8,fGe,5,6,"span",18),t.qZA()}if(2&n){var i=t.oxw().index,o=t.oxw();t.xp6(3),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(6,Z5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i].name),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+1]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+2]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+3])}}function hGe(n,r){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,pGe,9,9,"span",12),t.qZA()),2&n){var e=r.index;t.xp6(1),t.Q6J("ngIf",e%4==0)}}var Gse=function(){return{standalone:!0}},FO=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new t.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.isLightThemeEnabled=!1,this.overlay=l.getContainerElement()}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(i){e.templates.push(i)}),this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.sortTemplates(),e.templates=i}),this.symbolService.list(this.controller),"light"===this.themeService.getActualTheme()&&(this.isLightThemeEnabled=!0),this.themeSubscription=this.themeService.themeChanged.subscribe(function(i){"light-theme"===i&&(e.isLightThemeEnabled=!0),e.toggleTheme()})}},{key:"toggleTheme",value:function(){this.overlay.classList.contains("dark-theme")?(this.overlay.classList.remove("dark-theme"),this.overlay.classList.add("light-theme")):this.overlay.classList.contains("light-theme")?(this.overlay.classList.remove("light-theme"),this.overlay.classList.add("dark-theme")):this.overlay.classList.add("light-theme")}},{key:"sortTemplates",value:function(){this.filteredTemplates=this.filteredTemplates.sort(function(e,i){return e.name<i.name?-1:1})}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all"!==this.selectedType&&this.selectedType?this.filteredTemplates=o.filter(function(a){return a.template_type===i.selectedType}):this.filteredTemplates=o,this.sortTemplates()}},{key:"dragStart",value:function(e){var i=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=i.top-event.clientY,this.movementX=i.left-event.clientX}},{key:"dragEnd",value:function(e,i){var o=this;this.symbolService.raw(this.controller,i.symbol.substring(1)).subscribe(function(a){var s=+a.split('width="')[1].split('"')[0]?+a.split('width="')[1].split('"')[0]:0,l=o.scaleService.getScale(),u={template:i,controller:"local",numberOfNodes:1,x:(o.startX+e.x-o.project.scene_width/2-s/2)*l+window.scrollX,y:(o.startY+e.y-o.project.scene_height/2)*l+window.scrollY};o.onNodeCreation.emit(u)})}},{key:"openDialog",value:function(){var e=this;this.dialog.open(BO,{width:"600px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){null!==o&&e.onNodeCreation.emit(o)})}},{key:"getImageSourceForTemplate",value:function(e){return this.symbolService.getSymbolFromTemplate(this.controller,e)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();FO.\u0275fac=function(r){return new(r||FO)(t.Y36(Gr),t.Y36(Xd),t.Y36(sf),t.Y36(Op),t.Y36(Dr),t.Y36(wc.f),t.Y36(Li.Xj))},FO.\u0275cmp=t.Xpm({type:FO,selectors:[["app-template"]],inputs:{controller:"controller",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search template by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[3,"ngClass"],["class","templateIcon",4,"ngIf"]],template:function(r,e){if(1&r&&(t.TgZ(0,"button",0)(1,"mat-icon"),t._uU(2,"add"),t.qZA()(),t.TgZ(3,"mat-menu",null,1)(5,"button",2),t.NdJ("click",function(){return e.openDialog()}),t.TgZ(6,"mat-icon"),t._uU(7,"add_to_queue"),t.qZA(),t.TgZ(8,"span"),t._uU(9,"Open dialog to configure"),t.qZA()(),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(11,"input",4),t.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(12,"mat-form-field",5),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(13,"mat-select",6),t.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),t.YNc(14,uGe,2,2,"mat-option",7),t.qZA()(),t.TgZ(15,"div",8)(16,"div",9),t.YNc(17,hGe,2,1,"mat-list-item",10),t.qZA()()()),2&r){var i=t.MAs(4);t.Q6J("matMenuTriggerFor",i),t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(7,Gse)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Gse))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(3),t.Q6J("ngForOf",e.filteredTemplates)}},dependencies:[le.mk,le.sg,le.O5,J.Fj,J.JJ,J.On,kn.KE,Ga,Er,ga,jE,fn,Dn,qn,Oa,di.gD,Gt.ey,mi],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.lightTemplateText[_ngcontent-%COMP%]{word-wrap:break-word;color:#000}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]});var mGe=(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function _Ge(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",10),t.qZA())}function gGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",11),t.qZA())}function vGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.chooseInterface(s))}),t.YNc(1,_Ge,2,0,"svg",7),t.YNc(2,gGe,2,0,"svg",7),t.TgZ(3,"span",8),t._uU(4),t.qZA()()}if(2&n){var i=r.$implicit;t.Q6J("disabled",!i.available),t.xp6(1),t.Q6J("ngIf",i.available),t.xp6(1),t.Q6J("ngIf",!i.available),t.xp6(2),t.Oqu(i.name)}}function yGe(n,r){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"span",2),t.TgZ(2,"mat-menu",3,4),t.YNc(4,vGe,5,4,"button",5),t.qZA()()),2&n){var e=t.MAs(3),i=t.oxw();t.Udp("left",i.leftPosition)("top",i.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Udp("min-height",0),t.xp6(2),t.Q6J("ngForOf",i.ports)}}var bT=function(){function n(r,e){(0,B.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0)}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"open",value:function(e,i,o){this.node=e,this.filterNodePorts(),this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"filterNodePorts",value:function(){var e=this,i=[];this.links.forEach(function(o){o.nodes.forEach(function(a){a.node_id===e.node.node_id&&i.push(a)})}),this.ports=[],this.node.ports.forEach(function(o){var a=i.filter(function(s){return s.adapter_number===o.adapter_number});0===a.length||0===a.filter(function(s){return s.port_number===o.port_number}).length?o.available=!0:o.available=!1,e.ports.push(o)})}},{key:"chooseInterface",value:function(e){this.onChooseInterface.emit({node:this.node,port:e})}}]),n}();bT.\u0275fac=function(r){return new(r||bT)(t.Y36(Dr),t.Y36(t.sBO))},bT.\u0275cmp=t.Xpm({type:bT,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ga,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(r,e){1&r&&t.YNc(0,yGe,5,8,"div",0),2&r&&t.Q6J("ngIf",e.node)},dependencies:[le.sg,le.O5,Ga,Er,ga],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0px!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]});var UO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(i){var o=e.mapNodeToNode.convert(i.datum);e.nodeSelectInterfaceMenu.open(o,i.y,i.x)})}},{key:"ngOnDestroy",value:function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()}},{key:"onChooseInterface",value:function(e){var i=this.nodeToMapNode.convert(e.node),o=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var a=this.drawingLineTool.stop();this.linksEventSource.created.emit(new mGe(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),n}();UO.\u0275fac=function(r){return new(r||UO)(t.Y36($g),t.Y36(pd),t.Y36(hd),t.Y36(Vm),t.Y36(Yg),t.Y36(Vg))},UO.\u0275cmp=t.Xpm({type:UO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(bT,5),2&r)&&(t.iGM(i=t.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(t.TgZ(0,"app-node-select-interface",0),t.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),t.qZA()),2&r&&t.Q6J("links",e.links)},dependencies:[bT]});var HO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(i){return e.onDrawingResized(i)})}},{key:"onDrawingResized",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id),a=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.controller,o,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.update(s)})}},{key:"ngOnDestroy",value:function(){this.drawingResized.unsubscribe()}}]),n}();HO.\u0275fac=function(r){return new(r||HO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(_d))},HO.\u0275cmp=t.Xpm({type:HO,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var jO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new t.vpe}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(i){return e.onTextAdded(i)})}},{key:"onTextAdded",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock("text");o.element.text=e.savedText;var a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textAdded.unsubscribe()}}]),n}();jO.\u0275fac=function(r){return new(r||jO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d),t.Y36(Ys))},jO.\u0275cmp=t.Xpm({type:jO,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){}});var GO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(i){return e.onTextEdited(i)})}},{key:"onTextEdited",value:function(e){var i=this,o=new Nm;o.element=e.textElement,o.element.text=e.editedText;var a=this.mapDrawingToSvgConverter.convert(o),s=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.controller,s,a).subscribe(function(l){i.drawingsDataSource.update(l),i.drawingsEventSource.textSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textEdited.unsubscribe()}}]),n}();GO.\u0275fac=function(r){return new(r||GO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(_d))},GO.\u0275cmp=t.Xpm({type:GO,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var zO=function(){function n(r,e,i){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(i){return e.onNodeDragged(i)})}},{key:"onNodeDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.nodeService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.nodesDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.nodeDragged.unsubscribe()}}]),n}();zO.\u0275fac=function(r){return new(r||zO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd))},zO.\u0275cmp=t.Xpm({type:zO,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var WO=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(i){return e.onNodeLabelDragged(i)})}},{key:"onNodeLabelDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.nodeId),a=e.datum;a.x+=e.dx,a.y+=e.dy;var s=this.mapLabelToLabel.convert(a);o.label=s,this.nodeService.updateLabel(this.controller,o,o.label).subscribe(function(l){i.nodesDataSource.update(l)})}},{key:"ngOnDestroy",value:function(){this.nodeLabelDragged.unsubscribe()}}]),n}();WO.\u0275fac=function(r){return new(r||WO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd),t.Y36(qp))},WO.\u0275cmp=t.Xpm({type:WO,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var VO=function(){function n(r,e,i){(0,B.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(i){return e.onDrawingDragged(i)})}},{key:"onDrawingDragged",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.drawingService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.drawingsDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.drawingDragged.unsubscribe()}}]),n}();VO.\u0275fac=function(r){return new(r||VO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl))},VO.\u0275cmp=t.Xpm({type:VO,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var YO=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe(function(i){return e.onLinkCreated(i)})}},{key:"onLinkCreated",value:function(e){var i=this,o=Math.abs(e.sourceNode.x-e.targetNode.x),a=Math.abs(e.sourceNode.y-e.targetNode.y),s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2)),l=a/s,u=45/s*o,d=45/s*a,h=0,g=0,y=0,L=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5,y=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),L=Math.floor(e.targetNode.height/2)-Math.round(d)+5-Math.round(20*l)):e.sourceNode.x>e.targetNode.x&&e.sourceNode.y<e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)+Math.round(u)+5,L=Math.floor(e.targetNode.height/2)-Math.round(d)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)-5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)-Math.round(u)-5,L=Math.floor(e.targetNode.height/2)+Math.round(d)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)+5-Math.round(20*l),y=Math.floor(e.targetNode.width/2)+Math.round(u)+5,L=Math.floor(e.targetNode.height/2)+Math.round(d)+5);var z=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),re=this.mapNodeToNode.convert(e.targetNode),ae=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,z,q,re,ae,h,g,y,L).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Se){i.linksDataSource.set(Se)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),n}();YO.\u0275fac=function(r){return new(r||YO)(t.Y36(Ws.Y),t.Y36(pl),t.Y36(Hm.F),t.Y36(hd),t.Y36(Vm),t.Y36(pv))},YO.\u0275cmp=t.Xpm({type:YO,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var KO=function(){function n(r,e,i){(0,B.Z)(this,n),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(i){return e.onInterfaceLabelDragged(i)})}},{key:"onInterfaceLabelDragged",value:function(e){var i=this,o=this.linksDataSource.get(e.datum.linkId);o.nodes[0].node_id===e.datum.nodeId&&(o.nodes[0].label.x+=e.dx,o.nodes[0].label.y+=e.dy),o.nodes[1].node_id===e.datum.nodeId&&(o.nodes[1].label.x+=e.dx,o.nodes[1].label.y+=e.dy),this.linkService.updateNodes(this.controller,o,o.nodes).subscribe(function(a){i.linksDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.interfaceDragged.unsubscribe()}}]),n}();KO.\u0275fac=function(r){return new(r||KO)(t.Y36(pl),t.Y36(Hm.F),t.Y36(hd))},KO.\u0275cmp=t.Xpm({type:KO,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var qO=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),n}();qO.\u0275fac=function(r){return new(r||qO)(t.Y36(ko),t.Y36(cr))},qO.\u0275cmp=t.Xpm({type:qO,selectors:[["app-nodes-menu-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[fn,Ig,Hu,fr,hm.d],styles:[".close-btn[_ngcontent-%COMP%]{height:30px;width:30px;margin-left:10px;margin-bottom:10px}.close-icon[_ngcontent-%COMP%]{font-size:15px}.text-padding[_ngcontent-%COMP%]{padding:15px 0 0}.mat-dialog-actions[_ngcontent-%COMP%]{min-height:31px}.heading-txt[_ngcontent-%COMP%]{text-transform:capitalize}"]});var JO=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.nodeService=r,this.nodeConsoleService=e,this.nodesDataSource=i,this.toasterService=o,this.controllerService=a,this.settingsService=s,this.mapSettingsService=l,this.electronService=u,this.dialog=d}return(0,U.Z)(n,[{key:"startConsoleForAllNodes",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!this.electronService.isElectronApp){h.next=23;break}i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),o=this.nodesDataSource.getItems(),a=(0,An.Z)(o),h.prev=4,a.s();case 6:if((s=a.n()).done){h.next=13;break}return l=s.value,u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=11,this.electronService.remote.require("./console-executor.js").openConsole(u);case 11:h.next=6;break;case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(4),a.e(h.t0);case 18:return h.prev=18,a.f(),h.finish(18);case 21:h.next=24;break;case 23:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems());case 24:case"end":return h.stop()}},e,this,[[4,15,18,21]])}))}},{key:"startNodes",value:function(){var e=this;this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully started")})}},{key:"stopNodes",value:function(){var e=this;this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully stopped")})}},{key:"suspendNodes",value:function(){var e=this;this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully suspended")})}},{key:"reloadNodes",value:function(){var e=this;this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully reloaded")})}},{key:"resetNodes",value:function(){var e=this;this.nodeService.resetAllNodes(this.controller,this.project).subscribe(function(){e.toasterService.success("Successfully reset all console connections")})}},{key:"confirmControlsActions",value:function(e){var i=this;this.dialog.open(qO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:e}).afterClosed().subscribe(function(a){a.isAction&&"start"==a.actionType?i.startNodes():a.isAction&&"stop"==a.actionType?i.stopNodes():a.isAction&&"reload"==a.actionType?i.reloadNodes():a.isAction&&"suspend"==a.actionType?i.suspendNodes():i.resetNodes()})}}]),n}();JO.\u0275fac=function(r){return new(r||JO)(t.Y36(Fr),t.Y36(uu),t.Y36(za.G),t.Y36(Zn),t.Y36(or),t.Y36(Gm.g),t.Y36(fl),t.Y36(ul),t.Y36(Gr))},JO.\u0275cmp=t.Xpm({type:JO,selectors:[["app-nodes-menu"]],inputs:{project:"project",controller:"controller"},decls:19,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reset all console connections","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return e.startConsoleForAllNodes()}),t.TgZ(2,"mat-icon"),t._uU(3,"web_asset"),t.qZA()(),t.TgZ(4,"button",2),t.NdJ("click",function(){return e.confirmControlsActions("start")}),t.TgZ(5,"mat-icon"),t._uU(6,"play_arrow"),t.qZA()(),t.TgZ(7,"button",3),t.NdJ("click",function(){return e.confirmControlsActions("suspend")}),t.TgZ(8,"mat-icon"),t._uU(9,"pause"),t.qZA()(),t.TgZ(10,"button",4),t.NdJ("click",function(){return e.confirmControlsActions("stop")}),t.TgZ(11,"mat-icon"),t._uU(12,"stop"),t.qZA()(),t.TgZ(13,"button",5),t.NdJ("click",function(){return e.confirmControlsActions("reload")}),t.TgZ(14,"mat-icon"),t._uU(15,"replay"),t.qZA()(),t.TgZ(16,"button",6),t.NdJ("click",function(){return e.confirmControlsActions("reset")}),t.TgZ(17,"mat-icon"),t._uU(18,"compare_arrows"),t.qZA()()())},dependencies:[fn,Dn,mi],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var QO=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new Eg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(i,o,a,s){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"iou"===e.template.template_type?e.iouService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()})}}},{key:"onUploadComplete",value:function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]}},{key:"uploadAppliance",value:function(e){var l,i=this,o=e.target.files[0],a=o.name,s=new FileReader;s.onloadend=function(){var u=JSON.parse(s.result);if(u.qemu)(l=new $G).template_type="qemu",l.adapter_type=u.qemu.adapter_type,l.adapters=u.qemu.adapters,l.ram=u.qemu.ram,l.options=u.qemu.options,l.console_type=u.qemu.console_type;else if(u.iou)(l=new XG).template_type="iou",l.console_type=u.iou.console_type,l.console_auto_start=u.iou.console_auto_start,l.ethernet_adapters=u.iou.ethernet_adapters,l.l1_keepalives=u.iou.l1_keepalives,l.use_default_iou_values=u.iou.use_default_iou_values,l.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new QG).template_type="dynamips",l.platform=u.dynamips.platform,l.ram=u.dynamips.ram,l.nvram=u.dynamips.nvram,l.startup_config=u.dynamips.startup_config,l.wic0=u.dynamips.wic0,l.wic1=u.dynamips.wic1,l.wic2=u.dynamips.wic2,l.slot0=u.dynamips.slot0,l.slot1=u.dynamips.slot1,l.slot2=u.dynamips.slot2,l.slot3=u.dynamips.slot3,l.slot4=u.dynamips.slot4,l.slot5=u.dynamips.slot5,l.slot6=u.dynamips.slot6,l.slot7=u.dynamips.slot7;else{if(!u.docker)return void i.toasterService.error("Template type not supported");(l=new JG).template_type="docker",l.adapters=u.docker.adapters,l.console_type=u.docker.console_type,l.image=u.docker.image}l.name=u.name,l.category=u.category,l.builtin=!1,l.default_name_format="{name}-{0}",l.compute_id="vm","guest"===l.category?l.symbol=":/symbols/computer.svg":l.symbol=":/symbols/".concat(l.category,"_guest.svg"),i.template=l;var h=i.getUploadPath(i.controller,l.template_type,a);i.uploader.queue.forEach(function(y){return y.url=h});var g=i.uploader.queue[0];i.uploader.uploadItem(g)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/").concat(i,"/images/").concat(o)}}]),n}();QO.\u0275fac=function(r){return new(r||QO)(t.Y36(Zn),t.Y36(id),t.Y36(Gu),t.Y36(ld),t.Y36(sd))},QO.\u0275cmp=t.Xpm({type:QO,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){}});var zse=m(4147).i8,_v=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(WB.o);_v.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_v)))(e||_v)}}(),_v.\u0275prov=t.Yz7({token:_v,factory:_v.\u0275fac});var bGe=["console"];function CGe(n,r){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t._UZ(2,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.message," ")}}var N5=function(r){return{lightTheme:r}},XO=function(){function n(r,e,i,o,a,s,l,u,d){(0,B.Z)(this,n),this.projectWebServiceHandler=r,this.nodeService=e,this.nodesDataSource=i,this.logEventsDataSource=o,this.httpService=a,this.themeService=s,this.cd=l,this.nodeConsoleService=u,this.changeDetectorRef=d,this.version=zse,this.command="",this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new J.p4(0)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeConsoleService.consoleResized.subscribe(function(i){e.style={bottom:"20px",left:"20px",width:"".concat(i.width,"px"),height:"".concat(i.height-70,"px")},e.changeDetectorRef.detectChanges()}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(i){var o=i.event,a="";a=o.label?"Event received: ".concat(i.action," - ").concat(e.printNode(o),"."):"Event received: ".concat(i.action," - ").concat(o.name,"."),e.showMessage({type:"map update",message:a})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printLink(o),".");e.showMessage({type:"map update",message:a})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printDrawing(o),".");e.showMessage({type:"map update",message:a})}),this.controllerRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(i){e.showMessage({type:"controller request",message:i})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(i){e.showMessage({type:"info",message:i})})}},{key:"ngAfterViewInit",value:function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)}},{key:"ngOnDestroy",value:function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.controllerRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()}},{key:"applyFilter",value:function(e){this.selectedFilter=e,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.handleCommand()}},{key:"handleCommand",value:function(){var e=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var i=this.command.split(/[ ,]+/),o=this.nodesDataSource.getItems().find(function(a){return a.name.valueOf()===i[1].valueOf()});o?this.regexStart.test(this.command)?(this.showCommand("Starting node ".concat(i[1],"...")),this.nodeService.start(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," started."))})):this.regexStop.test(this.command)?(this.showCommand("Stopping node ".concat(i[1],"...")),this.nodeService.stop(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," stopped."))})):this.regexSuspend.test(this.command)?(this.showCommand("Suspending node ".concat(i[1],"...")),this.nodeService.suspend(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," suspended."))})):this.regexReload.test(this.command)?(this.showCommand("Reloading node ".concat(i[1],"...")),this.nodeService.reload(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," reloaded."))})):this.regexConsole.test(this.command)?"started"===o.status?(this.showCommand("Launching console for node ".concat(i[1],"...")),"telnet"===o.console_type?location.assign("gns3+telnet://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"vnc"===o.console_type?location.assign("gns3+vnc://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("spice")?location.assign("gns3+spice://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("http")?window.open("".concat(o.console_type,"://").concat(o.console_host,":").concat(o.console)):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o))):this.showCommand("Node with ".concat(i[1]," name was not found."))}else this.showCommand("Unknown syntax: ".concat(this.command));this.command="",this.cd.detectChanges()}},{key:"clearConsole",value:function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight}},{key:"showCommand",value:function(e){this.showMessage({type:"command",message:e})}},{key:"showMessage",value:function(e){var i=this;this.logEventsDataSource.add(e),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){i.console.nativeElement.scrollTop=i.console.nativeElement.scrollHeight},100),this.cd.detectChanges()}},{key:"getFilteredEvents",value:function(){return"controller requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"controller request"===e.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"error"===e.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"warning"===e.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"info"===e.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"map update"===e.type||"command"===e.type}):this.logEventsDataSource.getItems()}},{key:"printNode",value:function(e){return"command_line: ".concat(e.command_line,",\n compute_id: ").concat(e.compute_id,",\n console: ").concat(e.console,",\n console_host: ").concat(e.console_host,",\n console_type: ").concat(e.console_type,",\n first_port_name: ").concat(e.first_port_name,",\n height: ").concat(e.height,",\n label: ").concat(e.label.text,",\n name: ").concat(e.name,",\n node_directory: ").concat(e.node_directory,",\n node_id: ").concat(e.node_id,",\n node_type: ").concat(e.node_type,",\n port_name_format: ").concat(e.port_name_format,",\n port_segment_size: ").concat(e.port_segment_size,", ")+this.printPorts(e.ports)+"project_id: ".concat(e.project_id,",\n status: ").concat(e.status,",\n symbol: ").concat(e.symbol,",\n symbol_url: ").concat(e.symbol_url,",\n width: ").concat(e.width,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}},{key:"printPorts",value:function(e){var i="ports: ";return e.forEach(function(o){i+="adapter_number: ".concat(o.adapter_number,",\n link_type: ").concat(o.link_type,",\n name: ").concat(o.name,",\n port_number: ").concat(o.port_number,",\n short_name: ").concat(o.short_name,", ")}),i}},{key:"printLink",value:function(e){return"capture_file_name: ".concat(e.capture_file_name,",\n capture_file_path: ").concat(e.capture_file_path,",\n capturing: ").concat(e.capturing,",\n link_id: ").concat(e.link_id,",\n link_type: ").concat(e.link_type,",\n project_id: ").concat(e.project_id,",\n suspend: ").concat(e.suspend,", ")}},{key:"printDrawing",value:function(e){return"drawing_id: ".concat(e.drawing_id,",\n project_id: ").concat(e.project_id,",\n rotation: ").concat(e.rotation,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}}]),n}();XO.\u0275fac=function(r){return new(r||XO)(t.Y36(fv),t.Y36(Fr),t.Y36(za.G),t.Y36(_v),t.Y36(ho.zw),t.Y36(wc.f),t.Y36(t.sBO),t.Y36(uu),t.Y36(t.sBO))},XO.\u0275cmp=t.Xpm({type:XO,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(bGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.console=i.first))},inputs:{controller:"controller",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t._uU(3," Apply filter "),t.qZA(),t.TgZ(4,"mat-menu",3,4)(6,"button",5),t.NdJ("click",function(){return e.applyFilter("all")}),t._uU(7,"all"),t.qZA(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.applyFilter("errors")}),t._uU(9,"errors"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return e.applyFilter("warnings")}),t._uU(11,"warnings"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return e.applyFilter("info")}),t._uU(13,"info"),t.qZA(),t.TgZ(14,"button",5),t.NdJ("click",function(){return e.applyFilter("map updates")}),t._uU(15,"map updates"),t.qZA(),t.TgZ(16,"button",5),t.NdJ("click",function(){return e.applyFilter("controller requests")}),t._uU(17,"controller requests"),t.qZA()()()(),t.TgZ(18,"div",6,7),t.YNc(20,CGe,3,1,"span",8),t.qZA(),t.TgZ(21,"div",9)(22,"mat-icon",10),t._uU(23,"keyboard_arrow_right"),t.qZA(),t.TgZ(24,"input",11),t.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Q6J("ngClass",t.VKq(8,N5,e.isLightThemeEnabled))("matMenuTriggerFor",i),t.xp6(16),t.Q6J("ngClass",t.VKq(10,N5,e.isLightThemeEnabled))("ngStyle",e.style),t.xp6(2),t.Q6J("ngForOf",e.filteredEvents),t.xp6(1),t.Q6J("ngClass",t.VKq(12,N5,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("ngClass",t.VKq(14,N5,e.isLightThemeEnabled))("ngModel",e.command)}},dependencies:[le.mk,le.sg,le.PC,J.Fj,J.JJ,J.On,Ga,Er,ga,Dn],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0});var Wse=m(4793),Vse=m(986),Yse=m(9162),wGe=["terminal"],$O=function(){function n(r,e){(0,B.Z)(this,n),this.consoleService=r,this.themeService=e,this.term=new Wse.Terminal,this.fitAddon=new Yse.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.consoleService.consoleResized.subscribe(function(i){var o=Math.floor(i.width/9),a=Math.floor(i.height/17);e.consoleService.setNumberOfColumns(o),e.consoleService.setNumberOfRows(a),e.term.resize(o,a)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())}},{key:"ngAfterViewInit",value:function(){var e=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var i=new WebSocket(this.consoleService.getUrl(this.controller,this.node));i.onerror=function(a){e.term.write("Connection lost")},i.onclose=function(a){e.consoleService.closeConsoleForNode(e.node)};var o=new Vse.AttachAddon(i);this.term.loadAddon(o),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(a){return!(("KeyC"===a.code||"KeyV"===a.code)&&a.ctrlKey&&a.shiftKey)})}}]),n}();function kGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10),t.NdJ("mousemove",function(o){t.CHM(e);var a=t.oxw();return t.KtG(a.dragWidget(o))},!1,t.evT)("mouseup",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.toggleDragging(!1))},!1,t.evT),t.qZA()}}function TGe(n,r){1&n&&(t.TgZ(0,"div",11),t._uU(1,"GNS3 console"),t.qZA())}$O.\u0275fac=function(r){return new(r||$O)(t.Y36(uu),t.Y36(wc.f))},$O.\u0275cmp=t.Xpm({type:$O,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(wGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},inputs:{controller:"controller",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var eI=function(r){return{lightThemeConsoleHeader:r}};function MGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11),t._uU(1),t.qZA(),t.TgZ(2,"button",7),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().index,l=t.oxw();return t.KtG(l.removeTab(s))}),t.TgZ(3,"mat-icon"),t._uU(4,"close"),t.qZA()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("ngClass",t.VKq(2,eI,o.isLightThemeEnabled))}}function SGe(n,r){if(1&n&&(t.TgZ(0,"mat-tab",12),t.YNc(1,MGe,5,4,"ng-template",4),t.qZA()),2&n){var e=t.oxw();t.Q6J("label",e.tab)}}function EGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"remove"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,eI,i.isLightThemeEnabled))}}function xGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,eI,i.isLightThemeEnabled))}}function DGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",13),t.NdJ("mouseover",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.disableScroll(s))})("mouseout",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.enableScroll(s))}),t._UZ(1,"app-web-console",14),t.qZA()}if(2&n){var i=r.index,o=t.oxw();t.Q6J("hidden",o.isMinimized),t.xp6(1),t.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var AGe=function(r){return{lightTheme:r}},OGe=function(){return{right:!0,left:!0,bottom:!0,top:!0}},tI=function(){function n(r,e,i){(0,B.Z)(this,n),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new t.vpe,this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new J.p4(0)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(i){e.addTab(i,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(i){var o=e.nodes.findIndex(function(a){return a.node_id===i.node_id});e.removeTab(o)})}},{key:"minimize",value:function(e){this.isMinimized=e,this.style=e?{bottom:"20px",left:"20px",width:"".concat(this.resizedWidth,"px"),height:"56px"}:{bottom:"20px",left:"80px",width:"".concat(this.resizedWidth,"px"),height:"".concat(this.resizedHeight,"px")}}},{key:"addTab",value:function(e,i){this.minimize(!1),this.nodes.push(e),i&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++}},{key:"removeTab",value:function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--}},{key:"toggleDragging",value:function(e){this.isDraggingEnabled=e}},{key:"dragWidget",value:function(e){var i=Number(e.movementX),o=Number(e.movementY),a=Number(this.style.width.split("px")[0]),s=Number(this.style.height.split("px")[0]),l=Number(this.style.left.split("px")[0])+i;if(this.style.top){var u=Number(this.style.top.split("px")[0])+o;this.style={position:"fixed",left:"".concat(l,"px"),top:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}else{var d=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(d,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}}},{key:"validate",value:function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))}},{key:"onResizeEnd",value:function(e){this.style={position:"fixed",left:"".concat(e.rectangle.left,"px"),top:"".concat(e.rectangle.top,"px"),width:"".concat(e.rectangle.width,"px"),height:"".concat(e.rectangle.height,"px")},this.styleInside={height:"".concat(e.rectangle.height-60,"px"),width:"".concat(e.rectangle.width,"px")},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height}},{key:"close",value:function(){this.closeConsole.emit(!1)}},{key:"enableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!1)}},{key:"disableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!0)}}]),n}();tI.\u0275fac=function(r){return new(r||tI)(t.Y36(uu),t.Y36(wc.f),t.Y36(fl))},tI.\u0275cmp=t.Xpm({type:tI,selectors:[["app-console-wrapper"]],inputs:{controller:"controller",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","controller","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","controller","node"]],template:function(r,e){1&r&&(t.YNc(0,kGe,1,0,"div",0),t.TgZ(1,"div",1),t.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),t.TgZ(2,"div",2)(3,"mat-tab-group",3),t.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),t.TgZ(4,"mat-tab"),t.YNc(5,TGe,2,0,"ng-template",4),t.qZA(),t.YNc(6,SGe,2,1,"mat-tab",5),t.qZA(),t.YNc(7,EGe,3,3,"button",6),t.YNc(8,xGe,3,3,"button",6),t.TgZ(9,"button",7),t.NdJ("click",function(){return e.close()}),t.TgZ(10,"mat-icon"),t._uU(11,"close"),t.qZA()()(),t._UZ(12,"app-log-console",8),t.YNc(13,DGe,2,4,"div",9),t.qZA()),2&r&&(t.Q6J("ngIf",e.isDraggingEnabled),t.xp6(1),t.Q6J("ngClass",t.VKq(16,AGe,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",t.DdM(18,OGe))("enableGhostResize",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(19,eI,e.isLightThemeEnabled)),t.xp6(1),t.Q6J("selectedIndex",e.selected.value),t.xp6(3),t.Q6J("ngForOf",e.nodes),t.xp6(1),t.Q6J("ngIf",!e.isMinimized),t.xp6(1),t.Q6J("ngIf",e.isMinimized),t.xp6(1),t.Q6J("ngClass",t.VKq(21,eI,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),t.xp6(1),t.Q6J("ngForOf",e.nodes))},dependencies:[le.mk,le.sg,le.O5,le.PC,KY.E$,fn,Dn,Fi.SP,Fi.uD,Fi.uX,XO,$O],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:40px;left:80px;height:180px;width:600px;background:#000000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:white!important;color:#000!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:black}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]});var IGe=["topologySummaryContainer"];function PGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-d3-map",37),t.NdJ("nodeDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeDragged(a))})("drawingDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingDragged(a))})("onLinkCreated",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onLinkCreated(a))})("onDrawingResized",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingResized(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function RGe(n,r){if(1&n&&t._UZ(0,"app-experimental-map",38),2&n){var e=t.oxw(2);t.Q6J("symbols",e.symbols)("nodes",e.nodes)("links",e.links)("drawings",e.drawings)("width",e.project.scene_width)("height",e.project.scene_height)("show-interface-labels",e.isInterfaceLabelVisible)("selection-tool",e.tools.selection)("moving-tool",e.tools.moving)("draw-link-tool",e.tools.draw_link)("readonly",e.inReadOnlyMode)}}function LGe(n,r){1&n&&t._UZ(0,"mat-icon",39)}function ZGe(n,r){1&n&&t._UZ(0,"mat-icon",40)}var B5=function(r){return{lightTheme:r}},NGe=function(r){return{selected:r}};function BGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",41)(1,"app-template",42),t.NdJ("onNodeCreation",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeCreation(a))}),t.qZA(),t.TgZ(2,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.toggleDrawLineMode())}),t.TgZ(3,"mat-icon"),t._uU(4,"timeline"),t.qZA()()()}if(2&n){var i=t.oxw(2);t.Q6J("ngClass",t.VKq(5,B5,i.isLightThemeEnabled)),t.xp6(1),t.Q6J("controller",i.controller)("project",i.project),t.xp6(1),t.Q6J("ngClass",t.VKq(7,NGe,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function FGe(n,r){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-snapshot-menu-item",12),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function UGe(n,r){if(1&n&&t._UZ(0,"app-draw-link-tool",44),2&n){var e=t.oxw(2);t.Q6J("links",e.links)}}function HGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-console-wrapper",45),t.NdJ("closeConsole",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.toggleShowConsole(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)}}var jGe=function(r,e){return{unmarkedLight:r,marked:e}},GGe=function(){return["/controllers"]},zGe=function(r){return["/controller",r,"projects"]},WGe=function(r){return["/controller",r,"image-manager"]},VGe=function(r){return{visible:r}};function YGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.YNc(1,PGe,1,10,"app-d3-map",3),t.YNc(2,RGe,1,11,"app-experimental-map",4),t.TgZ(3,"div",5)(4,"button",6),t.YNc(5,LGe,1,0,"mat-icon",7),t.YNc(6,ZGe,1,0,"mat-icon",8),t.qZA(),t.TgZ(7,"div",9),t.YNc(8,BGe,5,9,"div",10),t.TgZ(9,"div",11),t._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),t.qZA()(),t.TgZ(12,"div")(13,"button",14),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleShowTopologySummary(!u.isTopologySummaryVisible))}),t.TgZ(14,"mat-icon"),t._uU(15,"toc"),t.qZA()()(),t.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),t._uU(20,"developer_board"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Controllers"),t.qZA()(),t.TgZ(23,"button",17)(24,"mat-icon"),t._uU(25,"work"),t.qZA(),t.TgZ(26,"span"),t._uU(27,"Projects"),t.qZA()(),t.TgZ(28,"button",17)(29,"mat-icon"),t._uU(30,"settings_applications"),t.qZA(),t.TgZ(31,"span"),t._uU(32,"Template preferences"),t.qZA()(),t.TgZ(33,"button",17)(34,"mat-icon"),t._uU(35,"collections"),t.qZA(),t.TgZ(36,"span"),t._uU(37,"Image manager"),t.qZA()(),t.TgZ(38,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewTemplate())}),t.TgZ(39,"mat-icon"),t._uU(40,"control_point"),t.qZA(),t.TgZ(41,"span"),t._uU(42,"New template"),t.qZA()(),t._UZ(43,"app-import-appliance",12),t.TgZ(44,"button",19)(45,"mat-icon"),t._uU(46,"settings"),t.qZA(),t.TgZ(47,"span"),t._uU(48,"Project settings"),t.qZA()(),t.TgZ(49,"button",19)(50,"mat-icon"),t._uU(51,"view_module"),t.qZA(),t.TgZ(52,"span"),t._uU(53,"Map settings"),t.qZA()()(),t.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewProject())}),t.TgZ(58,"mat-icon"),t._uU(59,"add"),t.qZA(),t.TgZ(60,"span"),t._uU(61,"Add new blank project"),t.qZA()(),t.TgZ(62,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.saveProject())}),t.TgZ(63,"mat-icon"),t._uU(64,"save"),t.qZA(),t.TgZ(65,"span"),t._uU(66,"Save project as"),t.qZA()(),t.TgZ(67,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.editProject())}),t.TgZ(68,"mat-icon"),t._uU(69,"edit"),t.qZA(),t.TgZ(70,"span"),t._uU(71,"Edit project"),t.qZA()(),t.TgZ(72,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.exportProject())}),t.TgZ(73,"mat-icon"),t._uU(74,"call_made"),t.qZA(),t.TgZ(75,"span"),t._uU(76,"Export project"),t.qZA()(),t.TgZ(77,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.importProject())}),t.TgZ(78,"mat-icon"),t._uU(79,"call_received"),t.qZA(),t.TgZ(80,"span"),t._uU(81,"Import project"),t.qZA()(),t.TgZ(82,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.closeProject())}),t.TgZ(83,"mat-icon"),t._uU(84,"close"),t.qZA(),t.TgZ(85,"span"),t._uU(86,"Close project"),t.qZA()(),t.TgZ(87,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.deleteProject())}),t.TgZ(88,"mat-icon"),t._uU(89,"delete"),t.qZA(),t.TgZ(90,"span"),t._uU(91,"Delete project"),t.qZA()()()(),t.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowInterfaceLabels(u.checked))}),t._uU(96," Show interface labels "),t.qZA(),t._UZ(97,"br"),t.TgZ(98,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowConsole(u.checked))}),t._uU(99," Show console "),t.qZA(),t._UZ(100,"br"),t.TgZ(101,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowTopologySummary(u.checked))}),t._uU(102," Show topology/controllers summary "),t.qZA(),t._UZ(103,"br"),t.TgZ(104,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleNotifications(u.checked))}),t._uU(105," Show notifications "),t.qZA(),t._UZ(106,"br"),t.TgZ(107,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleLayers(u.checked))}),t._uU(108," Show layers "),t.qZA(),t._UZ(109,"br"),t.TgZ(110,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleGrid(u.checked))}),t._uU(111," Show grid "),t.qZA(),t._UZ(112,"br"),t.TgZ(113,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSnapToGrid(u.checked))}),t._uU(114," Snap to grid "),t.qZA(),t._UZ(115,"br"),t.TgZ(116,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSymbolScaling(u.checked))}),t._uU(117," Scale symbols "),t.qZA(),t._UZ(118,"br"),t.qZA()()(),t.TgZ(119,"div",24)(120,"div",25)(121,"button",26),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(122,"mat-icon"),t._uU(123,"near_me"),t.qZA()(),t.TgZ(124,"button",27),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(125,"mat-icon"),t._uU(126,"zoom_out_map"),t.qZA()(),t.TgZ(127,"button",28),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomIn())}),t.TgZ(128,"mat-icon"),t._uU(129,"zoom_in"),t.qZA()(),t.TgZ(130,"button",29),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.resetZoom())}),t.TgZ(131,"mat-icon"),t._uU(132,"adjust"),t.qZA()(),t.TgZ(133,"button",30),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomOut())}),t.TgZ(134,"mat-icon"),t._uU(135,"zoom_out"),t.qZA()()(),t.TgZ(136,"div",25),t._UZ(137,"app-project-map-menu",12),t.qZA(),t.YNc(138,FGe,2,2,"div",31),t.qZA(),t._UZ(139,"app-progress"),t.YNc(140,UGe,1,1,"app-draw-link-tool",32),t._UZ(141,"app-drawing-dragged",12)(142,"app-drawing-resized",33)(143,"app-interface-label-dragged",33)(144,"app-link-created",12)(145,"app-node-dragged",12)(146,"app-node-label-dragged",33),t.TgZ(147,"app-text-added",34),t.NdJ("drawingSaved",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.onDrawingSaved())}),t.qZA(),t._UZ(148,"app-text-edited",33),t.TgZ(149,"div",35),t.YNc(150,HGe,1,2,"app-console-wrapper",36),t.qZA()()}if(2&n){var i=t.MAs(17),o=t.MAs(55),a=t.MAs(93),s=t.oxw();t.Q6J("ngClass",t.VKq(53,B5,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("ngIf",!s.settings.angular_map),t.xp6(1),t.Q6J("ngIf",s.settings.angular_map),t.xp6(1),t.Q6J("ngClass",t.VKq(55,B5,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(1),t.Q6J("ngIf",!s.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",s.isLightThemeEnabled),t.xp6(2),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("project",s.project)("controller",s.controller),t.xp6(2),t.Q6J("ngClass",t.WLB(57,jGe,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(60,GGe)),t.xp6(5),t.Q6J("routerLink",t.VKq(61,zGe,s.controller.id)),t.xp6(5),t.MGl("routerLink","/controller/",s.controller.id,"/preferences"),t.xp6(5),t.Q6J("routerLink",t.VKq(63,WGe,s.controller.id)),t.xp6(10),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.Q6J("matMenuTriggerFor",a),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(38),t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("ngModel",s.isInterfaceLabelVisible),t.xp6(3),t.Q6J("ngModel",s.isConsoleVisible),t.xp6(3),t.Q6J("ngModel",s.isTopologySummaryVisible),t.xp6(3),t.Q6J("ngModel",s.notificationsVisibility),t.xp6(3),t.Q6J("ngModel",s.layersVisibility),t.xp6(3),t.Q6J("ngModel",s.gridVisibility),t.xp6(3),t.Q6J("ngModel",s.project.snap_to_grid),t.xp6(3),t.Q6J("ngModel",s.symbolScaling),t.xp6(3),t.Q6J("ngClass",t.VKq(65,B5,s.isLightThemeEnabled)),t.xp6(2),t.Q6J("color",s.tools.moving?"basic":"primary"),t.xp6(3),t.Q6J("color",s.tools.moving?"primary":"basic"),t.xp6(13),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("ngIf",s.tools.draw_link),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("ngClass",t.VKq(67,VGe,!s.isConsoleVisible)),t.xp6(1),t.Q6J("ngIf",s.project)}}function KGe(n,r){}var nI=function(){function n(r,e,i,o,a,s,l,u,d,h,g,y,L,z,q,re,ae,Se,Ce,Ee,Ke,st,De,it,ft,bt,$e,Pe,ct,Bt,Ht,Pt,Tn,jn,zn,ar,kr,_r,Wr,Hr,Kr,Ho,tr,yr,Mn,gn,nr){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=l,this.mapChangeDetectorRef=u,this.nodeWidget=d,this.drawingsWidget=h,this.linkWidget=g,this.labelWidget=y,this.interfaceLabelWidget=L,this.mapNodeToNode=z,this.mapDrawingToDrawing=q,this.mapLabelToLabel=re,this.mapLinkToLink=ae,this.mapLinkNodeToLinkNode=Se,this.nodesDataSource=Ce,this.linksDataSource=Ee,this.drawingsDataSource=Ke,this.settingsService=st,this.toolsService=De,this.selectionManager=it,this.selectionTool=ft,this.recentlyOpenedProjectService=bt,this.movingEventSource=$e,this.mapScaleService=Pe,this.nodeCreatedLabelStylesFixer=ct,this.toasterService=Bt,this.dialog=Ht,this.router=Pt,this.mapNodesDataSource=Tn,this.mapLinksDataSource=jn,this.mapDrawingsDataSource=zn,this.mapSymbolsDataSource=ar,this.mapSettingsService=kr,this.ethernetLinkWidget=_r,this.serialLinkWidget=Wr,this.bottomSheet=Hr,this.notificationService=Kr,this.themeService=Ho,this.title=tr,this.nodeConsoleService=yr,this.symbolService=Mn,this.cd=gn,this.viewContainerRef=nr,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.symbolScaling=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new xa.w}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.getSettings(),this.progressService.activate(),this.controllerService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(i){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1})}},{key:"getSettings",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(i){return e.isConsoleVisible=i}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")}},{key:"lazyLoadTopologySummary",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isTopologySummaryVisible){s.next=10;break}return s.next=3,m.e(465).then(m.bind(m,2465));case 3:i=s.sent,o=i.TopologySummaryComponent,this.instance=this.viewContainerRef.createComponent(o),this.instance.instance.controller=this.controller,this.instance.instance.project=this.project,s.next=11;break;case 10:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy());case 11:case"end":return s.stop()}},e,this)}))}},{key:"addSubscriptions",value:function(){var e=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(i){e.scrollEnabled&&e.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(i){e.drawings=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(i){!e.controller||(i.forEach(function(o){return wi(e,void 0,void 0,Rn().mark(function a(){var s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.symbol_url="".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(ja.N.current_version,"/symbols/").concat(o.symbol,"/raw"),0!=o.width||0!=o.height){u.next=7;break}return u.next=4,this.symbolService.getDimensions(this.controller,o.symbol).toPromise();case 4:s=u.sent,o.width=s.width,o.height=s.height;case 7:case"end":return u.stop()}},a,this)}))}),e.nodes=i,e.mapSettingsService.getSymbolScaling()&&e.applyScalingOfNodeSymbols(),e.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(i){console.log("from project map component"),e.links=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(i){i&&e.applyScalingOfNodeSymbols()}))}},{key:"applyScalingOfNodeSymbols",value:function(){var e=this;this.nodesDataSource.getItems().forEach(function(i){if(i.height>e.symbolService.getMaximumSymbolSize()){var o=e.symbolService.scaleDimensionsForNode(i);i.width=o.width,i.height=o.height}})}},{key:"getData",value:function(){var e=this,i=this.route.paramMap.subscribe(function(o){var a=parseInt(o.get("controller_id"),10);(0,hs.D)(e.controllerService.get(a)).pipe((0,_s.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,$n.U)(function(l){return l}))}),(0,_s.zg)(function(s){return e.project=s,s||e.router.navigate(["/controllers"]),e.projectService.open(e.controller,e.project.project_id),e.title.setTitle(e.project.name),e.isInterfaceLabelVisible=e.mapSettingsService.showInterfaceLabels,e.toggleShowTopologySummary(e.mapSettingsService.isTopologySummaryVisible),e.recentlyOpenedProjectService.setcontrollerId(e.controller.id.toString()),"opened"===e.project.status?new oo.y(function(l){l.next(e.project)}):e.projectService.open(e.controller,e.project.project_id)})).subscribe(function(s){e.onProjectLoad(s),e.mapSettingsService.openReadme&&e.showReadme()},function(s){e.progressService.setError(s)},function(){e.progressService.deactivate()})});this.projectMapSubscription.add(i)}},{key:"addKeyboardListeners",value:function(){var e=this;Fg.bind("ctrl++",function(i){i.preventDefault(),e.zoomIn()}),Fg.bind("ctrl+-",function(i){i.preventDefault(),e.zoomOut()}),Fg.bind("ctrl+0",function(i){i.preventDefault(),e.resetZoom()}),Fg.bind("ctrl+a",function(i){i.preventDefault();var o=e.mapNodesDataSource.getItems(),a=e.mapDrawingsDataSource.getItems(),s=e.mapLinksDataSource.getItems(),l=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(o.concat(a).concat(s).concat(l))}),Fg.bind("ctrl+h",function(i){i.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),Fg.bind("ctrl+shift+a",function(i){i.preventDefault(),e.selectionManager.setSelected([])}),Fg.bind("ctrl+shift+s",function(i){i.preventDefault(),e.router.navigate(["/controller",e.controller.id,"preferences"])}),Fg.bind("del",function(i){i.preventDefault(),e.deleteItems()})}},{key:"deleteItems",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){if(a){var s=e.selectionManager.getSelected();s.filter(function(l){return l instanceof fb}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof Nm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Drawing has been deleted")})})}})}},{key:"onProjectLoad",value:function(e){var i=this;this.readonly=this.projectService.isReadOnly(e),this.recentlyOpenedProjectService.setProjectId(this.project.project_id);var o=this.projectService.nodes(this.controller,e.project_id).pipe((0,_s.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,_s.zg)(function(a){return i.linksDataSource.set(a),i.projectService.drawings(i.controller,e.project_id)})).subscribe(function(a){i.drawingsDataSource.set(a),i.setUpMapCallbacks(),i.setUpProjectWS(e),i.progressService.deactivate()});this.projectMapSubscription.add(o)}},{key:"setUpProjectWS",value:function(e){var i=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.controller,e.project_id)),this.projectws.onmessage=function(o){i.projectWebServiceHandler.handleMessage(JSON.parse(o.data))},this.projectws.onerror=function(o){i.toasterService.error("Connection to host lost. Error: ".concat(o.data))}}},{key:"setUpWS",value:function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.controller))}},{key:"setUpMapCallbacks",value:function(){var e=this;this.readonly||this.toolsService.selectionToolActivation(!0);var i=this.linkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[y],g.event.pageY,g.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(g){var y=e.mapNodeToNode.convert(g.node);e.contextMenu.openMenuForNode(y,g.event.pageY,g.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(g){var y=e.mapDrawingToDrawing.convert(g.drawing);e.contextMenu.openMenuForDrawing(y,g.event.pageY,g.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(g){var y=e.mapLabelToLabel.convert(g.label),L=e.nodes.find(function(z){return z.node_id===g.label.nodeId});e.contextMenu.openMenuForLabel(y,L,g.event.screenY-60,g.event.screenX)}),d=this.interfaceLabelWidget.onContextMenu.subscribe(function(g){var y=e.mapLinkNodeToLinkNode.convert(g.interfaceLabel),L=e.links.find(function(z){return z.link_id===g.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(y,L,g.event.pageY,g.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(g){var y=e.selectionManager.getSelected();if(!(y.length<2)&&g instanceof MouseEvent){var L=[],z=[],q=[],re=[];y.forEach(function(ae){ae instanceof Nm?L.push(e.mapDrawingToDrawing.convert(ae)):ae instanceof fb?z.push(e.mapNodeToNode.convert(ae)):ae instanceof Fk?q.push(e.mapLabelToLabel.convert(ae)):ae instanceof yse&&re.push(e.mapLinkToLink.convert(ae))}),e.contextMenu.openMenuForListOfElements(L,z,q,re,g.pageY,g.pageX)}});this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(l),this.projectMapSubscription.add(h),this.projectMapSubscription.add(u),this.projectMapSubscription.add(d),this.mapChangeDetectorRef.detectChanges()}},{key:"onNodeCreation",value:function(e){var i=this;!e||(e.x=e.x/this.mapScaleService.getScale(),e.y=e.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.controller,this.project,e.template,e.x,e.y,e.controller).subscribe(function(o){i.projectService.nodes(i.controller,i.project.project_id).subscribe(function(a){a.filter(function(s){return null===s.label.style}).forEach(function(s){var l=i.nodeCreatedLabelStylesFixer.fix(s);i.nodeService.updateLabel(i.controller,s,l.label).subscribe()}),i.nodesDataSource.set(a),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<i.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<i.project.scene_height/2?e.y+50:e.y,i.onNodeCreation(e)):i.progressService.deactivate()})},function(o){i.toasterService.error(o.error.message),i.progressService.deactivate()}))}},{key:"fitInView",value:function(){if(this.drawings.forEach(function(it){var ft=it.svg.split('"'),bt=parseInt(ft[1],10),$e=parseInt(ft[3],10);it.element={width:$e,height:bt}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(it){var ft=new qGe;ft.node=it,ft.top=it.y,ft.left=it.x,ft.bottom=it.y+it.height,ft.right=it.x+it.width,it.y+it.label.y<ft.top&&(ft.top=it.y+it.label.y),it.x+it.label.x<ft.left&&(ft.left=it.x+it.label.x),it.y+it.label.y>ft.bottom&&(ft.bottom=it.y+it.label.y),it.x+it.label.x>ft.right&&(ft.right=it.x+it.label.x),s.push(ft)});var l=s.sort(function(it,ft){return it.left-ft.left})[0],u=s.sort(function(it,ft){return it.right-ft.right})[s.length-1],d=s.sort(function(it,ft){return it.top-ft.top})[0],h=s.sort(function(it,ft){return it.bottom-ft.bottom})[s.length-1],g=[];this.drawings.forEach(function(it){var ft=new JGe;ft.drawing=it,ft.top=it.y,ft.left=it.x,ft.bottom=it.y+it.element.height,ft.right=it.x+it.element.width,g.push(ft)});var y=g.sort(function(it,ft){return it.left-ft.left})[0],L=g.sort(function(it,ft){return it.right-ft.right})[g.length-1],z=g.sort(function(it,ft){return it.top-ft.top})[0],q=g.sort(function(it,ft){return it.bottom-ft.bottom})[g.length-1];y&&l?(e=l.left<y.left?l.left:y.left,i=u.right>L.right?u.right:L.right,o=d.top<z.top?d.top:z.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!y?(e=l.left,i=u.right,o=d.top,a=h.bottom):y&&!l?(e=y.left,i=L.right,o=z.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Se=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Ce=i-e,Ee=a-o,Ke=Ce/ae,st=Ee/Se,De=1/Math.max(Ke,st);De!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(De),this.project.scene_width=this.project.scene_width*De,this.project.scene_height=this.project.scene_height*De,st<Ce?(this.scrollX=e*De-(ae-Ce*De)/2+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De-(Se-Ee*De)/2+this.project.scene_height/2)):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2),this.scrollEnabled=!0}}},{key:"centerCanvas",value:function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1}},{key:"centerView",value:function(){if(this.project){var e=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,i=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(e,i)}else this.toasterService.error("Please wait until all components are loaded.")}},{key:"onDrawingSaved",value:function(){this.projectMapMenuComponent.resetDrawToolChoice()}},{key:"readonly",get:function(){return this.inReadOnlyMode},set:function(e){this.inReadOnlyMode=e,e?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))}},{key:"toggleSymbolScaling",value:function(e){this.symbolScaling=e,this.mapSettingsService.setSymbolScaling(e)}},{key:"toggleMovingMode",value:function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))}},{key:"toggleDrawLineMode",value:function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)}},{key:"toggleShowInterfaceLabels",value:function(e){this.isInterfaceLabelVisible=e,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"toggleShowConsole",value:function(e){this.isConsoleVisible=e,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)}},{key:"toggleShowTopologySummary",value:function(e){this.isTopologySummaryVisible=e,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible),this.lazyLoadTopologySummary()}},{key:"toggleNotifications",value:function(e){this.notificationsVisibility=e,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")}},{key:"toggleLayers",value:function(e){this.layersVisibility=e,this.mapSettingsService.toggleLayers(e),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()}},{key:"toggleGrid",value:function(e){this.gridVisibility=e,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0}},{key:"toggleSnapToGrid",value:function(e){this.project.snap_to_grid=e}},{key:"showMessage",value:function(e){this.notificationsVisibility&&("error"===e.type&&this.toasterService.error(e.message),"warning"===e.type&&this.toasterService.warning(e.message))}},{key:"hideMenu",value:function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1}},{key:"showMenu",value:function(){this.isProjectMapMenuVisible=!0}},{key:"zoomIn",value:function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)}},{key:"zoomOut",value:function(){var e=this.mapScaleService.getScale();e-.1>0&&this.mapScaleService.setScale(e-.1)}},{key:"resetZoom",value:function(){this.mapScaleService.resetToDefault()}},{key:"addNewProject",value:function(){this.dialog.open(eT,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(fA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(dA,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(rT,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(l){if(s.unsubscribe(),i&&!l){e.bottomSheet.open(iT);var u=e.bottomSheet._openedBottomSheetRef;u.instance.projectMessage="imported project";u.afterDismissed().subscribe(function(h){h&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"exportProject",value:function(){this.nodes.filter(function(e){return"virtualbox"===e.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Bk,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n height="'.concat(s.height,'" width="').concat(s.width,'">\n<image height="').concat(s.height,'" width="').concat(s.width,'"\n xlink:href="').concat(l,'"/>\n</svg>');i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"closeProject",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to close the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.close(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"deleteProject",value:function(){var e=this;this.bottomSheet.open(md);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.delete(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(hT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"showReadme",value:function(){var i=this.dialog.open(SO,{width:"600px",height:"650px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()}}]),n}();nI.\u0275fac=function(r){return new(r||nI)(t.Y36(dr),t.Y36(or),t.Y36(Ws.Y),t.Y36(Fr),t.Y36(Wa),t.Y36(El),t.Y36(fv),t.Y36(Hp),t.Y36(Xg),t.Y36(Vp),t.Y36(nv),t.Y36(Gp),t.Y36(of),t.Y36(Vm),t.Y36(Bb),t.Y36(qp),t.Y36(Fb),t.Y36(hv),t.Y36(za.G),t.Y36(Hm.F),t.Y36(ya),t.Y36(Gm.g),t.Y36(Yp),t.Y36(Ll),t.Y36(jp),t.Y36(L5.p),t.Y36(jm),t.Y36(sf),t.Y36(Ub),t.Y36(Zn),t.Y36(Gr),t.Y36(ur),t.Y36(Im),t.Y36(Pm),t.Y36(Rm),t.Y36(Lm),t.Y36(fl),t.Y36(ev),t.Y36(tv),t.Y36(lf),t.Y36(Hb),t.Y36(wc.f),t.Y36(ni),t.Y36(uu),t.Y36(Op),t.Y36(t.sBO),t.Y36(t.s_b))},nI.\u0275cmp=t.Xpm({type:nI,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(uT,5),t.Gf(Xk,5),t.Gf(mT,5),t.Gf(IGe,5,t.s_b)),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first),t.iGM(i=t.CRH())&&(e.mapChild=i.first),t.iGM(i=t.CRH())&&(e.projectMapMenuComponent=i.first),t.iGM(i=t.CRH())&&(e.topologySummaryContainer=i.first))},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"controller","project"],[3,"project","controller"],["matTooltip","Toggle topology/controllers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"controller"],[3,"controller","project","drawingSaved"],[3,"ngClass"],[3,"controller","project","closeConsole",4,"ngIf"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"controller","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"controller","project","closeConsole"]],template:function(r,e){1&r&&(t.YNc(0,YGe,151,69,"div",0),t.YNc(1,KGe,0,0,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",e.project)},dependencies:[le.mk,le.O5,$o,J.JJ,J.On,Xk,LO,Ga,Er,ga,fn,Dn,ti,mi,NO,uT,FO,z0,UO,HO,jO,GO,zO,WO,VO,YO,KO,JO,mT,QO,tI],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0;left:0;right:0;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px #0003;z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px #0003;z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:#f4f8fcf2!important}#project-toolbar.lightTheme .zoom-button,#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px #0003,0 6px 20px -20px #00000030}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0;left:92px;right:0;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.light-theme .context-menu-items .mat-menu-item:hover{background-color:#999898cb!important}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2});var qGe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),JGe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),rI=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.projectService=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.name=this.project.name}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSaveClick",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.name).subscribe(function(){e.dialogRef.close()})}}]),n}();function QGe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function XGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all projects?"),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected projects"),t.qZA(),t.YNc(6,QGe,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function $Ge(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function eze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}rI.\u0275fac=function(r){return new(r||rI)(t.Y36(cr),t.Y36(Ws.Y))},rI.\u0275cmp=t.Xpm({type:rI,selectors:[["app-choose-name-dialog"]],inputs:{controller:"controller",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.name=o}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Save project"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.name))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,fn,qn,br,fr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var tze=function(r){return{"deleted-error-text":r}};function nze(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,eze,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,tze,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function rze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Project can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,nze,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function ize(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function oze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,rze,4,1,"div",0),t.YNc(3,ize,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var iI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.projectService.delete(e.deleteData.controller,o.project_id).pipe((0,ed.K)(function(a){return(0,Kn.of)(a)})))}),oo.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();function aze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function sze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",25),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function lze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",26),t._uU(1," Name "),t.qZA())}iI.\u0275fac=function(r){return new(r||iI)(t.Y36(ko),t.Y36(cr),t.Y36(Ws.Y),t.Y36(Zn))},iI.\u0275cmp=t.Xpm({type:iI,selectors:[["app-confirmation-delete-all-projects"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,XGe,12,1,"div",0),t.YNc(1,$Ge,5,0,"div",0),t.YNc(2,oze,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[le.mk,le.sg,le.O5,fn,Ig,br,Hu,fr,ou]});var uze=function(r,e){return["/controller",r,"project",e]};function cze(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",27),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,uze,i.controller.id,e.project_id)),t.xp6(1),t.Oqu(e.name)}}function dze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",28),t._uU(1," Actions "),t.qZA())}function fze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.open(o))}),t.TgZ(1,"mat-icon",36),t._uU(2,"play_arrow"),t.qZA()()}}function pze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.close(o))}),t.TgZ(1,"mat-icon",38),t._uU(2,"pause"),t.qZA()()}}function hze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.duplicate(o))}),t.TgZ(1,"mat-icon",40),t._uU(2,"save"),t.qZA()()}}function mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",29),t.YNc(1,fze,3,0,"button",30),t.YNc(2,pze,3,0,"button",31),t.YNc(3,hze,3,0,"button",32),t.TgZ(4,"button",33),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.exportSelectProject(s))}),t.TgZ(5,"mat-icon",34),t._uU(6,"arrow_downward"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(1),t.Q6J("ngIf","closed"==i.status),t.xp6(1),t.Q6J("ngIf","opened"==i.status),t.xp6(1),t.Q6J("ngIf","closed"==i.status)}}function _ze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",42),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function gze(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell",28),t.YNc(1,_ze,3,0,"button",41),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function vze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",44),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.delete(o))}),t.TgZ(1,"mat-icon",45),t._uU(2,"delete"),t.qZA()()}}function yze(n,r){if(1&n&&(t.TgZ(0,"mat-cell",28),t.YNc(1,vze,3,0,"button",43),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function bze(n,r){1&n&&t._UZ(0,"mat-header-row")}function Cze(n,r){1&n&&t._UZ(0,"mat-row")}var wze=function(){return{standalone:!0}},CT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.route=r,this.projectService=e,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=l,this.toasterService=u,this.electronService=d,this.recentlyOpenedProjectService=h,this.projectDatabase=new kze,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new Si.Ov(!0,[])}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.recentlyOpenedProjectService.setcontrollerIdProjectList(this.controller.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new Tze(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe(function(){return e.refresh()})}},{key:"refresh",value:function(){var e=this;this.projectService.list(this.controller).subscribe(function(i){e.projectDatabase.addProjects(i)},function(i){e.progressService.setError(i)})}},{key:"delete",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.refresh()})})}},{key:"open",value:function(e){var i=this;this.progressService.activate(),this.projectService.open(this.controller,e.project_id).subscribe(function(){i.refresh()},function(){i.refresh(),i.progressService.deactivate(),i.toasterService.error("Project was deleted.")},function(){i.progressService.deactivate()})}},{key:"close",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to close the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.refresh(),i.progressService.deactivate()})})}},{key:"duplicate",value:function(e){var i=this,o=this.dialog.open(rI,{width:"400px",autoFocus:!1,disableClose:!0}),a=o.componentInstance;a.controller=this.controller,a.project=e,o.afterClosed().subscribe(function(){i.refresh()})}},{key:"addBlankProject",value:function(){this.dialog.open(eT,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(rT,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(){if(e.refresh(),s.unsubscribe(),i){e.bottomSheet.open(iT);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(d){d&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(iI,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.refresh(),!1;e.unChecked(),e.refresh(),e.toasterService.success("All projects deleted")})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.projectDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.projectDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"exportSelectProject",value:function(e){this.project=e,this.project.project_id&&this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Bk,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),n}();CT.\u0275fac=function(r){return new(r||CT)(t.Y36(dr),t.Y36(Ws.Y),t.Y36(Gm.g),t.Y36(El),t.Y36(Gr),t.Y36(ur),t.Y36(lf),t.Y36(Zn),t.Y36(ul),t.Y36(L5.p))},CT.\u0275cmp=t.Xpm({type:CT,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(qu,7),2&r)&&(t.iGM(i=t.CRH())&&(e.sort=i.first))},decls:31,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search project by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","actions"],["class","action",4,"matHeaderCellDef"],["class","action","style","text-align: right",4,"matCellDef"],["matColumnDef","delete"],["class","action",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[1,"action"],[1,"action",2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Export project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Export project"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Save project as"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["aria-label","Delete project"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Projects"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.addBlankProject()}),t._uU(6," Add blank project "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.importProject()}),t._uU(8," Import project "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),t.ALo(16,"projectsfilter"),t.ynx(17,12),t.YNc(18,aze,2,2,"mat-header-cell",13),t.YNc(19,sze,2,1,"mat-cell",14),t.BQk(),t.ynx(20,15),t.YNc(21,lze,2,0,"mat-header-cell",16),t.YNc(22,cze,3,5,"mat-cell",14),t.BQk(),t.ynx(23,17),t.YNc(24,dze,2,0,"mat-header-cell",18),t.YNc(25,mze,7,3,"mat-cell",19),t.BQk(),t.ynx(26,20),t.YNc(27,gze,2,1,"mat-header-cell",18),t.YNc(28,yze,2,1,"mat-cell",21),t.BQk(),t.YNc(29,bze,1,0,"mat-header-row",22),t.YNc(30,Cze,1,0,"mat-row",23),t.qZA()()()()),2&r&&(t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(8,wze)),t.xp6(3),t.Q6J("dataSource",t.xi3(16,5,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%], .add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}table[_ngcontent-%COMP%]{width:100%}.action[_ngcontent-%COMP%]{justify-content:center}"]});var kze=function(){function n(){(0,B.Z)(this,n),this.dataChange=new Qi.X([])}return(0,U.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addProjects",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}}]),n}(),Tze=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return Gi.T.apply(void 0,a).pipe((0,$n.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],d=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+d)?d:+d)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2);function Mze(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function Sze(n,r){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var oI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialogRef=r,this.electronService=e,this.controllerService=i,this.toasterService=o,this.data=a,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),path:new J.p4(""),ubridge_path:new J.p4(""),host:new J.p4("",[J.kI.required]),port:new J.p4("",[J.kI.required,J.kI.min(1)]),protocol:new J.p4("http:")})}return(0,U.Z)(n,[{key:"getLocations",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.numberOfLocalControllers();case 2:return i=s.sent,o=[],this.electronService.isElectronApp&&0===i&&o.push({key:"local",name:"Local"}),o.push({key:"remote",name:"Remote"}),s.abrupt("return",o);case 7:case"end":return s.stop()}},e,this)}))}},{key:"getDefaultLocation",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.numberOfLocalControllers();case 2:if(i=a.sent,!this.electronService.isElectronApp||0!==i){a.next=5;break}return a.abrupt("return","local");case 5:return a.abrupt("return","remote");case 6:case"end":return a.stop()}},e,this)}))}},{key:"numberOfLocalControllers",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerService.findAll();case 2:return i=a.sent,a.abrupt("return",i.filter(function(s){return"local"===s.location}).length);case 4:case"end":return a.stop()}},e,this)}))}},{key:"getDefaultHost",value:function(){return"127.0.0.1"}},{key:"getDefaultPort",value:function(){return 3080}},{key:"getDefaultLocalControllerPath",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getLocalControllerPath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"getDefaultUbridgePath",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getUbridgePath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var o,a,s,i=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getLocations();case 2:return this.locations=u.sent,u.next=5,this.getDefaultLocalControllerPath();case 5:return o=u.sent,u.next=8,this.getDefaultUbridgePath();case 8:return a=u.sent,this.controllerForm.get("location").valueChanges.subscribe(function(d){var h=i.controllerForm.get("path"),g=i.controllerForm.get("ubridge_path");"local"===d?(h.setValue(o),h.setValidators([J.kI.required]),g.setValue(a),g.setValidators([J.kI.required])):(h.setValue(""),h.clearValidators(),g.setValue(""),g.clearValidators()),[h,g].forEach(function(y){y.updateValueAndValidity({onlySelf:!0})})}),u.next=12,this.getDefaultLocation();case 12:s=u.sent,this.controllerForm.get("location").setValue(s),this.controllerForm.get("host").setValue(this.getDefaultHost()),this.controllerForm.get("port").setValue(this.getDefaultPort());case 16:case"end":return u.stop()}},e,this)}))}},{key:"onAddClick",value:function(){var e=this;if(this.controllerForm.valid){var i=Object.assign({},this.controllerForm.value);this.controllerService.checkControllerVersion(i).subscribe(function(o){o.version.split(".")[0]>=3?(e.dialogRef.close(i),e.toasterService.success("Controller ".concat(i.name," added."))):(e.dialogRef.close(),e.toasterService.error("Controller version is not supported."))},function(o){e.toasterService.error("Cannot connect to the controller: "+o)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();oI.\u0275fac=function(r){return new(r||oI)(t.Y36(cr),t.Y36(ul),t.Y36(or),t.Y36(Zn),t.Y36(ko))},oI.\u0275cmp=t.Xpm({type:oI,selectors:[["app-add-controller-dialog"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Add controller"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),t._UZ(5,"input",3),t.YNc(6,Mze,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",5),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",6),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",7),t.YNc(13,Sze,2,2,"mat-option",8),t.qZA()()(),t.TgZ(14,"div",9)(15,"button",10),t.NdJ("click",function(){return e.onNoClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",11),t.NdJ("click",function(){return e.onAddClick()}),t._uU(18,"Add"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.controllerForm),t.xp6(4),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(7),t.Q6J("ngForOf",e.protocols))},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,Hu,fr,di.gD,Gt.ey],encapsulation:2});var gv=function(){function n(r){var e=this;(0,B.Z)(this,n),this.electronService=r,this.controllerStatusChanged=new On.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,U.Z)(n,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o={controllerName:e.name,status:"starting",message:""},this.controllerStatusChanged.next(o),s.next=4,this.electronService.remote.require("./local-controller.js").startLocalController(e);case 4:return s.abrupt("return",s.sent);case 5:case"end":return s.stop()}},i,this)}))}},{key:"stop",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./local-controller.js").stopLocalController(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}},{key:"stopAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.electronService.remote.require("./local-controller.js").stopAllLocalControllers();case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},e,this)}))}},{key:"getRunningControllers",value:function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-controller.js").getRunningControllers():[]}},{key:"ngOnDestroy",value:function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)}}]),n}();gv.\u0275fac=function(r){return new(r||gv)(t.LFG(ul))},gv.\u0275prov=t.Yz7({token:gv,factory:gv.\u0275fac});var cW=m(5887);function Eze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card",2)(1,"mat-card-content",3),t._uU(2," We've discovered GNS3 controller on "),t.TgZ(3,"b"),t._uU(4),t.qZA(),t._uU(5,", would you like to add to the list? "),t.qZA(),t.TgZ(6,"mat-card-actions",4)(7,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.ignore(a.discoveredController))}),t._uU(8,"NO"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.accept(a.discoveredController))}),t._uU(10,"YES"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(4),t.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function xze(n,r){1&n&&t._UZ(0,"mat-divider")}var wT=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized&&this.discoverFirstController(),this.controllerService.serviceInitialized.subscribe(function(i){return wi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.discoverFirstController();case 1:case"end":return s.stop()}},o,this)}))})}},{key:"discoverFirstController",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.discoverControllers();case 2:return i=s.sent,s.next=5,this.controllerService.findAll();case 5:s.sent.forEach(function(l){i=i.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),i.length>0&&(this.discoveredController=i.shift());case 8:case"end":return s.stop()}},e,this)}))}},{key:"discoverControllers",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){var o,i=this;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o=[],this.defaultControllers.forEach(function(l){return wi(i,void 0,void 0,Rn().mark(function u(){var d;return Rn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(d=new bB).host=l.host,d.port=l.port,y.next=5,this.versionService.get(d).toPromise().catch(function(L){return null});case 5:y.sent&&o.push(d);case 7:case"end":return y.stop()}},u,this)}))}),s.abrupt("return",o);case 3:case"end":return s.stop()}},e,this)}))}},{key:"discoverFirstAvailableController",value:function(){var e=this;(0,H0.D)([(0,hs.D)(this.controllerService.findAll()).pipe((0,$n.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1];a.forEach(function(l){s=s.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),s.length>0&&(e.discoveredController=s.shift())},function(i){})}},{key:"discovery",value:function(){var e=this,i=[];return this.defaultControllers.forEach(function(o){i.push(e.isControllerAvailable(o.host,o.port).catch(function(a){return cW.Observable.of(null)}))}),new cW.Observable(function(o){(0,H0.D)(i).subscribe(function(a){o.next(a.filter(function(s){return null!=s})),o.complete()})})}},{key:"isControllerAvailable",value:function(e,i){var o=new bB;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return cW.Observable.of(o)})}},{key:"ignore",value:function(e){this.discoveredController=null}},{key:"accept",value:function(e){var i=this;null==e.name&&(e.name=e.host),e.location="remote",e.protocol=location.protocol,this.controllerService.create(e).then(function(o){i.controllerDatabase.addController(o),i.discoveredController=null})}}]),n}();function Dze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," ID "),t.qZA())}function Aze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Oze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}wT.\u0275fac=function(r){return new(r||wT)(t.Y36(gm),t.Y36(or),t.Y36(Dp),t.Y36(dr))},wT.\u0275cmp=t.Xpm({type:wT,selectors:[["app-controller-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.YNc(0,Eze,11,2,"mat-card",0),t.YNc(1,xze,1,0,"mat-divider",1)),2&r&&(t.Q6J("ngIf",e.discoveredController),t.xp6(1),t.Q6J("ngIf",e.discoveredController))},dependencies:[le.O5,fn,ci,Y0,ID,hm.d]});var Ize=function(r){return["/controller",r,"login"]};function Pze(n,r){if(1&n&&(t.TgZ(0,"a",22),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(2,Ize,e.id)),t.xp6(1),t.Oqu(e.name)}}function Rze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function Lze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,Pze,2,4,"a",20),t.YNc(2,Rze,2,1,"span",21),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),t.xp6(1),t.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function Zze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Location "),t.qZA())}function Nze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.location," ")}}function Bze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Host "),t.qZA())}function Fze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.host," ")}}function Uze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Port "),t.qZA())}function Hze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.port," ")}}function jze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function Gze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.openProjects(o))}),t.TgZ(1,"mat-icon",31),t._uU(2,"arrow_forward"),t.qZA()()}}function zze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.startController(o))}),t.TgZ(1,"mat-icon",33),t._uU(2,"play_arrow"),t.qZA()()}}function Wze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.stopController(o))}),t.TgZ(1,"mat-icon",35),t._uU(2,"stop"),t.qZA()()}}function Vze(n,r){1&n&&t._UZ(0,"mat-spinner",36),2&n&&t.Q6J("diameter",24)}function Yze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",23),t.YNc(1,Gze,3,0,"button",24),t.YNc(2,zze,3,0,"button",25),t.YNc(3,Wze,3,0,"button",26),t.YNc(4,Vze,1,1,"mat-spinner",27),t.TgZ(5,"button",28),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.deleteController(l))}),t.TgZ(6,"mat-icon",29),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function Kze(n,r){1&n&&t._UZ(0,"mat-header-row")}function qze(n,r){1&n&&t._UZ(0,"mat-row")}function Jze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startLocalController())}),t._uU(1," Start local controller "),t.qZA()}}var aI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,B.Z)(this,n),this.dialog=r,this.controllerService=e,this.controllerDatabase=i,this.controllerManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=l,this.bottomSheet=u,this.route=d,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,U.Z)(n,[{key:"getControllers",value:function(){var e=this,i=this.controllerManagement.getRunningControllers();this.controllerService.findAll().then(function(o){o.forEach(function(a){i.findIndex(function(l){return a.name===l})>=0&&(a.status="running")}),o.forEach(function(a){e.controllerService.checkControllerVersion(a).subscribe(function(s){s.version.split(".")[0]>=3&&(a.protocol||(a.protocol=location.protocol),e.controllerDatabase.find(a.name)||e.controllerDatabase.addController(a))},function(s){})})})}},{key:"ngOnInit",value:function(){var e=this;this.isElectronApp=this.electronService.isElectronApp,this.controllerService&&this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService&&this.controllerService.isServiceInitialized&&this.controllerService.serviceInitialized.subscribe(function(i){return wi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.getControllers();case 1:case"end":return s.stop()}},o,this)}))}),this.dataSource=new Qze(this.controllerDatabase),this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){var o=e.controllerDatabase.find(i.controllerName);!o||("starting"===i.status&&(o.status="starting"),"stopped"===i.status&&(o.status="stopped"),"errored"===i.status&&(o.status="stopped"),"started"===i.status&&(o.status="running"),e.controllerDatabase.update(o),e.changeDetector.detectChanges())})}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe()}},{key:"startLocalController",value:function(){var e=this.controllerDatabase.data.find(function(i){return"bundled"===i.location||"local"});this.startController(e)}},{key:"openProjects",value:function(e){this.router.navigate(["/controller",e.id,"projects"])}},{key:"createModal",value:function(){var e=this;this.dialog.open(oI,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.controllerService.create(o).then(function(a){e.controllerDatabase.addController(a)})})}},{key:"getControllerStatus",value:function(e){if("local"===e.location)return void 0===e.status?"stopped":e.status}},{key:"deleteController",value:function(e){var i=this;this.bottomSheet.open(md);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the controller?";o.afterDismissed().subscribe(function(s){s&&i.controllerService.delete(e).then(function(){i.controllerDatabase.remove(e)})})}},{key:"startController",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.start(e);case 2:case"end":return a.stop()}},i,this)}))}},{key:"stopController",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.stop(e);case 2:case"end":return a.stop()}},i,this)}))}}]),n}();aI.\u0275fac=function(r){return new(r||aI)(t.Y36(Gr),t.Y36(or),t.Y36(Dp),t.Y36(gv),t.Y36(t.sBO),t.Y36(ul),t.Y36(dG),t.Y36(lf),t.Y36(dr),t.Y36(ur))},aI.\u0275cmp=t.Xpm({type:aI,selectors:[["app-controller-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove controller"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start controller"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop controller"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Controllers"),t.qZA()(),t.TgZ(4,"div",2),t._UZ(5,"app-controller-discovery"),t.TgZ(6,"div",3)(7,"mat-table",4,5),t.ynx(9,6),t.YNc(10,Dze,2,0,"mat-header-cell",7),t.YNc(11,Aze,2,1,"mat-cell",8),t.BQk(),t.ynx(12,9),t.YNc(13,Oze,2,0,"mat-header-cell",7),t.YNc(14,Lze,3,2,"mat-cell",8),t.BQk(),t.ynx(15,10),t.YNc(16,Zze,2,0,"mat-header-cell",7),t.YNc(17,Nze,2,1,"mat-cell",8),t.BQk(),t.ynx(18,11),t.YNc(19,Bze,2,0,"mat-header-cell",7),t.YNc(20,Fze,2,1,"mat-cell",8),t.BQk(),t.ynx(21,12),t.YNc(22,Uze,2,0,"mat-header-cell",7),t.YNc(23,Hze,2,1,"mat-cell",8),t.BQk(),t.ynx(24,13),t.YNc(25,jze,2,0,"mat-header-cell",7),t.YNc(26,Yze,8,4,"mat-cell",14),t.BQk(),t.YNc(27,Kze,1,0,"mat-header-row",15),t.YNc(28,qze,1,0,"mat-row",16),t.qZA()(),t.TgZ(29,"div",17),t.YNc(30,Jze,2,0,"button",18),t.TgZ(31,"button",19),t.NdJ("click",function(){return e.createModal()}),t._uU(32,"Add Controller"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("dataSource",e.dataSource),t.xp6(20),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isElectronApp))},dependencies:[le.O5,js,fn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,mi,wT],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}table[_ngcontent-%COMP%]{width:100%}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}"]});var Qze=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this;return(0,Gi.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2),Gb=function(){function n(r){(0,B.Z)(this,n),this.electronService=r}return(0,U.Z)(n,[{key:"get",value:function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}}}]),n}();Gb.\u0275fac=function(r){return new(r||Gb)(t.LFG(ul))},Gb.\u0275prov=t.Yz7({token:Gb,factory:Gb.\u0275fac});var vv=function(){function n(r,e){(0,B.Z)(this,n),this.defaultConsoleService=r,this.settingsService=e}return(0,U.Z)(n,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),n}();vv.\u0275fac=function(r){return new(r||vv)(t.LFG(Gb),t.LFG(Gm.g))},vv.\u0275prov=t.Yz7({token:vv,factory:vv.\u0275fac});var sI=function(){function n(r,e,i){(0,B.Z)(this,n),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new J.nJ({command:new J.p4("")})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.consoleForm.get("command").setValue(this.consoleService.command)}},{key:"goBack",value:function(){this.router.navigate(["/settings"])}},{key:"save",value:function(){var e=this.consoleForm.value;this.consoleService.command=e.command,this.toasterService.success("Console command has been updated."),this.goBack()}}]),n}();sI.\u0275fac=function(r){return new(r||sI)(t.Y36(ur),t.Y36(vv),t.Y36(Zn))},sI.\u0275cmp=t.Xpm({type:sI,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Console settings"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),t._UZ(9,"textarea",7),t.qZA(),t.TgZ(10,"div",8),t._uU(11," The following variables are replaced by GNS3:"),t._UZ(12,"br"),t._uU(13," %h: console IP or hostname"),t._UZ(14,"br"),t._uU(15," %p: console port"),t._UZ(16,"br"),t._uU(17," %s: path of the serial connection"),t._UZ(18,"br"),t._uU(19," %d: title of the console"),t._UZ(20,"br"),t._uU(21," %i: Project UUID"),t._UZ(22,"br"),t._uU(23," %c: controller URL (http://user:password@controller:port) "),t.qZA()()(),t.TgZ(24,"div",9)(25,"button",10),t.NdJ("click",function(){return e.goBack()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",11),t.NdJ("click",function(){return e.save()}),t._uU(28,"Save"),t.qZA(),t._UZ(29,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("formGroup",e.consoleForm))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,fn,ci,qn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var zb=function(){function n(r){(0,B.Z)(this,n),this.httpClient=r}return(0,U.Z)(n,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),n}();zb.\u0275fac=function(r){return new(r||zb)(t.LFG(fc.eN))},zb.\u0275prov=t.Yz7({token:zb,factory:zb.\u0275fac});var lI=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.settings=this.settingsService.getAll(),this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openReadme=this.mapSettingsService.openReadme,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget}},{key:"save",value:function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenReadme(this.openReadme),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)}},{key:"setDarkMode",value:function(e){this.themeService.setDarkMode(e)}},{key:"checkForUpdates",value:function(){window.open("https://gns3.com/software")}}]),n}();lI.\u0275fac=function(r){return new(r||lI)(t.Y36(Gm.g),t.Y36(Zn),t.Y36(vv),t.Y36(wc.f),t.Y36(fl),t.Y36(zb))},lI.\u0275cmp=t.Xpm({type:lI,selectors:[["app-settings"]],decls:51,vars:8,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Settings"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Local settings "),t.qZA(),t.TgZ(11,"mat-panel-description"),t._uU(12," Customize your local settings "),t.qZA()(),t.TgZ(13,"div")(14,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),t._uU(15,"Send anonymous crash reports"),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),t._uU(18,"Integrate link labels to links"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openReadme=o}),t._uU(21,"Automatically open project README files"),t.qZA(),t._UZ(22,"br"),t.TgZ(23,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),t._uU(24,"Send anonymous usage statistics"),t.qZA(),t._UZ(25,"br"),t.TgZ(26,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),t._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),t.qZA()()(),t.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Theme settings "),t.qZA(),t.TgZ(32,"mat-panel-description"),t._uU(33," Customize theme settings "),t.qZA()(),t.TgZ(34,"div",6)(35,"button",7),t.NdJ("click",function(){return e.setDarkMode(!1)}),t._uU(36,"Switch to light theme"),t.qZA(),t.TgZ(37,"button",7),t.NdJ("click",function(){return e.setDarkMode(!0)}),t._uU(38,"Switch to dark theme"),t.qZA()()(),t.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Updates "),t.qZA(),t.TgZ(43,"mat-panel-description"),t._uU(44," Check for updates "),t.qZA()(),t.TgZ(45,"div",6)(46,"button",8),t.NdJ("click",function(){return e.checkForUpdates()}),t._uU(47,"Check for updates"),t.qZA()()()()(),t.TgZ(48,"div",9)(49,"button",10),t.NdJ("click",function(){return e.save()}),t._uU(50,"Save settings"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("expanded",!0),t.xp6(7),t.Q6J("ngModel",e.settings.crash_reports),t.xp6(3),t.Q6J("ngModel",e.integrateLinksLabelsToLinks),t.xp6(3),t.Q6J("ngModel",e.openReadme),t.xp6(3),t.Q6J("ngModel",e.settings.anonymous_statistics),t.xp6(3),t.Q6J("ngModel",e.openConsolesInWidget),t.xp6(2),t.Q6J("expanded",!1),t.xp6(11),t.Q6J("expanded",!1))},dependencies:[J.JJ,J.On,fn,ti,Dl,xl,au,Fu,ND],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var uI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e){var i=new Date(1e3*+e),o=i.getHours(),a="0"+i.getMinutes(),s="0"+i.getSeconds(),l=i.getFullYear(),u=i.getMonth()+1,d=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+d+"/"+u+"/"+l}}]),n}();uI.\u0275fac=function(r){return new(r||uI)},uI.\u0275pipe=t.Yjl({name:"datefilter",type:uI,pure:!0});var cI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function Xze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Name "),t.qZA())}function $ze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function eWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Date "),t.qZA())}function tWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.ALo(2,"datefilter"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function nWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function rWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.restoreSnapshot(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"restore"),t.qZA()(),t.TgZ(4,"button",22),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteSnapshot(a))}),t.TgZ(5,"mat-icon",23),t._uU(6,"delete"),t.qZA()()()}}function iWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function oWe(n,r){1&n&&t._UZ(0,"mat-row")}cI.\u0275fac=function(r){return new(r||cI)},cI.\u0275pipe=t.Yjl({name:"namefilter",type:cI,pure:!0});var dI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.controller=this.route.snapshot.data.controller,this.getSnapshots()}},{key:"getSnapshots",value:function(){var e=this;this.snapshotService.list(this.controller,this.projectId).subscribe(function(i){e.snapshots=i})}},{key:"restoreSnapshot",value:function(e){var i=this,o=this.snapshotService.restore(this.controller,this.projectId,e.snapshot_id.toString()),a=this.progressDialogService.open(),s=o.subscribe(function(l){i.toaster.success("Snapshot ".concat(e.name," has been restored.")),a.close()});a.afterClosed().subscribe(function(l){l===jb.CANCELLED&&s.unsubscribe()})}},{key:"deleteSnapshot",value:function(e){var i=this;this.snapshotService.delete(this.controller,this.projectId,e.snapshot_id.toString()).subscribe(function(){i.getSnapshots(),i.toaster.success("Snapshot ".concat(e.name," has been deleted."))})}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.snapshots.slice();this.snapshots=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?function sWe(n,r,e){return n=n.toLowerCase(),r=r.toLowerCase(),(n<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function aWe(n,r,e){return(n<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),n}();dI.\u0275fac=function(r){return new(r||dI)(t.Y36(dr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},dI.\u0275cmp=t.Xpm({type:dI,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Snapshots"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(9,"mat-table",7,8),t.NdJ("matSortChange",function(o){return e.sortData(o)}),t.ALo(11,"namefilter"),t.ynx(12,9),t.YNc(13,Xze,2,0,"mat-header-cell",10),t.YNc(14,$ze,2,1,"mat-cell",11),t.BQk(),t.ynx(15,12),t.YNc(16,eWe,2,0,"mat-header-cell",10),t.YNc(17,tWe,3,3,"mat-cell",11),t.BQk(),t.ynx(18,13),t.YNc(19,nWe,2,0,"mat-header-cell",14),t.YNc(20,rWe,7,0,"mat-cell",15),t.BQk(),t.YNc(21,iWe,1,0,"mat-header-row",16),t.YNc(22,oWe,1,0,"mat-row",17),t.qZA()()()()),2&r&&(t.xp6(8),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("dataSource",t.xi3(11,4,e.snapshots,e.searchText)),t.xp6(12),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,fn,ci,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,qu,cf,mi,uI,cI],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var Kse=new t.OlP("MatChipRemove"),qse=new t.OlP("MatChipAvatar"),Jse=new t.OlP("MatChipTrailingIcon"),uWe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r}),cWe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)(uWe),"primary"),-1),kT=(0,U.Z)(function n(){(0,B.Z)(this,n)});kT.\u0275fac=function(r){return new(r||kT)},kT.\u0275dir=t.lG2({type:kT,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:qse,useExisting:kT}])]});var TT=(0,U.Z)(function n(){(0,B.Z)(this,n)});TT.\u0275fac=function(r){return new(r||TT)},TT.\u0275dir=t.lG2({type:TT,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:Jse,useExisting:TT}])]});var yv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,B.Z)(this,e),(g=r.call(this,i))._ngZone=o,g._changeDetectorRef=l,g._hasFocus=!1,g.chipListSelectable=!0,g._chipListMultiple=!1,g._chipListDisabled=!1,g.role="option",g._selected=!1,g._selectable=!0,g._disabled=!1,g._removable=!0,g._onFocus=new On.xQ,g._onBlur=new On.xQ,g.selectionChange=new t.vpe,g.destroyed=new t.vpe,g.removed=new t.vpe,g._addHostClassName(),g._chipRippleTarget=u.createElement("div"),g._chipRippleTarget.classList.add("mat-chip-ripple"),g._elementRef.nativeElement.appendChild(g._chipRippleTarget),g._chipRipple=new Gt.IR((0,sD.Z)(g),o,g._chipRippleTarget,a),g._chipRipple.setupTriggerEvents(i),g.rippleConfig=s||{},g._animationsDisabled="NoopAnimations"===d,g.tabIndex=null!=h&&parseInt(h)||-1,g}return(0,U.Z)(e,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(o){var a=(0,En.Ig)(o);a!==this._selected&&(this._selected=a,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(o){this._value=o}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(o){this._selectable=(0,En.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,En.Ig)(o)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var o="mat-basic-chip",a=this._elementRef.nativeElement;a.hasAttribute(o)||a.tagName.toLowerCase()===o?a.classList.add(o):a.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 o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(o),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(o){this.disabled&&o.preventDefault()}},{key:"_handleKeydown",value:function(o){if(!this.disabled)switch(o.keyCode){case Tr.yY:case Tr.ZH:this.remove(),o.preventDefault();break;case Tr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,Ri.q)(1)).subscribe(function(){o._ngZone.run(function(){o._hasFocus=!1,o._onBlur.next({chip:o})})})}},{key:"_dispatchSelectionChange",value:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:o,selected:this._selected})}}]),e}(cWe);yv.\u0275fac=function(r){return new(r||yv)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(bi.t4),t.Y36(Gt.Y2,8),t.Y36(t.sBO),t.Y36(le.K0),t.Y36(t.QbO,8),t.$8M("tabindex"))},yv.\u0275dir=t.lG2({type:yv,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,qse,5),t.Suo(i,Jse,5),t.Suo(i,Kse,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.avatar=o.first),t.iGM(o=t.CRH())&&(e.trailingIcon=o.first),t.iGM(o=t.CRH())&&(e.removeIcon=o.first))},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("keydown",function(o){return e._handleKeydown(o)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&r&&(t.uIk("tabindex",e.disabled?null:e.tabIndex)("role",e.role)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),t.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[t.qOj]});var MT=function(){function n(r,e){(0,B.Z)(this,n),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,U.Z)(n,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),n}();MT.\u0275fac=function(r){return new(r||MT)(t.Y36(yv),t.Y36(t.SBq))},MT.\u0275dir=t.lG2({type:MT,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})},features:[t._Bn([{provide:Kse,useExisting:MT}])]});var Qse=new t.OlP("mat-chips-default-options"),dWe=0,fI=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new t.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(dWe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,U.Z)(n,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=(0,En.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{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(e){if(e){if(e.keyCode===Tr.Mf&&!(0,Tr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===Tr.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&e.keyCode===Tr.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,e.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(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!(0,Tr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),n}();fI.\u0275fac=function(r){return new(r||fI)(t.Y36(t.SBq),t.Y36(Qse))},fI.\u0275dir=t.lG2({type:fI,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)})("keyup",function(o){return e._keyup(o)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&r&&(t.Ikx("id",e.id),t.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[t.TTD]});var fWe=(0,Gt.FD)(function(){return(0,U.Z)(function n(r,e,i,o){(0,B.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),pWe=0,hWe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.value=e}),Wb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,u,s,l,d))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new On.xQ,h._uid="mat-chip-list-".concat(pWe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(g,y){return g===y},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new t.vpe,h.valueChange=new t.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,sD.Z)(h)),h}return(0,U.Z)(e,[{key:"selected",get:function(){var o,a;return this.multiple?(null===(o=this._selectionModel)||void 0===o?void 0:o.selected)||[]:null===(a=this._selectionModel)||void 0===a?void 0:a.selected[0]}},{key:"role",get:function(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"},set:function(o){this._explicitRole=o}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,En.Ig)(o),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(o){this._compareWith=o,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(o){this.writeValue(o),this._value=o}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,En.Ig)(o),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(o){this._placeholder=o,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(o){this._disabled=(0,En.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){this._selectable=(0,En.Ig)(o),this._syncChipsState()}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Gi.T.apply(void 0,(0,cn.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Ir.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,Oo.O)(null),(0,Ir.R)(this._destroyed)).subscribe(function(){(o.disabled||!o.selectable)&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Si.Ov(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(o){this._chipInput=o,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",o.id)}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"writeValue",value:function(o){this.chips&&this._setSelectionByValue(o,!1)}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this.stateChanges.next()}},{key:"onContainerClick",value:function(o){this._originatesFromChip(o)||this.focus()}},{key:"focus",value:function(o){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(o),this.stateChanges.next()))}},{key:"_focusInput",value:function(o){this._chipInput&&this._chipInput.focus(o)}},{key:"_keydown",value:function(o){var a=o.target;a&&a.classList.contains("mat-chip")&&(this._keyManager.onKeydown(o),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 o=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(o)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(o){return o>=0&&o<this.chips.length}},{key:"_setSelectionByValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(u){return u.deselect()}),Array.isArray(o))o.forEach(function(u){return a._selectValue(u,s)}),this._sortValues();else{var l=this._selectValue(o,s);l&&s&&this._keyManager.setActiveItem(l)}}},{key:"_selectValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.chips.find(function(u){return null!=u.value&&a._compareWith(u.value,o)});return l&&(s?l.selectViaInteraction():l.select(),this._selectionModel.select(l)),l}},{key:"_initializeSelection",value:function(){var o=this;Promise.resolve().then(function(){(o.ngControl||o._value)&&(o._setSelectionByValue(o.ngControl?o.ngControl.value:o._value,!1),o.stateChanges.next())})}},{key:"_clearSelection",value:function(o){this._selectionModel.clear(),this.chips.forEach(function(a){a!==o&&a.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var o=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(a){a.selected&&o._selectionModel.select(a)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(o){var a=null;a=Array.isArray(this.selected)?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:o,this._value=a,this.change.emit(new hWe(this,a)),this.valueChange.emit(a),this._onChange(a),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var o=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){o.focused||o._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var o=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){o._tabIndex=o._userTabIndex||0,o._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 o=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(a){a.source.selected?o._selectionModel.select(a.source):o._selectionModel.deselect(a.source),o.multiple||o.chips.forEach(function(s){!o._selectionModel.isSelected(s)&&s.selected&&s.deselect()}),a.isUserInput&&o._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var o=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(a){var s=o.chips.toArray().indexOf(a.chip);o._isValidIndex(s)&&o._keyManager.updateActiveItem(s),o.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){o._blur(),o.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var o=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(a){var s=a.chip,l=o.chips.toArray().indexOf(a.chip);o._isValidIndex(l)&&s._hasFocus&&(o._lastDestroyedChipIndex=l)})}},{key:"_originatesFromChip",value:function(o){for(var a=o.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-chip"))return!0;a=a.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(o){return o._hasFocus})}},{key:"_syncChipsState",value:function(){var o=this;this.chips&&this.chips.forEach(function(a){a._chipListDisabled=o._disabled,a._chipListMultiple=o.multiple,a.chipListSelectable=o._selectable})}}]),e}(fWe);Wb.\u0275fac=function(r){return new(r||Wb)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(nl.Is,8),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Gt.rD),t.Y36(J.a5,10))},Wb.\u0275cmp=t.Xpm({type:Wb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,yv,5),2&r)&&(t.iGM(o=t.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.Ikx("id",e._uid),t.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),t.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[t._Bn([{provide:kn.Eo,useExisting:Wb}]),t.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0});var ST=(0,U.Z)(function n(){(0,B.Z)(this,n)});ST.\u0275fac=function(r){return new(r||ST)},ST.\u0275mod=t.oAB({type:ST}),ST.\u0275inj=t.cJS({providers:[Gt.rD,{provide:Qse,useValue:{separatorKeyCodes:[Tr.K5]}}],imports:[Gt.BQ]});var mWe=function(){return["Load average","(last 1 minute)"]},_We=function(){return["Load average","(last 5 minutes)"]},gWe=function(){return["Load average","(last 15 minutes)"]},pI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"formatBytes",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var o=1024,a=i<0?0:i,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(e)/Math.log(o));return parseFloat((e/Math.pow(o,l)).toFixed(a))+" "+s[l]}}]),n}();function vWe(n,r){1&n&&(t.TgZ(0,"div"),t._uU(1,"Statistics not loaded"),t.qZA())}function yWe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t._UZ(2,"app-status-chart",2),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.compute_name," "),t.xp6(1),t.Q6J("computeStatistics",e)}}pI.\u0275fac=function(r){return new(r||pI)},pI.\u0275cmp=t.Xpm({type:pI,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(r,e){1&r&&(t.TgZ(0,"mat-card")(1,"div",0),t._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),t.qZA(),t.TgZ(6,"div",0),t._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),t.qZA(),t.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),t._uU(13),t.qZA()(),t.TgZ(14,"mat-chip-list")(15,"mat-chip",3),t._uU(16),t.qZA()(),t.TgZ(17,"mat-chip-list")(18,"mat-chip",3),t._uU(19),t.qZA()()(),t.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),t._uU(23),t.qZA()(),t.TgZ(24,"mat-chip-list")(25,"mat-chip",3),t._uU(26),t.qZA()(),t.TgZ(27,"mat-chip-list")(28,"mat-chip",3),t._uU(29),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(111,mWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(112,_We))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(113,gWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(4),t.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),t.xp6(3),t.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),t.xp6(3),t.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),t.xp6(4),t.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),t.xp6(3),t.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),t.xp6(3),t.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},dependencies:[ci,Wb,yv,aD],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:10px}"]});var hI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.getStatistics()}},{key:"getStatistics",value:function(){var e=this;this.controllerService.get(Number(this.controllerId)).then(function(i){e.computeService.getStatistics(i).subscribe(function(o){e.computeStatistics=o,setTimeout(function(){e.getStatistics()},2e4)})})}}]),n}();hI.\u0275fac=function(r){return new(r||hI)(t.Y36(dr),t.Y36(Qd.X),t.Y36(or),t.Y36(Zn))},hI.\u0275cmp=t.Xpm({type:hI,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(t.YNc(0,vWe,2,0,"div",0),t.YNc(1,yWe,3,2,"div",1)),2&r&&(t.Q6J("ngIf",!e.computeStatistics.length),t.xp6(1),t.Q6J("ngForOf",e.computeStatistics))},dependencies:[le.sg,le.O5,pI]});var mI=function(){function n(r){(0,B.Z)(this,n),this.route=r,this.controllerId=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();mI.\u0275fac=function(r){return new(r||mI)(t.Y36(dr))},mI.\u0275cmp=t.Xpm({type:mI,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"System status"),t.qZA()()(),t.TgZ(5,"div",4),t._UZ(6,"app-status-info"),t.qZA()())},dependencies:[hI]});var bWe=["terminal"],ET=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new xa.w,this.term=new Wse.Terminal,this.fitAddon=new Yse.FitAddon}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized?this.getData():this.subscriptions.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()}))}},{key:"getData",value:function(){var e=this;this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(i){e.fitAddon.fit()}),this.controllerService.get(+this.controllerId).then(function(i){e.controller=i,e.nodeService.getNodeById(e.controller,e.projectId,e.nodeId).subscribe(function(o){e.node=o,e.title.setTitle(e.node.name),e.openTerminal()})})}},{key:"openTerminal",value:function(){var e=this;setTimeout(function(){e.term.open(e.terminal.nativeElement);var i=new WebSocket(e.consoleService.getUrl(e.controller,e.node));i.onerror=function(l){e.term.write("Connection lost\r\n")},i.onclose=function(l){e.term.write("Connection closed\r\n")};var o=new Vse.AttachAddon(i);e.term.loadAddon(o),e.term.setOption("cursorBlink",!0),e.term.loadAddon(e.fitAddon),e.fitAddon.activate(e.term),e.fitAddon.fit(),e.term.focus(),e.term.attachCustomKeyEventHandler(function(l){return!(("KeyC"===l.code||"KeyV"===l.code)&&l.ctrlKey&&l.shiftKey)});var a=Math.round(window.innerWidth/e.consoleService.getLineWidth()),s=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(a,s)},0)}}]),n}();ET.\u0275fac=function(r){return new(r||ET)(t.Y36(uu),t.Y36(or),t.Y36(dr),t.Y36(ni),t.Y36(Fr))},ET.\u0275cmp=t.Xpm({type:ET,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(bWe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2});var Vb=function(){function n(r,e){(0,B.Z)(this,n),this.consoleService=r,this.bottomSheet=e}return(0,U.Z)(n,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(md);var e=this.bottomSheet._openedBottomSheetRef;return e.instance.message="Exiting the project will close open consoles, do you want to continue?",e.afterDismissed()}return!0}}]),n}();Vb.\u0275fac=function(r){return new(r||Vb)(t.LFG(uu),t.LFG(lf))},Vb.\u0275prov=t.Yz7({token:Vb,factory:Vb.\u0275fac});var Ur=function(){function n(r,e,i){(0,B.Z)(this,n),this.controllerService=r,this.loginService=e,this.router=i}return(0,U.Z)(n,[{key:"canActivate",value:function(e,i){return wi(this,void 0,void 0,Rn().mark(function o(){var s,l,a=this;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,d.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=d.sent,d.prev=5,d.next=8,this.loginService.getLoggedUser(l);case 8:d.next=12;break;case 10:d.prev=10,d.t0=d.catch(5);case 12:return d.abrupt("return",this.controllerService.get(parseInt(s,10)).then(function(h){if(h.authToken&&!h.tokenExpired)return!0;a.router.navigate(["/controller",h.id,"login"],{queryParams:{returnUrl:i.url}})}));case 13:case"end":return d.stop()}},o,this,[[5,10]])}))}}]),n}();Ur.\u0275fac=function(r){return new(r||Ur)(t.LFG(or),t.LFG(_m),t.LFG(ur))},Ur.\u0275prov=t.Yz7({token:Ur,factory:Ur.\u0275fac});var CWe=["*",[["mat-toolbar-row"]]],kWe=(0,Gt.pj)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}()),_I=(0,U.Z)(function n(){(0,B.Z)(this,n)});_I.\u0275fac=function(r){return new(r||_I)},_I.\u0275dir=t.lG2({type:_I,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var gI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,U.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return o._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){this._toolbarRows.length}}]),e}(kWe);gI.\u0275fac=function(r){return new(r||gI)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(le.K0))},gI.\u0275cmp=t.Xpm({type:gI,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,_I,5),2&r)&&(t.iGM(o=t.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(CWe),t.Hsn(0),t.Hsn(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%}"],encapsulation:2,changeDetection:0});var xT=(0,U.Z)(function n(){(0,B.Z)(this,n)});function TWe(n,r){1&n&&(t.TgZ(0,"button",16),t._UZ(1,"mat-icon",17),t.qZA())}function MWe(n,r){if(1&n&&(t.TgZ(0,"button",18),t._UZ(1,"mat-icon",17),t.qZA()),2&n){t.oxw();var e=t.MAs(45);t.Q6J("matMenuTriggerFor",e)}}function SWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.listProjects())}),t._uU(1," Projects "),t.qZA()}}function EWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.backToProject())}),t._uU(1," Back to project "),t.qZA()}}function xWe(n,r){if(1&n&&(t.TgZ(0,"button",20)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();var e=t.MAs(8);t.Q6J("matMenuTriggerFor",e)}}xT.\u0275fac=function(r){return new(r||xT)},xT.\u0275mod=t.oAB({type:xT}),xT.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var DWe=function(r){return["controller",r,"systemstatus"]},AWe=function(r){return["controller",r,"settings"]},OWe=function(r){return["controller",r,"management","users"]},IWe=function(r){return["controller",r,"help"]},PWe=function(r){return["/controller",r,"loggeduser"]},RWe=function(){return["/controllers"]},LWe=function(r){return["/controller",r,"projects"]},ZWe=function(r){return["controller",r,"preferences"]},NWe=function(r){return["controller",r,"image-manager"]};function BWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-toolbar",3),t.YNc(1,TWe,2,0,"button",4),t.YNc(2,MWe,2,1,"button",5),t.YNc(3,SWe,2,0,"button",6),t.YNc(4,EWe,2,0,"button",6),t._UZ(5,"span",7),t.YNc(6,xWe,3,1,"button",8),t.TgZ(7,"mat-menu",null,9)(9,"button",10)(10,"mat-icon"),t._uU(11,"info"),t.qZA(),t.TgZ(12,"span"),t._uU(13,"System status"),t.qZA()(),t.TgZ(14,"button",10)(15,"mat-icon"),t._uU(16,"settings"),t.qZA(),t.TgZ(17,"span"),t._uU(18,"Settings"),t.qZA()(),t.TgZ(19,"button",10)(20,"mat-icon"),t._uU(21,"groups"),t.qZA(),t.TgZ(22,"span"),t._uU(23,"Management"),t.qZA()(),t.TgZ(24,"button",10)(25,"mat-icon"),t._uU(26,"help"),t.qZA(),t.TgZ(27,"span"),t._uU(28,"Help"),t.qZA()(),t.TgZ(29,"button",10)(30,"mat-icon"),t._uU(31,"person"),t.qZA(),t.TgZ(32,"span"),t._uU(33,"User info"),t.qZA()(),t.TgZ(34,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goToDocumentation())}),t.TgZ(35,"mat-icon"),t._uU(36,"person"),t.qZA(),t.TgZ(37,"span"),t._uU(38,"API documentation"),t.qZA()(),t.TgZ(39,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.logout())}),t.TgZ(40,"mat-icon"),t._uU(41,"highlight_off"),t.qZA(),t.TgZ(42,"span"),t._uU(43,"Logout"),t.qZA()()(),t.TgZ(44,"mat-menu",12,13)(46,"button",14)(47,"mat-icon"),t._uU(48,"developer_board"),t.qZA(),t.TgZ(49,"span"),t._uU(50,"Controllers"),t.qZA()(),t.TgZ(51,"button",14)(52,"mat-icon"),t._uU(53,"work"),t.qZA(),t.TgZ(54,"span"),t._uU(55,"Projects"),t.qZA()(),t.TgZ(56,"button",10)(57,"mat-icon"),t._uU(58,"settings_applications"),t.qZA(),t.TgZ(59,"span"),t._uU(60,"Template preferences"),t.qZA()(),t.TgZ(61,"button",10)(62,"mat-icon"),t._uU(63,"collections"),t.qZA(),t.TgZ(64,"span"),t._uU(65,"Image manager"),t.qZA()(),t.TgZ(66,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addNewTemplate())}),t.TgZ(67,"mat-icon"),t._uU(68,"control_point"),t.qZA(),t.TgZ(69,"span"),t._uU(70,"New template"),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"==i.router.url),t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(1),t.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.controllerIdProjectList),t.xp6(1),t.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedcontrollerId&&!i.isLoginPage),t.xp6(2),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(3),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(24,DWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(26,AWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(28,OWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(30,IWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(32,PWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(34,RWe)),t.xp6(5),t.Q6J("routerLink",t.VKq(35,LWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(37,ZWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(39,NWe,i.controllerId))}}var vI=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,B.Z)(this,n),this.electronService=r,this.recentlyOpenedProjectService=e,this.controllerManagement=i,this.toasterService=o,this.progressService=a,this.dialog=s,this.router=l,this.route=u,this.controllerService=d,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=zse,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new xa.w,this.router.events.subscribe(function(y){y instanceof Jd&&(g.controllerId=g.route.children[0].snapshot.paramMap.get("controller_id"),g.getData())})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof Jd&&e.checkIfUserIsLoginPage()}),this.recentlyOpenedcontrollerId=this.recentlyOpenedProjectService.getcontrollerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.controllerIdProjectList=this.recentlyOpenedProjectService.getcontrollerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){"errored"===i.status&&(console.error(i.message),e.toasterService.error(i.message)),"stderr"===i.status&&(console.error(i.message),e.toasterService.error(i.message))}),this.shouldStopControllersOnClosing=this.electronService.isElectronApp}},{key:"goToDocumentation",value:function(){this.controllerService.get(+this.controllerId).then(function(e){window.open("http://".concat(e.host,":").concat(e.port,"/docs"))})}},{key:"checkIfUserIsLoginPage",value:function(){this.router.url.includes("login")?this.isLoginPage=!0:this.isLoginPage=!1}},{key:"logout",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){i.authToken=null,e.controllerService.update(i).then(function(o){return e.router.navigate(["/controller",i.id,"login"])})})}},{key:"listProjects",value:function(){var e=this;this.router.navigate(["/controller",this.controllerIdProjectList,"projects"]).catch(function(i){return e.toasterService.error("Cannot list projects")})}},{key:"backToProject",value:function(){var e=this;this.router.navigate(["/controller",this.recentlyOpenedcontrollerId,"project",this.recentlyOpenedProjectId]).catch(function(i){return e.toasterService.error("Cannot navigate to the last opened project")})}},{key:"onBeforeUnload",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.shouldStopControllersOnClosing){a.next=2;break}return a.abrupt("return");case 2:return e.preventDefault(),e.returnValue=!1,this.progressService.activate(),a.next=7,this.controllerManagement.stopAll();case 7:return this.shouldStopControllersOnClosing=!1,this.progressService.deactivate(),window.close(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},i,this)}))}},{key:"getData",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){e.controller=i})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(hT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe(),this.routeSubscription.unsubscribe()}}]),n}();vI.\u0275fac=function(r){return new(r||vI)(t.Y36(ul),t.Y36(L5.p),t.Y36(gv),t.Y36(Zn),t.Y36(El),t.Y36(Gr),t.Y36(ur),t.Y36(dr),t.Y36(or),t.Y36(Ws.Y))},vI.\u0275cmp=t.Xpm({type:vI,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&t.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,t.Jf7)},decls:7,vars:2,consts:[["color","primary",4,"ngIf"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["color","primary"],["mat-icon-button","",4,"ngIf"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor",4,"ngIf"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"disabled","routerLink"],["mat-menu-item","",3,"disabled","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-icon-button",""],["svgIcon","gns3"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor"],["mat-button","",3,"click"],["mat-button","",3,"matMenuTriggerFor"]],template:function(r,e){1&r&&(t.TgZ(0,"header"),t.YNc(1,BWe,71,41,"mat-toolbar",0),t.qZA(),t.TgZ(2,"main",1),t._UZ(3,"router-outlet"),t.qZA(),t._UZ(4,"app-progress"),t.TgZ(5,"footer",2),t._uU(6),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf","/controllers"!=e.router.url),t.xp6(5),t.hij("GNS3 Web UI \xa9 2022 - v",e.uiVersion,""))},dependencies:[le.O5,fm,$o,Ga,Er,ga,fn,gI,Dn,mi,z0],styles:["html,body{height:100%}app-root,app-default-layout{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0%}.mat-dialog-content>*{width:100%}\n"],encapsulation:2});var vd=function(){function n(r){(0,B.Z)(this,n),this.controllerService=r}return(0,U.Z)(n,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),n}();vd.\u0275fac=function(r){return new(r||vd)(t.LFG(or))},vd.\u0275prov=t.Yz7({token:vd,factory:vd.\u0275fac});var Xse=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},$se=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function ele(n){n.get("password").value===n.get("confirmPassword").value||n.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var Bl=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/access/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/users/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i,"/groups"))}}]),n}();Bl.\u0275fac=function(r){return new(r||Bl)(t.LFG(ho.zw))},Bl.\u0275prov=t.Yz7({token:Bl,factory:Bl.\u0275fac});var Ec=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/access/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/access/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),n}();Ec.\u0275fac=function(r){return new(r||Ec)(t.LFG(ho.zw))},Ec.\u0275prov=t.Yz7({token:Ec,factory:Ec.\u0275fac,providedIn:"root"});var FWe=["panel"];function UWe(n,r){if(1&n&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&n){var e=r.id,i=t.oxw();t.Q6J("id",i.id)("ngClass",i._classList),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var jWe=0,GWe=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.option=e}),zWe=(0,Gt.Kr)(function(){return(0,U.Z)(function n(){(0,B.Z)(this,n)})}()),tle=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function WWe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});var yI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=xa.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new t.vpe,l.opened=new t.vpe,l.closed=new t.vpe,l.optionActivated=new t.vpe,l._classList={},l.id="mat-autocomplete-".concat(jWe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l._autoSelectActiveOption=!!a.autoSelectActiveOption,l}return(0,U.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,En.Ig)(o)}},{key:"autoSelectActiveOption",get:function(){return this._autoSelectActiveOption},set:function(o){this._autoSelectActiveOption=(0,En.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,En.du)(o).reduce(function(a,s){return a[s]=!0,a},{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(a){o.isOpen&&o.optionActivated.emit({source:o,option:o.options.toArray()[a]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(o){this.panel&&(this.panel.nativeElement.scrollTop=o)}},{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(o){var a=new GWe(this,o);this.optionSelected.emit(a)}},{key:"_getPanelAriaLabelledby",value:function(o){if(this.ariaLabel)return null;var a=o?o+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:o}},{key:"_setVisibilityClasses",value:function(o){o[this._visibleClass]=this.showPanel,o[this._hiddenClass]=!this.showPanel}}]),e}(zWe);yI.\u0275fac=function(r){return new(r||yI)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(tle),t.Y36(bi.t4))},yI.\u0275dir=t.lG2({type:yI,viewQuery:function(r,e){var i;(1&r&&(t.Gf(t.Rgc,7),t.Gf(FWe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.template=i.first),t.iGM(i=t.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]});var Jp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,U.Z)(e)}(yI);Jp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Jp)))(e||Jp)}}(),Jp.\u0275cmp=t.Xpm({type:Jp,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Gt.K7,5),t.Suo(i,Gt.ey,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.optionGroups=o),t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:Gt.HF,useExisting:Jp}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,UWe,3,4,"ng-template"))},dependencies:[le.mk],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}"],encapsulation:2,changeDetection:0});var nle=new t.OlP("mat-autocomplete-scroll-strategy");var YWe={provide:nle,deps:[Li.aV],useFactory:function VWe(n){return function(){return n.scrollStrategies.reposition()}}},KWe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return Qp}),multi:!0};var bI=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var y=this;(0,B.Z)(this,n),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=xa.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new On.xQ,this._windowBlurHandler=function(){y._canOpenOnNextFocus=y._document.activeElement!==y._element.nativeElement||y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,lD.P)(function(){var L=y.autocomplete?y.autocomplete.options:null;return L?L.changes.pipe((0,Oo.O)(L),(0,Io.w)(function(){return Gi.T.apply(void 0,(0,cn.Z)(L.map(function(z){return z.onSelectionChange})))})):y._zone.onStable.pipe((0,Ri.q)(1),(0,Io.w)(function(){return y.optionSelections}))}),this._scrollStrategy=s}return(0,U.Z)(n,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,En.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this,i=this._getWindow();void 0!==i&&this._zone.runOutsideAngular(function(){return i.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.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(){var e=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){e.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,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 e=this;return(0,Gi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,$r.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,$r.h)(function(){return e._overlayAttached})):(0,Kn.of)()).pipe((0,$n.U)(function(i){return i instanceof Gt.rN?i:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return(0,Gi.T)((0,Xf.R)(this._document,"click"),(0,Xf.R)(this._document,"auxclick"),(0,Xf.R)(this._document,"touchend")).pipe((0,$r.h)(function(i){var o=(0,bi.sA)(i),a=e._formField?e._formField._elementRef.nativeElement:null,s=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&o!==e._element.nativeElement&&e._document.activeElement!==e._element.nativeElement&&(!a||!a.contains(o))&&(!s||!s.contains(o))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(o)}))}},{key:"writeValue",value:function(e){var i=this;Promise.resolve(null).then(function(){return i._assignOptionValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=(0,Tr.Vb)(e);if(i===Tr.hY&&!o&&e.preventDefault(),this.activeOption&&i===Tr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===Tr.LH||i===Tr.JH;i===Tr.Mf||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}},{key:"_handleInput",value:function(e){var i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,this._onChange(o),this._canOpen()&&this._document.activeElement===e.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:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?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 e=this,i=this._zone.onStable.pipe((0,Ri.q)(1)),o=this.autocomplete.options.changes.pipe((0,aa.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,KG.g)(0));return(0,Gi.T)(i,o).pipe((0,Io.w)(function(){return e._zone.run(function(){var a=e.panelOpen;e._resetActiveItem(),e.autocomplete._setVisibility(),e._changeDetectorRef.detectChanges(),e.panelOpen&&e._overlayRef.updatePosition(),a!==e.panelOpen&&(e.panelOpen?e.autocomplete.opened.emit():e.autocomplete.closed.emit())}),e.panelClosingActions}),(0,Ri.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_assignOptionValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(null!=i?i:"")}},{key:"_updateNativeInputValue",value:function(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}},{key:"_setValueAndClose",value:function(e){var i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(i){i!==e&&i.selected&&i.deselect()})}},{key:"_attachOverlay",value:function(){var i,e=this;this.autocomplete;var o=this._overlayRef;o?(this._positionStrategy.setOrigin(this._getConnectedElement()),o.updateSize({width:this._getPanelWidth()})):(this._portal=new ao.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(i=this._formField)||void 0===i?void 0:i.getLabelId()}),o=this._overlay.create(this._getOverlayConfig()),this._overlayRef=o,this._handleOverlayEvents(o),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&o&&o.updateSize({width:e._getPanelWidth()})})),o&&!o.hasAttached()&&(o.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var a=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&a!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new Li.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var s,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];s="above"===this.position?a:"below"===this.position?i:[].concat(i,a),e.withPositions(s)}},{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 e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var i=this.autocomplete,o=(0,Gt.CB)(e,i.options,i.optionGroups);if(0===e&&1===o)i._setScrollTop(0);else if(i.panel){var a=i.options.toArray()[e];if(a){var s=a._getHostElement(),l=(0,Gt.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}},{key:"_handleOverlayEvents",value:function(e){var i=this;e.keydownEvents().subscribe(function(o){var a;(o.keyCode===Tr.hY&&!(0,Tr.Vb)(o)||o.keyCode===Tr.LH&&(0,Tr.Vb)(o,"altKey"))&&(i._pendingAutoselectedOption&&(i._updateNativeInputValue(null!==(a=i._valueBeforeAutoSelection)&&void 0!==a?a:""),i._pendingAutoselectedOption=null),i._closeKeyEventStream.next(),i._resetActiveItem(),o.stopPropagation(),o.preventDefault())}),e.outsidePointerEvents().subscribe()}}]),n}();bI.\u0275fac=function(r){return new(r||bI)(t.Y36(t.SBq),t.Y36(Li.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(nle),t.Y36(nl.Is,8),t.Y36(kn.G_,9),t.Y36(le.K0,8),t.Y36(sa.rL),t.Y36(tle,8))},bI.\u0275dir=t.lG2({type:bI,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]});var Qp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,B.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,U.Z)(e)}(bI);Qp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qp)))(e||Qp)}}(),Qp.\u0275dir=t.lG2({type:Qp,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&t.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(o){return e._handleInput(o)})("keydown",function(o){return e._handleKeydown(o)})("click",function(){return e._handleClick()}),2&r&&t.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([KWe]),t.qOj]});var CI=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.elementRef=r});CI.\u0275fac=function(r){return new(r||CI)(t.Y36(t.SBq))},CI.\u0275dir=t.lG2({type:CI});var wI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(CI);wI.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wI)))(e||wI)}}(),wI.\u0275dir=t.lG2({type:wI,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[t.qOj]});var DT=(0,U.Z)(function n(){(0,B.Z)(this,n)});function qWe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required"),t.qZA())}function JWe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect"),t.qZA())}function QWe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists"),t.qZA())}function XWe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required"),t.qZA())}function $We(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid"),t.qZA())}function eVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"A password between 6 and 100 characters is required."),t.qZA())}function tVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}function nVe(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function rVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",21)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"mat-icon",22),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteGroup(s))}),t._uU(5,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.name)}}DT.\u0275fac=function(r){return new(r||DT)},DT.\u0275mod=t.oAB({type:DT}),DT.\u0275inj=t.cJS({providers:[YWe],imports:[Li.U8,Gt.Ng,Gt.BQ,le.ez,sa.ZD,Gt.Ng,Gt.BQ]});var kI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new J.p4}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new J.nJ({username:new J.p4(null,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[Xse(this.controller,this.userService)]),full_name:new J.p4,email:new J.p4(null,[J.kI.email,J.kI.required],[$se(this.controller,this.userService)]),password:new J.p4(null,[J.kI.required,J.kI.minLength(6),J.kI.maxLength(100)]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),is_active:new J.p4(!0)},{validators:[ele]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.groups.filter(function(o){return o.name.toLowerCase().includes(i)})}}},{key:"form",get:function(){return this.addUserForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this;if(this.addUserForm.valid){var i=this.addUserForm.value,o=Array.from(this.groupsToAdd.values());this.userService.add(this.controller,i).subscribe(function(a){e.toasterService.success("User ".concat(a.username," added")),o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,s,a).subscribe(function(){e.toasterService.success("user ".concat(a.username," was added to group ").concat(s.name))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(a.username," to group ").concat(s.name))})}),e.dialogRef.close()},function(a){e.toasterService.error("Cannot create user : "+a)})}}},{key:"deleteGroup",value:function(e){this.groupsToAdd.delete(e)}},{key:"selectedGroup",value:function(e){this.groupsToAdd.add(e)}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}}]),n}();function iVe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}kI.\u0275fac=function(r){return new(r||kI)(t.Y36(cr),t.Y36(Bl),t.Y36(Zn),t.Y36(Ec))},kI.\u0275cmp=t.Xpm({type:kI,selectors:[["app-add-user-dialog"]],decls:40,vars:16,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["matInput","","type","password","formControlName","password","placeholder","Password"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["formControlName","is_active"],[1,"my-2"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"groups"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"groupList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new user"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2),t._UZ(4,"input",3),t.YNc(5,qWe,2,0,"mat-error",4),t.YNc(6,JWe,2,0,"mat-error",4),t.YNc(7,QWe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"mat-form-field",2),t._UZ(9,"input",5),t.qZA(),t.TgZ(10,"mat-form-field",2),t._UZ(11,"input",6),t.YNc(12,XWe,2,0,"mat-error",4),t.YNc(13,$We,2,0,"mat-error",4),t.qZA(),t.TgZ(14,"mat-form-field",2),t._UZ(15,"input",7),t.YNc(16,eVe,2,0,"mat-error",4),t.qZA(),t.TgZ(17,"mat-form-field",2),t._UZ(18,"input",8),t.YNc(19,tVe,2,0,"mat-error",4),t.qZA(),t.TgZ(20,"mat-checkbox",9),t._uU(21,"Is active"),t.qZA(),t._UZ(22,"mat-divider",10),t.TgZ(23,"h6"),t._uU(24," Add user to groups : "),t.qZA(),t.TgZ(25,"mat-form-field",2)(26,"mat-label"),t._uU(27,"Groups"),t.qZA(),t._UZ(28,"input",11),t.TgZ(29,"mat-autocomplete",12,13),t.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),t.YNc(31,nVe,2,2,"mat-option",14),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div",15),t.YNc(34,rVe,6,1,"div",16),t.qZA(),t.TgZ(35,"div",17)(36,"button",18),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(37,"Cancel"),t.qZA(),t.TgZ(38,"button",19),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add user "),t.qZA()()()),2&r){var i=t.MAs(30);t.xp6(2),t.Q6J("formGroup",e.addUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(3),t.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),t.xp6(9),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(32,14,e.filteredGroups)),t.xp6(3),t.Q6J("ngForOf",e.groupsToAdd),t.xp6(4),t.Q6J("disabled",!e.addUserForm.valid)}},dependencies:[le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,fn,Dn,qn,br,fr,ti,hm.d,Gt.ey,Jp,Qp,le.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}"]});var AT=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();AT.\u0275fac=function(r){return new(r||AT)(t.Y36(cr),t.Y36(ko))},AT.\u0275cmp=t.Xpm({type:AT,selectors:[["app-delete-user-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following users ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,iVe,2,2,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.users))},dependencies:[le.sg,fn,br,fr],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var TI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.data.filter(function(o){return o.username&&o.username.toLowerCase().includes(i)||o.full_name&&o.full_name.toLowerCase().includes(i)||o.email&&o.email.toLowerCase().includes(i)})):e:[]}}]),n}();TI.\u0275fac=function(r){return new(r||TI)},TI.\u0275pipe=t.Yjl({name:"userFilter",type:TI,pure:!0});var oVe=["usersPaginator"],aVe=["usersSort"];function sVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function lVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function uVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Username"),t.qZA())}var cVe=function(r,e){return["/controller",r,"management","users",e]};function dVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",37),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,cVe,i.controller.id,e.user_id))("matTooltip",e.username),t.xp6(1),t.Oqu(e.username)}}function fVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Full Name"),t.qZA())}function pVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.full_name),t.xp6(1),t.Oqu(e.full_name)}}function hVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Mail"),t.qZA())}function mVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.email),t.xp6(1),t.Oqu(e.email)}}function _Ve(n,r){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Active"),t.qZA())}function gVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.is_active)}}function vVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Login"),t.qZA())}function yVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.last_login)}}function bVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Update"),t.qZA())}function CVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.updated_at?e.updated_at:e.created_at)}}function wVe(n,r){1&n&&t._UZ(0,"mat-header-cell",33)}function kVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"button",42),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function TVe(n,r){1&n&&t._UZ(0,"mat-header-row")}function MVe(n,r){1&n&&t._UZ(0,"mat-row")}var SVe=function(){return{standalone:!0}},EVe=function(){return[5,10,20]};function xVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Users"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete Users "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addUser())}),t._uU(8," Add User "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"userFilter"),t.ynx(18,14),t.YNc(19,sVe,2,2,"mat-header-cell",15),t.YNc(20,lVe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,uVe,2,0,"mat-header-cell",18),t.YNc(23,dVe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,fVe,2,0,"mat-header-cell",18),t.YNc(26,pVe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,hVe,2,0,"mat-header-cell",18),t.YNc(29,mVe,3,2,"mat-cell",19),t.BQk(),t.ynx(30,22),t.YNc(31,_Ve,2,0,"mat-header-cell",23),t.YNc(32,gVe,2,1,"mat-cell",24),t.BQk(),t.ynx(33,25),t.YNc(34,vVe,2,0,"mat-header-cell",18),t.YNc(35,yVe,2,1,"mat-cell",26),t.BQk(),t.ynx(36,27),t.YNc(37,bVe,2,0,"mat-header-cell",18),t.YNc(38,CVe,2,1,"mat-cell",26),t.BQk(),t.ynx(39,28),t.YNc(40,wVe,1,0,"mat-header-cell",15),t.YNc(41,kVe,4,0,"mat-cell",16),t.BQk(),t.YNc(42,TVe,1,0,"mat-header-row",29),t.YNc(43,MVe,1,0,"mat-row",30),t.qZA(),t._UZ(44,"mat-paginator",31,32),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,SVe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(28),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,EVe))}}function DVe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var MI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.usersPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.usersSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"username":case"full_name":case"email":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.userService.list(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addUser",value:function(){var e=this,i=this.dialog.open(kI,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(AT,{width:"500px",data:{users:[e]}}).afterClosed().subscribe(function(o){o&&i.userService.delete(i.controller,e.user_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete user ".concat(e.username))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(AT,{width:"500px",data:{users:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.userService.delete(e.controller,o.user_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete user ".concat(o.username))})}),e.selection.clear())})}}]),n}();function AVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),t._uU(3),t.qZA(),t.TgZ(4,"mat-list-item"),t._uU(5),t.qZA(),t.TgZ(6,"mat-list-item"),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.copyToken())}),t._uU(10,"Click to copy access token"),t.qZA(),t._UZ(11,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(3),t.hij(" Username: ",i.user.username," "),t.xp6(2),t.hij(" Full name: ",i.user.full_name," "),t.xp6(2),t.hij(" Email: ",i.user.email," ")}}MI.\u0275fac=function(r){return new(r||MI)(t.Y36(dr),t.Y36(ur),t.Y36(Bl),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},MI.\u0275cmp=t.Xpm({type:MI,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(oVe,5),t.Gf(aVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.usersPaginator=i),t.iGM(i=t.CRH())&&(e.usersSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by username, full name or email",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","usersSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","username"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","full_name"],["matColumnDef","email"],["matColumnDef","is_active"],["mat-sort-header","","class","active-col",4,"matHeaderCellDef"],["class","active-col",4,"matCellDef"],["matColumnDef","last_login"],["class","overflow-col",4,"matCellDef"],["matColumnDef","updated_at"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["usersPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-sort-header","",1,"active-col"],[1,"active-col"],[1,"overflow-col"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,xVe,46,12,"div",0),t.YNc(1,DVe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[le.O5,js,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,TI],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px;white-space:pre-line}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var SI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.userService.getInformationAboutLoggedUser(o).subscribe(function(a){e.user=a})})}},{key:"copyToken",value:function(){var e=document.createElement("textarea");e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.opacity="0",e.value=this.controller.authToken,document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.toasterService.success("Token copied")}}]),n}();SI.\u0275fac=function(r){return new(r||SI)(t.Y36(dr),t.Y36(or),t.Y36(Bl),t.Y36(Zn))},SI.\u0275cmp=t.Xpm({type:SI,selectors:[["app-logged-user"]],decls:7,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[4,"ngIf"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"full_width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Logged in user info"),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,AVe,12,3,"mat-card",5),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("ngIf",e.user))},dependencies:[le.O5,fn,ci,mm,Oa],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var bv=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images")}},{key:"getImagePath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/images/upload/").concat(o,"?install_appliances=").concat(i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(ja.N.current_version,"/images/upload/").concat(o)}},{key:"uploadedImage",value:function(e,i,o,a){return this.httpController.post(e,"/images/upload/".concat(o,"?install_appliances=").concat(i),a)}},{key:"deleteFile",value:function(e,i){return this.httpController.delete(e,"/images/".concat(i))}}]),n}();function OVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),t._uU(4,"Would you like to automatically install appliances for this image?"),t.qZA()(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t.TgZ(9,"div",5)(10,"mat-radio-group",6),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectInstallApplianceOption(a))}),t.TgZ(11,"mat-radio-button",7),t._uU(12," Yes "),t.qZA(),t.TgZ(13,"mat-radio-button",8),t._uU(14," No "),t.qZA()()(),t.TgZ(15,"div",9)(16,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.isInstallAppliance=!a.isInstallAppliance)}),t._uU(17,"Next"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(10),t.Q6J("value",i.install_appliance),t.xp6(1),t.Q6J("checked",i.install_appliance),t.xp6(2),t.Q6J("checked",!i.install_appliance)}}function IVe(n,r){1&n&&(t.TgZ(0,"h5"),t._uU(1,"Please Select image"),t.qZA())}function PVe(n,r){1&n&&(t.TgZ(0,"p",17),t._uU(1,"Uploaded image details"),t.qZA())}function RVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"input",19,20),t.NdJ("onFileSelected",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("uploader",i.uploaderImage)}}function LVe(n,r){if(1&n&&t._UZ(0,"mat-progress-bar",26),2&n){var e=t.oxw(4);t.Q6J("value",e.uploadProgress.progress)}}function ZVe(n,r){1&n&&t._UZ(0,"mat-progress-bar",26),2&n&&t.Q6J("value",0)}function NVe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,LVe,1,1,"mat-progress-bar",25),t.YNc(2,ZVe,1,1,"mat-progress-bar",25),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function BVe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),t.xp6(1),t.hij(" ",i.uploadProgress.progress+" %"," ")}}function FVe(n,r){1&n&&(t.TgZ(0,"div",27),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ","0 %"," "))}bv.\u0275fac=function(r){return new(r||bv)(t.LFG(ho.zw))},bv.\u0275prov=t.Yz7({token:bv,factory:bv.\u0275fac,providedIn:"root"});var UVe=function(r){return{"uploaded-error-text":r}};function HVe(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),t._uU(3),t.qZA()(),t.YNc(4,NVe,3,5,"div",23),t.YNc(5,BVe,2,4,"div",23),t.YNc(6,FVe,2,1,"div",24),t.qZA()),2&n){var e=r.$implicit,i=r.index,o=t.oxw(2);t.xp6(1),t.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),t.xp6(1),t.Q6J("ngClass",t.VKq(11,UVe,e.isError)),t.xp6(1),t.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),t.xp6(1),t.Q6J("ngIf",!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!o.uploadProgress.isUploaded)}}function jVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1))}),t._uU(2," Cancel "),t.qZA()()}}function GVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"div",12),t.YNc(3,IVe,2,0,"h5",0),t.YNc(4,PVe,2,0,"p",13),t.qZA(),t.YNc(5,RVe,5,1,"div",14),t.TgZ(6,"div")(7,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(8,"mat-icon"),t._uU(9,"close"),t.qZA()()()(),t.YNc(10,HVe,7,13,"div",15),t.YNc(11,jVe,3,0,"div",16),t.qZA()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),t.xp6(4),t.Q6J("ngForOf",i.uploaderImage.queue),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var EI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.data=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.uploadServiceService=a,this.isInstallAppliance=!1,this.install_appliance=!1,this.selectFile=[],this.uploadProgress=0}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new Eg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){var l={name:i.file.name,message:JSON.parse(o)};e.toasterService.error(null==l?void 0:l.message.message)},this.uploaderImage.onSuccessItem=function(i,o,a,s){var l={filename:i.file.name,message:JSON.parse(o)};e.toasterService.success("Image "+(null==l?void 0:l.message.filename)+" imported succesfully")},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i}}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.dialogRef.close(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image file Uploading canceled")}},{key:"selectInstallApplianceOption",value:function(e){this.install_appliance=e.value}},{key:"uploadImageFile",value:function(e){return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(d){o.e(d)}finally{o.f()}return u.next=4,this.importImageFile();case 4:case"end":return u.stop()}},i,this)}))}},{key:"importImageFile",value:function(){var e=this;this.selectFile.forEach(function(i,o){var a=i.name,s=i,l=new FileReader;l.onloadend=function(){var u=e.imageService.getImagePath(e.controller,e.install_appliance,a),d=e.uploaderImage.queue[o];d.url=u,d.options&&(d.options.disableMultipart=!0),d.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(d)},l.readAsText(s)})}}]),n}();function zVe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function WVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all files ?."),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected files"),t.qZA(),t.YNc(6,zVe,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function VVe(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function YVe(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}EI.\u0275fac=function(r){return new(r||EI)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn),t.Y36(ad))},EI.\u0275cmp=t.Xpm({type:EI,selectors:[["app-add-image-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"row"],[1,"col-md-10"],[1,"col-md-2","txt-align"],["mat-button","",3,"click"],["mat-dialog-content",""],["name","install_appliances",1,"choose-instal-appliance",3,"value","change"],["value","true",1,"instal-appliances-button",3,"checked"],["value","false",1,"instal-appliances-button",3,"checked"],["mat-dialog-actions","","align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"row",2,"display","flex"],[1,"col-md-6"],["class","uploaded-text",4,"ngIf"],["class","col-md-4 txt-align",4,"ngIf"],["class","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end",4,"ngIf"],[1,"uploaded-text"],[1,"col-md-4","txt-align"],["type","file","accept",".bin,.image,.qcow2,.vmdk","multiple","","ng2FileSelect","",1,"non-visible",3,"uploader","onFileSelected"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[3,"ngClass"],[3,"class",4,"ngIf"],["class","col-md-2",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-2"]],template:function(r,e){1&r&&(t.YNc(0,OVe,18,3,"div",0),t.YNc(1,GVe,12,8,"div",0)),2&r&&(t.Q6J("ngIf",!e.isInstallAppliance),t.xp6(1),t.Q6J("ngIf",e.isInstallAppliance))},dependencies:[le.mk,le.sg,le.O5,Mp,fn,Dn,Hu,fr,cb,rs,zs],styles:[".progress-bar[_ngcontent-%COMP%]{padding:0}.progress[_ngcontent-%COMP%]{width:50px;background-color:#263238;height:28px;margin-left:13px}.mat-input-element[_ngcontent-%COMP%]{font-size:medium;font-weight:200}#fileInput[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:10;opacity:0;height:100%;left:0;top:0}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto;background:transparent;padding:0}.mat-toolbar-single-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px}.mat-form-field[_ngcontent-%COMP%]{width:100%}.message[_ngcontent-%COMP%]{background-color:#ddd;padding:15px;color:#333;border:#aaa solid 1px;border-radius:4px;margin:15px 0}.preview[_ngcontent-%COMP%]{max-width:200px;vertical-align:middle}.list-card[_ngcontent-%COMP%]{margin-top:20px}.list-item[_ngcontent-%COMP%]{margin-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}mat-progress-bar[_ngcontent-%COMP%]{margin-top:10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.uploaded-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.uploaded-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}.choose-instal-appliance[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0 11px;align-items:flex-start}.instal-appliances-button[_ngcontent-%COMP%]{margin:11px}"],data:{animation:[(0,Zt.X$)("detailExpand",[(0,Zt.SB)("collapsed",(0,Zt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed",(0,Zt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var KVe=function(r){return{"deleted-error-text":r}};function qVe(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,YVe,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,KVe,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function JVe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Images can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,qVe,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function QVe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function XVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,JVe,4,1,"div",0),t.YNc(3,QVe,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var xI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return wi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.imageService.deleteFile(e.deleteData.controller,o.filename).pipe((0,ed.K)(function(a){return(0,Kn.of)(a)})))}),oo.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();xI.\u0275fac=function(r){return new(r||xI)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn))},xI.\u0275cmp=t.Xpm({type:xI,selectors:[["app-deleteallfiles-dialog"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,WVe,12,1,"div",0),t.YNc(1,VVe,5,0,"div",0),t.YNc(2,XVe,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[le.mk,le.sg,le.O5,fn,Ig,br,Hu,fr,ou],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var $Ve=function(){function n(){(0,B.Z)(this,n),this.dataChange=new Qi.X([])}return(0,U.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),n}(),eYe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,U.Z)(e,[{key:"connect",value:function(){var o=this;return(0,Gi.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Si.o2);function tYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function nYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",20),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function rYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," File Name "),t.qZA())}function iYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"mat-list-item",21),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.filename)}}function oYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Type "),t.qZA())}function aYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.image_type," ")}}function sYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Size "),t.qZA())}function lYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function uYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function cYe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell"),t.YNc(1,uYe,3,0,"button",22),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function dYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.deleteFile(o.path))}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function fYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,dYe,3,0,"button",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.selection.isSelected(e))}}function pYe(n,r){1&n&&t._UZ(0,"mat-header-row")}function hYe(n,r){1&n&&t._UZ(0,"mat-row")}var DI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new $Ve,this.isAllDelete=!1,this.selection=new Si.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=parseInt(this.route.snapshot.paramMap.get("controller_id"));this.controllerService.get(i).then(function(o){e.controller=o,o.authToken&&e.getImages()}),this.dataSource=new eYe(this.imageDatabase)}},{key:"getImages",value:function(){var e=this;this.imageService.getImages(this.controller).subscribe(function(i){e.imageDatabase.addImages(i)},function(i){e.toasterService.error(i.error.message)})}},{key:"deleteFile",value:function(e){var i=this;this.imageService.deleteFile(this.controller,e).subscribe(function(o){i.getImages(),i.unChecked(),i.toasterService.success("File deleted")},function(o){i.getImages(),i.unChecked(),i.toasterService.error(o.error.message)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.imageDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.imageDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"addImageDialog",value:function(){var e=this;this.dialog.open(EI,{width:"600px",maxHeight:"550px",autoFocus:!1,disableClose:!0,data:this.controller}).afterClosed().subscribe(function(o){if(!o)return e.getImages(),e.unChecked(),!1;e.getImages(),e.unChecked()})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(xI,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.getImages(),!1;e.unChecked(),e.getImages(),e.toasterService.success("All files deleted")})}}]),n}();function mYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be between 6 and 100 characters. "),t.qZA())}function _Ye(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}DI.\u0275fac=function(r){return new(r||DI)(t.Y36(bv),t.Y36(El),t.Y36(dr),t.Y36(or),t.Y36(gm),t.Y36(Gr),t.Y36(Zn))},DI.\u0275cmp=t.Xpm({type:DI,selectors:[["app-image-manager"]],decls:33,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-9"],[1,"col-md-3","btn-box"],["mat-button","",1,"img-btn",3,"click"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","filename"],["matColumnDef","image_type"],["matColumnDef","image_size"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["role","listitem"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),t._uU(5,"Image Manager"),t.qZA()(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.addImageDialog()}),t.TgZ(8,"mat-icon"),t._uU(9,"add"),t.qZA(),t._uU(10," Add Image "),t.qZA()()()(),t.TgZ(11,"div",6),t._UZ(12,"app-controller-discovery"),t.TgZ(13,"div",7)(14,"mat-table",8,9),t.ynx(16,10),t.YNc(17,tYe,2,2,"mat-header-cell",11),t.YNc(18,nYe,2,1,"mat-cell",12),t.BQk(),t.ynx(19,13),t.YNc(20,rYe,2,0,"mat-header-cell",11),t.YNc(21,iYe,3,1,"mat-cell",12),t.BQk(),t.ynx(22,14),t.YNc(23,oYe,2,0,"mat-header-cell",11),t.YNc(24,aYe,2,1,"mat-cell",12),t.BQk(),t.ynx(25,15),t.YNc(26,sYe,2,0,"mat-header-cell",11),t.YNc(27,lYe,2,1,"mat-cell",12),t.BQk(),t.ynx(28,16),t.YNc(29,cYe,2,1,"mat-header-cell",11),t.YNc(30,fYe,2,1,"mat-cell",12),t.BQk(),t.YNc(31,pYe,1,0,"mat-header-row",17),t.YNc(32,hYe,1,0,"mat-row",18),t.qZA()()()()),2&r&&(t.xp6(14),t.Q6J("dataSource",e.dataSource),t.xp6(17),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[le.O5,fn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,Oa,wT],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.img-btn[_ngcontent-%COMP%]{margin:auto}.btn-box[_ngcontent-%COMP%]{display:flex;margin-top:10px}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%], mat-footer-cell[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;overflow:initial;min-height:inherit}"]});var AI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.user=this.data.user,this.editPasswordForm=new J.nJ({password:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required])},{validators:[ele]})}},{key:"passwordForm",get:function(){return this.editPasswordForm.controls}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onPasswordSave",value:function(){var e=this;if(this.editPasswordForm.valid){var i={};i.password=this.editPasswordForm.get("password").value,i.user_id=this.user.user_id,console.log(i),this.userService.update(this.data.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," password updated")),e.editPasswordForm.reset(),e.dialogRef.close(!0)},function(o){e.toasterService.error("Cannot update password for user : "+o)})}}}]),n}();AI.\u0275fac=function(r){return new(r||AI)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Zn))},AI.\u0275cmp=t.Xpm({type:AI,selectors:[["app-change-user-password"]],decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","password","formControlName","password","placeholder","Password"],[4,"ngIf"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"disabled","click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Change password for user : "),t.qZA(),t.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),t._UZ(5,"input",3),t.YNc(6,mYe,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field",2),t._UZ(8,"input",5),t.YNc(9,_Ye,2,0,"mat-error",4),t.qZA(),t.TgZ(10,"div",6)(11,"button",7),t.NdJ("click",function(){return e.onCancel()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",8),t.NdJ("click",function(){return e.onPasswordSave()}),t._uU(14," Change password "),t.qZA()()()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.editPasswordForm),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),t.xp6(4),t.Q6J("disabled",!e.editPasswordForm.valid))},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var df=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"getEndpoints",value:function(e){return this.httpController.get(e,"/access/acl/endpoints")}},{key:"list",value:function(e){return this.httpController.get(e,"/access/acl")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/acl",i)}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/acl/".concat(i))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/acl/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/acl/".concat(i.ace_id),i)}}]),n}();df.\u0275fac=function(r){return new(r||df)(t.LFG(ho.zw))},df.\u0275prov=t.Yz7({token:df,factory:df.\u0275fac,providedIn:"root"});var ff=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/access/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/access/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"setPrivileges",value:function(e,i,o){return this.httpController.put(e,"/access/roles/".concat(i,"/privileges/").concat(o),void 0)}},{key:"removePrivileges",value:function(e,i,o){return this.httpController.delete(e,"/access/roles/".concat(i,"/privileges/").concat(o))}}]),n}();function gYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required "),t.qZA())}function vYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect "),t.qZA())}function yYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists "),t.qZA())}function bYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required "),t.qZA())}function CYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid "),t.qZA())}function wYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this email exists "),t.qZA())}ff.\u0275fac=function(r){return new(r||ff)(t.LFG(ho.zw))},ff.\u0275prov=t.Yz7({token:ff,factory:ff.\u0275fac,providedIn:"root"});var kYe=function(r,e){return["/controller",r,"management","groups",e]};function TYe(n,r){if(1&n&&(t.TgZ(0,"li")(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,kYe,i.controller.id,e.user_group_id)),t.xp6(1),t.Oqu(e.name)}}function MYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Endpoint "),t.qZA())}function SYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function EYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Role "),t.qZA())}function xYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function DYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Propagate "),t.qZA())}function AYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function OYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Allowed "),t.qZA())}function IYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function PYe(n,r){1&n&&t._UZ(0,"tr",36)}function RYe(n,r){1&n&&t._UZ(0,"tr",37)}var LYe=function(r){return["/controller",r,"management","users"]},OI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.aclService=s,this.roleService=l,this.changingPassword=!1,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.route.data.subscribe(function(i){e.user=i.user,e.user_id=e.user.user_id,e.groups=i.groups,e.aces=i.aces,e.initForm(),e.roleService.get(e.controller).subscribe(function(o){e.aclService.getEndpoints(e.controller).subscribe(function(a){e.aceDatasource.data=e.aces.map(function(s){var l=a.filter(function(d){return d.endpoint===s.path})[0],u=o.filter(function(d){return d.role_id===s.role_id})[0];return Object.assign(Object.assign({},s),{endpoint_name:l.name,role_name:u.name})})})})})}},{key:"initForm",value:function(){this.editUserForm=new J.nJ({username:new J.p4(this.user.username,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[Xse(this.controller,this.userService,this.user.username)]),full_name:new J.p4(this.user.full_name),email:new J.p4(this.user.email,[J.kI.email,J.kI.required],[$se(this.controller,this.userService,this.user.email)]),is_active:new J.p4(this.user.is_active)})}},{key:"form",get:function(){return this.editUserForm.controls}},{key:"onEditClick",value:function(){var e=this;if(this.editUserForm.valid){var i=this.getUpdatedValues();i.user_id=this.user.user_id,this.userService.update(this.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," updated"))},function(o){e.toasterService.error("Cannot update user : "+o)})}}},{key:"getUpdatedValues",value:function(){var e=this,i={};return Object.keys(this.editUserForm.controls).forEach(function(o){var a=e.editUserForm.get(o);a.dirty&&a.value!==e.user[o]&&(i[o]=a.value)}),i}},{key:"onChangePassword",value:function(){this.dialog.open(AI,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),n}();OI.\u0275fac=function(r){return new(r||OI)(t.Y36(Bl),t.Y36(Zn),t.Y36(dr),t.Y36(ur),t.Y36(Gr),t.Y36(df),t.Y36(ff))},OI.\u0275cmp=t.Xpm({type:OI,selectors:[["app-user-detail"]],decls:65,vars:21,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to user management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user management"],[1,"col"],[1,"default-content"],["label","Details",1,"details"],[1,"user-edit"],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["formControlName","is_active"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Groups"],[1,"user-groups"],[4,"ngFor","ngForOf"],["label","ACEs"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()()(),t.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),t._UZ(14,"input",11),t.YNc(15,gYe,2,0,"mat-error",12),t.YNc(16,vYe,2,0,"mat-error",12),t.YNc(17,yYe,2,0,"mat-error",12),t.qZA(),t.TgZ(18,"mat-form-field",10),t._UZ(19,"input",13),t.qZA(),t.TgZ(20,"mat-form-field",10),t._UZ(21,"input",14),t.YNc(22,bYe,2,0,"mat-error",12),t.YNc(23,CYe,2,0,"mat-error",12),t.YNc(24,wYe,2,0,"mat-error",12),t.qZA(),t.TgZ(25,"mat-checkbox",15),t._uU(26,"Is active"),t.qZA(),t.TgZ(27,"div")(28,"mat-checkbox",16),t._uU(29,"Is Superadmin"),t.qZA()(),t.TgZ(30,"div",17)(31,"button",18),t.NdJ("click",function(){return e.onEditClick()}),t._uU(32," Edit user "),t.qZA()()(),t.TgZ(33,"button",19),t.NdJ("click",function(){return e.onChangePassword()}),t._uU(34," Change Password "),t.qZA(),t.TgZ(35,"div")(36,"div"),t._uU(37),t.qZA(),t.TgZ(38,"div"),t._uU(39),t.qZA(),t.TgZ(40,"div"),t._uU(41),t.qZA(),t.TgZ(42,"div"),t._uU(43),t.qZA()()()(),t.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),t.YNc(47,TYe,3,5,"li",22),t.qZA()()(),t.TgZ(48,"mat-tab",23)(49,"div",6)(50,"table",24),t.ynx(51,25),t.YNc(52,MYe,2,0,"th",26),t.YNc(53,SYe,2,1,"td",27),t.BQk(),t.ynx(54,28),t.YNc(55,EYe,2,0,"th",26),t.YNc(56,xYe,2,1,"td",27),t.BQk(),t.ynx(57,29),t.YNc(58,DYe,2,0,"th",26),t.YNc(59,AYe,2,1,"td",27),t.BQk(),t.ynx(60,30),t.YNc(61,OYe,2,0,"th",26),t.YNc(62,IYe,2,1,"td",27),t.BQk(),t.YNc(63,PYe,1,0,"tr",31),t.YNc(64,RYe,1,0,"tr",32),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(19,LYe,e.controller.id)),t.xp6(4),t.hij("User ",e.user.username,""),t.xp6(5),t.Q6J("formGroup",e.editUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),t.xp6(4),t.Q6J("checked",e.user.is_superadmin),t.xp6(3),t.Q6J("disabled",!e.editUserForm.valid),t.xp6(6),t.hij("Creation date: ",e.user.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.user.updated_at,""),t.xp6(2),t.hij("Last login: ",e.user.last_login,""),t.xp6(2),t.hij("UUID: ",e.user.user_id,""),t.xp6(4),t.Q6J("ngForOf",e.groups),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[le.sg,le.O5,$o,js,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,fr,ti,mi,Fi.SP,Fi.uX],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}table[_ngcontent-%COMP%]{width:100%}"]});var OT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.userService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();function ZYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"a",2,3),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.activeLink=l)}),t._uU(2),t.qZA()}if(2&n){var i=r.$implicit,o=t.MAs(1);t.MGl("routerLink","./",i,""),t.Q6J("active",o.isActive),t.xp6(2),t.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}OT.\u0275fac=function(r){return new(r||OT)(t.LFG(or),t.LFG(Bl))},OT.\u0275prov=t.Yz7({token:OT,factory:OT.\u0275fac,providedIn:"root"});var II=function(){function n(r,e,i){(0,B.Z)(this,n),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","pools","ACL"],this.activeLink=this.links[0]}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o})}}]),n}();II.\u0275fac=function(r){return new(r||II)(t.Y36(dr),t.Y36(ur),t.Y36(or))},II.\u0275cmp=t.Xpm({type:II,selectors:[["app-management"]],decls:3,vars:1,consts:[["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click"],["rla","routerLinkActive"]],template:function(r,e){1&r&&(t.TgZ(0,"nav",0),t.YNc(1,ZYe,3,3,"a",1),t.qZA(),t._UZ(2,"router-outlet")),2&r&&(t.xp6(1),t.Q6J("ngForOf",e.links))},dependencies:[le.sg,fm,js,nk,Fi.BU,Fi.Nj]});var IT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.userService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.getGroupsByUserId(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();IT.\u0275fac=function(r){return new(r||IT)(t.LFG(or),t.LFG(Bl))},IT.\u0275prov=t.Yz7({token:IT,factory:IT.\u0275fac,providedIn:"root"});var NYe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.getGroups(r)}),(0,$n.U)(function(o){return console.log(o),o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Yb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function BYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is required"),t.qZA())}function FYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is incorrect"),t.qZA())}function UYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group with this name exists"),t.qZA())}function HYe(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",e.username," - ",e.email," ")}}function jYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",16)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"mat-icon",17),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.delUser(s))}),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.username),t.xp6(2),t.Oqu(i.email)}}Yb.\u0275fac=function(r){return new(r||Yb)},Yb.\u0275prov=t.Yz7({token:Yb,factory:Yb.\u0275fac});var GYe=function(r){return{"is-invalid":r}},PI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.groupNameValidator=o,this.groupService=a,this.userService=s,this.toasterService=l,this.usersToAdd=new Set([]),this.loading=!1,this.autocompleteControl=new J.p4}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new J.p4(null,[J.kI.required,this.groupNameValidator.get],[NYe(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.groupNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.groupNameForm.invalid){var i=this.groupNameForm.controls.groupName.value,o=Array.from(this.usersToAdd.values());this.groupService.addGroup(this.controller,i).subscribe(function(a){o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,a,s).subscribe(function(){e.toasterService.success("user ".concat(s.username," was added"))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(s.username," to group ").concat(i))})}),e.dialogRef.close(!0)},function(a){e.toasterService.error("An error occur while trying to create new group ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"selectedUser",value:function(e){this.usersToAdd.add(e)}},{key:"delUser",value:function(e){this.usersToAdd.delete(e)}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.users.filter(function(o){var a;return o.username.toLowerCase().includes(i)||(null===(a=o.email)||void 0===a?void 0:a.toLowerCase().includes(i))})}}},{key:"displayFn",value:function(e){return e&&e.username?e.username:""}}]),n}();function zYe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}PI.\u0275fac=function(r){return new(r||PI)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Yb),t.Y36(Ec),t.Y36(Bl),t.Y36(Zn))},PI.\u0275cmp=t.Xpm({type:PI,selectors:[["app-add-group-dialog"]],features:[t._Bn([Yb])],decls:25,vars:14,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","groupName","placeholder","Please enter group name",3,"ngClass","keydown"],[4,"ngIf"],[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"users"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"],[3,"value"],[1,"userList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new group"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(a){return e.onKeyDown(a)}),t.qZA(),t.YNc(5,BYe,2,0,"mat-error",4),t.YNc(6,FYe,2,0,"mat-error",4),t.YNc(7,UYe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"h5"),t._uU(9,"Add users to group: "),t.qZA(),t.TgZ(10,"mat-form-field",5)(11,"mat-label"),t._uU(12,"Users"),t.qZA(),t._UZ(13,"input",6),t.TgZ(14,"mat-autocomplete",7,8),t.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),t.YNc(16,HYe,2,3,"mat-option",9),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"div",10),t.YNc(19,jYe,8,2,"div",11),t.qZA(),t.TgZ(20,"div",12)(21,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",14),t.NdJ("click",function(){return e.onAddClick()}),t._uU(24," Add group "),t.qZA()()),2&r){var i=t.MAs(15);t.xp6(2),t.Q6J("formGroup",e.groupNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(12,GYe,null==e.form.groupName?null:e.form.groupName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.touched)&&(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),t.xp6(6),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(17,10,e.filteredUsers)),t.xp6(3),t.Q6J("ngForOf",e.usersToAdd)}},dependencies:[le.mk,le.sg,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,fn,Dn,qn,br,fr,Gt.ey,Jp,Qp,le.Ov],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var RI=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();RI.\u0275fac=function(r){return new(r||RI)(t.Y36(cr),t.Y36(ko))},RI.\u0275cmp=t.Xpm({type:RI,selectors:[["app-delete-group-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete group named: "),t.qZA(),t.YNc(2,zYe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.groups))},dependencies:[le.sg,fn,br,fr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var LI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();LI.\u0275fac=function(r){return new(r||LI)},LI.\u0275pipe=t.Yjl({name:"groupFilter",type:LI,pure:!0});var WYe=["groupsPaginator"],VYe=["groupsSort"];function YYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",28)(1,"mat-checkbox",29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function KYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",30)(1,"mat-checkbox",31),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function qYe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Name"),t.qZA())}function JYe(n,r){if(1&n&&(t.TgZ(0,"td",33)(1,"a",34),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),t.xp6(1),t.Oqu(e.name)}}function QYe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Creation date"),t.qZA())}function XYe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function $Ye(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Last update"),t.qZA())}function eKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function tKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," is built-in"),t.qZA())}function nKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.is_builtin," ")}}function rKe(n,r){1&n&&t._UZ(0,"th",35)}function iKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"button",36),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function oKe(n,r){1&n&&t._UZ(0,"tr",37)}function aKe(n,r){1&n&&t._UZ(0,"tr",38)}var sKe=function(){return{standalone:!0}},lKe=function(){return[5,10,20]};function uKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Groups"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected groups "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addGroup())}),t._uU(8," Add group "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"groupFilter"),t.ynx(16,13),t.YNc(17,YYe,2,2,"th",14),t.YNc(18,KYe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,qYe,2,0,"th",17),t.YNc(21,JYe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,QYe,2,0,"th",17),t.YNc(24,XYe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,$Ye,2,0,"th",17),t.YNc(27,eKe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,tKe,2,0,"th",17),t.YNc(30,nKe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,rKe,1,0,"th",23),t.YNc(33,iKe,4,0,"td",18),t.BQk(),t.YNc(34,oKe,1,0,"tr",24),t.YNc(35,aKe,1,0,"tr",25),t.qZA(),t._UZ(36,"mat-paginator",26,27),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,sKe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(21),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,lKe))}}function cKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",39),t.qZA())}var ZI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.groupService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","is_builtin","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.groupsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.groupsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.groups.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.groups.forEach(function(i){return e.selection.select(i)})}},{key:"addGroup",value:function(){var e=this;this.dialog.open(PI,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.groupService.getGroups(this.controller).subscribe(function(i){e.isReady=!0,e.groups=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(RI,{width:"500px",height:"250px",data:{groups:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.groupService.delete(i.controller,s.user_group_id)});(0,H0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),n}();function dKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," role name is required "),t.qZA())}function fKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," Role name is incorrect "),t.qZA())}ZI.\u0275fac=function(r){return new(r||ZI)(t.Y36(dr),t.Y36(or),t.Y36(Zn),t.Y36(Ec),t.Y36(Gr))},ZI.\u0275cmp=t.Xpm({type:ZI,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(WYe,5),t.Gf(VYe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.groupsPaginator=i),t.iGM(i=t.CRH())&&(e.groupsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-group-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-group-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search group by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["groupsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","is_builtin"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["groupsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,uKe,38,12,"div",0),t.YNc(1,cKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[le.O5,js,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,LI],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-group-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var pKe=function(r){return{"is-invalid":r}},NI=function(){function n(r,e,i){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new J.p4,description:new J.p4})}},{key:"form",get:function(){return this.roleNameForm.controls}},{key:"onAddClick",value:function(){if(!this.roleNameForm.invalid){var e=this.roleNameForm.controls.name.value,i=this.roleNameForm.controls.description.value;this.dialogRef.close({name:e,description:i})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function hKe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}NI.\u0275fac=function(r){return new(r||NI)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS))},NI.\u0275cmp=t.Xpm({type:NI,selectors:[["app-add-role-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Please enter role name",3,"ngClass"],[4,"ngIf"],["matInput","","type","text","formControlName","description","placeholder","Please enter a description"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new role"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field"),t._UZ(4,"input",2),t.YNc(5,dKe,2,0,"mat-error",3),t.YNc(6,fKe,2,0,"mat-error",3),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",4),t.qZA(),t.TgZ(9,"div",5)(10,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13," Add Role "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.roleNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,pKe,null==e.form.name?null:e.form.name.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.touched)&&(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var BI=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();BI.\u0275fac=function(r){return new(r||BI)(t.Y36(cr),t.Y36(ko))},BI.\u0275cmp=t.Xpm({type:BI,selectors:[["app-delete-role-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete role named: "),t.qZA(),t.YNc(2,hKe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.roles))},dependencies:[le.sg,fn,br,fr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var FI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();FI.\u0275fac=function(r){return new(r||FI)},FI.\u0275pipe=t.Yjl({name:"roleFilter",type:FI,pure:!0});var mKe=["rolesPaginator"],_Ke=["rolesSort"];function gKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",26)(1,"mat-checkbox",27),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function vKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"mat-checkbox",28),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function yKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Name"),t.qZA())}var bKe=function(r,e){return["/controller",r,"management","roles",e]};function CKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",30),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,bKe,i.controller.id,e.role_id))("matTooltip",e.name),t.xp6(1),t.Oqu(e.name)}}function wKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Description"),t.qZA())}function kKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",31),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.description),t.xp6(1),t.Oqu(e.description)}}function TKe(n,r){1&n&&t._UZ(0,"mat-header-cell",26)}function MKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function SKe(n,r){1&n&&t._UZ(0,"mat-header-row")}function EKe(n,r){1&n&&t._UZ(0,"mat-row")}var xKe=function(){return{standalone:!0}},DKe=function(){return[5,10,20]};function AKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Roles"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete roles "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addRole())}),t._uU(8," Add role "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"roleFilter"),t.ynx(18,14),t.YNc(19,gKe,2,2,"mat-header-cell",15),t.YNc(20,vKe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,yKe,2,0,"mat-header-cell",18),t.YNc(23,CKe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,wKe,2,0,"mat-header-cell",18),t.YNc(26,kKe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,TKe,1,0,"mat-header-cell",15),t.YNc(29,MKe,4,0,"mat-cell",16),t.BQk(),t.YNc(30,SKe,1,0,"mat-header-row",22),t.YNc(31,EKe,1,0,"mat-row",23),t.qZA(),t._UZ(32,"mat-paginator",24,25),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,xKe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,DKe))}}function OKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",33),t.qZA())}var UI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","name","description","delete"],this.selection=new Si.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.rolesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.rolesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"refresh",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addRole",value:function(){var e=this;this.dialog.open(NI,{width:"400px",autoFocus:!1,disableClose:!0,data:{controller:this.controller}}).afterClosed().subscribe(function(o){o&&e.roleService.create(e.controller,o).subscribe(function(){e.toasterService.success("".concat(o.name," role created")),e.refresh()},function(a){return e.toasterService.error("".concat(a.message,"\n ").concat(a.error.message))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(BI,{width:"500px",height:"250px",data:{roles:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.roleService.delete(i.controller,s.role_id)});(0,H0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),n}();function IKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-icon",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.addUser(o))}),t._uU(1,"add"),t.qZA()}}function PKe(n,r){1&n&&t._UZ(0,"mat-spinner")}function RKe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.YNc(5,IKe,2,0,"mat-icon",6),t.YNc(6,PKe,1,0,"mat-spinner",7),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.email),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",i.loading)}}UI.\u0275fac=function(r){return new(r||UI)(t.Y36(dr),t.Y36(ur),t.Y36(ff),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},UI.\u0275cmp=t.Xpm({type:UI,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(mKe,5),t.Gf(_Ke,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.rolesPaginator=i),t.iGM(i=t.CRH())&&(e.rolesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search role by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","rolesSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","description"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["rolesPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,AKe,34,12,"div",0),t.YNc(1,OKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[le.O5,js,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,FI],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.permission[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-right:20px;font-size:10px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]});var HI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new Qi.X([]),this.displayedUsers=new Qi.X([]),this.loading=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,Tp.H)(500).subscribe(function(){var i=e.users.value.filter(function(o){var a;return o.username.includes(e.searchText)||(null===(a=o.email)||void 0===a?void 0:a.includes(e.searchText))});e.displayedUsers.next(i)})}},{key:"getUsers",value:function(){var e=this;(0,H0.D)([this.userService.list(this.data.controller),this.groupService.getGroupMember(this.data.controller,this.data.group.user_group_id)]).subscribe(function(i){var o=(0,Yn.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(d){return d.user_id===u.user_id})});e.users.next(l),e.displayedUsers.next(l)})}},{key:"addUser",value:function(e){var i=this;this.loading=!0,this.groupService.addMemberToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("user ".concat(e.username," was added")),i.getUsers(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding user ".concat(e.username," to group ").concat(i.data.group.name)),i.loading=!1})}}]),n}();HI.\u0275fac=function(r){return new(r||HI)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Ec),t.Y36(Zn))},HI.\u0275cmp=t.Xpm({type:HI,selectors:[["app-add-user-to-group-dialog"]],decls:10,vars:5,consts:[[1,"title"],[1,"filter"],[1,"input-field"],["matInput","","type","text",3,"ngModel","ngModelChange","keydown"],["class","userList",4,"ngFor","ngForOf"],[1,"userList"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h3"),t._uU(2),t.qZA()(),t.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Search user "),t.qZA(),t.TgZ(7,"input",3),t.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),t.qZA()()(),t.YNc(8,RKe,7,4,"div",4),t.ALo(9,"async")),2&r&&(t.xp6(2),t.hij("Add User To group: ",e.data.group.name,""),t.xp6(5),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(9,3,e.displayedUsers)))},dependencies:[le.sg,le.O5,J.Fj,J.JJ,J.On,kn.KE,kn.hX,Dn,qn,ou,le.Ov],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.title[_ngcontent-%COMP%]{width:100%;text-align:center}.filter[_ngcontent-%COMP%]{display:flex;width:600px;justify-content:center;margin-bottom:50px}mat-form-field[_ngcontent-%COMP%]{width:600px}input[_ngcontent-%COMP%]{width:100%}.userList[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:10px}mat-spinner[_ngcontent-%COMP%]{width:36px}"]});var PT,jI=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),n}();jI.\u0275fac=function(r){return new(r||jI)(t.Y36(cr),t.Y36(ko))},jI.\u0275cmp=t.Xpm({type:jI,selectors:[["app-remove-user-to-group-dialog"]],decls:10,vars:1,consts:[[1,"header"],[1,"button"],["mat-button","","mat-raised-button","","color","primary",3,"click"],["mat-button","","mat-raised-button","","color","warn",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2,"Confirm ?"),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA()(),t.TgZ(5,"div",1)(6,"button",2),t.NdJ("click",function(){return e.onCancel()}),t._uU(7,"No, cancel"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return e.onConfirm()}),t._uU(9,"Yes, remove"),t.qZA()()),2&r&&(t.xp6(4),t.hij("Removing: ",e.data.name,""))},dependencies:[fn],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:center}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-bottom:20px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}"]}),function(n){n.group="group",n.user="user"}(PT||(PT={}));var GI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?(i||(i={length:e.length,pageIndex:0,pageSize:5}),e.slice(i.pageIndex*i.pageSize,(i.pageIndex+1)*i.pageSize)):[]}}]),n}();GI.\u0275fac=function(r){return new(r||GI)},GI.\u0275pipe=t.Yjl({name:"paginator",type:GI,pure:!0});var zI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),n}();function LKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"a",29)(2,"div"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-icon",13),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.openRemoveUserDialog(l))}),t._uU(5,"delete"),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.hYB("href","/controller/",o.controller.id,"/management/users/",i.user_id,"",t.LSH),t.xp6(2),t.Oqu(i.username)}}function ZKe(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1," Endpoint "),t.qZA())}function NKe(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function BKe(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1," Role "),t.qZA())}function FKe(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function UKe(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1," Propagate "),t.qZA())}function HKe(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function jKe(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1," Allowed "),t.qZA())}function GKe(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function zKe(n,r){1&n&&t._UZ(0,"tr",32)}function WKe(n,r){1&n&&t._UZ(0,"tr",33)}zI.\u0275fac=function(r){return new(r||zI)},zI.\u0275pipe=t.Yjl({name:"membersFilter",type:zI,pure:!0});var VKe=function(r){return["/controller",r,"management","groups"]},YKe=function(){return[5,20,50,100]},WI=function(){function n(r,e,i,o,a,s){var l=this;(0,B.Z)(this,n),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.aclService=a,this.roleService=s,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"],this.editGroupForm=new J.nJ({groupname:new J.p4("")}),this.route.data.subscribe(function(u){l.controller=u.controller,l.group=u.group,l.aces=u.aces,l.members=u.members.sort(function(d,h){return d.username.toLowerCase().localeCompare(h.username.toLowerCase())}),l.editGroupForm.setValue({groupname:l.group.name})})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.aclService.getEndpoints(e.controller).subscribe(function(o){e.aceDatasource.data=e.aces.map(function(a){var s=o.filter(function(u){return u.endpoint===a.path})[0],l=i.filter(function(u){return u.role_id===a.role_id})[0];return Object.assign(Object.assign({},a),{endpoint_name:s.name,role_name:l.name})})})})}},{key:"onUpdate",value:function(){var e=this;this.groupService.update(this.controller,this.group).subscribe(function(){e.toastService.success("group updated")},function(i){e.toastService.error("Error: Cannot update group"),console.log(i)})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(HI,{width:"700px",height:"500px",data:{controller:this.controller,group:this.group}}).afterClosed().subscribe(function(){e.reloadMembers()})}},{key:"openRemoveUserDialog",value:function(e){var i=this;this.dialog.open(jI,{width:"500px",height:"200px",data:{name:e.username}}).afterClosed().subscribe(function(o){o&&i.groupService.removeUser(i.controller,i.group,e).subscribe(function(){i.toastService.success("User ".concat(e.username," was removed")),i.reloadMembers()},function(a){i.toastService.error("Error while removing user ".concat(e.username," from ").concat(i.group.name)),console.log(a)})})}},{key:"reloadMembers",value:function(){var e=this;this.groupService.getGroupMember(this.controller,this.group.user_group_id).subscribe(function(i){e.members=i})}}]),n}();WI.\u0275fac=function(r){return new(r||WI)(t.Y36(dr),t.Y36(Gr),t.Y36(Ec),t.Y36(Zn),t.Y36(df),t.Y36(ff))},WI.\u0275cmp=t.Xpm({type:WI,selectors:[["app-group-details"]],decls:58,vars:24,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to group management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to group management"],[1,"col"],["label","Details",1,"details"],["matInput","","type","text",3,"ngModel"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["label","Members"],[1,"members"],[1,"clickable",3,"click"],[1,"search"],["matInput","","placeholder","filter members",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],["label","ACEs"],[1,"default-content"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"href"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"mat-form-field")(13,"mat-label"),t._uU(14,"Group name:"),t.qZA(),t._UZ(15,"input",7),t.qZA()(),t.TgZ(16,"div")(17,"mat-checkbox",8),t._uU(18,"Is built-in"),t.qZA()(),t.TgZ(19,"div",9)(20,"button",10),t.NdJ("click",function(){return e.onUpdate()}),t._uU(21," Update Group "),t.qZA()()(),t.TgZ(22,"div")(23,"div"),t._uU(24),t.qZA(),t.TgZ(25,"div"),t._uU(26),t.qZA(),t.TgZ(27,"div"),t._uU(28),t.qZA()()(),t.TgZ(29,"mat-tab",11)(30,"div",12)(31,"div")(32,"mat-icon",13),t.NdJ("click",function(){return e.openAddUserDialog()}),t._uU(33,"person_add"),t.qZA()(),t.TgZ(34,"div",14)(35,"mat-form-field")(36,"input",15),t.NdJ("ngModelChange",function(o){return e.searchMembers=o}),t.qZA()()(),t.YNc(37,LKe,6,3,"div",16),t.ALo(38,"paginator"),t.ALo(39,"membersFilter"),t.TgZ(40,"mat-paginator",17),t.NdJ("page",function(o){return e.pageEvent=o}),t.qZA()()(),t.TgZ(41,"mat-tab",18)(42,"div",19)(43,"table",20),t.ynx(44,21),t.YNc(45,ZKe,2,0,"th",22),t.YNc(46,NKe,2,1,"td",23),t.BQk(),t.ynx(47,24),t.YNc(48,BKe,2,0,"th",22),t.YNc(49,FKe,2,1,"td",23),t.BQk(),t.ynx(50,25),t.YNc(51,UKe,2,0,"th",22),t.YNc(52,HKe,2,1,"td",23),t.BQk(),t.ynx(53,26),t.YNc(54,jKe,2,0,"th",22),t.YNc(55,GKe,2,1,"td",23),t.BQk(),t.YNc(56,zKe,1,0,"tr",27),t.YNc(57,WKe,1,0,"tr",28),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(21,VKe,e.controller.id)),t.xp6(4),t.hij("Group ",e.group.name,""),t.xp6(8),t.Q6J("ngModel",e.group.name),t.xp6(2),t.Q6J("checked",e.group.is_builtin),t.xp6(3),t.Q6J("disabled",!e.editGroupForm.valid),t.xp6(4),t.hij("Creation date: ",e.group.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.group.updated_at,""),t.xp6(2),t.hij("UUID: ",e.group.user_group_id,""),t.xp6(8),t.Q6J("ngModel",e.searchMembers),t.xp6(1),t.Q6J("ngForOf",t.xi3(38,15,t.xi3(39,18,e.members,e.searchMembers),e.pageEvent)),t.xp6(3),t.Q6J("length",e.members.length)("pageSizeOptions",t.DdM(23,YKe)),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[le.sg,js,J.Fj,J.JJ,J.On,kn.KE,kn.hX,gd,fn,U0,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,fr,ti,mi,Fi.SP,Fi.uX,GI,zI],styles:["table[_ngcontent-%COMP%]{width:100%}.main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.members[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}.members[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:5px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.details[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}.button-div[_ngcontent-%COMP%]{float:right}.members[_ngcontent-%COMP%] > .search[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:stretch;width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.roles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var RT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.getGroupMember(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();RT.\u0275fac=function(r){return new(r||RT)(t.LFG(or),t.LFG(Ec))},RT.\u0275prov=t.Yz7({token:RT,factory:RT.\u0275fac,providedIn:"root"});var LT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();LT.\u0275fac=function(r){return new(r||LT)(t.LFG(or),t.LFG(Ec))},LT.\u0275prov=t.Yz7({token:LT,factory:LT.\u0275fac,providedIn:"root"});var ZT=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/privileges")}}]),n}();ZT.\u0275fac=function(r){return new(r||ZT)(t.LFG(ho.zw))},ZT.\u0275prov=t.Yz7({token:ZT,factory:ZT.\u0275fac,providedIn:"root"});var rle=function(){function n(r){(0,B.Z)(this,n),this.ownedPrivileges=r,this.change={add:new Set,delete:new Set}}return(0,U.Z)(n,[{key:"add",value:function(e){this.change.delete.has(e)&&this.change.delete.delete(e),!this.ownedPrivileges.includes(e)&&this.change.add.add(e)}},{key:"delete",value:function(e){this.change.add.has(e)&&this.change.add.delete(e),this.ownedPrivileges.includes(e)&&this.change.delete.add(e)}},{key:"isAdded",value:function(e){return this.change.add.has(e)}},{key:"isDeleted",value:function(e){return this.change.delete.has(e)}},{key:"get",value:function(){return{add:Array.from(this.change.add),delete:Array.from(this.change.delete)}}}]),n}(),VI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e){if(e){var i={};e.forEach(function(h){var g=h.name.split("."),y=(0,Yn.Z)(g,2),L=y[0],z=y[1];i.hasOwnProperty(L)?i[L].push({verb:z,privilege:h}):i[L]=[{verb:z,privilege:h}]});for(var o=[],a=0,s=Object.entries(i);a<s.length;a++){var l=(0,Yn.Z)(s[a],2),u=l[0],d=l[1];o.push({key:u,values:d})}return o}}}]),n}();function KKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8)(1,"mat-icon",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!0)}),t._uU(2,"edit"),t.qZA()()}}function qKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!1)}),t._uU(1,"Cancel"),t.qZA()}}function JKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.close())}),t._uU(1,"Update"),t.qZA()}}function QKe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,KKe,3,0,"button",5),t.YNc(2,qKe,2,0,"button",6),t.YNc(3,JKe,2,0,"button",7),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode)}}VI.\u0275fac=function(r){return new(r||VI)},VI.\u0275pipe=t.Yjl({name:"groupPrivileges",type:VI,pure:!0});var XKe=function(r,e){return{add:r,delete:e}};function $Ke(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"mat-checkbox",19),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.onPrivilegeChange(s.checked,u.privilege))}),t.qZA(),t.TgZ(2,"div",20),t._uU(3),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("checked",o.ownedPrivilegesList.includes(i.privilege.privilege_id)),t.xp6(1),t.Q6J("ngClass",t.WLB(3,XKe,o.changer.isAdded(i.privilege.privilege_id),o.changer.isDeleted(i.privilege.privilege_id))),t.xp6(1),t.hij(" ",i.verb,"")}}function eqe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",14)(2,"div",15),t._uU(3),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,$Ke,4,6,"div",17),t.qZA()()()),2&n){var e=t.oxw().$implicit;t.xp6(3),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}var tqe=function(r){return{box:r}};function nqe(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(4);t.Q6J("ngClass",t.VKq(2,tqe,i.ownedPrivilegesList.includes(e.privilege.privilege_id))),t.xp6(1),t.Oqu(e.verb)}}function rqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,nqe,2,4,"div",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngIf",i.ownedPrivilegesList.includes(e.privilege.privilege_id))}}function iqe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t._uU(2),t.qZA(),t.TgZ(3,"div",16),t.YNc(4,rqe,2,1,"div",4),t.qZA()()),2&n){var e=t.oxw(2).$implicit;t.xp6(2),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}function oqe(n,r){if(1&n&&t.YNc(0,iqe,5,2,"div",21),2&n){var e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngIf",i.ownedPrivilegesName.includes(e.key))}}function aqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,eqe,6,2,"div",12),t.YNc(2,oqe,1,1,"ng-template",null,13,t.W1O),t.qZA()),2&n){var e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.editMode)("ngIfElse",e)}}var ile=".header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:20px;padding-left:10px}.privileges[_ngcontent-%COMP%]{padding-left:10px;display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{justify-content:center}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:10px}.box[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{margin-right:10px}.box[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row}.privilege[_ngcontent-%COMP%]{width:32vw;display:flex;flex-direction:row;margin-bottom:10px;justify-content:center;border:solid white 1px}.key[_ngcontent-%COMP%]{color:gray;display:flex;width:15%;margin-left:10px}.values[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.values[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:20%}.add[_ngcontent-%COMP%]{color:green}.delete[_ngcontent-%COMP%]{color:red;text-decoration:line-through}",YI=function(){function n(){(0,B.Z)(this,n),this.disable=!0,this.privileges=[],this.update=new t.vpe,this.ownedPrivilegesName=[],this.ownedPrivilegesList=[],this.changer=new rle(this.ownedPrivilegesList),this.editModeState=!1}return(0,U.Z)(n,[{key:"ownedPrivilege",set:function(e){e&&(this.ownedPrivilegesName=e.map(function(i){return i.name.split(".")[0]}),this.ownedPrivilegesList=e.map(function(i){return i.privilege_id}))}},{key:"editMode",get:function(){return this.editModeState},set:function(e){e&&(this.changer=new rle(this.ownedPrivilegesList)),this.editModeState=e}},{key:"ngOnInit",value:function(){}},{key:"onPrivilegeChange",value:function(e,i){var o=i.privilege_id;e?this.changer.add(o):this.changer.delete(o)}},{key:"close",value:function(){this.update.emit(this.changer.get()),this.editMode=!1}}]),n}();YI.\u0275fac=function(r){return new(r||YI)},YI.\u0275cmp=t.Xpm({type:YI,selectors:[["app-privilege"]],inputs:{disable:"disable",privileges:"privileges",ownedPrivilege:"ownedPrivilege"},outputs:{update:"update"},decls:7,vars:4,consts:[[1,"privileges"],[1,"header"],[1,"title"],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","",4,"ngIf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-button",""],[3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf","ngIfElse"],["normalMode",""],[1,"privilege"],[1,"key"],[1,"values"],["class","box",4,"ngFor","ngForOf"],[1,"box"],[3,"checked","change"],[3,"ngClass"],["class","privilege",4,"ngIf"],[3,"ngClass",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3,"Privileges"),t.qZA(),t.YNc(4,QKe,4,3,"div",3),t.qZA(),t.YNc(5,aqe,4,2,"div",4),t.ALo(6,"groupPrivileges"),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",!e.disable),t.xp6(1),t.Q6J("ngForOf",t.lcZ(6,2,e.privileges)))},dependencies:[le.mk,le.sg,le.O5,fn,Dn,ti,VI],styles:[ile,ile]});var sqe=function(r){return["/controller",r,"management","roles"]},KI=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.roleService=r,this.toastService=e,this.route=i,this.privilegeService=o,this.$role=new HY.t(1),this.$ownedPrivilegesId=this.$role.pipe((0,$n.U)(function(a){return a.privileges})),this.editRoleForm=new J.nJ({rolename:new J.p4,description:new J.p4})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.roleId=i.role.role_id,e.privileges=e.privilegeService.get(e.controller),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})})}},{key:"onUpdate",value:function(){var e=this;this.$role.subscribe(function(i){e.roleService.update(e.controller,i).subscribe(function(){e.toastService.success("role: ".concat(i.name," was updated")),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})},function(o){e.toastService.error("".concat(o.message,"\n ").concat(o.error.message))})})}},{key:"onPrivilegesUpdate",value:function(e){var s,i=this,o=[],a=(0,An.Z)(e.add);try{for(a.s();!(s=a.n()).done;){var l=s.value;o.push(this.roleService.setPrivileges(this.controller,this.roleId,l))}}catch(g){a.e(g)}finally{a.f()}var d,u=(0,An.Z)(e.delete);try{for(u.s();!(d=u.n()).done;){var h=d.value;o.push(this.roleService.removePrivileges(this.controller,this.roleId,h))}}catch(g){u.e(g)}finally{u.f()}oo.y.forkJoin(o).subscribe(function(){i.roleService.getById(i.controller,i.roleId).subscribe(function(g){return i.$role.next(g)})})}}]),n}();KI.\u0275fac=function(r){return new(r||KI)(t.Y36(ff),t.Y36(Zn),t.Y36(dr),t.Y36(ZT))},KI.\u0275cmp=t.Xpm({type:KI,selectors:[["app-role-detail"]],decls:44,vars:35,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to role management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role management"],[1,"col"],[1,"main"],[1,"details"],["matInput","","type","text",3,"ngModel"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[3,"disable","ownedPrivilege","privileges","update"]],template:function(r,e){var i,o,a,s,l,u,d,h;(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.ALo(8,"async"),t.qZA()(),t.TgZ(9,"div",6)(10,"div",7)(11,"div")(12,"mat-form-field")(13,"mat-label"),t._uU(14,"Role name:"),t.qZA(),t._UZ(15,"input",8),t.ALo(16,"async"),t.qZA()(),t.TgZ(17,"div")(18,"mat-form-field")(19,"mat-label"),t._uU(20,"Description:"),t.qZA(),t._UZ(21,"input",8),t.ALo(22,"async"),t.qZA()(),t.TgZ(23,"div"),t._uU(24),t.ALo(25,"async"),t.qZA(),t.TgZ(26,"div"),t._uU(27),t.ALo(28,"async"),t.qZA(),t.TgZ(29,"div"),t._uU(30),t.ALo(31,"async"),t.qZA(),t.TgZ(32,"div")(33,"mat-checkbox",9),t.ALo(34,"async"),t._uU(35,"Is built-in"),t.qZA()(),t.TgZ(36,"div",10)(37,"button",11),t.NdJ("click",function(){return e.onUpdate()}),t._uU(38," Update Role "),t.qZA()()(),t._UZ(39,"mat-divider",12),t.TgZ(40,"app-privilege",13),t.NdJ("update",function(y){return e.onPrivilegesUpdate(y)}),t.ALo(41,"async"),t.ALo(42,"async"),t.ALo(43,"async"),t.qZA()()()()),2&r)&&(t.xp6(3),t.Q6J("routerLink",t.VKq(33,sqe,e.controller.id)),t.xp6(4),t.hij("Role ",null==(i=t.lcZ(8,13,e.$role))?null:i.name,""),t.xp6(8),t.Q6J("ngModel",null==(o=t.lcZ(16,15,e.$role))?null:o.name),t.xp6(6),t.Q6J("ngModel",null==(a=t.lcZ(22,17,e.$role))?null:a.description),t.xp6(3),t.hij("Creation date: ",null==(s=t.lcZ(25,19,e.$role))?null:s.created_at,""),t.xp6(3),t.hij("Last update Date: ",null==(l=t.lcZ(28,21,e.$role))?null:l.updated_at,""),t.xp6(3),t.hij("UUID: ",null==(u=t.lcZ(31,23,e.$role))?null:u.role_id,""),t.xp6(3),t.Q6J("checked",null==(d=t.lcZ(34,25,e.$role))?null:d.is_builtin),t.xp6(4),t.Q6J("disabled",!e.editRoleForm.valid),t.xp6(2),t.Q6J("vertical",!0),t.xp6(1),t.Q6J("disable",null==(h=t.lcZ(41,27,e.$role))?null:h.is_builtin)("ownedPrivilege",t.lcZ(42,29,e.$ownedPrivilegesId))("privileges",t.lcZ(43,31,e.privileges)))},dependencies:[js,J.Fj,J.JJ,J.On,kn.KE,kn.hX,fn,U0,Dn,qn,fr,ti,hm.d,mi,YI,le.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var ole,NT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.roleService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("role_id");o.controllerService.get(+s).then(function(u){o.roleService.getById(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();NT.\u0275fac=function(r){return new(r||NT)(t.LFG(or),t.LFG(ff))},NT.\u0275prov=t.Yz7({token:NT,factory:NT.\u0275fac,providedIn:"root"}),function(n){n.project="project",n.node="node",n.link="link",n.user="user",n.group="group",n.pool="pool",n.image="image",n.template="template",n.root="root"}(ole||(ole={}));var lqe=function(){function n(){(0,B.Z)(this,n),this.expansionModel=new Si.Ov(!0)}return(0,U.Z)(n,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,cn.Z)(this.getDescendants(e))),(i=this.expansionModel).select.apply(i,(0,cn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"collapseDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,cn.Z)(this.getDescendants(e))),(i=this.expansionModel).deselect.apply(i,(0,cn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),n}(),uqe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,B.Z)(this,e),(a=r.call(this)).getChildren=i,a.options=o,a.options&&(a.trackBy=a.options.trackBy),a}return(0,U.Z)(e,[{key:"expandAll",value:function(){var a,o=this;this.expansionModel.clear();var s=this.dataNodes.reduce(function(l,u){return[].concat((0,cn.Z)(l),(0,cn.Z)(o.getDescendants(u)),[u])},[]);(a=this.expansionModel).select.apply(a,(0,cn.Z)(s.map(function(l){return o._trackByValue(l)})))}},{key:"getDescendants",value:function(o){var a=[];return this._getDescendants(a,o),a.splice(1)}},{key:"_getDescendants",value:function(o,a){var s=this;o.push(a);var l=this.getChildren(a);Array.isArray(l)?l.forEach(function(u){return s._getDescendants(o,u)}):(0,Ny.b)(l)&&l.pipe((0,Ri.q)(1),(0,$r.h)(Boolean)).subscribe(function(u){var h,d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;s._getDescendants(o,g)}}catch(y){d.e(y)}finally{d.f()}})}}]),e}(lqe),F5=new t.OlP("CDK_TREE_NODE_OUTLET_NODE"),Xp=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this._node=e});Xp.\u0275fac=function(r){return new(r||Xp)(t.Y36(t.s_b),t.Y36(F5,8))},Xp.\u0275dir=t.lG2({type:Xp,selectors:[["","cdkTreeNodeOutlet",""]]});var cqe=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.$implicit=r}),Km=(0,U.Z)(function n(r){(0,B.Z)(this,n),this.template=r});Km.\u0275fac=function(r){return new(r||Km)(t.Y36(t.Rgc))},Km.\u0275dir=t.lG2({type:Km,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var Ju=function(){function n(r,e){(0,B.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new On.xQ,this._levels=new Map,this.viewChange=new Qi.X({start:0,end:Number.MAX_VALUE})}return(0,U.Z)(n,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(i){return!i.when});e.length,this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var i,e=this;(0,Si.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,Ny.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,Kn.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Ir.R)(this._onDestroy)).subscribe(function(o){return e.renderNodeChanges(o)}))}},{key:"renderNodeChanges",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,s=arguments.length>3?arguments[3]:void 0,l=o.diff(e);!l||(l.forEachOperation(function(u,d,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(d),i._levels.delete(u.item);else{var g=a.get(d);a.move(g,h)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(a){return a.when&&a.when(i,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,i,o,a){var s=this._getNodeDef(e,i),l=new cqe(e);this.treeControl.getLevel?l.level=this.treeControl.getLevel(e):void 0!==a&&this._levels.has(a)?l.level=this._levels.get(a)+1:l.level=0,this._levels.set(e,l.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,l,i),cu.mostRecentTreeNode&&(cu.mostRecentTreeNode.data=e)}}]),n}();Ju.\u0275fac=function(r){return new(r||Ju)(t.Y36(t.ZZ4),t.Y36(t.sBO))},Ju.\u0275cmp=t.Xpm({type:Ju,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Km,5),2&r)&&(t.iGM(o=t.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Xp,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Xp],encapsulation:2});var cu=function(){function n(r,e){(0,B.Z)(this,n),this._elementRef=r,this._tree=e,this._destroyed=new On.xQ,this._dataChanges=new On.xQ,n.mostRecentTreeNode=this,this.role="treeitem"}return(0,U.Z)(n,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function dqe(n){for(var r=n.parentElement;r&&!fqe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,En.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}}]),n}();function fqe(n){var r=n.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}cu.mostRecentTreeNode=null,cu.\u0275fac=function(r){return new(r||cu)(t.Y36(t.SBq),t.Y36(Ju))},cu.\u0275dir=t.lG2({type:cu,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var $p=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,U.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;var a=this._tree.treeControl.getChildren(this.data);Array.isArray(a)?this.updateChildrenNodes(a):(0,Ny.b)(a)&&a.pipe((0,Ir.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(o){var a=this._getNodeOutlet();if(o&&(this._children=o),a&&this._children){var s=a.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,s,this._data)}else this._dataDiffer.diff([])}},{key:"_clear",value:function(){var o=this._getNodeOutlet();o&&(o.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var o=this,a=this.nodeOutlet;return a&&a.find(function(s){return!s._node||s._node===o})}}]),e}(cu);$p.\u0275fac=function(r){return new(r||$p)(t.Y36(t.SBq),t.Y36(Ju),t.Y36(t.ZZ4))},$p.\u0275dir=t.lG2({type:$p,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Xp,5),2&r)&&(t.iGM(o=t.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[t._Bn([{provide:cu,useExisting:$p},{provide:F5,useExisting:$p}]),t.qOj]});var pqe=/([A-Za-z%]+)$/,Kb=function(){function n(r,e,i,o){var a=this;(0,B.Z)(this,n),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new On.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,U.Z)(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?"".concat(i*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this._paddingIndent();if(i!==this._currentPadding||e){var o=this._element.nativeElement,a=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",s="paddingLeft"===a?"paddingRight":"paddingLeft";o.style[a]=i||"",o.style[s]="",this._currentPadding=i}}},{key:"_setLevelInput",value:function(e){this._level=(0,En.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(pqe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,En.su)(i),this._setPadding()}}]),n}();Kb.\u0275fac=function(r){return new(r||Kb)(t.Y36(cu),t.Y36(Ju),t.Y36(t.SBq),t.Y36(nl.Is,8))},Kb.\u0275dir=t.lG2({type:Kb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var Cv=function(){function n(r,e){(0,B.Z)(this,n),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,U.Z)(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,En.Ig)(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),n}();Cv.\u0275fac=function(r){return new(r||Cv)(t.Y36(Ju),t.Y36(cu))},Cv.\u0275dir=t.lG2({type:Cv,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var qb=(0,U.Z)(function n(){(0,B.Z)(this,n)});qb.\u0275fac=function(r){return new(r||qb)},qb.\u0275mod=t.oAB({type:qb}),qb.\u0275inj=t.cJS({});var hqe=function(){function n(r){(0,B.Z)(this,n),this.endpoints=r}return(0,U.Z)(n,[{key:"buildTreeFromEndpoints",value:function(){var e=this,i=[],o=[];return this.endpoints.forEach(function(a){var s=e.extractParent(a);o.push(s)}),o.forEach(function(a){a.depth>0&&o.filter(function(l){return l.splitEndp.join("/")==a.splitEndp.slice(0,a.depth-1).join("/")})[0].children.push(a)}),i.push(o.find(function(a){return 0===a.depth})),i}},{key:"extractParent",value:function(e){var i=e.endpoint.split("/"),o=[];return(i=i.filter(function(s){return""!==s&&"access"!==s})).length>0&&(o=i.slice(0,i.length-1)),{children:[],depth:i.length,splitEndp:i,endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name,parent:o}}}]),n}();function mqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.hij(" ",i.displayFn(e)," ")}}var qI=function(){function n(){(0,B.Z)(this,n),this.autocompleteControl=new J.p4,this.onSelection=new t.vpe}return(0,U.Z)(n,[{key:"ngOnChanges",value:function(){var e=this;this.filteredData=this.autocompleteControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(i){return e.filterFn(i,e.data)}))}}]),n}();function _qe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function gqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function vqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div"),t._UZ(2,"button",23),t._uU(3),t.TgZ(4,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(5,_qe,3,0,"div",25),t.YNc(6,gqe,3,0,"div",25),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(2),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint)}}function yqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function bqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Cqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div")(2,"button",28)(3,"mat-icon",29),t._uU(4),t.qZA()(),t._uU(5),t.TgZ(6,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(7,yqe,3,0,"div",25),t.YNc(8,bqe,3,0,"div",25),t.qZA()(),t.TgZ(9,"div"),t.GkF(10,30),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.uIk("aria-label","Toggle "+i.name),t.xp6(2),t.hij(" ",o.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),t.xp6(1),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.ekj("example-tree-invisible",!o.treeControl.isExpanded(i))}}function wqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.charAt(0).toUpperCase()+e.slice(1))}}function kqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.userSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.users)("eltType","Users")("displayFn",i.displayFnUser)("filterFn",i._filterUser)}}function Tqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.groupSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.groups)("eltType","Groups")("displayFn",i.displayFn)("filterFn",i._filter)}}function Mqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"ALLOWED "),t.qZA()}}function Sqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"DENY "),t.qZA()}}qI.\u0275fac=function(r){return new(r||qI)},qI.\u0275cmp=t.Xpm({type:qI,selectors:[["app-autocomplete"]],inputs:{data:"data",eltType:"eltType",displayFn:"displayFn",filterFn:"filterFn"},outputs:{onSelection:"onSelection"},features:[t.TTD],decls:8,vars:7,consts:[[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,e){if(1&r&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",1),t.TgZ(4,"mat-autocomplete",2,3),t.NdJ("optionSelected",function(a){return e.onSelection.emit(a.option.value)}),t.YNc(6,mqe,2,2,"mat-option",4),t.ALo(7,"async"),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Oqu(e.eltType),t.xp6(1),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,5,e.filteredData))}},dependencies:[le.sg,J.Fj,J.JJ,J.oH,kn.KE,kn.hX,qn,Gt.ey,Jp,Qp,le.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var JI=function(){function n(r,e,i,o,a,s,l){(0,B.Z)(this,n),this.dialogRef=r,this.aclService=e,this.userService=i,this.groupService=o,this.roleService=a,this.toasterService=s,this.data=l,this.allowed=!0,this.types=Object.values(PT),this.TREE_DATA=[],this.treeControl=new uqe(function(h){return h.children}),this.hasChild=function(h,g){return!!g.children&&g.children.length>0},this.endpoints=l.endpoints;var d=new hqe(this.endpoints).buildTreeFromEndpoints();this.treeDataSource=new Si.P3(d),console.log(d)}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addAceForm=new J.nJ({type:new J.p4(PT.user),role_id:new J.p4,propagate:new J.p4(!0)}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i}),this.userService.list(this.controller).subscribe(function(i){e.users=i}),this.roleService.get(this.controller).subscribe(function(i){e.roles=i})}},{key:"form",get:function(){return this.addAceForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this,i={ace_type:this.form.type.value,allowed:this.allowed,group_id:this.form.type.value===PT.group?this.selectedGroup.user_group_id:null,path:this.selectedEndpoint.endpoint,propagate:this.form.propagate.value,role_id:this.selectedRole.role_id,user_id:this.form.type.value===PT.user?this.selectedUser.user_id:null};i.path&&i.role_id&&(i.user_id||i.group_id)&&(this.aclService.add(this.controller,i).subscribe(function(o){e.toasterService.success("ACE was added for path ".concat(i.path))},function(o){e.toasterService.error("Cannot create ACE : ".concat(o.error.message))}),this.dialogRef.close())}},{key:"changeAllowed",value:function(){this.allowed=!this.allowed}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"displayFnUser",value:function(e){return e&&e.full_name&&e.username?e.username.concat(" - ",e.full_name):""}},{key:"_filter",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"_filterUser",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.full_name.toLowerCase().includes(o)||a.username.toLowerCase().includes(o)})}}},{key:"_filterRole",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"userSelection",value:function(e){this.selectedUser=e}},{key:"groupSelection",value:function(e){this.selectedGroup=e}},{key:"roleSelection",value:function(e){this.selectedRole=e}},{key:"endpointSelection",value:function(e){var i={endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name};this.selectedEndpoint=i}}]),n}();function Eqe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.path," ")}}JI.\u0275fac=function(r){return new(r||JI)(t.Y36(cr),t.Y36(df),t.Y36(Bl),t.Y36(Ec),t.Y36(ff),t.Y36(Zn),t.Y36(ko))},JI.\u0275cmp=t.Xpm({type:JI,selectors:[["app-add-ace-dialog"]],decls:29,vars:16,consts:[["mat-dialog-title",""],[1,"input-field","d-flex",2,"height","380px",3,"formGroup"],[1,"d-inline-block",2,"width","75%","float","left","overflow-y","auto"],[3,"dataSource","treeControl"],["class","example-tree-node",4,"cdkTreeNodeDef"],["class","example-tree-node",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[2,"height","auto",3,"vertical"],[1,"form-div","d-inline-block","h-100"],[1,"typeSelect"],["placeholder","User/Group","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],[3,"data","eltType","displayFn","filterFn","onSelection",4,"ngIf"],[3,"data","eltType","displayFn","filterFn","onSelection"],[1,"d-flex","justify-content-between"],[1,"d-inline-block",2,"float","left"],["formControlName","propagate"],[1,"d-inline-block",2,"float","right"],["class","allow ","mat-button","",3,"click",4,"ngIf"],["class","deny","mat-button","",3,"click",4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"example-tree-node"],["mat-icon-button","","disabled",""],["mat-icon-button","",3,"click"],[4,"ngIf"],[1,"align-middle",2,"color","#696969"],[1,"align-middle"],["mat-icon-button","","cdkTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["cdkTreeNodeOutlet",""],[3,"value"],["mat-button","",1,"allow",3,"click"],["mat-button","",1,"deny",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new ACE"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"cdk-tree",3),t.YNc(5,vqe,7,5,"cdk-nested-tree-node",4),t.YNc(6,Cqe,11,9,"cdk-nested-tree-node",5),t.qZA()(),t._UZ(7,"mat-divider",6),t.TgZ(8,"div",7)(9,"div")(10,"div",8)(11,"mat-select",9),t.YNc(12,wqe,2,2,"mat-option",10),t.qZA()(),t.YNc(13,kqe,1,4,"app-autocomplete",11),t.YNc(14,Tqe,1,4,"app-autocomplete",11),t.TgZ(15,"app-autocomplete",12),t.NdJ("onSelection",function(o){return e.roleSelection(o)}),t.qZA(),t.TgZ(16,"div",13)(17,"div",14)(18,"mat-checkbox",15),t._uU(19,"Propagate"),t.qZA()(),t._UZ(20,"mat-divider",6),t.TgZ(21,"div",16),t.YNc(22,Mqe,2,0,"button",17),t.YNc(23,Sqe,2,0,"button",18),t.qZA()()(),t.TgZ(24,"div",19)(25,"button",20),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",21),t.NdJ("click",function(){return e.onAddClick()}),t._uU(28," Add ACE "),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.addAceForm),t.xp6(2),t.Q6J("dataSource",e.treeDataSource)("treeControl",e.treeControl),t.xp6(2),t.Q6J("cdkTreeNodeDefWhen",e.hasChild),t.xp6(1),t.Q6J("vertical",!0),t.xp6(5),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf","user"===e.form.type.value),t.xp6(1),t.Q6J("ngIf","group"===e.form.type.value),t.xp6(1),t.Q6J("data",e.roles)("eltType","Roles")("displayFn",e.displayFn)("filterFn",e._filter),t.xp6(5),t.Q6J("vertical",!0),t.xp6(2),t.Q6J("ngIf",e.allowed),t.xp6(1),t.Q6J("ngIf",!e.allowed),t.xp6(4),t.Q6J("disabled",!e.addAceForm.valid))},dependencies:[le.sg,le.O5,J._Y,J.JJ,J.JL,J.sg,J.u,fn,Dn,br,fr,ti,hm.d,di.gD,Gt.ey,$p,Km,Cv,Ju,Xp,qI],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.height-100[_ngcontent-%COMP%]{height:100%}.button-div[_ngcontent-%COMP%]{float:right;position:absolute;right:0;bottom:0}.allow[_ngcontent-%COMP%]{background-color:green}.deny[_ngcontent-%COMP%]{background-color:#8b0000}.typeSelect[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.example-tree-node[_ngcontent-%COMP%]{display:block}.example-tree-node[_ngcontent-%COMP%] .example-tree-node[_ngcontent-%COMP%]{padding-left:40px}.form-div[_ngcontent-%COMP%]{position:relative;width:25%;float:right;margin-left:20px}.selected[_ngcontent-%COMP%]{color:green}"]});var BT=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();BT.\u0275fac=function(r){return new(r||BT)(t.Y36(cr),t.Y36(ko))},BT.\u0275cmp=t.Xpm({type:BT,selectors:[["app-delete-ace-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following ACEs ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,Eqe,2,1,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.aces))},dependencies:[le.sg,fn,br,fr]});var QI=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i,o){var a=this;if(!e)return[];if(!i)return e;i=i.toLowerCase();var s=o.filter(function(l){return l.name.toLowerCase().includes(i)});return e.data.filter(function(l){var u=a.getEndpoint(l.user_id,o),d=a.getEndpoint(l.group_id,o),h=a.getEndpoint(l.path,o),g=a.getEndpoint(l.role_id,o);return s.some(function(y){return[u,d,h,g].includes(y.endpoint)})})}},{key:"getEndpoint",value:function(e,i){var o=i.filter(function(a){return a.endpoint.includes(e)});return o.length>0?o[0].endpoint.toLowerCase():""}}]),n}();QI.\u0275fac=function(r){return new(r||QI)},QI.\u0275pipe=t.Yjl({name:"aceFilter",type:QI,pure:!0});var xqe=["acesPaginator"],Dqe=["acesSort"];function Aqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",31)(1,"mat-checkbox",32),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Oqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"mat-checkbox",34),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function Iqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Path"),t.qZA())}function Pqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.path)," ")}}function Rqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"User/Group"),t.qZA())}function Lqe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Oqu(i.getNameByUuidFromEndpoint(e.user_id))}}function Zqe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Oqu(i.getNameByUuidFromEndpoint(e.group_id))}}function Nqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,Lqe,2,1,"div",37),t.YNc(2,Zqe,1,1,"ng-template",null,38,t.W1O),t.qZA()),2&n){var e=r.$implicit,i=t.MAs(3);t.xp6(1),t.Q6J("ngIf","user"===e.ace_type)("ngIfElse",i)}}function Bqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Role"),t.qZA())}function Fqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.role_id)," ")}}function Uqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Propagate"),t.qZA())}function Hqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function jqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Allowed"),t.qZA())}function Gqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function zqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Created"),t.qZA())}function Wqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function Vqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Last update"),t.qZA())}function Yqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function Kqe(n,r){1&n&&t._UZ(0,"th",39)}function qqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",36)(1,"button",40),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function Jqe(n,r){1&n&&t._UZ(0,"tr",41)}function Qqe(n,r){1&n&&t._UZ(0,"tr",42)}var Xqe=function(){return{standalone:!0}},$qe=function(){return[5,10,20]};function eJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Access Control List (ACL)"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete selected ACEs "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addACE())}),t._uU(8," Add ACE "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"aceFilter"),t.ynx(16,13),t.YNc(17,Aqe,2,2,"th",14),t.YNc(18,Oqe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,Iqe,2,0,"th",17),t.YNc(21,Pqe,2,1,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,Rqe,2,0,"th",17),t.YNc(24,Nqe,4,2,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,Bqe,2,0,"th",17),t.YNc(27,Fqe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,Uqe,2,0,"th",17),t.YNc(30,Hqe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,jqe,2,0,"th",17),t.YNc(33,Gqe,2,1,"td",18),t.BQk(),t.ynx(34,23),t.YNc(35,zqe,2,0,"th",17),t.YNc(36,Wqe,2,1,"td",18),t.BQk(),t.ynx(37,24),t.YNc(38,Vqe,2,0,"th",17),t.YNc(39,Yqe,2,1,"td",18),t.BQk(),t.ynx(40,25),t.YNc(41,Kqe,1,0,"th",26),t.YNc(42,qqe,4,0,"td",18),t.BQk(),t.YNc(43,Jqe,1,0,"tr",27),t.YNc(44,Qqe,1,0,"tr",28),t.qZA(),t._UZ(45,"mat-paginator",29,30),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(11,Xqe)),t.xp6(2),t.Q6J("dataSource",t.Dn7(15,7,i.dataSource,i.searchText,i.endpoints)),t.xp6(30),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(12,$qe))}}function tJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var XI=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.aclService=o,this.dialog=a,this.displayedColumns=["select","path","user/group","role","propagate","allowed","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1,this.searchText=""}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.aclService.getEndpoints(e.controller).subscribe(function(a){e.endpoints=a,e.refresh()})})}},{key:"ngAfterViewInit",value:function(){var e=this;this.acesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.acesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"path":case"user/group":case"role":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.aclService.list(this.controller).subscribe(function(i){e.isReady=!0,e.aces=i,e.dataSource.data=i,e.selection.clear()})}},{key:"addACE",value:function(){var e=this,i=this.dialog.open(JI,{width:"1200px",height:"500px",autoFocus:!1,disableClose:!0,data:{endpoints:this.endpoints}});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(BT,{width:"500px",data:{aces:[e]}}).afterClosed().subscribe(function(o){o&&i.aclService.delete(i.controller,e.ace_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete ace ".concat(e.ace_id))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.aces.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.aces.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(BT,{width:"500px",data:{aces:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.aclService.delete(e.controller,o.ace_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete ace ".concat(o.ace_id))})}),e.selection.clear())})}},{key:"getNameByUuidFromEndpoint",value:function(e){if(this.endpoints){var i=this.endpoints.filter(function(o){return o.endpoint.includes(e)});if(i.length>=1)return i[0].name}return""}}]),n}();XI.\u0275fac=function(r){return new(r||XI)(t.Y36(dr),t.Y36(or),t.Y36(Zn),t.Y36(df),t.Y36(Gr))},XI.\u0275cmp=t.Xpm({type:XI,selectors:[["app-acl-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(xqe,5),t.Gf(Dqe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.acesPaginator=i),t.iGM(i=t.CRH())&&(e.acesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by path, user/group or role",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["acesSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","path"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user/group"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["acesPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["groupId",""],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,eJe,47,13,"div",0),t.YNc(1,tJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[le.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,QI],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ace-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var Jb=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();Jb.\u0275fac=function(r){return new(r||Jb)},Jb.\u0275prov=t.Yz7({token:Jb,factory:Jb.\u0275fac});var nJe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,Io.w)(function(){return e.getAll(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},qm=function(){function n(r,e){(0,B.Z)(this,n),this.httpController=r,this.projectService=e}return(0,U.Z)(n,[{key:"getAll",value:function(e){return this.httpController.get(e,"/pools")}},{key:"get",value:function(e,i){return oo.y.forkJoin([this.httpController.get(e,"/pools/".concat(i)),this.httpController.get(e,"/pools/".concat(i,"/resources"))]).pipe((0,$n.U)(function(o){return o[0].resources=o[1],o[0]}))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/pools/".concat(i))}},{key:"add",value:function(e,i){return this.httpController.post(e,"/pools",{name:i})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id),{name:i.name})}},{key:"addResource",value:function(e,i,o){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id,"/resources/").concat(o.project_id),{})}},{key:"deleteResource",value:function(e,i,o){return this.httpController.delete(e,"/pools/".concat(o.resource_pool_id,"/resources/").concat(i.resource_id))}},{key:"getFreeResources",value:function(e){var i=this;return this.projectService.list(e).pipe((0,Io.w)(function(o){return i.getAllNonFreeResources(e).pipe((0,$n.U)(function(a){return a.map(function(s){return s.resource_id})}),(0,$n.U)(function(a){return o.filter(function(s){return!a.includes(s.project_id)})}))}))}},{key:"getAllNonFreeResources",value:function(e){var i=this;return this.getAll(e).pipe((0,Io.w)(function(o){return oo.y.forkJoin(o.map(function(a){return i.httpController.get(e,"/pools/".concat(a.resource_pool_id,"/resources"))}))}),(0,$n.U)(function(o){var l,a=[],s=(0,An.Z)(o);try{for(s.s();!(l=s.n()).done;){var h,u=l.value,d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;a.push(g)}}catch(y){d.e(y)}finally{d.f()}}}catch(y){s.e(y)}finally{s.f()}return a}))}}]),n}();function rJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is required"),t.qZA())}function iJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is incorrect"),t.qZA())}function oJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool with this name exists"),t.qZA())}qm.\u0275fac=function(r){return new(r||qm)(t.LFG(ho.zw),t.LFG(Ws.Y))},qm.\u0275prov=t.Yz7({token:qm,factory:qm.\u0275fac,providedIn:"root"});var aJe=function(r){return{"is-invalid":r}},$I=function(){function n(r,e,i,o,a,s){(0,B.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.poolNameValidator=o,this.resourcePoolsService=a,this.toasterService=s}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){this.controller=this.data.controller,this.poolNameForm=this.formBuilder.group({poolName:new J.p4(null,[J.kI.required,this.poolNameValidator.get],[nJe(this.data.controller,this.resourcePoolsService)])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.poolNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.poolNameForm.invalid){var i=this.poolNameForm.controls.poolName.value;this.resourcePoolsService.add(this.controller,i).subscribe(function(o){e.dialogRef.close(!0)},function(o){e.toasterService.error("An error occur while trying to create new pool ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function sJe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}$I.\u0275fac=function(r){return new(r||$I)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Jb),t.Y36(qm),t.Y36(Zn))},$I.\u0275cmp=t.Xpm({type:$I,selectors:[["app-add-resource-pool-dialog"]],features:[t._Bn([Jb])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","poolName","placeholder","Please enter a resource pool name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new resource pool"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,rJe,2,0,"mat-error",4),t.YNc(6,iJe,2,0,"mat-error",4),t.YNc(7,oJe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add resource pool "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.poolNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,aJe,null==e.form.poolName?null:e.form.poolName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.touched)&&(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.projectExist)))},dependencies:[le.mk,le.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,fn,qn,br,fr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var eP=function(){function n(r,e){(0,B.Z)(this,n),this.dialogRef=r,this.data=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();eP.\u0275fac=function(r){return new(r||eP)(t.Y36(cr),t.Y36(ko))},eP.\u0275cmp=t.Xpm({type:eP,selectors:[["app-delete-resource-pool"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete pools named: "),t.qZA(),t.YNc(2,sJe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.pools))},dependencies:[le.sg,fn,br,fr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var tP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();tP.\u0275fac=function(r){return new(r||tP)},tP.\u0275pipe=t.Yjl({name:"resourcePoolsFilter",type:tP,pure:!0});var lJe=["resourcePoolsPaginator"],uJe=["resourcePoolsSort"];function cJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",27)(1,"mat-checkbox",28),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function dJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",29)(1,"mat-checkbox",30),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function fJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Name"),t.qZA())}function pJe(n,r){if(1&n&&(t.TgZ(0,"td",32)(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/resourcePools/",e.resource_pool_id,""),t.xp6(1),t.Oqu(e.name)}}function hJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Creation date"),t.qZA())}function mJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function _Je(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Last update"),t.qZA())}function gJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function vJe(n,r){1&n&&t._UZ(0,"th",34)}function yJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",32)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function bJe(n,r){1&n&&t._UZ(0,"tr",36)}function CJe(n,r){1&n&&t._UZ(0,"tr",37)}var wJe=function(){return{standalone:!0}},kJe=function(){return[5,10,20]};function TJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Resource pools"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected pools "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addResourcePool())}),t._uU(8," Add resource pool "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"resourcePoolsFilter"),t.ynx(16,13),t.YNc(17,cJe,2,2,"th",14),t.YNc(18,dJe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,fJe,2,0,"th",17),t.YNc(21,pJe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,hJe,2,0,"th",17),t.YNc(24,mJe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,_Je,2,0,"th",17),t.YNc(27,gJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,vJe,1,0,"th",22),t.YNc(30,yJe,4,0,"td",18),t.BQk(),t.YNc(31,bJe,1,0,"tr",23),t.YNc(32,CJe,1,0,"tr",24),t.qZA(),t._UZ(33,"mat-paginator",25,26),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,wJe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(18),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,kJe))}}function MJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",38),t.qZA())}var nP=function(){function n(r,e,i,o,a){(0,B.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.resourcePoolsService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","delete"],this.selection=new Si.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.resourcePoolsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.resourcePoolsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.resourcePools.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.resourcePools.forEach(function(i){return e.selection.select(i)})}},{key:"addResourcePool",value:function(){var e=this;this.dialog.open($I,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.getAll(this.controller).subscribe(function(i){e.isReady=!0,e.resourcePools=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(eP,{width:"500px",height:"250px",data:{pools:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.resourcePoolsService.delete(i.controller,s.resource_pool_id)});(0,H0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete resource pool")})}})}}]),n}();nP.\u0275fac=function(r){return new(r||nP)(t.Y36(dr),t.Y36(or),t.Y36(Zn),t.Y36(qm),t.Y36(Gr))},nP.\u0275cmp=t.Xpm({type:nP,selectors:[["app-resource-pools-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(lJe,5),t.Gf(uJe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.resourcePoolsPaginator=i),t.iGM(i=t.CRH())&&(e.resourcePoolsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search resource pool by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["resourcePoolsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["resourcePoolsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,TJe,35,12,"div",0),t.YNc(1,MJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[le.O5,js,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,tP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ressourcePool-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var rP=function(){function n(r,e){(0,B.Z)(this,n),this.data=r,this.dialogRef=e}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();function SJe(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function EJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",22)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",18)(5,"mat-icon",19),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteResource(s))}),t._uU(6,"delete"),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(2),t.Oqu(i.name)}}rP.\u0275fac=function(r){return new(r||rP)(t.Y36(bie),t.Y36(cr))},rP.\u0275cmp=t.Xpm({type:rP,selectors:[["app-delete-resource-confirmation-dialog"]],decls:7,vars:2,consts:[[1,"title"],[1,"button"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return e.dialogRef.close()}),t._uU(4,"Cancel"),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return e.dialogRef.close(e.data)}),t._uU(6,"Update"),t.qZA()()),2&r&&(t.xp6(1),t.AsE("delete resource ",e.data.resource_type,"/",e.data.name," ?"))},dependencies:[fn],styles:["[_nghost-%COMP%]{display:flex;margin:30px;flex-direction:column}.title[_ngcontent-%COMP%]{margin-bottom:50px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var xJe=function(r){return["/controller",r,"management","resourcePools"]},iP=function(){function n(r,e,i,o){(0,B.Z)(this,n),this.toastService=r,this.route=e,this.resourcePoolsService=i,this.dialog=o,this.addResourceFormControl=new J.NI(""),this.projects=[],this.editPoolForm=new J.nJ({poolname:new J.p4})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.pool=i.pool,e.refresh()})}},{key:"onUpdate",value:function(){var e=this;this.resourcePoolsService.update(this.controller,this.pool).subscribe(function(i){e.toastService.success("pool ".concat(i.name,", updated"))})}},{key:"addResource",value:function(){var e=this,i=this.addResourceFormControl.value,o=this.projects.filter(function(a){return a.name.includes(i)});1!==o.length?0!==o.length?o.length>1&&this.toastService.error("".concat(o.length," match ").concat(i,", please be more accurate")):this.toastService.error("cannot found related project with string: ".concat(i)):this.resourcePoolsService.addResource(this.controller,this.pool,o[0]).subscribe(function(){e.toastService.success("project : ".concat(o[0].name,", added to pool: ").concat(e.pool.name)),e.refresh(),e.addResourceFormControl.setValue("")})}},{key:"deleteResource",value:function(e){var i=this;this.dialog.open(rP,{data:e}).afterClosed().subscribe(function(o){o&&i.resourcePoolsService.deleteResource(i.controller,o,i.pool).subscribe(function(){i.refresh(),i.toastService.success("resource ".concat(o.name," delete from pool ").concat(i.pool.name))})})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.get(this.controller,this.pool.resource_pool_id).subscribe(function(i){e.pool=i}),this.resourcePoolsService.getFreeResources(this.controller).subscribe(function(i){e.projects=i,e.addResourceFilteredOptions=e.addResourceFormControl.valueChanges.pipe((0,Oo.O)(""),(0,$n.U)(function(o){return e.projects.filter(function(a){return a.name.toLowerCase().includes(o.toLowerCase()||"")}).map(function(a){return a.name})}))})}}]),n}();iP.\u0275fac=function(r){return new(r||iP)(t.Y36(Zn),t.Y36(dr),t.Y36(qm),t.Y36(Gr))},iP.\u0275cmp=t.Xpm({type:iP,selectors:[["app-resource-pool-details"]],decls:38,vars:15,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","back to resource pools management","mattooltipclass","custom-tooltip",3,"routerLink"],["aria-label","back to resource pools management"],[1,"col"],[1,"main"],[1,"details"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"vertical"],[1,"resources"],[1,"addResource"],["type","text","placeholder","add project to resource pool","matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button",""],[3,"click"],["class","ownedResources",4,"ngFor","ngForOf"],[3,"value"],[1,"ownedResources"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),t._uU(13,"Resource pool name:"),t.qZA(),t.TgZ(14,"input",8),t.NdJ("ngModelChange",function(a){return e.pool.name=a}),t.qZA()()(),t.TgZ(15,"div"),t._uU(16),t.qZA(),t.TgZ(17,"div"),t._uU(18),t.qZA(),t.TgZ(19,"div"),t._uU(20),t.qZA(),t.TgZ(21,"div",9)(22,"button",10),t.NdJ("click",function(){return e.onUpdate()}),t._uU(23," Update resource pool "),t.qZA()()(),t._UZ(24,"mat-divider",11),t.TgZ(25,"div",12)(26,"div",13)(27,"div"),t._UZ(28,"input",14),t.TgZ(29,"mat-autocomplete",15,16),t.YNc(31,SJe,2,2,"mat-option",17),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div")(34,"button",18)(35,"mat-icon",19),t.NdJ("click",function(){return e.addResource()}),t._uU(36,"add"),t.qZA()()()(),t.YNc(37,EJe,7,1,"div",20),t.qZA()()()()),2&r){var i=t.MAs(30);t.xp6(3),t.Q6J("routerLink",t.VKq(13,xJe,e.controller.id)),t.xp6(4),t.hij("Resource pool ",e.pool.name,""),t.xp6(7),t.Q6J("ngModel",e.pool.name),t.xp6(2),t.hij("creation date: ",e.pool.created_at,""),t.xp6(2),t.hij("last update date: ",e.pool.updated_at,""),t.xp6(2),t.hij("uuid: ",e.pool.resource_pool_id,""),t.xp6(4),t.Q6J("vertical",!0),t.xp6(4),t.Q6J("formControl",e.addResourceFormControl)("matAutocomplete",i),t.xp6(3),t.Q6J("ngForOf",t.lcZ(32,11,e.addResourceFilteredOptions)),t.xp6(6),t.Q6J("ngForOf",e.pool.resources)}},dependencies:[le.sg,js,J.Fj,J.JJ,J.On,J.oH,kn.KE,kn.hX,fn,U0,Dn,qn,fr,hm.d,Gt.ey,mi,Jp,Qp,le.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}.resources[_ngcontent-%COMP%]{display:flex;flex-direction:column}.ownedResources[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.addResource[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between}"]});var FT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.resourcePoolsService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("pool_id");o.controllerService.get(+s).then(function(u){o.resourcePoolsService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();FT.\u0275fac=function(r){return new(r||FT)(t.LFG(or),t.LFG(qm))},FT.\u0275prov=t.Yz7({token:FT,factory:FT.\u0275fac,providedIn:"root"});var UT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.group_id===l});a.next(h),a.complete()})})})}}]),n}();UT.\u0275fac=function(r){return new(r||UT)(t.LFG(or),t.LFG(df))},UT.\u0275prov=t.Yz7({token:UT,factory:UT.\u0275fac,providedIn:"root"});var HT=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,U.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new oo.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.user_id===l});a.next(h),a.complete()})})})}}]),n}();HT.\u0275fac=function(r){return new(r||HT)(t.LFG(or),t.LFG(df))},HT.\u0275prov=t.Yz7({token:HT,factory:HT.\u0275fac,providedIn:"root"});var DJe=[{path:"",component:vI,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:aI},{path:"bundled",component:xD},{path:"controller/:controller_id/login",component:jD},{path:"controller/:controller_id/loggeduser",component:SI},{path:"controller/:controller_id/image-manager",component:DI},{path:"controller/:controller_id/projects",component:CT,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/help",component:BD},{path:"controller/:controller_id/settings",component:lI},{path:"controller/:controller_id/settings/console",component:sI},{path:"controller/:controller_id/management/users/:user_id",component:OI,canActivate:[Ur],resolve:{user:OT,groups:IT,aces:HT,controller:vd}},{path:"controller/:controller_id/management/resourcePools/:pool_id",component:iP,canActivate:[Ur],resolve:{pool:FT,controller:vd}},{path:"installed-software",component:HD},{path:"controller/:controller_id/systemstatus",component:mI,canActivate:[Ur]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:PD,canActivate:[Ur]},{path:"controller/:controller_id/project/:project_id/snapshots",component:dI,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/preferences",component:M2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin",component:zD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:o2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:r2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:i2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:l2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:a2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:s2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:n2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:VD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:KD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates",component:b2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:g2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:y2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:v2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates",component:D2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:E2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:x2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:S2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates",component:B2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:N2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:Z2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:I2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:O2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:A2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates",component:L2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:R2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:P2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates",component:_2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:m2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:h2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:p2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates",component:T2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:k2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:w2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:C2,canActivate:[Ur]},{path:"controller/:controller_id/management",component:II,children:[{path:"users",component:MI},{path:"groups",component:ZI},{path:"roles",component:UI},{path:"pools",component:nP},{path:"ACL",component:XI}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:WI,resolve:{members:RT,controller:vd,group:LT,aces:UT}},{path:"controller/:controller_id/management/roles/:role_id",component:KI,resolve:{role:NT,controller:vd}}]},{path:"controller/:controller_id/project/:project_id",component:nI,canActivate:[Ur],canDeactivate:[Vb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:ET,canActivate:[Ur]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:ET,canActivate:[Ur]},{path:"**",component:GD}],jT=(0,U.Z)(function n(){(0,B.Z)(this,n)});jT.\u0275fac=function(r){return new(r||jT)},jT.\u0275mod=t.oAB({type:jT}),jT.\u0275inj=t.cJS({imports:[F0.forRoot(DJe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"}),F0]});var AJe=function(r,e){return{dark:r,light:e}},oP=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,B.Z)(this,n),this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=l,this.progressService=u,this.darkThemeEnabled=!1,e.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),e.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),l.events.subscribe(function(h){d.checkEvent(h)})}return(0,U.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(i){e.applyTheme(i)})}},{key:"applyTheme",value:function(e){this.darkThemeEnabled="dark-theme"===e,this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"checkEvent",value:function(e){e instanceof aB?this.progressService.activate():(e instanceof Jd||e instanceof mD||e instanceof yG)&&this.progressService.deactivate()}}]),n}();oP.\u0275fac=function(r){return new(r||oP)(t.Y36(Li.Xj),t.Y36(xp),t.Y36(Dr),t.Y36(Gm.g),t.Y36(ul),t.Y36(wc.f),t.Y36(ur),t.Y36(El))},oP.\u0275cmp=t.Xpm({type:oP,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&t.Tol(e.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._UZ(1,"router-outlet")(2,"app-adbutler"),t.qZA()),2&r&&t.Q6J("ngClass",t.WLB(1,AJe,e.darkThemeEnabled,!e.darkThemeEnabled))},dependencies:[le.mk,fm,Ck],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var OJe=(0,U.Z)(function n(){(0,B.Z)(this,n)}),GT=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i=new OJe;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();GT.\u0275fac=function(r){return new(r||GT)},GT.\u0275prov=t.Yz7({token:GT,factory:GT.\u0275fac});var zT=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return Qz(e,{context:"declarationList"}).children.forEach(function(a){"font-size"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Dimension"===s.type&&(i.font_size=parseInt(s.value))}),"font-family"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_family=s.name)}),"font-weight"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_weight=s.name)})}),i}}]),n}();zT.\u0275fac=function(r){return new(r||zT)},zT.\u0275prov=t.Yz7({token:zT,factory:zT.\u0275fac});var IJe=[iv,Um,zp,Xg,Gp,Vp,$g,jp,Qg,Eb,nv,yb,of,Mb,wb,Tb,kb,rv,Sb],WT=(0,U.Z)(function n(){(0,B.Z)(this,n)});WT.\u0275fac=function(r){return new(r||WT)},WT.\u0275mod=t.oAB({type:WT}),WT.\u0275inj=t.cJS({providers:[Sc,os,dv,Rb,Lb,Zb,Nb,Fp,Wp,Yu,Fm,Hp,qg,Ys,Zl,pd,hd,jm,_d,Bm,Wg,Kg,gb,Bb,qp,hv,Fb,Vm,pv,GT,Yg,Vg,vb,Up,Im,Pm,Rm,Lm,Jg,rf,Pp,zT,ev,tv].concat((0,cn.Z)(IJe)),imports:[le.ez,Pg,Og]});var Qb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(WB.o);Qb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qb)))(e||Qb)}}(),Qb.\u0275prov=t.Yz7({token:Qb,factory:Qb.\u0275fac});var dW=function(n,r){return(dW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(n,r)};function aP(n,r){function e(){this.constructor=n}dW(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var In=function(){return In=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},In.apply(this,arguments)};function Jm(n){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&n[r],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function du(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,i=e.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return a}function as(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(du(arguments[r]));return n}var ba=m(7312),ale=Object.prototype.toString;function fW(n){switch(ale.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return wv(n,Error)}}function VT(n,r){return ale.call(n)==="[object "+r+"]"}function sle(n){return VT(n,"ErrorEvent")}function lle(n){return VT(n,"DOMError")}function YT(n){return VT(n,"String")}function pW(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function KT(n){return VT(n,"Object")}function H5(n){return"undefined"!=typeof Event&&wv(n,Event)}function hW(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function wv(n,r){try{return n instanceof r}catch(e){return!1}}function mW(n,r){try{for(var e=n,a=[],s=0,l=0,d=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=BJe(e,r))||s>1&&l+a.length*d+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(g){return"<unknown>"}}function BJe(n,r){var o,a,s,l,u,e=n,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var d=r&&r.length?r.filter(function(g){return e.getAttribute(g)}).map(function(g){return[g,e.getAttribute(g)]}):null;if(d&&d.length)d.forEach(function(g){i.push("["+g[0]+'="'+g[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&YT(o))for(a=o.split(/\s+/),u=0;u<a.length;u++)i.push("."+a[u]);var h=["type","name","title","alt"];for(u=0;u<h.length;u++)s=h[u],(l=e.getAttribute(s))&&i.push("["+s+'="'+l+'"]');return i.join("")}function sP(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function ule(n,r){if(!Array.isArray(n))return"";for(var e=[],i=0;i<n.length;i++){var o=n[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function _W(n,r){return!!YT(n)&&(function LJe(n){return VT(n,"RegExp")}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Fl(n,r,e){if(r in n){var i=n[r],o=e(i);if("function"==typeof o)try{cle(o,i)}catch(a){}n[r]=o}}function j5(n,r,e){Object.defineProperty(n,r,{value:e,writable:!0,configurable:!0})}function cle(n,r){var e=r.prototype||{};n.prototype=r.prototype=e,j5(n,"__sentry_original__",r)}function gW(n){return n.__sentry_original__}function dle(n){var r=n;if(fW(n))r=In({message:n.message,name:n.name,stack:n.stack},ple(n));else if(H5(n)){var e=n;r=In({type:e.type,target:fle(e.target),currentTarget:fle(e.currentTarget)},ple(e)),"undefined"!=typeof CustomEvent&&wv(n,CustomEvent)&&(r.detail=e.detail)}return r}function fle(n){try{return function RJe(n){return"undefined"!=typeof Element&&wv(n,Element)}(n)?mW(n):Object.prototype.toString.call(n)}catch(r){return"<unknown>"}}function ple(n){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}function HJe(n,r){void 0===r&&(r=40);var e=Object.keys(dle(n));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return sP(e[0],r);for(var i=e.length;i>0;i--){var o=e.slice(0,i).join(", ");if(!(o.length>r))return i===e.length?o:sP(o,r)}return""}function vW(n){var r,e;if(KT(n)){var i={};try{for(var o=Jm(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==n[s]&&(i[s]=vW(n[s]))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}return Array.isArray(n)?n.map(vW):n}function qT(){var n=(0,ba.R)(),r=n.crypto||n.msCrypto;if(void 0!==r&&r.getRandomValues){var e=new Uint16Array(8);r.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var i=function(a){for(var s=a.toString(16);s.length<4;)s="0"+s;return s};return i(e[0])+i(e[1])+i(e[2])+i(e[3])+i(e[4])+i(e[5])+i(e[6])+i(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"===o?a:3&a|8).toString(16)})}function yW(n){if(!n)return{};var r=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!r)return{};var e=r[6]||"",i=r[8]||"";return{host:r[4],path:r[5],protocol:r[2],relative:r[5]+e+i}}function hle(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function Xb(n){var r=n.message,e=n.event_id;if(r)return r;var i=hle(n);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function bW(n,r,e){var i=n.exception=n.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function lP(n,r){var e=hle(n);if(e){var o=e.mechanism;if(e.mechanism=In(In(In({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=In(In({},o&&o.data),r.data);e.mechanism.data=a}}}function mle(n){if(n&&n.__sentry_captured__)return!0;try{j5(n,"__sentry_captured__",!0)}catch(r){}return!1}var _i,JT=m(3169),QT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,GJe=(0,ba.R)(),zJe="Sentry Logger ",G5=["debug","info","warn","error","log","assert"];function _le(n){var r=(0,ba.R)();if(!("console"in r))return n();var e=r.console,i={};G5.forEach(function(o){var a=e[o]&&e[o].__sentry_original__;o in r.console&&a&&(i[o]=e[o],e[o]=a)});try{return n()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function gle(){var n=!1,r={enable:function(){n=!0},disable:function(){n=!1}};return QT?G5.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&_le(function(){var a;(a=GJe.console)[e].apply(a,as([zJe+"["+e+"]:"],i))})}}):G5.forEach(function(e){r[e]=function(){}}),r}_i=QT?(0,ba.Y)("logger",gle):gle();var WJe=m(3295),vle="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $b(n){return new kv(function(r){r(n)})}function uP(n){return new kv(function(r,e){e(n)})}var kv=function(){function n(r){var e=this;this._state=0,this._handlers=[],this._resolve=function(i){e._setResult(1,i)},this._reject=function(i){e._setResult(2,i)},this._setResult=function(i,o){if(0===e._state){if(hW(o))return void o.then(e._resolve,e._reject);e._state=i,e._value=o,e._executeHandlers()}},this._executeHandlers=function(){if(0!==e._state){var i=e._handlers.slice();e._handlers=[],i.forEach(function(o){o[0]||(1===e._state&&o[1](e._value),2===e._state&&o[2](e._value),o[0]=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.prototype.then=function(r,e){var i=this;return new n(function(o,a){i._handlers.push([!1,function(s){if(r)try{o(r(s))}catch(l){a(l)}else o(s)},function(s){if(e)try{o(e(s))}catch(l){a(l)}else a(s)}]),i._executeHandlers()})},n.prototype.catch=function(r){return this.then(function(e){return e},r)},n.prototype.finally=function(r){var e=this;return new n(function(i,o){var a,s;return e.then(function(l){s=!1,a=l,r&&r()},function(l){s=!0,a=l,r&&r()}).then(function(){s?o(a):i(a)})})},n}(),z5=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return n.clone=function(r){var e=new n;return r&&(e._breadcrumbs=as(r._breadcrumbs),e._tags=In({},r._tags),e._extra=In({},r._extra),e._contexts=In({},r._contexts),e._user=r._user,e._level=r._level,e._span=r._span,e._session=r._session,e._transactionName=r._transactionName,e._fingerprint=r._fingerprint,e._eventProcessors=as(r._eventProcessors),e._requestSession=r._requestSession),e},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=In(In({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,e){var i;return this._tags=In(In({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=In(In({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,e){var i;return this._extra=In(In({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=In(In({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof n?e:this}return r instanceof n?(this._tags=In(In({},this._tags),r._tags),this._extra=In(In({},this._extra),r._extra),this._contexts=In(In({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):KT(r)&&(this._tags=In(In({},this._tags),r.tags),this._extra=In(In({},this._extra),r.extra),this._contexts=In(In({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=In({timestamp:(0,JT.yW)()},r);return this._breadcrumbs=as(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=In(In({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=In(In({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=In(In({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=In(In({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=In({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=In({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=as(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(as(ble(),this._eventProcessors),r,e)},n.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=In(In({},this._sdkProcessingMetadata),r),this},n.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new kv(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var d=u(In({},e),i);hW(d)?d.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,d,i,o+1).then(s).then(null,l)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function ble(){return(0,ba.Y)("globalEventProcessors",function(){return[]})}function CW(n){ble().push(n)}var VJe=function(){function n(r){this.errors=0,this.sid=qT(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,JT.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,JT.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:qT()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},n.prototype.toJSON=function(){return vW({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},n}(),kW=function(){function n(r,e,i){void 0===e&&(e=new z5),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=z5.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},n.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:qT(),o=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,In(In({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:qT(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(l){s=l}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,e,In(In({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:qT();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,In(In({},e),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,e){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},l=s.beforeBreadcrumb,u=void 0===l?null:l,d=s.maxBreadcrumbs,h=void 0===d?100:d;if(!(h<=0)){var g=(0,JT.yW)(),y=In({timestamp:g},r),L=u?_le(function(){return u(y,e)}):y;null!==L&&o.addBreadcrumb(L,h)}}},n.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},n.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},n.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},n.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},n.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},n.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},n.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},n.prototype.run=function(r){var e=Cle(this);try{r(this)}finally{Cle(e)}},n.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return vle&&_i.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},n.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,d=((0,ba.R)().navigator||{}).userAgent,h=new VJe(In(In(In({release:s,environment:l},i&&{user:i.getUser()}),d&&{userAgent:d}),r));if(i){var g=i.getSession&&i.getSession();g&&"ok"===g.status&&g.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),e=r.scope,i=r.client;if(e){var o=e.getSession&&e.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,l=a.client;l&&l[r]&&(e=l)[r].apply(e,as(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=cP(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);vle&&_i.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function cP(){var n=(0,ba.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function Cle(n){var r=cP(),e=Tv(r);return TW(r,n),e}function fu(){var n=cP();return(!wle(n)||Tv(n).isOlderThan(4))&&TW(n,new kW),(0,WJe.KV)()?function KJe(n){try{var r=cP().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return Tv(n);if(!wle(e)||Tv(e).isOlderThan(4)){var i=Tv(n).getStackTop();TW(e,new kW(i.client,z5.clone(i.scope)))}return Tv(e)}catch(o){return Tv(n)}}(n):Tv(n)}function wle(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function Tv(n){return(0,ba.Y)("hub",function(){return new kW},n)}function TW(n,r){return!!n&&((n.__SENTRY__=n.__SENTRY__||{}).hub=r,!0)}function Qu(n){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=fu();if(i&&i[n])return i[n].apply(i,as(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function kle(n,r){return Qu("captureException",n,{captureContext:r,originalException:n,syntheticException:new Error("Sentry syntheticException")})}function qJe(n){Qu("withScope",n)}var ss="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,JJe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],QJe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(n);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function XJe(n,r){return void 0===n&&(n={}),void 0===r&&(r={}),{allowUrls:as(n.whitelistUrls||[],n.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:as(n.blacklistUrls||[],n.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:as(n.ignoreErrors||[],r.ignoreErrors||[],JJe),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(a._options,l);return function $Je(n,r){return r.ignoreInternal&&function iQe(n){try{return"SentryError"===n.exception.values[0].type}catch(r){}return!1}(n)?(ss&&_i.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Xb(n)),!0):function eQe(n,r){return!(!r||!r.length)&&function rQe(n){if(n.message)return[n.message];if(n.exception)try{var r=n.exception.values&&n.exception.values[0]||{},e=r.type,i=void 0===e?"":e,o=r.value,a=void 0===o?"":o;return[""+a,i+": "+a]}catch(s){return ss&&_i.error("Cannot extract message for event "+Xb(n)),[]}return[]}(n).some(function(e){return r.some(function(i){return _W(e,i)})})}(n,r.ignoreErrors)?(ss&&_i.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Xb(n)),!0):function tQe(n,r){if(!r||!r.length)return!1;var e=W5(n);return!!e&&r.some(function(i){return _W(e,i)})}(n,r.denyUrls)?(ss&&_i.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+W5(n)),!0):!function nQe(n,r){if(!r||!r.length)return!0;var e=W5(n);return!e||r.some(function(i){return _W(e,i)})}(n,r.allowUrls)&&(ss&&_i.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+W5(n)),!0)}(i,u)?null:i}}return i})},n.id="InboundFilters",n}();function Tle(n){void 0===n&&(n=[]);for(var r=n.length-1;r>=0;r--){var e=n[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function W5(n){try{if(n.stacktrace)return Tle(n.stacktrace.frames);var r;try{r=n.exception.values[0].stacktrace.frames}catch(e){}return r?Tle(r):null}catch(e){return ss&&_i.error("Cannot extract url for event "+Xb(n)),null}}var Mle,oQe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Mle=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=gW(this)||this;return Mle.apply(i,r)}},n.id="FunctionToString",n}();function uQe(n){if(!n.length)return[];var r=n,e=r[0].function||"",i=r[r.length-1].function||"";return(-1!==e.indexOf("captureMessage")||-1!==e.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return In(In({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var MW="<anonymous>";function Mv(n){try{return n&&"function"==typeof n&&n.name||MW}catch(r){return MW}}function V5(){if(!("fetch"in(0,ba.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function SW(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function dQe(){if(!V5())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var Y5,ua=(0,ba.R)(),dP={},Sle={};function pQe(n){if(!Sle[n])switch(Sle[n]=!0,n){case"console":!function hQe(){"console"in ua&&G5.forEach(function(n){n in ua.console&&Fl(ua.console,n,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];pf("console",{args:e,level:n}),r&&r.apply(ua.console,e)}})})}();break;case"dom":!function kQe(){if("document"in ua){var n=pf.bind(null,"dom"),r=Ele(n,!0);ua.document.addEventListener("click",r,!1),ua.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=ua[e]&&ua[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Fl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=d[a]=d[a]||{refCount:0};if(!h.handler){var g=Ele(n);h.handler=g,o.call(this,a,g,l)}h.refCount+=1}catch(y){}return o.call(this,a,s,l)}}),Fl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__||{},h=d[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete d[a]),0===Object.keys(d).length&&delete u.__sentry_instrumentation_handlers__)}catch(g){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function vQe(){if("XMLHttpRequest"in ua){var n=XMLHttpRequest.prototype;Fl(n,"open",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this,a=e[1],s=o.__sentry_xhr__={method:YT(e[0])?e[0].toUpperCase():e[0],url:e[1]};YT(a)&&"POST"===s.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var l=function(){if(4===o.readyState){try{s.status_code=o.status}catch(d){}pf("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Fl(o,"onreadystatechange",function(u){return function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l(),u.apply(o,d)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Fl(n,"send",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),pf("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function mQe(){!function cQe(){if(!V5())return!1;var n=(0,ba.R)();if(SW(n.fetch))return!0;var r=!1,e=n.document;if(e&&"function"==typeof e.createElement)try{var i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=SW(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){QT&&_i.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Fl(ua,"fetch",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:_Qe(r),url:gQe(r)},startTimestamp:Date.now()};return pf("fetch",In({},i)),n.apply(ua,r).then(function(o){return pf("fetch",In(In({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw pf("fetch",In(In({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function yQe(){if(!function fQe(){var n=(0,ba.R)(),r=n.chrome,e=r&&r.app&&r.app.runtime,i="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!e&&i}())return;var n=ua.onpopstate;function r(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i.length>2?i[2]:void 0;if(a){var s=Y5,l=String(a);Y5=l,pf("history",{from:s,to:l})}return e.apply(this,i)}}ua.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=ua.location.href,a=Y5;if(Y5=o,pf("history",{from:a,to:o}),n)try{return n.apply(this,e)}catch(s){}},Fl(ua.history,"pushState",r),Fl(ua.history,"replaceState",r)}();break;case"error":!function TQe(){EW=ua.onerror,ua.onerror=function(n,r,e,i,o){return pf("error",{column:i,error:o,line:e,msg:n,url:r}),!!EW&&EW.apply(this,arguments)}}();break;case"unhandledrejection":!function MQe(){xW=ua.onunhandledrejection,ua.onunhandledrejection=function(n){return pf("unhandledrejection",n),!xW||xW.apply(this,arguments)}}();break;default:return void(QT&&_i.warn("unknown instrumentation type:",n))}}function Sv(n,r){dP[n]=dP[n]||[],dP[n].push(r),pQe(n)}function pf(n,r){var e,i;if(n&&dP[n])try{for(var o=Jm(dP[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){QT&&_i.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+Mv(s)+"\nError:",l)}}}catch(l){e={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}function _Qe(n){return void 0===n&&(n=[]),"Request"in ua&&wv(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function gQe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in ua&&wv(n[0],Request)?n[0].url:String(n[0])}var K5,q5;function Ele(n,r){return void 0===r&&(r=!1),function(e){if(e&&q5!==e&&!function wQe(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(e){}return!0}(e)){var i="keypress"===e.type?"input":e.type;(void 0===K5||function CQe(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(e){}return!1}(q5,e))&&(n({event:e,name:i,global:r}),q5=e),clearTimeout(K5),K5=ua.setTimeout(function(){K5=void 0},1e3)}}}var EW=null;var xW=null;var SQe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function EQe(n,r){return n.__proto__=r,n}:function xQe(n,r){for(var e in r)Object.prototype.hasOwnProperty.call(n,e)||(n[e]=r[e]);return n});var Cs=function(n){function r(e){var i=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,SQe(o,i.prototype),o}return aP(r,n),r}(Error),DQe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function fP(n,r){void 0===r&&(r=!1);var e=n.host,i=n.path,o=n.pass,a=n.port,s=n.projectId;return n.protocol+"://"+n.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function Dle(n){return"user"in n&&!("publicKey"in n)&&(n.publicKey=n.user),{user:n.publicKey||"",protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function J5(n){var r="string"==typeof n?function OQe(n){var r=DQe.exec(n);if(!r)throw new Cs("Invalid Sentry Dsn: "+n);var e=du(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],d=void 0===u?"":u,g="",y=e[5],L=y.split("/");if(L.length>1&&(g=L.slice(0,-1).join("/"),y=L.pop()),y){var z=y.match(/^\d+/);z&&(y=z[0])}return Dle({host:l,pass:s,path:g,projectId:y,port:d,protocol:i,publicKey:o})}(n):Dle(n);return function IQe(n){if(QT){var r=n.port,e=n.projectId,i=n.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!n[a])throw new Cs("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Cs("Invalid Sentry Dsn: Invalid projectId "+e);if(!function AQe(n){return"http"===n||"https"===n}(i))throw new Cs("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Cs("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function eC(n,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return Ole("",n,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function Ale(n,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=eC(n,r);return function ZQe(n){return function LQe(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>e?Ale(n,r-1,e):i}function Ole(n,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function PQe(){var n="function"==typeof WeakSet,r=n?new WeakSet:[];return[function e(o){if(n)return!!r.has(o)||(r.add(o),!1);for(var a=0;a<r.length;a++)if(r[a]===o)return!0;return r.push(o),!1},function i(o){if(n)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=du(o,2),s=a[0],l=a[1],u=r;if(u&&"function"==typeof u.toJSON)try{return u.toJSON()}catch(q){}if(null===r||["number","boolean","string"].includes(typeof r)&&!function NJe(n){return"number"==typeof n&&n!=n}(r))return r;var d=function RQe(n,r){try{return"domain"===n&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function ZJe(n){return KT(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+Mv(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,r);if(!d.startsWith("[object "))return d;if(0===e)return d.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},g=0,y=fW(r)||H5(r)?dle(r):r;for(var L in y)if(Object.prototype.hasOwnProperty.call(y,L)){if(g>=i){h[L]="[MaxProperties ~]";break}var z=y[L];h[L]=Ole(L,z,e-1,i,o),g+=1}return l(r),h}var Ile=[];function Ple(n){return n.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function FQe(n){var r={};return function NQe(n){var r=n.defaultIntegrations&&as(n.defaultIntegrations)||[],e=n.integrations,i=as(Ple(r));Array.isArray(e)?i=as(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),Ple(e)):"function"==typeof e&&(i=e(i),i=Array.isArray(i)?i:[i]);var o=i.map(function(s){return s.name}),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,as(i.splice(o.indexOf(a),1))),i}(n).forEach(function(e){r[e.name]=e,function BQe(n){-1===Ile.indexOf(n.name)&&(n.setupOnce(CW,fu),Ile.push(n.name),ss&&_i.log("Integration installed: "+n.name))}(e)}),j5(r,"initialized",!0),r}var Rle="Not capturing exception because it's already been captured.",UQe=function(){function n(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=J5(e.dsn))}return n.prototype.captureException=function(r,e,i){var o=this;if(!mle(r)){var a=e&&e.event_id;return this._process(this._getBackend().eventFromException(r,e).then(function(s){return o._captureEvent(s,e,i)}).then(function(s){a=s})),a}ss&&_i.log(Rle)},n.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=pW(r)?this._getBackend().eventFromMessage(String(r),e,i):this._getBackend().eventFromException(r,i);return this._process(l.then(function(u){return a._captureEvent(u,i,o)}).then(function(u){s=u})),s},n.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&mle(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}ss&&_i.log(Rle)},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?ss&&_i.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):ss&&_i.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.getTransport=function(){return this._getBackend().getTransport()},n.prototype.flush=function(r){var e=this;return this._isClientDoneProcessing(r).then(function(i){return e.getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=FQe(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return ss&&_i.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,e){var i,o,a=!1,s=!1,l=e.exception&&e.exception.values;if(l){s=!0;try{for(var u=Jm(l),d=u.next();!d.done;d=u.next()){var g=d.value.mechanism;if(g&&!1===g.handled){a=!0;break}}}catch(z){i={error:z}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}var y="ok"===r.status;(y&&0===r.errors||y&&a)&&(r.update(In(In({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var e=this;return new kv(function(i){var o=0,s=setInterval(function(){0==e._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,d=void 0===u?1e3:u,h=In(In({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:qT()),timestamp:r.timestamp||(0,JT.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var g=e;i&&i.captureContext&&(g=z5.clone(g).update(i.captureContext));var y=$b(h);return g&&(y=g.applyToEvent(h,i)),y.then(function(L){return L&&(L.sdkProcessingMetadata=In(In({},L.sdkProcessingMetadata),{normalizeDepth:eC(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(L,l,d):L})},n.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=In(In(In(In(In({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return In(In({},a),a.data&&{data:eC(a.data,e,i)})})}),r.user&&{user:eC(r.user,e,i)}),r.contexts&&{contexts:eC(r.contexts,e,i)}),r.extra&&{extra:eC(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=In(In({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},n.prototype._applyClientOptions=function(r){var e=this.getOptions(),i=e.environment,o=e.release,a=e.dist,s=e.maxValueLength,l=void 0===s?250:s;"environment"in r||(r.environment="environment"in e?i:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=sP(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=sP(u.value,l));var d=r.request;d&&d.url&&(d.url=sP(d.url,l))},n.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=as(r.sdk.integrations||[],e))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){ss&&_i.error(o)})},n.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function d(g,y){u.recordLostEvent&&u.recordLostEvent(g,y)}if(!this._isEnabled())return uP(new Cs("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(d("sample_rate","event"),uP(new Cs("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(g){if(null===g)throw d("event_processor",r.type||"event"),new Cs("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?g:function HQe(n){var r="`beforeSend` method has to return `null` or a valid event.";if(hW(n))return n.then(function(e){if(!KT(e)&&null!==e)throw new Cs(r);return e},function(e){throw new Cs("beforeSend rejected with "+e)});if(!KT(n)&&null!==n)throw new Cs(r);return n}(s(g,e))}).then(function(g){if(null===g)throw d("before_send",r.type||"event"),new Cs("`beforeSend` returned `null`, will not send event.");var y=i&&i.getSession&&i.getSession();return!h&&y&&o._updateSessionFromEvent(y,g),o._sendEvent(g),g}).then(null,function(g){throw g instanceof Cs?g:(o.captureException(g,{data:{__sentry__:!0},originalException:g}),new Cs("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+g))})},n.prototype._process=function(r){var e=this;this._numProcessing+=1,r.then(function(i){return e._numProcessing-=1,i},function(i){return e._numProcessing-=1,i})},n}();!function(){function n(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=J5(r),this.metadata=e,this._tunnel=i}n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){return DW(this._dsnObject)},n.prototype.getStoreEndpoint=function(){return Ble(this._dsnObject)},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return AW(this._dsnObject)},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return pP(this._dsnObject,this._tunnel)}}();function Q5(n,r,e){return{initDsn:n,metadata:r||{},dsn:J5(n),tunnel:e}}function DW(n){var r=n.protocol?n.protocol+":":"",e=n.port?":"+n.port:"";return r+"//"+n.host+e+(n.path?"/"+n.path:"")+"/api/"}function Zle(n,r){return""+DW(n)+n.projectId+"/"+r+"/"}function Nle(n){return function UJe(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:n.publicKey,sentry_version:"7"})}function Ble(n){return Zle(n,"store")}function AW(n){return Ble(n)+"?"+Nle(n)}function pP(n,r){return r||function jQe(n){return Zle(n,"envelope")}(n)+"?"+Nle(n)}function X5(n,r){return void 0===r&&(r=[]),[n,r]}function $5(n){var r=du(n,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=du(s,2),u=l[0],d=l[1],h=pW(d)?String(d):JSON.stringify(d);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function OW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function Fle(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=as(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=as(n.sdk.packages||[],r.packages||[])),n}function Ule(n,r){var e=OW(r),o="aggregates"in n?"sessions":"session";return[X5(In(In({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:fP(r.dsn)}),[[{type:o},n]]),o]}var eh,KQe=function(){function n(){}return n.prototype.sendEvent=function(r){return $b({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},n.prototype.close=function(r){return $b(!0)},n}(),qQe=function(){function n(r){this._options=r,this._options.dsn||ss&&_i.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,e){throw new Cs("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,e,i){throw new Cs("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function VQe(n,r){var e=OW(r),i=n.type||"event",a=(n.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return Fle(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata,X5(In(In({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:fP(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},n]])}(r,Q5(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){ss&&_i.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){ss&&_i.error("Error while sending event:",o)})},n.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=du(Ule(r,Q5(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){ss&&_i.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){ss&&_i.error("Error while sending session:",a)});else ss&&_i.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new KQe},n}();!function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(eh||(eh={}));function hP(n,r,e,i){var o={filename:n,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var tXe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nXe=/\((\S*)(?::(\d+))(?::(\d+))\)/,iXe=[30,function(r){var e=tXe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=nXe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=du(Hle(e[1]||"?",e[2]),2),s=a[0];return hP(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],oXe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aXe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lXe=[50,function(r){var e,i=oXe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=aXe.exec(i[3]);a&&(i[1]=i[1]||"eval",i[3]=a[1],i[4]=a[2],i[5]="")}var s=i[3],l=i[1]||"?";return l=(e=du(Hle(l,s),2))[0],hP(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],uXe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,dXe=[40,function(r){var e=uXe.exec(r);return e?hP(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],fXe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,hXe=[10,function(r){var e=fXe.exec(r);return e?hP(e[2],e[3]||"?",+e[1]):void 0}],mXe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,gXe=[20,function(r){var e=mXe.exec(r);return e?hP(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],Hle=function(r,e){var i=-1!==r.indexOf("safari-extension"),o=-1!==r.indexOf("safari-web-extension");return i||o?[-1!==r.indexOf("@")?r.split("@")[0]:"?",i?"safari-extension:"+e:"safari-web-extension:"+e]:[r,e]};function jle(n){var r=PW(n),e={type:n&&n.name,value:CXe(n)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function IW(n){return{exception:{values:[jle(n)]}}}function PW(n){var r=n.stacktrace||n.stack||"",e=function bXe(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(yXe.test(n.message))return 1}return 0}(n);try{return function lQe(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var e=n.sort(function(i,o){return i[0]-o[0]}).map(function(i){return i[1]});return function(i,o){var a,s,l,u;void 0===o&&(o=0);var d=[];try{for(var h=Jm(i.split("\n").slice(o)),g=h.next();!g.done;g=h.next()){var y=g.value;try{for(var L=(l=void 0,Jm(e)),z=L.next();!z.done;z=L.next()){var re=(0,z.value)(y);if(re){d.push(re);break}}}catch(ae){l={error:ae}}finally{try{z&&!z.done&&(u=L.return)&&u.call(L)}finally{if(l)throw l.error}}}}catch(ae){a={error:ae}}finally{try{g&&!g.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return uQe(d)}}(hXe,gXe,iXe,dXe,lXe)(r,e)}catch(i){}return[]}var yXe=/Minified React error #\d+;/i;function CXe(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function RW(n,r,e,i){var o;if(sle(n)&&n.error)return IW(n.error);if(lle(n)||function PJe(n){return VT(n,"DOMException")}(n)){var s=n;if("stack"in n)o=IW(n);else{var l=s.name||(lle(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;bW(o=LW(u,r,e),u)}return"code"in s&&(o.tags=In(In({},o.tags),{"DOMException.code":""+s.code})),o}return fW(n)?IW(n):KT(n)||H5(n)?(o=function vXe(n,r,e){var i={exception:{values:[{type:H5(n)?n.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+HJe(n)}]},extra:{__serialized__:Ale(n)}};if(r){var o=PW(r);o.length&&(i.stacktrace={frames:o})}return i}(n,r,i),lP(o,{synthetic:!0}),o):(bW(o=LW(n,r,e),""+n,void 0),lP(o,{synthetic:!0}),o)}function LW(n,r,e){var i={message:n};if(e&&r){var o=PW(r);o.length&&(i.stacktrace={frames:o})}return i}function Gle(n){var r=[];function i(s){return r.splice(r.indexOf(s),1)[0]}return{$:r,add:function o(s){if(!function e(){return void 0===n||r.length<n}())return uP(new Cs("Not adding Promise due to buffer limit reached."));var l=s();return-1===r.indexOf(l)&&r.push(l),l.then(function(){return i(l)}).then(null,function(){return i(l).then(null,function(){})}),l},drain:function a(s){return new kv(function(l,u){var d=r.length;if(!d)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(g){$b(g).then(function(){--d||(clearTimeout(h),l(!0))},u)})})}}}function ZW(n,r){return n[r]||n.all||0}function zle(n,r,e){return void 0===e&&(e=Date.now()),ZW(n,r)>e}function Wle(n,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=In({},n),u=r["x-sentry-rate-limits"],d=r["retry-after"];if(u)try{for(var h=Jm(u.trim().split(",")),g=h.next();!g.done;g=h.next()){var L=g.value.split(":",2),z=parseInt(L[0],10),q=1e3*(isNaN(z)?60:z);if(L[1])try{for(var re=(a=void 0,Jm(L[1].split(";"))),ae=re.next();!ae.done;ae=re.next()){l[ae.value]=e+q}}catch(Ce){a={error:Ce}}finally{try{ae&&!ae.done&&(s=re.return)&&s.call(re)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Ce){i={error:Ce}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else d&&(l.all=e+function MXe(n,r){void 0===r&&(r=Date.now());var e=parseInt(""+n,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+n);return isNaN(i)?6e4:i-r}(d,e));return l}function Vle(n){return n>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown"}function Yle(n,r,e){void 0===e&&(e=Gle(n.bufferSize||30));var i={};return{send:function a(s){var l=function zQe(n){var r=du(n,2),e=du(r[1],1);return du(e[0],1)[0].type}(s),u="event"===l?"error":l,d={category:u,body:$5(s)};return zle(i,u)?uP({status:"rate_limit",reason:Kle(i,u)}):e.add(function(){return r(d).then(function(y){var L=y.body,z=y.headers,q=y.reason,ae=Vle(y.statusCode);return z&&(i=Wle(i,z)),"success"===ae?$b({status:ae,reason:q}):uP({status:ae,reason:q||L||("rate_limit"===ae?Kle(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Kle(n,r){return"Too many "+r+" requests, backing off until: "+new Date(ZW(n,r)).toISOString()}var eF,yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hf=(0,ba.R)();function NW(){if(eF)return eF;if(SW(hf.fetch))return eF=hf.fetch.bind(hf);var n=hf.document,r=hf.fetch;if(n&&"function"==typeof n.createElement)try{var e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),n.head.removeChild(e)}catch(o){yd&&_i.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return eF=r.bind(hf)}function xXe(n,r){return"[object Navigator]"===Object.prototype.toString.call(hf&&hf.navigator)&&"function"==typeof hf.navigator.sendBeacon?hf.navigator.sendBeacon.bind(hf.navigator)(n,r):V5()?function EXe(n){n.then(null,function(r){console.error(r)})}(NW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function BW(n){return"event"===n?"error":n}var FW=(0,ba.R)(),qle=function(){function n(r){var e=this;this.options=r,this._buffer=Gle(30),this._rateLimits={},this._outcomes={},this._api=Q5(r.dsn,r._metadata,r.tunnel),this.url=AW(this._api.dsn),this.options.sendClientReports&&FW.document&&FW.document.addEventListener("visibilitychange",function(){"hidden"===FW.document.visibilityState&&e._flushOutcomes()})}return n.prototype.sendEvent=function(r){return this._sendRequest(function YQe(n,r){var d,e=OW(r),i=n.type||"event",o="transaction"===i||!!r.tunnel,s=(n.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;Fle(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata;try{d=JSON.stringify(n)}catch(q){n.tags.JSONStringifyError=!0,n.extra.JSONStringifyError=q;try{d=JSON.stringify(eC(n))}catch(re){var h=re;d=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var g={body:d,type:i,url:o?pP(r.dsn,r.tunnel):AW(r.dsn)};if(o){var z=X5(In(In({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:fP(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},g.body]]);g.body=$5(z)}return g}(r,this._api),r)},n.prototype.sendSession=function(r){return this._sendRequest(function WQe(n,r){var e=du(Ule(n,r),2),i=e[0],o=e[1];return{body:$5(i),type:o,url:pP(r.dsn,r.tunnel)}}(r,this._api),r)},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=BW(e)+":"+r;yd&&_i.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},n.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(yd&&_i.log("No outcomes to flush"));yd&&_i.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=pP(this._api.dsn,this._api.tunnel),o=function AXe(n,r,e){return X5(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,JT.yW)(),discarded_events:n}]])}(Object.keys(r).map(function(a){var s=du(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&fP(this._api.dsn));try{xXe(e,$5(o))}catch(a){yd&&_i.error(a)}}},n.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=Vle(i.status);this._rateLimits=Wle(this._rateLimits,o),this._isRateLimited(e)&&yd&&_i.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},n.prototype._disabledUntil=function(r){var e=BW(r);return new Date(ZW(this._rateLimits,e))},n.prototype._isRateLimited=function(r){var e=BW(r);return zle(this._rateLimits,e)},n}(),OXe=function(n){function r(e,i){void 0===i&&(i=NW());var o=n.call(this,e)||this;return o._fetch=i,o}return aP(r,n),r.prototype._sendRequest=function(e,i){var o=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var a={body:e.body,method:"POST",referrerPolicy:dQe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(a,this.options.fetchParameters),void 0!==this.options.headers&&(a.headers=this.options.headers),this._buffer.add(function(){return new kv(function(s,l){o._fetch(e.url,a).then(function(u){var d={"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")};o._handleResponse({requestType:e.type,response:u,headers:d,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Cs?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(qle);var RXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return aP(r,n),r.prototype._sendRequest=function(e,i){var o=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new kv(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var d={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:d,resolve:a,reject:s})}},l.open("POST",e.url),o.options.headers)Object.prototype.hasOwnProperty.call(o.options.headers,u)&&l.setRequestHeader(u,o.options.headers[u]);l.send(e.body)})}).then(void 0,function(a){throw a instanceof Cs?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(qle),LXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return aP(r,n),r.prototype.eventFromException=function(e,i){return function wXe(n,r,e){var o=RW(n,r&&r.syntheticException||void 0,e);return lP(o),o.level=eh.Error,r&&r.event_id&&(o.event_id=r.event_id),$b(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=eh.Info),function kXe(n,r,e,i){void 0===r&&(r=eh.Info);var a=LW(n,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),$b(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var e=In(In({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=Q5(e.dsn,e._metadata,e.tunnel),o=pP(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(V5()){var a=In({},e.fetchParameters);return this._newTransport=function DXe(n,r){return void 0===r&&(r=NW()),Yle({bufferSize:n.bufferSize},function e(i){var o=In({body:i.body,method:"POST",referrerPolicy:"origin"},n.requestOptions);return r(n.url,o).then(function(a){return a.text().then(function(s){return{body:s,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")},reason:a.statusText,statusCode:a.status}})})})}({requestOptions:a,url:o}),new OXe(e)}return this._newTransport=function PXe(n){return Yle({bufferSize:n.bufferSize},function r(e){return new kv(function(i,o){var a=new XMLHttpRequest;for(var s in a.onreadystatechange=function(){if(4===a.readyState){var l={body:a.response,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")},reason:a.statusText,statusCode:a.status};i(l)}},a.open("POST",n.url),n.headers)Object.prototype.hasOwnProperty.call(n.headers,s)&&a.setRequestHeader(s,n.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new RXe(e)},r}(qQe),tF=(0,ba.R)(),UW=0;function Jle(){return UW>0}function ZXe(){UW+=1,setTimeout(function(){UW-=1})}function $T(n,r,e){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(gW(n))return n}catch(l){return n}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var d=u.map(function(h){return $T(h,r)});return n.apply(this,d)}catch(h){throw ZXe(),qJe(function(g){g.addEventProcessor(function(y){return r.mechanism&&(bW(y,void 0,void 0),lP(y,r.mechanism)),y.extra=In(In({},y.extra),{arguments:u}),y}),kle(h)}),h}};try{for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}catch(l){}cle(o,n),j5(n,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return n.name}})}catch(l){}return o}function NXe(n){if(void 0===n&&(n={}),tF.document){if(!n.eventId)return void(yd&&_i.error("Missing eventId option in showReportDialog call"));if(!n.dsn)return void(yd&&_i.error("Missing dsn option in showReportDialog call"));var r=tF.document.createElement("script");r.async=!0,r.src=function GQe(n,r){var e=J5(n),i=DW(e)+"embed/error-page/",o="dsn="+fP(e);for(var a in r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&(o+="&name="+encodeURIComponent(r.user.name)),r.user.email&&(o+="&email="+encodeURIComponent(r.user.email))}else o+="&"+encodeURIComponent(a)+"="+encodeURIComponent(r[a]);return i+"?"+o}(n.dsn,n),n.onLoad&&(r.onload=n.onLoad);var e=tF.document.head||tF.document.body;e&&e.appendChild(r)}}var BXe=["fatal","error","warning","log","info","debug","critical"];function UXe(n){return"warn"===n?eh.Warning:function FXe(n){return-1!==BXe.indexOf(n)}(n)?n:eh.Log}var Qle=function(){function n(r){this.name=n.id,this._options=In({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||fu().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:Xb(r)},{event:r})},n.prototype.setupOnce=function(){this._options.console&&Sv("console",jXe),this._options.dom&&Sv("dom",function HXe(n){function r(e){var i,o="object"==typeof n?n.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?mW(e.event.target,o):mW(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&fu().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&Sv("xhr",GXe),this._options.fetch&&Sv("fetch",zXe),this._options.history&&Sv("history",WXe)},n.id="Breadcrumbs",n}();function jXe(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:UXe(n.level),message:ule(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(ule(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}fu().addBreadcrumb(r,{input:n.args,level:n.level})}function GXe(n){if(n.endTimestamp){if(n.xhr.__sentry_own_request__)return;var r=n.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;fu().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:n.xhr,input:a})}else;}function zXe(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?fu().addBreadcrumb({category:"fetch",data:n.fetchData,level:eh.Error,type:"http"},{data:n.error,input:n.args}):fu().addBreadcrumb({category:"fetch",data:In(In({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))}function WXe(n){var r=(0,ba.R)(),e=n.from,i=n.to,o=yW(r.location.href),a=yW(e),s=yW(i);a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(e=a.relative),fu().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var VXe=function(n){function r(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},n.call(this,LXe,e)||this}return aP(r,n),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,ba.R)().document){if(!this._isEnabled())return void(yd&&_i.error("Trying to call showReportDialog with Sentry Client disabled"));NXe(In(In({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",n.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(Qle);i&&i.addSentryBreadcrumb(e),n.prototype._sendEvent.call(this,e)},r}(UQe),YXe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],KXe=function(){function n(r){this.name=n.id,this._options=In({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,ba.R)();this._options.setTimeout&&Fl(r,"setTimeout",Xle),this._options.setInterval&&Fl(r,"setInterval",Xle),this._options.requestAnimationFrame&&Fl(r,"requestAnimationFrame",qXe),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Fl(XMLHttpRequest.prototype,"send",JXe);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:YXe).forEach(QXe)},n.id="TryCatch",n}();function Xle(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=$T(i,{mechanism:{data:{function:Mv(n)},handled:!0,type:"instrument"}}),n.apply(this,r)}}function qXe(n){return function(r){return n.apply(this,[$T(r,{mechanism:{data:{function:"requestAnimationFrame",handler:Mv(n)},handled:!0,type:"instrument"}})])}}function JXe(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach(function(a){a in i&&"function"==typeof i[a]&&Fl(i,a,function(s){var l={mechanism:{data:{function:a,handler:Mv(s)},handled:!0,type:"instrument"}},u=gW(s);return u&&(l.mechanism.data.handler=Mv(u)),$T(s,l)})}),n.apply(this,r)}}function QXe(n){var r=(0,ba.R)(),e=r[n]&&r[n].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Fl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=$T(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:Mv(a),target:n},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,$T(a,{mechanism:{data:{function:"addEventListener",handler:Mv(a),target:n},handled:!0,type:"instrument"}}),s])}}),Fl(e,"removeEventListener",function(i){return function(o,a,s){var l=a;try{var u=l&&l.__sentry_wrapped__;u&&i.call(this,o,u,s)}catch(d){}return i.call(this,o,l,s)}}))}var HW=function(){function n(r){this.name=n.id,this._installFunc={onerror:XXe,onunhandledrejection:$Xe},this._options=In({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(n$e(e),i(),this._installFunc[e]=void 0)}},n.id="GlobalHandlers",n}();function XXe(){Sv("error",function(n){var r=du(tue(),2),e=r[0],i=r[1];if(e.getIntegration(HW)){var o=n.msg,a=n.url,s=n.line,l=n.column,u=n.error;if(!(Jle()||u&&u.__sentry_own_request__)){var d=void 0===u&&YT(o)?function t$e(n,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=sle(n)?n.message:n,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),$le({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):$le(RW(u||o,void 0,i,!1),a,s,l);d.level=eh.Error,eue(e,u,d,"onerror")}}})}function $Xe(){Sv("unhandledrejection",function(n){var r=du(tue(),2),e=r[0],i=r[1];if(e.getIntegration(HW)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(s){}if(Jle()||o&&o.__sentry_own_request__)return!0;var a=pW(o)?function e$e(n){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n)}]}}}(o):RW(o,void 0,i,!0);a.level=eh.Error,eue(e,o,a,"onunhandledrejection")}})}function $le(n,r,e,i){var o=n.exception=n.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,g=YT(r)&&r.length>0?r:function FJe(){var n=(0,ba.R)();try{return n.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:d,filename:g,function:"?",in_app:!0,lineno:h}),n}function n$e(n){yd&&_i.log("Global Handler attached: "+n)}function eue(n,r,e,i){lP(e,{handled:!1,type:i}),n.captureEvent(e,{originalException:r})}function tue(){var n=fu(),r=n.getClient();return[n,r&&r.getOptions().attachStacktrace]}var o$e=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){CW(function(r,e){var i=fu().getIntegration(n);return i?function a$e(n,r,e,i){if(!(e.exception&&e.exception.values&&i&&wv(i.originalException,Error)))return e;var o=nue(r,i.originalException,n);return e.exception.values=as(o,e.exception.values),e}(i._key,i._limit,r,e):r})},n.id="LinkedErrors",n}();function nue(n,r,e,i){if(void 0===i&&(i=[]),!wv(r[e],Error)||i.length+1>=n)return i;var o=jle(r[e]);return nue(n,r[e],e,as([o],i))}var s$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(n);if(o){try{if(function l$e(n,r){return!!r&&!(!function u$e(n,r){var e=n.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!iue(n,r)||!rue(n,r))}(n,r)&&!function c$e(n,r){var e=oue(r),i=oue(n);return!!(e&&i&&e.type===i.type&&e.value===i.value&&iue(n,r)&&rue(n,r))}(n,r))}(i,o._previousEvent))return yd&&_i.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.id="Dedupe",n}();function rue(n,r){var e=aue(n),i=aue(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||i.length!==e.length)return!1;for(var o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function iue(n,r){var e=n.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;try{return e.join("")===i.join("")}catch(o){return!1}}function oue(n){return n.exception&&n.exception.values&&n.exception.values[0]}function aue(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(n.stacktrace)return n.stacktrace.frames}var tC=(0,ba.R)(),d$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){CW(function(r){if(fu().getIntegration(n)){if(!tC.navigator&&!tC.location&&!tC.document)return r;var e=r.request&&r.request.url||tC.location&&tC.location.href,i=(tC.document||{}).referrer,o=(tC.navigator||{}).userAgent,a=In(In(In({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=In(In({},e&&{url:e}),{headers:a});return In(In({},r),{request:s})}return r})},n.id="UserAgent",n}(),f$e=[new QJe,new oQe,new KXe,new Qle,new HW,new o$e,new s$e,new d$e];function sue(n){n.startSession({ignoreDuration:!0}),n.captureSession()}!function p$e(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=f$e),void 0===n.release){var r=(0,ba.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),void 0===n.sendClientReports&&(n.sendClientReports=!0),function aQe(n,r){!0===r.debug&&(ss?_i.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=fu(),i=e.getScope();i&&i.update(r.initialScope);var o=new n(r);e.bindClient(o)}(VXe,n),n.autoSessionTracking&&function h$e(){if(void 0===(0,ba.R)().document)return void(yd&&_i.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=fu();!e.captureSession||(sue(e),Sv("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||sue(fu())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var eM=function(){function n(r){(0,B.Z)(this,n),this.injector=r}return(0,U.Z)(n,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof fc.UA?e.error instanceof Error?e.error:e.error instanceof ErrorEvent?e.error.message:"string"==typeof e.error?"Server returned code ".concat(e.status,' with body "').concat(e.error,'"'):e.message:null}},{key:"handleError",value:function(e){var i=this.extractError(e)||"Handled unknown error";kle(i);ja.N.production||console.error(i)}}]),n}();eM.\u0275fac=function(r){return new(r||eM)(t.LFG(t.zs3))},eM.\u0275prov=t.Yz7({token:eM,factory:eM.\u0275fac});var nC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"handleError",value:function(o){if(o.error&&o.error.status&&!(400===o.error.status||403===o.error.status||404===o.error.status||409===o.error.status)&&(0,Ut.Z)((0,Wt.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get(Zn);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(eM);nC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nC)))(e||nC)}}(),nC.\u0275prov=t.Yz7({token:nC,factory:nC.\u0275fac});var mP=function(){function n(){(0,B.Z)(this,n)}return(0,U.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.projectDatabase.data.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();mP.\u0275fac=function(r){return new(r||mP)},mP.\u0275pipe=t.Yjl({name:"projectsfilter",type:mP,pure:!0});var lue=["*"],_$e=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],y$e=function(){function n(){(0,B.Z)(this,n),this.columnIndex=0,this.rowIndex=0}return(0,U.Z)(n,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,cn.Z)(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}},{key:"update",value:function(e,i){var o=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=i.map(function(a){return o._trackTile(a)})}},{key:"_trackTile",value:function(e){var i=this._findMatchingGap(e.colspan);return this._markTilePosition(i,e),this.columnIndex=i+e.colspan,new b$e(this.rowIndex,i)}},{key:"_findMatchingGap",value:function(e){this.tracker.length;var i=-1,o=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i)):-1!=(i=this.tracker.indexOf(0,this.columnIndex))?(o=this._findGapEndIndex(i),this.columnIndex=i+1):(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i))}while(o-i<e||0==o);return Math.max(i,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var i=e+1;i<this.tracker.length;i++)if(0!=this.tracker[i])return i;return this.tracker.length}},{key:"_markTilePosition",value:function(e,i){for(var o=0;o<i.colspan;o++)this.tracker[e+o]=i.rowspan}}]),n}(),b$e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.row=r,this.col=e}),uue=new t.OlP("MAT_GRID_LIST"),_P=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,U.Z)(n,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,En.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,En.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),n}();_P.\u0275fac=function(r){return new(r||_P)(t.Y36(t.SBq),t.Y36(uue,8))},_P.\u0275cmp=t.Xpm({type:_P,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&t.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:lue,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var nF=function(){function n(r){(0,B.Z)(this,n),this._element=r}return(0,U.Z)(n,[{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}}]),n}();nF.\u0275fac=function(r){return new(r||nF)(t.Y36(t.SBq))},nF.\u0275cmp=t.Xpm({type:nF,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Gt.X2,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lines=o))},ngContentSelectors:["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(r,e){1&r&&(t.F$t(_$e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var rF=(0,U.Z)(function n(){(0,B.Z)(this,n)});rF.\u0275fac=function(r){return new(r||rF)},rF.\u0275dir=t.lG2({type:rF,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var iF=(0,U.Z)(function n(){(0,B.Z)(this,n)});iF.\u0275fac=function(r){return new(r||iF)},iF.\u0275dir=t.lG2({type:iF,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var oF=(0,U.Z)(function n(){(0,B.Z)(this,n)});oF.\u0275fac=function(r){return new(r||oF)},oF.\u0275dir=t.lG2({type:oF,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var C$e=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,jW=function(){function n(){(0,B.Z)(this,n),this._rows=0,this._rowspan=0}return(0,U.Z)(n,[{key:"init",value:function(e,i,o,a){this._gutterSize=cue(e),this._rows=i.rowCount,this._rowspan=i.rowspan,this._cols=o,this._direction=a}},{key:"getBaseTileSize",value:function(e,i){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(i,"))")}},{key:"getTilePosition",value:function(e,i){return 0===i?"0":rC("(".concat(e," + ").concat(this._gutterSize,") * ").concat(i))}},{key:"getTileSize",value:function(e,i){return"(".concat(e," * ").concat(i,") + (").concat(i-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,i,o){var a=100/this._cols,s=(this._cols-1)/this._cols;this.setColStyles(e,o,a,s),this.setRowStyles(e,i,a,s)}},{key:"setColStyles",value:function(e,i,o,a){var s=this.getBaseTileSize(o,a),l="rtl"===this._direction?"right":"left";e._setStyle(l,this.getTilePosition(s,i)),e._setStyle("width",rC(this.getTileSize(s,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),n}(),w$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,U.Z)(e,[{key:"init",value:function(o,a,s,l){(0,Ut.Z)((0,Wt.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=cue(this.fixedRowHeight),C$e.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(o,a){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,a)),o._setStyle("height",rC(this.getTileSize(this.fixedRowHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",rC("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["height",null]),o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(jW),k$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,B.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,U.Z)(e,[{key:"setRowStyles",value:function(o,a,s,l){var u=s/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(u,l),o._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,a)),o._setStyle("paddingTop",rC(this.getTileSize(this.baseTileHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",rC("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["paddingBottom",null]),o._tiles.forEach(function(a){a._setStyle("marginTop",null),a._setStyle("paddingTop",null)})}},{key:"_parseRatio",value:function(o){var a=o.split(":");a.length,this.rowHeightRatio=parseFloat(a[0])/parseFloat(a[1])}}]),e}(jW),T$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"setRowStyles",value:function(o,a){var s=100/this._rowspan,l=(this._rows-1)/this._rows,u=this.getBaseTileSize(s,l);o._setStyle("top",this.getTilePosition(u,a)),o._setStyle("height",rC(this.getTileSize(u,o.rowspan)))}},{key:"reset",value:function(o){o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(jW);function rC(n){return"calc(".concat(n,")")}function cue(n){return n.match(/([A-Za-z%]+)$/)?n:"".concat(n,"px")}var gP=function(){function n(r,e){(0,B.Z)(this,n),this._element=r,this._dir=e,this._gutter="1px"}return(0,U.Z)(n,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,En.su)(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var i="".concat(null==e?"":e);i!==this._rowHeight&&(this._rowHeight=i,this._setTileStyler(this._rowHeight))}},{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){this.cols}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),"fit"===e?this._tileStyler=new T$e:e&&e.indexOf(":")>-1?this._tileStyler=new k$e(e):this._tileStyler=new w$e(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new y$e);var i=this._tileCoordinator,o=this._tiles.filter(function(s){return!s._gridList||s._gridList===e}),a=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,o),this._tileStyler.init(this.gutterSize,i,this.cols,a),o.forEach(function(s,l){var u=i.positions[l];e._tileStyler.setStyle(s,u.row,u.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}]),n}();gP.\u0275fac=function(r){return new(r||gP)(t.Y36(t.SBq),t.Y36(nl.Is,8))},gP.\u0275cmp=t.Xpm({type:gP,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,_P,5),2&r)&&(t.iGM(o=t.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:uue,useExisting:gP}])],ngContentSelectors:lue,decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var tM=(0,U.Z)(function n(){(0,B.Z)(this,n)});tM.\u0275fac=function(r){return new(r||tM)},tM.\u0275mod=t.oAB({type:tM}),tM.\u0275inj=t.cJS({imports:[Gt.uc,Gt.BQ,Gt.uc,Gt.BQ]});var nM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,B.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,U.Z)(e,[{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,Gt.sb)((0,Gt.Id)(cu)));nM.\u0275fac=function(r){return new(r||nM)(t.Y36(t.SBq),t.Y36(Ju),t.$8M("tabindex"))},nM.\u0275dir=t.lG2({type:nM,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:cu,useExisting:nM}]),t.qOj]});var iC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Km);iC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(iC)))(e||iC)}}(),iC.\u0275dir=t.lG2({type:iC,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:Km,useExisting:iC}]),t.qOj]});var Ev=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,B.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,U.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(o){this._tabIndex=null!=o?o:0}},{key:"ngOnInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}($p);Ev.\u0275fac=function(r){return new(r||Ev)(t.Y36(t.SBq),t.Y36(Ju),t.Y36(t.ZZ4),t.$8M("tabindex"))},Ev.\u0275dir=t.lG2({type:Ev,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:$p,useExisting:Ev},{provide:cu,useExisting:Ev},{provide:F5,useExisting:Ev}]),t.qOj]});var oC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e,[{key:"level",get:function(){return this._level},set:function(o){this._setLevelInput(o)}},{key:"indent",get:function(){return this._indent},set:function(o){this._setIndentInput(o)}}]),e}(Kb);oC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(oC)))(e||oC)}}(),oC.\u0275dir=t.lG2({type:oC,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[t._Bn([{provide:Kb,useExisting:oC}]),t.qOj]});var xv=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.viewContainer=r,this._node=e});xv.\u0275fac=function(r){return new(r||xv)(t.Y36(t.s_b),t.Y36(F5,8))},xv.\u0275dir=t.lG2({type:xv,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:Xp,useExisting:xv}])]});var aC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Ju);aC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(aC)))(e||aC)}}(),aC.\u0275cmp=t.Xpm({type:aC,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(xv,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:Ju,useExisting:aC}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[xv],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});var sC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(Cv);sC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sC)))(e||sC)}}(),sC.\u0275dir=t.lG2({type:sC,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:Cv,useExisting:sC}]),t.qOj]});var rM=(0,U.Z)(function n(){(0,B.Z)(this,n)});rM.\u0275fac=function(r){return new(r||rM)},rM.\u0275mod=t.oAB({type:rM}),rM.\u0275inj=t.cJS({imports:[qb,Gt.BQ,Gt.BQ]});Si.o2,Si.o2;var E$e=[cT,pm,Pg,ck,xT,Og,kn.lN,dk,bk,Sk,Lk,ak,W0,ob,mk,gk,pT,di.LD,G0,Rk,kk,tM,Fi.Nh,rM,Db,ST],lC=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),ja.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof Jd&&(gtag("set","page",i.url),gtag("send","pageview"))})});lC.\u0275fac=function(r){return new(r||lC)(t.LFG(ur),t.LFG(Gm.g))},lC.\u0275prov=t.Yz7({token:lC,factory:lC.\u0275fac});var iM=function(){function n(r){(0,B.Z)(this,n),this.httpController=r}return(0,U.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/settings")}},{key:"update",value:function(e,i){return this.httpController.post(e,"/settings",i)}},{key:"getSettingsForQemu",value:function(e){return this.httpController.get(e,"/settings/qemu")}},{key:"updateSettingsForQemu",value:function(e,i){return this.httpController.put(e,"/settings/qemu",{enable_hardware_acceleration:i.enable_hardware_acceleration,require_hardware_acceleration:i.require_hardware_acceleration})}}]),n}();iM.\u0275fac=function(r){return new(r||iM)(t.LFG(ho.zw))},iM.\u0275prov=t.Yz7({token:iM,factory:iM.\u0275fac});var oM=function(){function n(r,e){(0,B.Z)(this,n),this.controllerService=r,this.loginService=e}return(0,U.Z)(n,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,ed.K)(function(a){if(401!==a.status&&403!==a.status)return(0,O0._)(a);o.call()}))}},{key:"call",value:function(){var e;return wi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,d.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=d.sent).tokenExpired=!0,d.next=8,this.controllerService.update(s);case 8:if(d.prev=8,!o||!o.isRememberMe){d.next=20;break}return d.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=d.sent,s.authToken=l.access_token,s.tokenExpired=!1,d.next=17,this.controllerService.update(s);case 17:return d.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:d.next=25;break;case 22:throw d.prev=22,d.t0=d.catch(8),d.t0;case 25:case"end":return d.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),n}();oM.\u0275fac=function(r){return new(r||oM)(t.LFG(or),t.LFG(_m))},oM.\u0275prov=t.Yz7({token:oM,factory:oM.\u0275fac});var x$e=["input"],D$e=function(r){return{enterDuration:r}},O$e=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),I$e=0,P$e={provide:J.JU,useExisting:(0,t.Gpc)(function(){return vP}),multi:!0},R$e=(0,U.Z)(function n(r,e){(0,B.Z)(this,n),this.source=r,this.checked=e}),L$e=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,U.Z)(function n(r){(0,B.Z)(this,n),this._elementRef=r})}())))),aF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,B.Z)(this,e),(h=r.call(this,i))._focusMonitor=o,h._changeDetectorRef=a,h.defaults=l,h._onChange=function(g){},h._onTouched=function(){},h._required=!1,h._checked=!1,h.name=null,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new t.vpe,h.toggleChange=new t.vpe,h.tabIndex=parseInt(s)||0,h.color=h.defaultColor=l.color||"accent",h._noopAnimations="NoopAnimations"===u,h.id=h._uniqueId="".concat(d).concat(++I$e),h}return(0,U.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,En.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,En.Ig)(o),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){"keyboard"===a||"program"===a?o._focused=!0:a||Promise.resolve().then(function(){o._focused=!1,o._onTouched(),o._changeDetectorRef.markForCheck()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this._changeDetectorRef.markForCheck()}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}]),e}(L$e);aF.\u0275fac=function(r){t.$Z()},aF.\u0275dir=t.lG2({type:aF,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]});var vP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){return(0,B.Z)(this,e),r.call(this,i,o,a,s,l,u,"mat-slide-toggle-")}return(0,U.Z)(e,[{key:"_createChangeEvent",value:function(o){return new R$e(this,o)}},{key:"_onChangeEvent",value:function(o){o.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(o){o.stopPropagation()}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(aF);vP.\u0275fac=function(r){return new(r||vP)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(O$e),t.Y36(t.QbO,8))},vP.\u0275cmp=t.Xpm({type:vP,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(x$e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([P$e]),t.qOj],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["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"],[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(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()()(),t.TgZ(9,"span",9,10),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(11,"span",11),t._uU(12,"\xa0"),t.qZA(),t.Hsn(13),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(10);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),t.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(4),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,D$e,e._noopAnimations?0:150))}},dependencies:[Gt.wG,FB.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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;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%;display:block}.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}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0});var Z$e={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return aM}),multi:!0},aM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,B.Z)(this,e),r.apply(this,arguments)}return(0,U.Z)(e)}(J.Zs);aM.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(aM)))(e||aM)}}(),aM.\u0275dir=t.lG2({type:aM,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([Z$e]),t.qOj]});var uC=(0,U.Z)(function n(){(0,B.Z)(this,n)});uC.\u0275fac=function(r){return new(r||uC)},uC.\u0275mod=t.oAB({type:uC}),uC.\u0275inj=t.cJS({});var sM=(0,U.Z)(function n(){(0,B.Z)(this,n)});sM.\u0275fac=function(r){return new(r||sM)},sM.\u0275mod=t.oAB({type:sM}),sM.\u0275inj=t.cJS({imports:[uC,Gt.si,Gt.BQ,FB.Q8,uC,Gt.BQ]});var lM=(0,U.Z)(function n(r){(0,B.Z)(this,n),this._googleAnalyticsService=r});lM.\u0275fac=function(r){return new(r||lM)(t.LFG(lC))},lM.\u0275mod=t.oAB({type:lM,bootstrap:[oP]}),lM.\u0275inj=t.cJS({providers:[Gm.g,{provide:t.qLn,useClass:nC},{provide:fc.TP,useClass:oM,multi:!0},gm,uG,Ws.Y,Op,or,Xd,Fr,pl,Wa,ho.zw,Ym,mv,Zn,El,fv,Hm.F,za.G,Qb,_v,Ll,xb,ya,ho.CJ,Dp,Ku,Yp,iM,Gu,Am,Al,xm,su,sd,$0,X0,Q0,Mm,Em,Ng,Om,kc,Dm,Bg,id,Ip,ld,Lg,L5.p,gv,sf,vv,Gb,Ub,uf,av,fl,Ab,Qd.X,sv,Hb,wc.f,lC,uu,vd,Ur,Vb,ni,Ib,zb,_m,Bl],imports:[na,fc.JF,jT,J.u5,J.UX,V1,Qf,WT,Vw,Ww,pc,kn.lN,Pg,KY.ym,Q1,J_,Hne,E$e,Gw.forRoot(),Li.U8,sM,ob,DT,J0,qb]}),t.B6R(CT,function(){return[le.O5,js,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,fn,Dn,qn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,qu,cf,mi]},function(){return[mP]}),ja.N.production&&(0,t.G48)(),wa().bootstrapModule(lM).then(function(n){!function ra(n){return So(ca,new Vi(n)),n}(n.injector.get(t.z2F).components[0])}).catch(function(n){return console.log(n)})},7312:function(Ae,K,m){"use strict";m.d(K,{R:function(){return A},Y:function(){return H}});var G=m(3295),W={};function A(){return(0,G.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:W}function H(P,I,T){var E=T||A(),j=E.__SENTRY__=E.__SENTRY__||{};return j[P]||(j[P]=I())}},3295:function(Ae,K,m){"use strict";function W(){return!function G(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function A(P,I){return P.require(I)}m.d(K,{l$:function(){return A},KV:function(){return W}}),Ae=m.hmd(Ae)},3169:function(Ae,K,m){"use strict";m.d(K,{ph:function(){return j},yW:function(){return E}});var G=m(7312),W=m(3295);Ae=m.hmd(Ae);var A={nowSeconds:function(){return Date.now()/1e3}};var I=(0,W.KV)()?function P(){try{return(0,W.l$)(Ae,"perf_hooks").performance}catch(D){return}}():function H(){var Z=(0,G.R)().performance;if(Z&&Z.now)return{now:function(){return Z.now()},timeOrigin:Date.now()-Z.now()}}(),T=void 0===I?A:{nowSeconds:function(){return(I.timeOrigin+I.now())/1e3}},E=A.nowSeconds.bind(A),j=T.nowSeconds.bind(T);!function(){var Z=(0,G.R)().performance;if(Z&&Z.now){var D=36e5,b=Z.now(),S=Date.now(),k=Z.timeOrigin?Math.abs(Z.timeOrigin+b-S):D,M=k<D,N=Z.timing&&Z.timing.navigationStart,X="number"==typeof N?Math.abs(N+b-S):D;return M||X<D?k<=X?("timeOrigin",Z.timeOrigin):("navigationStart",N):("dateNow",S)}"none"}()},2072:function(Ae,K,m){"use strict";m.d(K,{E$:function(){return Ze},ym:function(){return pn}});var G=m(7685),W=m(5671),A=m(3144),H=m(9808),P=m(5e3),I=m(8929),T=m(6787),E=m(8896),j=m(7451),R=m(3753),v=m(2994),x=m(8117),w=m(1059),Z=m(4850),D=m(7545),b=m(7568),S=m(7625),k=m(1709),M=m(2986),N=m(519),F=m(9664),X="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function $(rt,Ot){var _t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Ct=Math.abs(rt-Ot);return Ct<_t}function V(rt,Ot,_t,Ct){var Ve={top:rt.top,bottom:rt.bottom,left:rt.left,right:rt.right};return Ot.top&&(Ve.top+=Ct),Ot.bottom&&(Ve.bottom+=Ct),Ot.left&&(Ve.left+=_t),Ot.right&&(Ve.right+=_t),Ve.height=Ve.bottom-Ve.top,Ve.width=Ve.right-Ve.left,Ve}function te(rt){var Ot=rt.clientY,_t=rt.rect;return Ot>=_t.top&&Ot<=_t.bottom}function be(rt){var Ot=rt.clientX,_t=rt.rect;return Ot>=_t.left&&Ot<=_t.right}function pe(rt){var Ot=rt.clientX,_t=rt.clientY,Ct=rt.elm,Ve=rt.allowedEdges,at=rt.cursorPrecision,ht=Ct.nativeElement.getBoundingClientRect(),Ut={};return Ve.left&&$(Ot,ht.left,at)&&te({clientY:_t,rect:ht})&&(Ut.left=!0),Ve.right&&$(Ot,ht.right,at)&&te({clientY:_t,rect:ht})&&(Ut.right=!0),Ve.top&&$(_t,ht.top,at)&&be({clientX:Ot,rect:ht})&&(Ut.top=!0),Ve.bottom&&$(_t,ht.bottom,at)&&be({clientX:Ot,rect:ht})&&(Ut.bottom=!0),Ut}var fe=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function ue(rt,Ot){return rt.left&&rt.top?Ot.topLeft:rt.right&&rt.top?Ot.topRight:rt.left&&rt.bottom?Ot.bottomLeft:rt.right&&rt.bottom?Ot.bottomRight:rt.left||rt.right?Ot.leftOrRight:rt.top||rt.bottom?Ot.topOrBottom:""}function de(rt){var Ot=rt.edges,_t=rt.initialRectangle,Ct=rt.newRectangle,Ve={};return Object.keys(Ot).forEach(function(at){Ve[at]=(Ct[at]||0)-(_t[at]||0)}),Ve}var ge="resize-active",Ze=function(){function rt(Ot,_t,Ct,Ve){(0,W.Z)(this,rt),this.platformId=Ot,this.renderer=_t,this.elm=Ct,this.zone=Ve,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=fe,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new P.vpe,this.resizing=new P.vpe,this.resizeEnd=new P.vpe,this.mouseup=new I.xQ,this.mousedown=new I.xQ,this.mousemove=new I.xQ,this.destroy$=new I.xQ,this.resizeEdges$=new I.xQ,this.pointerEventListeners=$t.getInstance(_t,Ve)}return(0,A.Z)(rt,[{key:"ngOnInit",value:function(){var ht,_t=this,Ct=(0,T.T)(this.pointerEventListeners.pointerDown,this.mousedown),Ve=(0,T.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,v.b)(function(B){var qe=B.event;if(ht)try{qe.preventDefault()}catch(Be){}}),(0,x.B)()),at=(0,T.T)(this.pointerEventListeners.pointerUp,this.mouseup),Ut=function(){ht&&ht.clonedNode&&(_t.elm.nativeElement.parentElement.removeChild(ht.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","inherit"))},Wt=function(){return Object.assign({},fe,_t.resizeCursors)};this.resizeEdges$.pipe((0,w.O)(this.resizeEdges),(0,Z.U)(function(){return _t.resizeEdges&&Object.keys(_t.resizeEdges).some(function(B){return!!_t.resizeEdges[B]})}),(0,D.w)(function(B){return B?Ve:E.E}),(0,b.e)(this.mouseMoveThrottleMS),(0,S.R)(this.destroy$)).subscribe(function(B){var le=pe({clientX:B.clientX,clientY:B.clientY,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision}),t=Wt();if(!ht){var Lt=ue(le,t);_t.renderer.setStyle(_t.elm.nativeElement,"cursor",Lt)}_t.setElementClass(_t.elm,"resize-left-hover",!0===le.left),_t.setElementClass(_t.elm,"resize-right-hover",!0===le.right),_t.setElementClass(_t.elm,"resize-top-hover",!0===le.top),_t.setElementClass(_t.elm,"resize-bottom-hover",!0===le.bottom)}),Ct.pipe((0,k.zg)(function(B){function qe(t){return{clientX:t.clientX-B.clientX,clientY:t.clientY-B.clientY}}var Be=function(){var Lt={x:1,y:1};return ht&&(_t.resizeSnapGrid.left&&ht.edges.left?Lt.x=+_t.resizeSnapGrid.left:_t.resizeSnapGrid.right&&ht.edges.right&&(Lt.x=+_t.resizeSnapGrid.right),_t.resizeSnapGrid.top&&ht.edges.top?Lt.y=+_t.resizeSnapGrid.top:_t.resizeSnapGrid.bottom&&ht.edges.bottom&&(Lt.y=+_t.resizeSnapGrid.bottom)),Lt};function le(t,Lt){return{x:Math.ceil(t.clientX/Lt.x),y:Math.ceil(t.clientY/Lt.y)}}return(0,T.T)(Ve.pipe((0,M.q)(1)).pipe((0,Z.U)(function(t){return[,t]})),Ve.pipe((0,N.G)())).pipe((0,Z.U)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];return[zt&&qe(zt),qe(an)]})).pipe((0,F.h)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];if(!zt)return!0;var Qt=Be(),vn=le(zt,Qt),Vt=le(an,Qt);return vn.x!==Vt.x||vn.y!==Vt.y})).pipe((0,Z.U)(function(t){var zt=(0,G.Z)(t,2)[1],an=Be();return{clientX:Math.round(zt.clientX/an.x)*an.x,clientY:Math.round(zt.clientY/an.y)*an.y}})).pipe((0,S.R)((0,T.T)(at,Ct)))})).pipe((0,F.h)(function(){return!!ht})).pipe((0,Z.U)(function(B){var qe=B.clientX,Be=B.clientY;return V(ht.startingRect,ht.edges,qe,Be)})).pipe((0,F.h)(function(B){return _t.allowNegativeResizes||!!(B.height&&B.width&&B.height>0&&B.width>0)})).pipe((0,F.h)(function(B){return!_t.validateResize||_t.validateResize({rectangle:B,edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:B})})}),(0,S.R)(this.destroy$)).subscribe(function(B){ht&&ht.clonedNode&&(_t.renderer.setStyle(ht.clonedNode,"height","".concat(B.height,"px")),_t.renderer.setStyle(ht.clonedNode,"width","".concat(B.width,"px")),_t.renderer.setStyle(ht.clonedNode,"top","".concat(B.top,"px")),_t.renderer.setStyle(ht.clonedNode,"left","".concat(B.left,"px"))),_t.resizing.observers.length>0&&_t.zone.run(function(){_t.resizing.emit({edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:B}),rectangle:B})}),ht.currentRect=B}),Ct.pipe((0,Z.U)(function(B){var qe=B.clientX,Be=B.clientY;return B.edges||pe({clientX:qe,clientY:Be,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision})})).pipe((0,F.h)(function(B){return Object.keys(B).length>0}),(0,S.R)(this.destroy$)).subscribe(function(B){ht&&Ut();var qe=function Q(rt,Ot){var _t=0,Ct=0,Ve=rt.nativeElement.style,ht=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Wt){return Ve[Wt]}).find(function(Wt){return!!Wt});if(ht&&ht.includes("translate")&&(_t=ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Ct=ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Ot)return{height:rt.nativeElement.offsetHeight,width:rt.nativeElement.offsetWidth,top:rt.nativeElement.offsetTop-Ct,bottom:rt.nativeElement.offsetHeight+rt.nativeElement.offsetTop-Ct,left:rt.nativeElement.offsetLeft-_t,right:rt.nativeElement.offsetWidth+rt.nativeElement.offsetLeft-_t};var Ut=rt.nativeElement.getBoundingClientRect();return{height:Ut.height,width:Ut.width,top:Ut.top-Ct,bottom:Ut.bottom-Ct,left:Ut.left-_t,right:Ut.right-_t,scrollTop:rt.nativeElement.scrollTop,scrollLeft:rt.nativeElement.scrollLeft}}(_t.elm,_t.ghostElementPositioning);ht={edges:B,startingRect:qe,currentRect:qe};var Be=Wt(),le=ue(ht.edges,Be);_t.renderer.setStyle(document.body,"cursor",le),_t.setElementClass(_t.elm,ge,!0),_t.enableGhostResize&&(ht.clonedNode=_t.elm.nativeElement.cloneNode(!0),_t.elm.nativeElement.parentElement.appendChild(ht.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","hidden"),_t.renderer.setStyle(ht.clonedNode,"position",_t.ghostElementPositioning),_t.renderer.setStyle(ht.clonedNode,"left","".concat(ht.startingRect.left,"px")),_t.renderer.setStyle(ht.clonedNode,"top","".concat(ht.startingRect.top,"px")),_t.renderer.setStyle(ht.clonedNode,"height","".concat(ht.startingRect.height,"px")),_t.renderer.setStyle(ht.clonedNode,"width","".concat(ht.startingRect.width,"px")),_t.renderer.setStyle(ht.clonedNode,"cursor",ue(ht.edges,Be)),_t.renderer.addClass(ht.clonedNode,"resize-ghost-element"),ht.clonedNode.scrollTop=ht.startingRect.scrollTop,ht.clonedNode.scrollLeft=ht.startingRect.scrollLeft),_t.resizeStart.observers.length>0&&_t.zone.run(function(){_t.resizeStart.emit({edges:de({edges:B,initialRectangle:qe,newRectangle:qe}),rectangle:V(qe,{},0,0)})})}),at.pipe((0,S.R)(this.destroy$)).subscribe(function(){ht&&(_t.renderer.removeClass(_t.elm.nativeElement,ge),_t.renderer.setStyle(document.body,"cursor",""),_t.renderer.setStyle(_t.elm.nativeElement,"cursor",""),_t.resizeEnd.observers.length>0&&_t.zone.run(function(){_t.resizeEnd.emit({edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:ht.currentRect}),rectangle:ht.currentRect})}),Ut(),ht=null)})}},{key:"ngOnChanges",value:function(_t){_t.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,H.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(_t,Ct,Ve){Ve?this.renderer.addClass(_t.nativeElement,Ct):this.renderer.removeClass(_t.nativeElement,Ct)}}]),rt}();Ze.\u0275fac=function(Ot){return new(Ot||Ze)(P.Y36(P.Lbi),P.Y36(P.Qsj),P.Y36(P.SBq),P.Y36(P.R0b))},Ze.\u0275dir=P.lG2({type:Ze,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[P.TTD]}),Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.tBr,args:[P.Lbi]}]},{type:P.Qsj},{type:P.SBq},{type:P.R0b}]},Ze.propDecorators={validateResize:[{type:P.IIB}],resizeEdges:[{type:P.IIB}],enableGhostResize:[{type:P.IIB}],resizeSnapGrid:[{type:P.IIB}],resizeCursors:[{type:P.IIB}],resizeCursorPrecision:[{type:P.IIB}],ghostElementPositioning:[{type:P.IIB}],allowNegativeResizes:[{type:P.IIB}],mouseMoveThrottleMS:[{type:P.IIB}],resizeStart:[{type:P.r_U}],resizing:[{type:P.r_U}],resizeEnd:[{type:P.r_U}]};var $t=function(){function rt(Ot,_t){(0,W.Z)(this,rt),this.pointerDown=new j.y(function(Ct){var Ve,at;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mousedown",function(ht){Ct.next({clientX:ht.clientX,clientY:ht.clientY,event:ht})}),X&&(at=Ot.listen("document","touchstart",function(ht){Ct.next({clientX:ht.touches[0].clientX,clientY:ht.touches[0].clientY,event:ht})}))}),function(){Ve(),X&&at()}}).pipe((0,x.B)()),this.pointerMove=new j.y(function(Ct){var Ve,at;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mousemove",function(ht){Ct.next({clientX:ht.clientX,clientY:ht.clientY,event:ht})}),X&&(at=Ot.listen("document","touchmove",function(ht){Ct.next({clientX:ht.targetTouches[0].clientX,clientY:ht.targetTouches[0].clientY,event:ht})}))}),function(){Ve(),X&&at()}}).pipe((0,x.B)()),this.pointerUp=new j.y(function(Ct){var Ve,at,ht;return _t.runOutsideAngular(function(){Ve=Ot.listen("document","mouseup",function(Ut){Ct.next({clientX:Ut.clientX,clientY:Ut.clientY,event:Ut})}),X&&(at=Ot.listen("document","touchend",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}),ht=Ot.listen("document","touchcancel",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}))}),function(){Ve(),X&&(at(),ht())}}).pipe((0,x.B)())}return(0,A.Z)(rt,null,[{key:"getInstance",value:function(_t,Ct){return rt.instance||(rt.instance=new rt(_t,Ct)),rt.instance}}]),rt}(),Ft=function(){function rt(Ot,_t,Ct,Ve){(0,W.Z)(this,rt),this.renderer=Ot,this.element=_t,this.zone=Ct,this.resizableDirective=Ve,this.resizeEdges={},this.eventListeners={},this.destroy$=new I.xQ}return(0,A.Z)(rt,[{key:"ngOnInit",value:function(){var _t=this;this.zone.runOutsideAngular(function(){_t.listenOnTheHost("mousedown").subscribe(function(Ct){_t.onMousedown(Ct,Ct.clientX,Ct.clientY)}),_t.listenOnTheHost("mouseup").subscribe(function(Ct){_t.onMouseup(Ct.clientX,Ct.clientY)}),X&&(_t.listenOnTheHost("touchstart").subscribe(function(Ct){_t.onMousedown(Ct,Ct.touches[0].clientX,Ct.touches[0].clientY)}),(0,T.T)(_t.listenOnTheHost("touchend"),_t.listenOnTheHost("touchcancel")).subscribe(function(Ct){_t.onMouseup(Ct.changedTouches[0].clientX,Ct.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(_t,Ct,Ve){var at=this;_t.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(ht){at.onMousemove(ht,ht.targetTouches[0].clientX,ht.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(ht){at.onMousemove(ht,ht.clientX,ht.clientY)})),this.resizable.mousedown.next({clientX:Ct,clientY:Ve,edges:this.resizeEdges})}},{key:"onMouseup",value:function(_t,Ct){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:_t,clientY:Ct,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(_t,Ct,Ve){this.resizable.mousemove.next({clientX:Ct,clientY:Ve,edges:this.resizeEdges,event:_t})}},{key:"unsubscribeEventListeners",value:function(){var _t=this;Object.keys(this.eventListeners).forEach(function(Ct){_t.eventListeners[Ct](),delete _t.eventListeners[Ct]})}},{key:"listenOnTheHost",value:function(_t){return(0,R.R)(this.element.nativeElement,_t).pipe((0,S.R)(this.destroy$))}}]),rt}();Ft.\u0275fac=function(Ot){return new(Ot||Ft)(P.Y36(P.Qsj),P.Y36(P.SBq),P.Y36(P.R0b),P.Y36(Ze,8))},Ft.\u0275dir=P.lG2({type:Ft,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Ft.ctorParameters=function(){return[{type:P.Qsj},{type:P.SBq},{type:P.R0b},{type:Ze,decorators:[{type:P.FiY}]}]},Ft.propDecorators={resizeEdges:[{type:P.IIB}],resizableContainer:[{type:P.IIB}]};var pn=(0,A.Z)(function rt(){(0,W.Z)(this,rt)});pn.\u0275fac=function(Ot){return new(Ot||pn)},pn.\u0275mod=P.oAB({type:pn}),pn.\u0275inj=P.cJS({})},7521:function(Ae,K,m){var G;!function(W,A,H){if(W){for(var j,P={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},I={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},E={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},R=1;R<20;++R)P[111+R]="f"+R;for(R=0;R<=9;++R)P[R+96]=R.toString();$.prototype.bind=function(V,Q,te){return V=V instanceof Array?V:[V],this._bindMultiple.call(this,V,Q,te),this},$.prototype.unbind=function(V,Q){return this.bind.call(this,V,function(){},Q)},$.prototype.trigger=function(V,Q){return this._directMap[V+":"+Q]&&this._directMap[V+":"+Q]({},V),this},$.prototype.reset=function(){var V=this;return V._callbacks={},V._directMap={},V},$.prototype.stopCallback=function(V,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||X(Q,this.target))return!1;if("composedPath"in V&&"function"==typeof V.composedPath){var be=V.composedPath()[0];be!==V.target&&(Q=be)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},$.prototype.handleKey=function(){var V=this;return V._handleKey.apply(V,arguments)},$.addKeycodes=function(V){for(var Q in V)V.hasOwnProperty(Q)&&(P[Q]=V[Q]);j=null},$.init=function(){var V=$(A);for(var Q in V)"_"!==Q.charAt(0)&&($[Q]=function(te){return function(){return V[te].apply(V,arguments)}}(Q))},$.init(),W.Mousetrap=$,Ae.exports&&(Ae.exports=$),void 0!==(G=function(){return $}.call(K,m,K,Ae))&&(Ae.exports=G)}function v(V,Q,te){V.addEventListener?V.addEventListener(Q,te,!1):V.attachEvent("on"+Q,te)}function x(V){if("keypress"==V.type){var Q=String.fromCharCode(V.which);return V.shiftKey||(Q=Q.toLowerCase()),Q}return P[V.which]?P[V.which]:I[V.which]?I[V.which]:String.fromCharCode(V.which).toLowerCase()}function w(V,Q){return V.sort().join(",")===Q.sort().join(",")}function S(V){return"shift"==V||"ctrl"==V||"alt"==V||"meta"==V}function M(V,Q,te){return te||(te=function k(){if(!j)for(var V in j={},P)V>95&&V<112||P.hasOwnProperty(V)&&(j[P[V]]=V);return j}()[V]?"keydown":"keypress"),"keypress"==te&&Q.length&&(te="keydown"),te}function F(V,Q){var te,be,pe,fe=[];for(te=function N(V){return"+"===V?["+"]:(V=V.replace(/\+{2}/g,"+plus")).split("+")}(V),pe=0;pe<te.length;++pe)be=te[pe],E[be]&&(be=E[be]),Q&&"keypress"!=Q&&T[be]&&(be=T[be],fe.push("shift")),S(be)&&fe.push(be);return{key:be,modifiers:fe,action:Q=M(be,fe,Q)}}function X(V,Q){return null!==V&&V!==A&&(V===Q||X(V.parentNode,Q))}function $(V){var Q=this;if(V=V||A,!(Q instanceof $))return new $(V);Q.target=V,Q._callbacks={},Q._directMap={};var be,te={},pe=!1,fe=!1,ue=!1;function de(Rt){Rt=Rt||{};var $t,Ze=!1;for($t in te)Rt[$t]?Ze=!0:te[$t]=0;Ze||(ue=!1)}function ge(Rt,Ze,$t,Ft,pn,rt){var Ot,_t,Ct=[],Ve=$t.type;if(!Q._callbacks[Rt])return[];for("keyup"==Ve&&S(Rt)&&(Ze=[Rt]),Ot=0;Ot<Q._callbacks[Rt].length;++Ot)if(_t=Q._callbacks[Rt][Ot],(Ft||!_t.seq||te[_t.seq]==_t.level)&&Ve==_t.action&&("keypress"==Ve&&!$t.metaKey&&!$t.ctrlKey||w(Ze,_t.modifiers))){var at=!Ft&&_t.combo==pn,ht=Ft&&_t.seq==Ft&&_t.level==rt;(at||ht)&&Q._callbacks[Rt].splice(Ot,1),Ct.push(_t)}return Ct}function je(Rt,Ze,$t,Ft){Q.stopCallback(Ze,Ze.target||Ze.srcElement,$t,Ft)||!1===Rt(Ze,$t)&&(function D(V){V.preventDefault?V.preventDefault():V.returnValue=!1}(Ze),function b(V){V.stopPropagation?V.stopPropagation():V.cancelBubble=!0}(Ze))}function ot(Rt){"number"!=typeof Rt.which&&(Rt.which=Rt.keyCode);var Ze=x(Rt);if(Ze){if("keyup"==Rt.type&&pe===Ze)return void(pe=!1);Q.handleKey(Ze,function Z(V){var Q=[];return V.shiftKey&&Q.push("shift"),V.altKey&&Q.push("alt"),V.ctrlKey&&Q.push("ctrl"),V.metaKey&&Q.push("meta"),Q}(Rt),Rt)}}function Tt(Rt,Ze,$t,Ft){function pn(Ve){return function(){ue=Ve,++te[Rt],function St(){clearTimeout(be),be=setTimeout(de,1e3)}()}}function rt(Ve){je($t,Ve,Rt),"keyup"!==Ft&&(pe=x(Ve)),setTimeout(de,10)}te[Rt]=0;for(var Ot=0;Ot<Ze.length;++Ot){var Ct=Ot+1===Ze.length?rt:pn(Ft||F(Ze[Ot+1]).action);Dt(Ze[Ot],Ct,Ft,Rt,Ot)}}function Dt(Rt,Ze,$t,Ft,pn){Q._directMap[Rt+":"+$t]=Ze;var Ot,rt=(Rt=Rt.replace(/\s+/g," ")).split(" ");rt.length>1?Tt(Rt,rt,Ze,$t):(Ot=F(Rt,$t),Q._callbacks[Ot.key]=Q._callbacks[Ot.key]||[],ge(Ot.key,Ot.modifiers,{type:Ot.action},Ft,Rt,pn),Q._callbacks[Ot.key][Ft?"unshift":"push"]({callback:Ze,modifiers:Ot.modifiers,action:Ot.action,seq:Ft,level:pn,combo:Rt}))}Q._handleKey=function(Rt,Ze,$t){var pn,Ft=ge(Rt,Ze,$t),rt={},Ot=0,_t=!1;for(pn=0;pn<Ft.length;++pn)Ft[pn].seq&&(Ot=Math.max(Ot,Ft[pn].level));for(pn=0;pn<Ft.length;++pn)if(Ft[pn].seq){if(Ft[pn].level!=Ot)continue;_t=!0,rt[Ft[pn].seq]=1,je(Ft[pn].callback,$t,Ft[pn].combo,Ft[pn].seq)}else _t||je(Ft[pn].callback,$t,Ft[pn].combo);var Ct="keypress"==$t.type&&fe;$t.type==ue&&!S(Rt)&&!Ct&&de(rt),fe=_t&&"keydown"==$t.type},Q._bindMultiple=function(Rt,Ze,$t){for(var Ft=0;Ft<Rt.length;++Ft)Dt(Rt[Ft],Ze,$t)},v(V,"keypress",ot),v(V,"keydown",ot),v(V,"keyup",ot)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.Observable=G.Observable,K.Subject=G.Subject;var W=m(5718);K.AnonymousSubject=W.AnonymousSubject;var A=m(5718);K.config=A.config,m(5010),m(9471),m(2687),m(2750),m(2977),m(2925),m(2231),m(1897),m(7026),m(6187),m(1562),m(9470),m(4641),m(3408),m(7975),m(6034),m(3518),m(1305),m(9566),m(6839),m(1672),m(1216),m(987),m(8366),m(5991),m(8173),m(1357),m(5615),m(3056),m(7551),m(2080),m(8273),m(5500),m(8413),m(39),m(2964),m(3569),m(2243),m(3768),m(1989),m(7613),m(4655),m(4997),m(7417),m(5934),m(7199),m(8047),m(1381),m(1817),m(9754),m(9574),m(8124),m(230),m(2995),m(2181),m(5803),m(3928),m(9193),m(9733),m(5755),m(8744),m(1872),m(9982),m(7980),m(3368),m(1448),m(598),m(5772),m(2172),m(5136),m(600),m(69),m(7939),m(8345),m(1128),m(7943),m(7896),m(8324),m(1736),m(9473),m(8418),m(8180),m(3373),m(5313),m(1860),m(4376),m(2941),m(9762),m(5507),m(522),m(6278),m(7459),m(6269),m(1080),m(3634),m(4051),m(5161),m(5247),m(6776),m(7337),m(8),m(1405),m(5431),m(1986),m(454),m(2738),m(8201),m(7024),m(1434),m(492),m(6166),m(1730),m(7499),m(1281),m(523),m(9049),m(9061),m(9922),m(2769),m(1636),m(6044),m(9773),m(1798),m(6916),m(6694),m(9975),m(6193),m(7558),m(368);var H=m(4822);K.Subscription=H.Subscription,K.ReplaySubject=H.ReplaySubject,K.BehaviorSubject=H.BehaviorSubject,K.Notification=H.Notification,K.EmptyError=H.EmptyError,K.ArgumentOutOfRangeError=H.ArgumentOutOfRangeError,K.ObjectUnsubscribedError=H.ObjectUnsubscribedError,K.UnsubscriptionError=H.UnsubscriptionError,K.pipe=H.pipe;var P=m(9594);K.TestScheduler=P.TestScheduler;var I=m(4822);K.Subscriber=I.Subscriber,K.AsyncSubject=I.AsyncSubject,K.ConnectableObservable=I.ConnectableObservable,K.TimeoutError=I.TimeoutError,K.VirtualTimeScheduler=I.VirtualTimeScheduler;var T=m(8679);K.AjaxResponse=T.AjaxResponse,K.AjaxError=T.AjaxError,K.AjaxTimeoutError=T.AjaxTimeoutError;var E=m(4822),j=m(5718),R=m(5718);K.TimeInterval=R.TimeInterval,K.Timestamp=R.Timestamp;var v=m(6650);K.operators=v;var x={asap:E.asapScheduler,queue:E.queueScheduler,animationFrame:E.animationFrameScheduler,async:E.asyncScheduler};K.Scheduler=x;var w={rxSubscriber:j.rxSubscriber,observable:j.observable,iterator:j.iterator};K.Symbol=w},5010:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindCallback=G.bindCallback},9471:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindNodeCallback=G.bindNodeCallback},2687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.combineLatest=G.combineLatest},2750:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.concat=G.concat},2977:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.defer=G.defer},8173:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8679);G.Observable.ajax=W.ajax},1357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2301);G.Observable.webSocket=W.webSocket},2925:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.empty=G.empty},2231:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.forkJoin=G.forkJoin},1897:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.from=G.from},7026:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEvent=G.fromEvent},6187:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEventPattern=G.fromEventPattern},1562:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromPromise=G.from},9470:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.generate=G.generate},4641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.if=G.iif},3408:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.interval=G.interval},7975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.merge=G.merge},3518:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);function W(){return G.NEVER}K.staticNever=W,G.Observable.never=W},1305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.of=G.of},9566:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.onErrorResumeNext=G.onErrorResumeNext},6839:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.pairs=G.pairs},6034:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.race=G.race},1672:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.range=G.range},987:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.throw=G.throwError,G.Observable.throwError=G.throwError},8366:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.timer=G.timer},1216:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.using=G.using},5991:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.zip=G.zip},9982:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5641);G.Observable.prototype.audit=W.audit},7980:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4657);G.Observable.prototype.auditTime=W.auditTime},5615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2792);G.Observable.prototype.buffer=W.buffer},3056:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1667);G.Observable.prototype.bufferCount=W.bufferCount},7551:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4283);G.Observable.prototype.bufferTime=W.bufferTime},2080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1028);G.Observable.prototype.bufferToggle=W.bufferToggle},8273:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(188);G.Observable.prototype.bufferWhen=W.bufferWhen},5500:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8747);G.Observable.prototype.catch=W._catch,G.Observable.prototype._catch=W._catch},8413:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(572);G.Observable.prototype.combineAll=W.combineAll},39:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(648);G.Observable.prototype.combineLatest=W.combineLatest},2964:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9075);G.Observable.prototype.concat=W.concat},3569:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6979);G.Observable.prototype.concatAll=W.concatAll},2243:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3268);G.Observable.prototype.concatMap=W.concatMap},3768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3382);G.Observable.prototype.concatMapTo=W.concatMapTo},1989:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3337);G.Observable.prototype.count=W.count},4655:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1066);G.Observable.prototype.debounce=W.debounce},4997:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9959);G.Observable.prototype.debounceTime=W.debounceTime},7417:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2448);G.Observable.prototype.defaultIfEmpty=W.defaultIfEmpty},5934:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5514);G.Observable.prototype.delay=W.delay},7199:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7607);G.Observable.prototype.delayWhen=W.delayWhen},7613:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5395);G.Observable.prototype.dematerialize=W.dematerialize},8047:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9440);G.Observable.prototype.distinct=W.distinct},1381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3943);G.Observable.prototype.distinctUntilChanged=W.distinctUntilChanged},1817:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9749);G.Observable.prototype.distinctUntilKeyChanged=W.distinctUntilKeyChanged},9754:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6764);G.Observable.prototype.do=W._do,G.Observable.prototype._do=W._do},2995:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3833);G.Observable.prototype.elementAt=W.elementAt},598:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8648);G.Observable.prototype.every=W.every},9574:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(14);G.Observable.prototype.exhaust=W.exhaust},8124:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4768);G.Observable.prototype.exhaustMap=W.exhaustMap},230:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(326);G.Observable.prototype.expand=W.expand},2181:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1973);G.Observable.prototype.filter=W.filter},5803:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5032);G.Observable.prototype.finally=W._finally,G.Observable.prototype._finally=W._finally},3928:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8302);G.Observable.prototype.find=W.find},9193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5286);G.Observable.prototype.findIndex=W.findIndex},9733:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9311);G.Observable.prototype.first=W.first},5755:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6595);G.Observable.prototype.groupBy=W.groupBy},8744:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5783);G.Observable.prototype.ignoreElements=W.ignoreElements},1872:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6866);G.Observable.prototype.isEmpty=W.isEmpty},3368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1409);G.Observable.prototype.last=W.last},1448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5953);G.Observable.prototype.let=W.letProto,G.Observable.prototype.letBind=W.letProto},5772:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8137);G.Observable.prototype.map=W.map},2172:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1234);G.Observable.prototype.mapTo=W.mapTo},5136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2876);G.Observable.prototype.materialize=W.materialize},600:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8821);G.Observable.prototype.max=W.max},69:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2136);G.Observable.prototype.merge=W.merge},7939:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9883);G.Observable.prototype.mergeAll=W.mergeAll},8345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(621);G.Observable.prototype.mergeMap=W.mergeMap,G.Observable.prototype.flatMap=W.mergeMap},1128:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6881);G.Observable.prototype.flatMapTo=W.mergeMapTo,G.Observable.prototype.mergeMapTo=W.mergeMapTo},7943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8589);G.Observable.prototype.mergeScan=W.mergeScan},7896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1348);G.Observable.prototype.min=W.min},8324:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6134);G.Observable.prototype.multicast=W.multicast},1736:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(386);G.Observable.prototype.observeOn=W.observeOn},9473:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8394);G.Observable.prototype.onErrorResumeNext=W.onErrorResumeNext},8418:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(400);G.Observable.prototype.pairwise=W.pairwise},8180:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1396);G.Observable.prototype.partition=W.partition},3373:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9782);G.Observable.prototype.pluck=W.pluck},5313:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7437);G.Observable.prototype.publish=W.publish},1860:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5990);G.Observable.prototype.publishBehavior=W.publishBehavior},2941:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4254);G.Observable.prototype.publishLast=W.publishLast},4376:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(397);G.Observable.prototype.publishReplay=W.publishReplay},9762:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9023);G.Observable.prototype.race=W.race},5507:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(345);G.Observable.prototype.reduce=W.reduce},522:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2085);G.Observable.prototype.repeat=W.repeat},6278:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3679);G.Observable.prototype.repeatWhen=W.repeatWhen},7459:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7080);G.Observable.prototype.retry=W.retry},6269:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9302);G.Observable.prototype.retryWhen=W.retryWhen},1080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3266);G.Observable.prototype.sample=W.sample},3634:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(615);G.Observable.prototype.sampleTime=W.sampleTime},4051:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8305);G.Observable.prototype.scan=W.scan},5161:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1289);G.Observable.prototype.sequenceEqual=W.sequenceEqual},5247:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(896);G.Observable.prototype.share=W.share},6776:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4791);G.Observable.prototype.shareReplay=W.shareReplay},7337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6462);G.Observable.prototype.single=W.single},8:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3458);G.Observable.prototype.skip=W.skip},1405:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(801);G.Observable.prototype.skipLast=W.skipLast},5431:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8249);G.Observable.prototype.skipUntil=W.skipUntil},1986:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9603);G.Observable.prototype.skipWhile=W.skipWhile},454:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(295);G.Observable.prototype.startWith=W.startWith},2738:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1112);G.Observable.prototype.subscribeOn=W.subscribeOn},8201:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(761);G.Observable.prototype.switch=W._switch,G.Observable.prototype._switch=W._switch},7024:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3573);G.Observable.prototype.switchMap=W.switchMap},1434:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2892);G.Observable.prototype.switchMapTo=W.switchMapTo},492:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7203);G.Observable.prototype.take=W.take},6166:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7579);G.Observable.prototype.takeLast=W.takeLast},1730:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1583);G.Observable.prototype.takeUntil=W.takeUntil},7499:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7694);G.Observable.prototype.takeWhile=W.takeWhile},1281:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9259);G.Observable.prototype.throttle=W.throttle},523:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4630);G.Observable.prototype.throttleTime=W.throttleTime},9049:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3578);G.Observable.prototype.timeInterval=W.timeInterval},9061:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7945);G.Observable.prototype.timeout=W.timeout},9922:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3060);G.Observable.prototype.timeoutWith=W.timeoutWith},2769:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1265);G.Observable.prototype.timestamp=W.timestamp},1636:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2561);G.Observable.prototype.toArray=W.toArray},6044:function(){},9773:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9766);G.Observable.prototype.window=W.window},1798:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8227);G.Observable.prototype.windowCount=W.windowCount},6916:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1868);G.Observable.prototype.windowTime=W.windowTime},6694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(30);G.Observable.prototype.windowToggle=W.windowToggle},9975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9687);G.Observable.prototype.windowWhen=W.windowWhen},6193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5196);G.Observable.prototype.withLatestFrom=W.withLatestFrom},7558:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2357);G.Observable.prototype.zip=W.zipProto},368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7381);G.Observable.prototype.zipAll=W.zipAll},5641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.audit=function W(A){return G.audit(A)(this)}},4657:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.auditTime=function A(H,P){return void 0===P&&(P=G.asyncScheduler),W.auditTime(H,P)(this)}},2792:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.buffer=function W(A){return G.buffer(A)(this)}},1667:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferCount=function W(A,H){return void 0===H&&(H=null),G.bufferCount(A,H)(this)}},4283:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.bufferTime=function H(P){var I=arguments.length,T=G.asyncScheduler;W.isScheduler(arguments[arguments.length-1])&&(T=arguments[arguments.length-1],I--);var E=null;I>=2&&(E=arguments[1]);var j=Number.POSITIVE_INFINITY;return I>=3&&(j=arguments[2]),A.bufferTime(P,E,j,T)(this)}},1028:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferToggle=function W(A,H){return G.bufferToggle(A,H)(this)}},188:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferWhen=function W(A){return G.bufferWhen(A)(this)}},8747:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._catch=function W(A){return G.catchError(A)(this)}},572:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.combineAll=function W(A){return G.combineAll(A)(this)}},648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718);K.combineLatest=function A(){for(var H=[],P=0;P<arguments.length;P++)H[P]=arguments[P];var I=null;return"function"==typeof H[H.length-1]&&(I=H.pop()),1===H.length&&W.isArray(H[0])&&(H=H[0].slice()),this.lift.call(G.of.apply(void 0,[this].concat(H)),new W.CombineLatestOperator(I))}},9075:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.concat=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.concat.apply(void 0,[this].concat(A)))}},6979:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatAll=function W(){return G.concatAll()(this)}},3268:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMap=function W(A){return G.concatMap(A)(this)}},3382:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMapTo=function W(A){return G.concatMapTo(A)(this)}},3337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.count=function W(A){return G.count(A)(this)}},1066:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.debounce=function W(A){return G.debounce(A)(this)}},9959:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.debounceTime=function A(H,P){return void 0===P&&(P=G.asyncScheduler),W.debounceTime(H,P)(this)}},2448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.defaultIfEmpty=function W(A){return void 0===A&&(A=null),G.defaultIfEmpty(A)(this)}},5514:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.delay=function A(H,P){return void 0===P&&(P=G.asyncScheduler),W.delay(H,P)(this)}},7607:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.delayWhen=function W(A,H){return G.delayWhen(A,H)(this)}},5395:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.dematerialize=function W(){return G.dematerialize()(this)}},9440:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinct=function W(A,H){return G.distinct(A,H)(this)}},3943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilChanged=function W(A,H){return G.distinctUntilChanged(A,H)(this)}},9749:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilKeyChanged=function W(A,H){return G.distinctUntilKeyChanged(A,H)(this)}},6764:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._do=function W(A,H,P){return G.tap(A,H,P)(this)}},3833:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.elementAt=function W(A,H){return G.elementAt.apply(void 0,arguments)(this)}},8648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.every=function W(A,H){return G.every(A,H)(this)}},14:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaust=function W(){return G.exhaust()(this)}},4768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaustMap=function W(A){return G.exhaustMap(A)(this)}},326:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.expand=function W(A,H,P){return void 0===H&&(H=Number.POSITIVE_INFINITY),void 0===P&&(P=void 0),H=(H||0)<1?Number.POSITIVE_INFINITY:H,G.expand(A,H,P)(this)}},1973:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.filter=function W(A,H){return G.filter(A,H)(this)}},5032:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._finally=function W(A){return G.finalize(A)(this)}},8302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.find=function W(A,H){return G.find(A,H)(this)}},5286:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.findIndex=function W(A,H){return G.findIndex(A,H)(this)}},9311:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.first=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.first.apply(void 0,A)(this)}},6595:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.groupBy=function W(A,H,P,I){return G.groupBy(A,H,P,I)(this)}},5783:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.ignoreElements=function W(){return G.ignoreElements()(this)}},6866:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.isEmpty=function W(){return G.isEmpty()(this)}},1409:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.last=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.last.apply(void 0,A)(this)}},5953:function(Ae,K){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.letProto=function m(G){return G(this)}},8137:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.map=function W(A,H){return G.map(A,H)(this)}},1234:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mapTo=function W(A){return G.mapTo(A)(this)}},2876:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.materialize=function W(){return G.materialize()(this)}},8821:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.max=function W(A){return G.max(A)(this)}},2136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.merge=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.merge.apply(void 0,[this].concat(A)))}},9883:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeAll=function W(A){return void 0===A&&(A=Number.POSITIVE_INFINITY),G.mergeAll(A)(this)}},621:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMap=function W(A,H){return void 0===H&&(H=Number.POSITIVE_INFINITY),G.mergeMap(A,H)(this)}},6881:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMapTo=function W(A,H){return void 0===H&&(H=Number.POSITIVE_INFINITY),G.mergeMapTo(A,H)(this)}},8589:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeScan=function W(A,H,P){return void 0===P&&(P=Number.POSITIVE_INFINITY),G.mergeScan(A,H,P)(this)}},1348:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.min=function W(A){return G.min(A)(this)}},6134:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.multicast=function W(A,H){return G.multicast(A,H)(this)}},386:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.observeOn=function W(A,H){return void 0===H&&(H=0),G.observeOn(A,H)(this)}},8394:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.onErrorResumeNext=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.onErrorResumeNext.apply(void 0,A)(this)}},400:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pairwise=function W(){return G.pairwise()(this)}},1396:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.partition=function W(A,H){return G.partition(A,H)(this)}},9782:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pluck=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.pluck.apply(void 0,A)(this)}},7437:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publish=function W(A){return G.publish(A)(this)}},5990:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishBehavior=function W(A){return G.publishBehavior(A)(this)}},4254:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishLast=function W(){return G.publishLast()(this)}},397:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishReplay=function W(A,H,P,I){return G.publishReplay(A,H,P,I)(this)}},9023:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.race=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.race.apply(void 0,A)(this)}},345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.reduce=function W(A,H){return arguments.length>=2?G.reduce(A,H)(this):G.reduce(A)(this)}},2085:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeat=function W(A){return void 0===A&&(A=-1),G.repeat(A)(this)}},3679:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeatWhen=function W(A){return G.repeatWhen(A)(this)}},7080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retry=function W(A){return void 0===A&&(A=-1),G.retry(A)(this)}},9302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retryWhen=function W(A){return G.retryWhen(A)(this)}},3266:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sample=function W(A){return G.sample(A)(this)}},615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.sampleTime=function A(H,P){return void 0===P&&(P=G.asyncScheduler),W.sampleTime(H,P)(this)}},8305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.scan=function W(A,H){return arguments.length>=2?G.scan(A,H)(this):G.scan(A)(this)}},1289:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sequenceEqual=function W(A,H){return G.sequenceEqual(A,H)(this)}},896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.share=function W(){return G.share()(this)}},4791:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.shareReplay=function W(A,H,P){return A&&"object"==typeof A?G.shareReplay(A)(this):G.shareReplay(A,H,P)(this)}},6462:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.single=function W(A){return G.single(A)(this)}},3458:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skip=function W(A){return G.skip(A)(this)}},801:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipLast=function W(A){return G.skipLast(A)(this)}},8249:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipUntil=function W(A){return G.skipUntil(A)(this)}},9603:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipWhile=function W(A){return G.skipWhile(A)(this)}},295:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.startWith=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.startWith.apply(void 0,A)(this)}},1112:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.subscribeOn=function W(A,H){return void 0===H&&(H=0),G.subscribeOn(A,H)(this)}},761:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._switch=function W(){return G.switchAll()(this)}},3573:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMap=function W(A){return G.switchMap(A)(this)}},2892:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMapTo=function W(A){return G.switchMapTo(A)(this)}},7203:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.take=function W(A){return G.take(A)(this)}},7579:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeLast=function W(A){return G.takeLast(A)(this)}},1583:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeUntil=function W(A){return G.takeUntil(A)(this)}},7694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeWhile=function W(A){return G.takeWhile(A)(this)}},9259:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650),W=m(5718);K.throttle=function A(H,P){return void 0===P&&(P=W.defaultThrottleConfig),G.throttle(H,P)(this)}},4630:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.throttleTime=function H(P,I,T){return void 0===I&&(I=G.asyncScheduler),void 0===T&&(T=W.defaultThrottleConfig),A.throttleTime(P,I,T)(this)}},3578:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeInterval=function A(H){return void 0===H&&(H=G.asyncScheduler),W.timeInterval(H)(this)}},7945:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeout=function A(H,P){return void 0===P&&(P=G.asyncScheduler),W.timeout(H,P)(this)}},3060:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeoutWith=function A(H,P,I){return void 0===I&&(I=G.asyncScheduler),W.timeoutWith(H,P,I)(this)}},1265:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timestamp=function A(H){return void 0===H&&(H=G.asyncScheduler),W.timestamp(H)(this)}},2561:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.toArray=function W(){return G.toArray()(this)}},9766:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.window=function W(A){return G.window(A)(this)}},8227:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowCount=function W(A,H){return void 0===H&&(H=0),G.windowCount(A,H)(this)}},1868:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.windowTime=function H(P){var I=G.asyncScheduler,T=null,E=Number.POSITIVE_INFINITY;return W.isScheduler(arguments[3])&&(I=arguments[3]),W.isScheduler(arguments[2])?I=arguments[2]:W.isNumeric(arguments[2])&&(E=Number(arguments[2])),W.isScheduler(arguments[1])?I=arguments[1]:W.isNumeric(arguments[1])&&(T=Number(arguments[1])),A.windowTime(P,T,E,I)(this)}},30:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowToggle=function W(A,H){return G.windowToggle(A,H)(this)}},9687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowWhen=function W(A){return G.windowWhen(A)(this)}},5196:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.withLatestFrom=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.withLatestFrom.apply(void 0,A)(this)}},2357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.zipProto=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.zip.apply(void 0,[this].concat(A)))}},7381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.zipAll=function W(A){return G.zipAll(A)(this)}},5887:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),function G(W){for(var A in W)K.hasOwnProperty(A)||(K[A]=W[A])}(m(285))},8679:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return W.iM},AjaxResponse:function(){return W.vD},AjaxTimeoutError:function(){return W.cw},ajax:function(){return G.h}});var G=m(8059),W=m(8452)},4822:function(Ae,K,m){"use strict";m.r(K),m.d(K,{ArgumentOutOfRangeError:function(){return X.W},AsyncSubject:function(){return E.c},BehaviorSubject:function(){return I.X},ConnectableObservable:function(){return W.c},EMPTY:function(){return rt.E},EmptyError:function(){return $.K},GroupedObservable:function(){return A.T},NEVER:function(){return qe},Notification:function(){return S.P},NotificationKind:function(){return S.W},ObjectUnsubscribedError:function(){return V.N},Observable:function(){return G.y},ReplaySubject:function(){return T.t},Scheduler:function(){return Z.b},Subject:function(){return P.xQ},Subscriber:function(){return b.L},Subscription:function(){return D.w},TimeoutError:function(){return te.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return w.h},VirtualTimeScheduler:function(){return w.y},animationFrame:function(){return x.r},animationFrameScheduler:function(){return x.Z},asap:function(){return j.e},asapScheduler:function(){return j.E},async:function(){return R.P},asyncScheduler:function(){return R.z},bindCallback:function(){return ge},bindNodeCallback:function(){return Tt},combineLatest:function(){return $t.aj},concat:function(){return Ft.z},config:function(){return lt.v},defer:function(){return pn.P},empty:function(){return rt.c},forkJoin:function(){return Ot.D},from:function(){return _t.D},fromEvent:function(){return Ct.R},fromEventPattern:function(){return at},generate:function(){return ht},identity:function(){return N.y},iif:function(){return Wt},interval:function(){return U.F},isObservable:function(){return F.b},merge:function(){return B.T},never:function(){return Be},noop:function(){return M.Z},observable:function(){return H.L},of:function(){return le.of},onErrorResumeNext:function(){return t},pairs:function(){return Lt},partition:function(){return Vt},pipe:function(){return k.z},queue:function(){return v.c},queueScheduler:function(){return v.N},race:function(){return Jt.S3},range:function(){return Qe.w},scheduled:function(){return Le.x},throwError:function(){return Fe._},timer:function(){return ne.H},using:function(){return ye},zip:function(){return he.$R}});var G=m(7451),W=m(1762),A=m(4002),H=m(3821),P=m(8929),I=m(591),T=m(839),E=m(2185),j=m(9931),R=m(353),v=m(341),x=m(352),w=m(9027),Z=m(2221),D=m(4096),b=m(3489),S=m(9312),k=m(4843),M=m(7876),N=m(5379),F=m(4715),X=m(4231),$=m(4450),V=m(5279),Q=m(7964),te=m(854),be=m(4902),pe=m(4850),fe=m(9476),ue=m(6688),de=m(2866);function ge(ut,Nt,jt){if(Nt){if(!(0,de.K)(Nt))return function(){return ge(ut,jt).apply(void 0,arguments).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?Nt.apply(void 0,(0,be.Z)(sn)):Nt(sn)}))};jt=Nt}return function(){for(var sn=arguments.length,yn=new Array(sn),ln=0;ln<sn;ln++)yn[ln]=arguments[ln];var hn,Sn=this,mn={context:Sn,subject:hn,callbackFunc:ut,scheduler:jt};return new G.y(function(At){if(jt){var tt={args:yn,subscriber:At,params:mn};return jt.schedule(je,0,tt)}if(!hn){hn=new E.c;try{ut.apply(Sn,[].concat(yn,[function(){for(var We=arguments.length,Ye=new Array(We),Re=0;Re<We;Re++)Ye[Re]=arguments[Re];hn.next(Ye.length<=1?Ye[0]:Ye),hn.complete()}]))}catch(Et){(0,fe._)(hn)?hn.error(Et):console.warn(Et)}}return hn.subscribe(At)})}}function je(ut){var Nt=this,sn=ut.args,yn=ut.subscriber,ln=ut.params,Sn=ln.callbackFunc,hn=ln.context,mn=ln.scheduler,At=ln.subject;if(!At){At=ln.subject=new E.c;try{Sn.apply(hn,[].concat((0,be.Z)(sn),[function(){for(var Et=arguments.length,We=new Array(Et),Ye=0;Ye<Et;Ye++)We[Ye]=arguments[Ye];var Re=We.length<=1?We[0]:We;Nt.add(mn.schedule(ot,0,{value:Re,subject:At}))}]))}catch(tt){At.error(tt)}}this.add(At.subscribe(yn))}function ot(ut){var Nt=ut.value,jt=ut.subject;jt.next(Nt),jt.complete()}function Tt(ut,Nt,jt){if(Nt){if(!(0,de.K)(Nt))return function(){return Tt(ut,jt).apply(void 0,arguments).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?Nt.apply(void 0,(0,be.Z)(sn)):Nt(sn)}))};jt=Nt}return function(){for(var sn=arguments.length,yn=new Array(sn),ln=0;ln<sn;ln++)yn[ln]=arguments[ln];var Sn={subject:void 0,args:yn,callbackFunc:ut,scheduler:jt,context:this};return new G.y(function(hn){var mn=Sn.context,At=Sn.subject;if(jt)return jt.schedule(Dt,0,{params:Sn,subscriber:hn,context:mn});if(!At){At=Sn.subject=new E.c;try{ut.apply(mn,[].concat(yn,[function(){for(var Et=arguments.length,We=new Array(Et),Ye=0;Ye<Et;Ye++)We[Ye]=arguments[Ye];var Re=We.shift();Re?At.error(Re):(At.next(We.length<=1?We[0]:We),At.complete())}]))}catch(tt){(0,fe._)(At)?At.error(tt):console.warn(tt)}}return At.subscribe(hn)})}}function Dt(ut){var Nt=this,jt=ut.params,sn=ut.subscriber,yn=ut.context,ln=jt.callbackFunc,Sn=jt.args,hn=jt.scheduler,mn=jt.subject;if(!mn){mn=jt.subject=new E.c;try{ln.apply(yn,[].concat((0,be.Z)(Sn),[function(){for(var tt=arguments.length,Et=new Array(tt),We=0;We<tt;We++)Et[We]=arguments[We];var Ye=Et.shift();if(Ye)Nt.add(hn.schedule(Ze,0,{err:Ye,subject:mn}));else{var Re=Et.length<=1?Et[0]:Et;Nt.add(hn.schedule(Rt,0,{value:Re,subject:mn}))}}]))}catch(xt){this.add(hn.schedule(Ze,0,{err:xt,subject:mn}))}}this.add(mn.subscribe(sn))}function Rt(ut){var Nt=ut.value,jt=ut.subject;jt.next(Nt),jt.complete()}function Ze(ut){var Nt=ut.err;ut.subject.error(Nt)}var $t=m(6053),Ft=m(1961),pn=m(8514),rt=m(8896),Ot=m(567),_t=m(3527),Ct=m(3753),Ve=m(7043);function at(ut,Nt,jt){return jt?at(ut,Nt).pipe((0,pe.U)(function(sn){return(0,ue.k)(sn)?jt.apply(void 0,(0,be.Z)(sn)):jt(sn)})):new G.y(function(sn){var ln,yn=function(){for(var hn=arguments.length,mn=new Array(hn),At=0;At<hn;At++)mn[At]=arguments[At];return sn.next(1===mn.length?mn[0]:mn)};try{ln=ut(yn)}catch(Sn){return void sn.error(Sn)}if((0,Ve.m)(Nt))return function(){return Nt(yn,ln)}})}function ht(ut,Nt,jt,sn,yn){var ln,Sn;if(1==arguments.length){var hn=ut;Sn=hn.initialState,Nt=hn.condition,jt=hn.iterate,ln=hn.resultSelector||N.y,yn=hn.scheduler}else void 0===sn||(0,de.K)(sn)?(Sn=ut,ln=N.y,yn=sn):(Sn=ut,ln=sn);return new G.y(function(mn){var At=Sn;if(yn)return yn.schedule(Ut,0,{subscriber:mn,iterate:jt,condition:Nt,resultSelector:ln,state:At});for(;;){if(Nt){var xt=void 0;try{xt=Nt(At)}catch(Et){return void mn.error(Et)}if(!xt){mn.complete();break}}var tt=void 0;try{tt=ln(At)}catch(Et){return void mn.error(Et)}if(mn.next(tt),mn.closed)break;try{At=jt(At)}catch(Et){return void mn.error(Et)}}})}function Ut(ut){var Nt=ut.subscriber,jt=ut.condition;if(!Nt.closed){if(ut.needIterate)try{ut.state=ut.iterate(ut.state)}catch(ln){return void Nt.error(ln)}else ut.needIterate=!0;if(jt){var sn;try{sn=jt(ut.state)}catch(ln){return void Nt.error(ln)}if(!sn)return void Nt.complete();if(Nt.closed)return}var yn;try{yn=ut.resultSelector(ut.state)}catch(ln){return void Nt.error(ln)}if(!Nt.closed&&(Nt.next(yn),!Nt.closed))return this.schedule(ut)}}function Wt(ut){var Nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt.E,jt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt.E;return(0,pn.P)(function(){return ut()?Nt:jt})}var U=m(1715),B=m(6787),qe=new G.y(M.Z);function Be(){return qe}var le=m(1086);function t(){for(var ut=arguments.length,Nt=new Array(ut),jt=0;jt<ut;jt++)Nt[jt]=arguments[jt];if(0===Nt.length)return rt.E;var sn=Nt[0],yn=Nt.slice(1);return 1===Nt.length&&(0,ue.k)(sn)?t.apply(void 0,(0,be.Z)(sn)):new G.y(function(ln){var Sn=function(){return ln.add(t.apply(void 0,(0,be.Z)(yn)).subscribe(ln))};return(0,_t.D)(sn).subscribe({next:function(mn){ln.next(mn)},error:Sn,complete:Sn})})}function Lt(ut,Nt){return Nt?new G.y(function(jt){var sn=Object.keys(ut),yn=new D.w;return yn.add(Nt.schedule(zt,0,{keys:sn,index:0,subscriber:jt,subscription:yn,obj:ut})),yn}):new G.y(function(jt){for(var sn=Object.keys(ut),yn=0;yn<sn.length&&!jt.closed;yn++){var ln=sn[yn];ut.hasOwnProperty(ln)&&jt.next([ln,ut[ln]])}jt.complete()})}function zt(ut){var Nt=ut.keys,jt=ut.index,sn=ut.subscriber,yn=ut.subscription,ln=ut.obj;if(!sn.closed)if(jt<Nt.length){var Sn=Nt[jt];sn.next([Sn,ln[Sn]]),yn.add(this.schedule({keys:Nt,index:jt+1,subscriber:sn,subscription:yn,obj:ln}))}else sn.complete()}var an=m(5884),Qt=m(3071),vn=m(9664);function Vt(ut,Nt,jt){return[(0,vn.h)(Nt,jt)(new G.y((0,Qt.s)(ut))),(0,vn.h)((0,an.f)(Nt,jt))(new G.y((0,Qt.s)(ut)))]}var Jt=m(1946),Qe=m(3103),Fe=m(1737),ne=m(8723);function ye(ut,Nt){return new G.y(function(jt){var sn,yn;try{sn=ut()}catch(hn){return void jt.error(hn)}try{yn=Nt(sn)}catch(hn){return void jt.error(hn)}var Sn=(yn?(0,_t.D)(yn):rt.E).subscribe(jt);return function(){Sn.unsubscribe(),sn&&sn.unsubscribe()}})}var he=m(1746),Le=m(6266),lt=m(2830)},5718:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return S.iM},AjaxObservable:function(){return S.i6},AjaxResponse:function(){return S.vD},AjaxSubscriber:function(){return S.de},AjaxTimeoutError:function(){return S.cw},AnonymousSubject:function(){return P.ug},ArgumentOutOfRangeError:function(){return fe.W},CombineLatestOperator:function(){return M.Ms},EmptyError:function(){return ue.K},GroupedObservable:function(){return V.T},Immediate:function(){return de.H},InnerSubscriber:function(){return W.d},ObjectUnsubscribedError:function(){return ge.N},OuterSubscriber:function(){return A.L},Scheduler:function(){return H.b},SubjectSubscription:function(){return I.W},SubscribeOnObservable:function(){return F.e},Subscriber:function(){return T.L},TimeInterval:function(){return $.R},TimeoutError:function(){return je.W},Timestamp:function(){return X.E},UnsubscriptionError:function(){return ot.B},WebSocketSubject:function(){return k.p},ajax:function(){return D.h},ajaxDelete:function(){return S._c},ajaxGet:function(){return S.Ck},ajaxGetJSON:function(){return S.uX},ajaxPatch:function(){return S.YB},ajaxPost:function(){return S.tB},ajaxPut:function(){return S.Vk},applyMixins:function(){return St.e},config:function(){return G.v},defaultThrottleConfig:function(){return Q.d},dispatch:function(){return N.W},errorObject:function(){return Tt},fromIterable:function(){return Z},fromPromise:function(){return v},hostReportError:function(){return Dt.z},identity:function(){return Rt.y},isArray:function(){return Ze.k},isArrayLike:function(){return $t.z},isDate:function(){return Ft.J},isFunction:function(){return pn.m},isIterable:function(){return rt.T},isNumeric:function(){return Ot.k},isObject:function(){return _t.K},isObservable:function(){return Ct.c},isPromise:function(){return Ve.t},isScheduler:function(){return at.K},iterator:function(){return be.hZ},noop:function(){return ht.Z},not:function(){return Ut.f},observable:function(){return pe.L},pipe:function(){return Wt.z},root:function(){return U.J},rxSubscriber:function(){return te.b},subscribeTo:function(){return B.s},subscribeToArray:function(){return qe.V},subscribeToIterable:function(){return x.u},subscribeToObservable:function(){return Be.h},subscribeToPromise:function(){return j.A},subscribeToResult:function(){return le.D},toSubscriber:function(){return t.Y},tryCatch:function(){return an},webSocket:function(){return b.j}});var G=m(2830),W=m(1869),A=m(826),H=m(2221),P=m(8929),I=m(5283),T=m(3489),E=m(7451),j=m(3445),R=m(8687);function v(Qt,vn){return vn?(0,R.c)(Qt,vn):new E.y((0,j.A)(Qt))}var x=m(3720),w=m(6389);function Z(Qt,vn){if(!Qt)throw new Error("Iterable cannot be null");return vn?(0,w.Q)(Qt,vn):new E.y((0,x.u)(Qt))}var Lt,D=m(8059),b=m(7623),S=m(8452),k=m(2741),M=m(6053),N=m(3103),F=m(3837),X=m(7781),$=m(3485),V=m(4002),Q=m(2444),te=m(7668),be=m(5430),pe=m(3821),fe=m(4231),ue=m(4450),de=m(1450),ge=m(5279),je=m(854),ot=m(7964),St=m(5128),Tt={e:{}},Dt=m(2782),Rt=m(5379),Ze=m(6688),$t=m(8515),Ft=m(2697),pn=m(7043),rt=m(2198),Ot=m(4241),_t=m(7830),Ct=m(8845),Ve=m(8955),at=m(2866),ht=m(7876),Ut=m(5884),Wt=m(4843),U=m(797),B=m(3071),qe=m(3650),Be=m(1810),le=m(9054),t=m(5221);function zt(){Tt.e=void 0;try{return Lt.apply(this,arguments)}catch(Qt){return Tt.e=Qt,Tt}finally{Lt=void 0}}function an(Qt){return Lt=Qt,zt}},2185:function(Ae,K,m){"use strict";m.d(K,{c:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(8929),E=m(4096),j=function(R){(0,P.Z)(x,R);var v=(0,I.Z)(x);function x(){var w;return(0,G.Z)(this,x),(w=v.apply(this,arguments)).value=null,w.hasNext=!1,w.hasCompleted=!1,w}return(0,W.Z)(x,[{key:"_subscribe",value:function(Z){return this.hasError?(Z.error(this.thrownError),E.w.EMPTY):this.hasCompleted&&this.hasNext?(Z.next(this.value),Z.complete(),E.w.EMPTY):(0,A.Z)((0,H.Z)(x.prototype),"_subscribe",this).call(this,Z)}},{key:"next",value:function(Z){this.hasCompleted||(this.value=Z,this.hasNext=!0)}},{key:"error",value:function(Z){this.hasCompleted||(0,A.Z)((0,H.Z)(x.prototype),"error",this).call(this,Z)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,A.Z)((0,H.Z)(x.prototype),"next",this).call(this,this.value),(0,A.Z)((0,H.Z)(x.prototype),"complete",this).call(this)}}]),x}(T.xQ)},591:function(Ae,K,m){"use strict";m.d(K,{X:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(8929),E=m(5279),j=function(R){(0,P.Z)(x,R);var v=(0,I.Z)(x);function x(w){var Z;return(0,G.Z)(this,x),(Z=v.call(this))._value=w,Z}return(0,W.Z)(x,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(Z){var D=(0,A.Z)((0,H.Z)(x.prototype),"_subscribe",this).call(this,Z);return D&&!D.closed&&Z.next(this._value),D}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E.N;return this._value}},{key:"next",value:function(Z){(0,A.Z)((0,H.Z)(x.prototype),"next",this).call(this,this._value=Z)}}]),x}(T.xQ)},1869:function(Ae,K,m){"use strict";m.d(K,{d:function(){return I}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),I=function(T){(0,A.Z)(j,T);var E=(0,H.Z)(j);function j(R,v,x){var w;return(0,G.Z)(this,j),(w=E.call(this)).parent=R,w.outerValue=v,w.outerIndex=x,w.index=0,w}return(0,W.Z)(j,[{key:"_next",value:function(v){this.parent.notifyNext(this.outerValue,v,this.outerIndex,this.index++,this)}},{key:"_error",value:function(v){this.parent.notifyError(v,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),j}(m(3489).L)},9312:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T},W:function(){return I}});var I,E,G=m(5671),W=m(3144),A=m(8896),H=m(1086),P=m(1737);(E=I||(I={})).NEXT="N",E.ERROR="E",E.COMPLETE="C";var T=function(){function E(j,R,v){(0,G.Z)(this,E),this.kind=j,this.value=R,this.error=v,this.hasValue="N"===j}return(0,W.Z)(E,[{key:"observe",value:function(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}},{key:"do",value:function(R,v,x){switch(this.kind){case"N":return R&&R(this.value);case"E":return v&&v(this.error);case"C":return x&&x()}}},{key:"accept",value:function(R,v,x){return R&&"function"==typeof R.next?this.observe(R):this.do(R,v,x)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,H.of)(this.value);case"E":return(0,P._)(this.error);case"C":return(0,A.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(R){return void 0!==R?new E("N",R):E.undefinedValueNotification}},{key:"createError",value:function(R){return new E("E",void 0,R)}},{key:"createComplete",value:function(){return E.completeNotification}}]),E}();T.completeNotification=new T("C"),T.undefinedValueNotification=new T("N",void 0)},7451:function(Ae,K,m){"use strict";m.d(K,{y:function(){return E}});var G=m(5671),W=m(3144),A=m(9476),H=m(5221),P=m(3821),I=m(4843),T=m(2830),E=function(){function R(v){(0,G.Z)(this,R),this._isScalar=!1,v&&(this._subscribe=v)}return(0,W.Z)(R,[{key:"lift",value:function(x){var w=new R;return w.source=this,w.operator=x,w}},{key:"subscribe",value:function(x,w,Z){var D=this.operator,b=(0,H.Y)(x,w,Z);if(D?b.add(D.call(b,this.source)):b.add(this.source||T.v.useDeprecatedSynchronousErrorHandling&&!b.syncErrorThrowable?this._subscribe(b):this._trySubscribe(b)),T.v.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable&&(b.syncErrorThrowable=!1,b.syncErrorThrown))throw b.syncErrorValue;return b}},{key:"_trySubscribe",value:function(x){try{return this._subscribe(x)}catch(w){T.v.useDeprecatedSynchronousErrorHandling&&(x.syncErrorThrown=!0,x.syncErrorValue=w),(0,A._)(x)?x.error(w):console.warn(w)}}},{key:"forEach",value:function(x,w){var Z=this;return new(w=j(w))(function(D,b){var S;S=Z.subscribe(function(k){try{x(k)}catch(M){b(M),S&&S.unsubscribe()}},b,D)})}},{key:"_subscribe",value:function(x){var w=this.source;return w&&w.subscribe(x)}},{key:P.L,value:function(){return this}},{key:"pipe",value:function(){for(var x=arguments.length,w=new Array(x),Z=0;Z<x;Z++)w[Z]=arguments[Z];return 0===w.length?this:(0,I.U)(w)(this)}},{key:"toPromise",value:function(x){var w=this;return new(x=j(x))(function(Z,D){var b;w.subscribe(function(S){return b=S},function(S){return D(S)},function(){return Z(b)})})}}]),R}();function j(R){if(R||(R=T.v.Promise||Promise),!R)throw new Error("no Promise impl found");return R}E.create=function(R){return new E(R)}},3292:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(2830),W=m(2782),A={closed:!0,next:function(P){},error:function(P){if(G.v.useDeprecatedSynchronousErrorHandling)throw P;(0,W.z)(P)},complete:function(){}}},826:function(Ae,K,m){"use strict";m.d(K,{L:function(){return I}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),I=function(T){(0,A.Z)(j,T);var E=(0,H.Z)(j);function j(){return(0,G.Z)(this,j),E.apply(this,arguments)}return(0,W.Z)(j,[{key:"notifyNext",value:function(v,x,w,Z,D){this.destination.next(x)}},{key:"notifyError",value:function(v,x){this.destination.error(v)}},{key:"notifyComplete",value:function(v){this.destination.complete()}}]),j}(m(3489).L)},839:function(Ae,K,m){"use strict";m.d(K,{t:function(){return w}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(8929),E=m(341),j=m(4096),R=m(7770),v=m(5279),x=m(5283),w=function(D){(0,P.Z)(S,D);var b=(0,I.Z)(S);function S(){var k,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,G.Z)(this,S),(k=b.call(this)).scheduler=F,k._events=[],k._infiniteTimeWindow=!1,k._bufferSize=M<1?1:M,k._windowTime=N<1?1:N,N===Number.POSITIVE_INFINITY?(k._infiniteTimeWindow=!0,k.next=k.nextInfiniteTimeWindow):k.next=k.nextTimeWindow,k}return(0,W.Z)(S,[{key:"nextInfiniteTimeWindow",value:function(M){if(!this.isStopped){var N=this._events;N.push(M),N.length>this._bufferSize&&N.shift()}(0,A.Z)((0,H.Z)(S.prototype),"next",this).call(this,M)}},{key:"nextTimeWindow",value:function(M){this.isStopped||(this._events.push(new Z(this._getNow(),M)),this._trimBufferThenGetEvents()),(0,A.Z)((0,H.Z)(S.prototype),"next",this).call(this,M)}},{key:"_subscribe",value:function(M){var V,N=this._infiniteTimeWindow,F=N?this._events:this._trimBufferThenGetEvents(),X=this.scheduler,$=F.length;if(this.closed)throw new v.N;if(this.isStopped||this.hasError?V=j.w.EMPTY:(this.observers.push(M),V=new x.W(this,M)),X&&M.add(M=new R.ht(M,X)),N)for(var Q=0;Q<$&&!M.closed;Q++)M.next(F[Q]);else for(var te=0;te<$&&!M.closed;te++)M.next(F[te].value);return this.hasError?M.error(this.thrownError):this.isStopped&&M.complete(),V}},{key:"_getNow",value:function(){return(this.scheduler||E.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var M=this._getNow(),N=this._bufferSize,F=this._windowTime,X=this._events,$=X.length,V=0;V<$&&!(M-X[V].time<F);)V++;return $>N&&(V=Math.max(V,$-N)),V>0&&X.splice(0,V),X}}]),S}(T.xQ),Z=(0,W.Z)(function D(b,S){(0,G.Z)(this,D),this.time=b,this.value=S})},2221:function(Ae,K,m){"use strict";m.d(K,{b:function(){return A}});var G=m(5671),W=m(3144),A=function(){function H(P){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.now;(0,G.Z)(this,H),this.SchedulerAction=P,this.now=I}return(0,W.Z)(H,[{key:"schedule",value:function(I){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,I).schedule(E,T)}}]),H}();A.now=function(){return Date.now()}},8929:function(Ae,K,m){"use strict";m.d(K,{Yc:function(){return w},ug:function(){return D},xQ:function(){return Z}});var G=m(3237),W=m(1120),A=m(3144),H=m(5671),P=m(136),I=m(9388),T=m(7451),E=m(3489),j=m(4096),R=m(5279),v=m(5283),x=m(7668),w=function(b){(0,P.Z)(k,b);var S=(0,I.Z)(k);function k(M){var N;return(0,H.Z)(this,k),(N=S.call(this,M)).destination=M,N}return(0,A.Z)(k)}(E.L),Z=function(b){(0,P.Z)(k,b);var S=(0,I.Z)(k);function k(){var M;return(0,H.Z)(this,k),(M=S.call(this)).observers=[],M.closed=!1,M.isStopped=!1,M.hasError=!1,M.thrownError=null,M}return(0,A.Z)(k,[{key:x.b,value:function(){return new w(this)}},{key:"lift",value:function(N){var F=new D(this,this);return F.operator=N,F}},{key:"next",value:function(N){if(this.closed)throw new R.N;if(!this.isStopped)for(var F=this.observers,X=F.length,$=F.slice(),V=0;V<X;V++)$[V].next(N)}},{key:"error",value:function(N){if(this.closed)throw new R.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;for(var F=this.observers,X=F.length,$=F.slice(),V=0;V<X;V++)$[V].error(N);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new R.N;this.isStopped=!0;for(var N=this.observers,F=N.length,X=N.slice(),$=0;$<F;$++)X[$].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(N){if(this.closed)throw new R.N;return(0,G.Z)((0,W.Z)(k.prototype),"_trySubscribe",this).call(this,N)}},{key:"_subscribe",value:function(N){if(this.closed)throw new R.N;return this.hasError?(N.error(this.thrownError),j.w.EMPTY):this.isStopped?(N.complete(),j.w.EMPTY):(this.observers.push(N),new v.W(this,N))}},{key:"asObservable",value:function(){var N=new T.y;return N.source=this,N}}]),k}(T.y);Z.create=function(b,S){return new D(b,S)};var D=function(b){(0,P.Z)(k,b);var S=(0,I.Z)(k);function k(M,N){var F;return(0,H.Z)(this,k),(F=S.call(this)).destination=M,F.source=N,F}return(0,A.Z)(k,[{key:"next",value:function(N){var F=this.destination;F&&F.next&&F.next(N)}},{key:"error",value:function(N){var F=this.destination;F&&F.error&&this.destination.error(N)}},{key:"complete",value:function(){var N=this.destination;N&&N.complete&&this.destination.complete()}},{key:"_subscribe",value:function(N){return this.source?this.source.subscribe(N):j.w.EMPTY}}]),k}(Z)},5283:function(Ae,K,m){"use strict";m.d(K,{W:function(){return I}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),I=function(T){(0,A.Z)(j,T);var E=(0,H.Z)(j);function j(R,v){var x;return(0,G.Z)(this,j),(x=E.call(this)).subject=R,x.subscriber=v,x.closed=!1,x}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var v=this.subject,x=v.observers;if(this.subject=null,x&&0!==x.length&&!v.isStopped&&!v.closed){var w=x.indexOf(this.subscriber);-1!==w&&x.splice(w,1)}}}}]),j}(m(4096).w)},3489:function(Ae,K,m){"use strict";m.d(K,{L:function(){return Z}});var G=m(5671),W=m(3144),A=m(7326),H=m(3237),P=m(1120),I=m(136),T=m(9388),E=m(7043),j=m(3292),R=m(4096),v=m(7668),x=m(2830),w=m(2782),Z=function(b){(0,I.Z)(k,b);var S=(0,T.Z)(k);function k(M,N,F){var X;switch((0,G.Z)(this,k),(X=S.call(this)).syncErrorValue=null,X.syncErrorThrown=!1,X.syncErrorThrowable=!1,X.isStopped=!1,arguments.length){case 0:X.destination=j.c;break;case 1:if(!M){X.destination=j.c;break}if("object"==typeof M){M instanceof k?(X.syncErrorThrowable=M.syncErrorThrowable,X.destination=M,M.add((0,A.Z)(X))):(X.syncErrorThrowable=!0,X.destination=new D((0,A.Z)(X),M));break}default:X.syncErrorThrowable=!0,X.destination=new D((0,A.Z)(X),M,N,F)}return X}return(0,W.Z)(k,[{key:v.b,value:function(){return this}},{key:"next",value:function(N){this.isStopped||this._next(N)}},{key:"error",value:function(N){this.isStopped||(this.isStopped=!0,this._error(N))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,H.Z)((0,P.Z)(k.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(N){this.destination.next(N)}},{key:"_error",value:function(N){this.destination.error(N),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var N=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=N,this}}],[{key:"create",value:function(N,F,X){var $=new k(N,F,X);return $.syncErrorThrowable=!1,$}}]),k}(R.w),D=function(b){(0,I.Z)(k,b);var S=(0,T.Z)(k);function k(M,N,F,X){var $;(0,G.Z)(this,k),($=S.call(this))._parentSubscriber=M;var V,Q=(0,A.Z)($);return(0,E.m)(N)?V=N:N&&(V=N.next,F=N.error,X=N.complete,N!==j.c&&(Q=Object.create(N),(0,E.m)(Q.unsubscribe)&&$.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=$.unsubscribe.bind((0,A.Z)($)))),$._context=Q,$._next=V,$._error=F,$._complete=X,$}return(0,W.Z)(k,[{key:"next",value:function(N){if(!this.isStopped&&this._next){var F=this._parentSubscriber;x.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}},{key:"error",value:function(N){if(!this.isStopped){var F=this._parentSubscriber,X=x.v.useDeprecatedSynchronousErrorHandling;if(this._error)X&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(F.syncErrorThrowable)X?(F.syncErrorValue=N,F.syncErrorThrown=!0):(0,w.z)(N),this.unsubscribe();else{if(this.unsubscribe(),X)throw N;(0,w.z)(N)}}}},{key:"complete",value:function(){var N=this;if(!this.isStopped){var F=this._parentSubscriber;if(this._complete){var X=function(){return N._complete.call(N._context)};x.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,X),this.unsubscribe()):(this.__tryOrUnsub(X),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(N,F){try{N.call(this._context,F)}catch(X){if(this.unsubscribe(),x.v.useDeprecatedSynchronousErrorHandling)throw X;(0,w.z)(X)}}},{key:"__tryOrSetError",value:function(N,F,X){if(!x.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,X)}catch($){return x.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=$,N.syncErrorThrown=!0,!0):((0,w.z)($),!0)}return!1}},{key:"_unsubscribe",value:function(){var N=this._parentSubscriber;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}]),k}(Z)},4096:function(Ae,K,m){"use strict";m.d(K,{w:function(){return T}});var j,G=m(5671),W=m(3144),A=m(6688),H=m(7830),P=m(7043),I=m(7964),T=function(){function j(R){(0,G.Z)(this,j),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){var v;if(!this.closed){var x=this._parentOrParents,w=this._ctorUnsubscribe,Z=this._unsubscribe,D=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof j)x.remove(this);else if(null!==x)for(var b=0;b<x.length;++b){x[b].remove(this)}if((0,P.m)(Z)){w&&(this._unsubscribe=void 0);try{Z.call(this)}catch(F){v=F instanceof I.B?E(F.errors):[F]}}if((0,A.k)(D))for(var k=-1,M=D.length;++k<M;){var N=D[k];if((0,H.K)(N))try{N.unsubscribe()}catch(F){v=v||[],F instanceof I.B?v=v.concat(E(F.errors)):v.push(F)}}if(v)throw new I.B(v)}}},{key:"add",value:function(v){var x=v;if(!v)return j.EMPTY;switch(typeof v){case"function":x=new j(v);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof j)){var w=x;(x=new j)._subscriptions=[w]}break;default:throw new Error("unrecognized teardown "+v+" added to Subscription.")}var D=x._parentOrParents;if(null===D)x._parentOrParents=this;else if(D instanceof j){if(D===this)return x;x._parentOrParents=[D,this]}else{if(-1!==D.indexOf(this))return x;D.push(this)}var b=this._subscriptions;return null===b?this._subscriptions=[x]:b.push(x),x}},{key:"remove",value:function(v){var x=this._subscriptions;if(x){var w=x.indexOf(v);-1!==w&&x.splice(w,1)}}}]),j}();function E(j){return j.reduce(function(R,v){return R.concat(v instanceof I.B?v.errors:v)},[])}T.EMPTY=((j=new T).closed=!0,j)},2830:function(Ae,K,m){"use strict";m.d(K,{v:function(){return W}});var G=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){var H=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+H.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=A},get useDeprecatedSynchronousErrorHandling(){return G}}},1177:function(Ae,K,m){"use strict";m.d(K,{Ds:function(){return R},IY:function(){return E},ft:function(){return x}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=m(3489),I=m(7451),T=m(3071),E=function(w){(0,A.Z)(D,w);var Z=(0,H.Z)(D);function D(b){var S;return(0,G.Z)(this,D),(S=Z.call(this)).parent=b,S}return(0,W.Z)(D,[{key:"_next",value:function(S){this.parent.notifyNext(S)}},{key:"_error",value:function(S){this.parent.notifyError(S),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),D}(P.L),R=function(w){(0,A.Z)(D,w);var Z=(0,H.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D,[{key:"notifyNext",value:function(S){this.destination.next(S)}},{key:"notifyError",value:function(S){this.destination.error(S)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),D}(P.L);function x(w,Z){if(!Z.closed){if(w instanceof I.y)return w.subscribe(Z);var D;try{D=(0,T.s)(w)(Z)}catch(b){Z.error(b)}return D}}},1762:function(Ae,K,m){"use strict";m.d(K,{N:function(){return w},c:function(){return x}});var S,G=m(3237),W=m(1120),A=m(5671),H=m(3144),P=m(136),I=m(9388),T=m(8929),E=m(7451),j=m(3489),R=m(4096),v=m(4327),x=function(S){(0,P.Z)(M,S);var k=(0,I.Z)(M);function M(N,F){var X;return(0,A.Z)(this,M),(X=k.call(this)).source=N,X.subjectFactory=F,X._refCount=0,X._isComplete=!1,X}return(0,H.Z)(M,[{key:"_subscribe",value:function(F){return this.getSubject().subscribe(F)}},{key:"getSubject",value:function(){var F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var F=this._connection;return F||(this._isComplete=!1,(F=this._connection=new R.w).add(this.source.subscribe(new Z(this.getSubject(),this))),F.closed&&(this._connection=null,F=R.w.EMPTY)),F}},{key:"refCount",value:function(){return(0,v.x)()(this)}}]),M}(E.y),w={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(S=x.prototype)._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}},Z=function(S){(0,P.Z)(M,S);var k=(0,I.Z)(M);function M(N,F){var X;return(0,A.Z)(this,M),(X=k.call(this,N)).connectable=F,X}return(0,H.Z)(M,[{key:"_error",value:function(F){this._unsubscribe(),(0,G.Z)((0,W.Z)(M.prototype),"_error",this).call(this,F)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,G.Z)((0,W.Z)(M.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var F=this.connectable;if(F){this.connectable=null;var X=F._connection;F._refCount=0,F._subject=null,F._connection=null,X&&X.unsubscribe()}}}]),M}(T.Yc);j.L},3837:function(Ae,K,m){"use strict";m.d(K,{e:function(){return E}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=m(7451),I=m(9931),T=m(4241),E=function(j){(0,A.Z)(v,j);var R=(0,H.Z)(v);function v(x){var w,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.e;return(0,G.Z)(this,v),(w=R.call(this)).source=x,w.delayTime=Z,w.scheduler=D,(!(0,T.k)(Z)||Z<0)&&(w.delayTime=0),(!D||"function"!=typeof D.schedule)&&(w.scheduler=I.e),w}return(0,W.Z)(v,[{key:"_subscribe",value:function(w){var Z=this.delayTime,D=this.source;return this.scheduler.schedule(v.dispatch,Z,{source:D,subscriber:w})}}],[{key:"create",value:function(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.e;return new v(w,Z,D)}},{key:"dispatch",value:function(w){var Z=w.source,D=w.subscriber;return this.add(Z.subscribe(D))}}]),v}(P.y)},6053:function(Ae,K,m){"use strict";m.d(K,{Ms:function(){return x},aj:function(){return v}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(2866),I=m(6688),T=m(826),E=m(9054),j=m(3009),R={};function v(){for(var Z=arguments.length,D=new Array(Z),b=0;b<Z;b++)D[b]=arguments[b];var S=void 0,k=void 0;return(0,P.K)(D[D.length-1])&&(k=D.pop()),"function"==typeof D[D.length-1]&&(S=D.pop()),1===D.length&&(0,I.k)(D[0])&&(D=D[0]),(0,j.n)(D,k).lift(new x(S))}var x=function(){function Z(D){(0,A.Z)(this,Z),this.resultSelector=D}return(0,H.Z)(Z,[{key:"call",value:function(b,S){return S.subscribe(new w(b,this.resultSelector))}}]),Z}(),w=function(Z){(0,G.Z)(b,Z);var D=(0,W.Z)(b);function b(S,k){var M;return(0,A.Z)(this,b),(M=D.call(this,S)).resultSelector=k,M.active=0,M.values=[],M.observables=[],M}return(0,H.Z)(b,[{key:"_next",value:function(k){this.values.push(R),this.observables.push(k)}},{key:"_complete",value:function(){var k=this.observables,M=k.length;if(0===M)this.destination.complete();else{this.active=M,this.toRespond=M;for(var N=0;N<M;N++){var F=k[N];this.add((0,E.D)(this,F,void 0,N))}}}},{key:"notifyComplete",value:function(k){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(k,M,N){var F=this.values,X=F[N],$=this.toRespond?X===R?--this.toRespond:this.toRespond:0;F[N]=M,0===$&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}},{key:"_tryResultSelector",value:function(k){var M;try{M=this.resultSelector.apply(this,k)}catch(N){return void this.destination.error(N)}this.destination.next(M)}}]),b}(T.L)},1961:function(Ae,K,m){"use strict";m.d(K,{z:function(){return A}});var G=m(1086),W=m(534);function A(){return(0,W.u)()(G.of.apply(void 0,arguments))}},8514:function(Ae,K,m){"use strict";m.d(K,{P:function(){return H}});var G=m(7451),W=m(3527),A=m(8896);function H(P){return new G.y(function(I){var T;try{T=P()}catch(j){return void I.error(j)}return(T?(0,W.D)(T):(0,A.c)()).subscribe(I)})}},8452:function(Ae,K,m){"use strict";m.d(K,{Ck:function(){return w},Vk:function(){return b},YB:function(){return S},_c:function(){return D},cw:function(){return pe},de:function(){return F},i6:function(){return N},iM:function(){return V},tB:function(){return Z},uX:function(){return M},vD:function(){return X}});var G=m(3237),W=m(1120),A=m(5671),H=m(3144),P=m(136),I=m(9388),T=m(797),E=m(7451),j=m(3489);function w(fe){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new N({method:"GET",url:fe,headers:ue})}function Z(fe,ue,de){return new N({method:"POST",url:fe,body:ue,headers:de})}function D(fe,ue){return new N({method:"DELETE",url:fe,headers:ue})}function b(fe,ue,de){return new N({method:"PUT",url:fe,body:ue,headers:de})}function S(fe,ue,de){return new N({method:"PATCH",url:fe,body:ue,headers:de})}var k=(0,m(4850).U)(function(fe,ue){return fe.response});function M(fe,ue){return k(new N({method:"GET",url:fe,responseType:"json",headers:ue}))}var fe,N=function(fe){(0,P.Z)(de,fe);var ue=(0,I.Z)(de);function de(ge){var je;(0,A.Z)(this,de),je=ue.call(this);var ot={async:!0,createXHR:function(){return this.crossDomain?function v(){if(T.J.XMLHttpRequest)return new T.J.XMLHttpRequest;if(T.J.XDomainRequest)return new T.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function x(){if(T.J.XMLHttpRequest)return new T.J.XMLHttpRequest;var fe;try{for(var ue=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],de=0;de<3;de++)try{if(fe=ue[de],new T.J.ActiveXObject(fe))break}catch(ge){}return new T.J.ActiveXObject(fe)}catch(ge){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ge)ot.url=ge;else for(var St in ge)ge.hasOwnProperty(St)&&(ot[St]=ge[St]);return je.request=ot,je}return(0,H.Z)(de,[{key:"_subscribe",value:function(je){return new F(je,this.request)}}]),de}(E.y);N.create=((fe=function(de){return new N(de)}).get=w,fe.post=Z,fe.delete=D,fe.put=b,fe.patch=S,fe.getJSON=M,fe);var F=function(fe){(0,P.Z)(de,fe);var ue=(0,I.Z)(de);function de(ge,je){var ot;(0,A.Z)(this,de),(ot=ue.call(this,ge)).request=je,ot.done=!1;var St=je.headers=je.headers||{};return!je.crossDomain&&!ot.getHeader(St,"X-Requested-With")&&(St["X-Requested-With"]="XMLHttpRequest"),!ot.getHeader(St,"Content-Type")&&!(T.J.FormData&&je.body instanceof T.J.FormData)&&void 0!==je.body&&(St["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),je.body=ot.serializeBody(je.body,ot.getHeader(je.headers,"Content-Type")),ot.send(),ot}return(0,H.Z)(de,[{key:"next",value:function(je){this.done=!0;var Dt,ot=this.xhr,St=this.request,Tt=this.destination;try{Dt=new X(je,ot,St)}catch(Rt){return Tt.error(Rt)}Tt.next(Dt)}},{key:"send",value:function(){var je=this.request,ot=this.request,St=ot.user,Tt=ot.method,Dt=ot.url,Rt=ot.async,Ze=ot.password,$t=ot.headers,Ft=ot.body;try{var pn=this.xhr=je.createXHR();this.setupEvents(pn,je),St?pn.open(Tt,Dt,Rt,St,Ze):pn.open(Tt,Dt,Rt),Rt&&(pn.timeout=je.timeout,pn.responseType=je.responseType),"withCredentials"in pn&&(pn.withCredentials=!!je.withCredentials),this.setHeaders(pn,$t),Ft?pn.send(Ft):pn.send()}catch(rt){this.error(rt)}}},{key:"serializeBody",value:function(je,ot){if(!je||"string"==typeof je)return je;if(T.J.FormData&&je instanceof T.J.FormData)return je;if(ot){var St=ot.indexOf(";");-1!==St&&(ot=ot.substring(0,St))}switch(ot){case"application/x-www-form-urlencoded":return Object.keys(je).map(function(Tt){return"".concat(encodeURIComponent(Tt),"=").concat(encodeURIComponent(je[Tt]))}).join("&");case"application/json":return JSON.stringify(je);default:return je}}},{key:"setHeaders",value:function(je,ot){for(var St in ot)ot.hasOwnProperty(St)&&je.setRequestHeader(St,ot[St])}},{key:"getHeader",value:function(je,ot){for(var St in je)if(St.toLowerCase()===ot.toLowerCase())return je[St]}},{key:"setupEvents",value:function(je,ot){var St=ot.progressSubscriber;function Tt(Ft){var _t,pn=Tt.subscriber,rt=Tt.progressSubscriber,Ot=Tt.request;rt&&rt.error(Ft);try{_t=new pe(this,Ot)}catch(Ct){_t=Ct}pn.error(_t)}if(je.ontimeout=Tt,Tt.request=ot,Tt.subscriber=this,Tt.progressSubscriber=St,je.upload&&"withCredentials"in je){var Dt,Rt;if(St)Dt=function(pn){Dt.progressSubscriber.next(pn)},T.J.XDomainRequest?je.onprogress=Dt:je.upload.onprogress=Dt,Dt.progressSubscriber=St;Rt=function(pn){var Ve,rt=Rt,Ot=rt.progressSubscriber,_t=rt.subscriber,Ct=rt.request;Ot&&Ot.error(pn);try{Ve=new V("ajax error",this,Ct)}catch(at){Ve=at}_t.error(Ve)},je.onerror=Rt,Rt.request=ot,Rt.subscriber=this,Rt.progressSubscriber=St}function Ze(Ft){}function $t(Ft){var pn=$t.subscriber,rt=$t.progressSubscriber,Ot=$t.request;if(4===this.readyState){var _t=1223===this.status?204:this.status,Ct="text"===this.responseType?this.response||this.responseText:this.response;if(0===_t&&(_t=Ct?200:0),_t<400)rt&&rt.complete(),pn.next(Ft),pn.complete();else{var Ve;rt&&rt.error(Ft);try{Ve=new V("ajax error "+_t,this,Ot)}catch(at){Ve=at}pn.error(Ve)}}}je.onreadystatechange=Ze,Ze.subscriber=this,Ze.progressSubscriber=St,Ze.request=ot,je.onload=$t,$t.subscriber=this,$t.progressSubscriber=St,$t.request=ot}},{key:"unsubscribe",value:function(){var je=this.done,ot=this.xhr;!je&&ot&&4!==ot.readyState&&"function"==typeof ot.abort&&ot.abort(),(0,G.Z)((0,W.Z)(de.prototype),"unsubscribe",this).call(this)}}]),de}(j.L),X=(0,H.Z)(function fe(ue,de,ge){(0,A.Z)(this,fe),this.originalEvent=ue,this.xhr=de,this.request=ge,this.status=de.status,this.responseType=de.responseType||ge.responseType,this.response=te(this.responseType,de)}),$=function(){function fe(ue,de,ge){return Error.call(this),this.message=ue,this.name="AjaxError",this.xhr=de,this.request=ge,this.status=de.status,this.responseType=de.responseType||ge.responseType,this.response=te(this.responseType,de),this}return fe.prototype=Object.create(Error.prototype),fe}(),V=$;function te(fe,ue){switch(fe){case"json":return function Q(fe){return"response"in fe?fe.responseType?fe.response:JSON.parse(fe.response||fe.responseText||"null"):JSON.parse(fe.responseText||"null")}(ue);case"xml":return ue.responseXML;default:return"response"in ue?ue.response:ue.responseText}}var pe=function be(fe,ue){return V.call(this,"ajax timeout",fe,ue),this.name="AjaxTimeoutError",this}},2741:function(Ae,K,m){"use strict";m.d(K,{p:function(){return Z}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(8929),E=m(3489),j=m(7451),R=m(4096),v=m(839),x={url:"",deserializer:function(b){return JSON.parse(b.data)},serializer:function(b){return JSON.stringify(b)}},Z=function(D){(0,P.Z)(S,D);var b=(0,I.Z)(S);function S(k,M){var N;if((0,G.Z)(this,S),N=b.call(this),k instanceof j.y)N.destination=M,N.source=k;else{var F=N._config=Object.assign({},x);if(N._output=new T.xQ,"string"==typeof k)F.url=k;else for(var X in k)k.hasOwnProperty(X)&&(F[X]=k[X]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");N.destination=new v.t}return N}return(0,W.Z)(S,[{key:"lift",value:function(M){var N=new S(this._config,this.destination);return N.operator=M,N.source=this,N}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new v.t),this._output=new T.xQ}},{key:"multiplex",value:function(M,N,F){var X=this;return new j.y(function($){try{X.next(M())}catch(Q){$.error(Q)}var V=X.subscribe(function(Q){try{F(Q)&&$.next(Q)}catch(te){$.error(te)}},function(Q){return $.error(Q)},function(){return $.complete()});return function(){try{X.next(N())}catch(Q){$.error(Q)}V.unsubscribe()}})}},{key:"_connectSocket",value:function(){var M=this,N=this._config,F=N.WebSocketCtor,X=N.protocol,$=N.url,V=N.binaryType,Q=this._output,te=null;try{te=X?new F($,X):new F($),this._socket=te,V&&(this._socket.binaryType=V)}catch(pe){return void Q.error(pe)}var be=new R.w(function(){M._socket=null,te&&1===te.readyState&&te.close()});te.onopen=function(pe){if(!M._socket)return te.close(),void M._resetState();var ue=M._config.openObserver;ue&&ue.next(pe);var de=M.destination;M.destination=E.L.create(function(ge){if(1===te.readyState)try{var je=M._config.serializer;te.send(je(ge))}catch(ot){M.destination.error(ot)}},function(ge){var je=M._config.closingObserver;je&&je.next(void 0),ge&&ge.code?te.close(ge.code,ge.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),M._resetState()},function(){var ge=M._config.closingObserver;ge&&ge.next(void 0),te.close(),M._resetState()}),de&&de instanceof v.t&&be.add(de.subscribe(M.destination))},te.onerror=function(pe){M._resetState(),Q.error(pe)},te.onclose=function(pe){M._resetState();var fe=M._config.closeObserver;fe&&fe.next(pe),pe.wasClean?Q.complete():Q.error(pe)},te.onmessage=function(pe){try{var fe=M._config.deserializer;Q.next(fe(pe))}catch(ue){Q.error(ue)}}}},{key:"_subscribe",value:function(M){var N=this,F=this.source;return F?F.subscribe(M):(this._socket||this._connectSocket(),this._output.subscribe(M),M.add(function(){var X=N._socket;0===N._output.observers.length&&(X&&1===X.readyState&&X.close(),N._resetState())}),M)}},{key:"unsubscribe",value:function(){var M=this._socket;M&&1===M.readyState&&M.close(),this._resetState(),(0,A.Z)((0,H.Z)(S.prototype),"unsubscribe",this).call(this)}}]),S}(T.ug)},8059:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var W=m(8452).i6.create},7623:function(Ae,K,m){"use strict";m.d(K,{j:function(){return W}});var G=m(2741);function W(A){return new G.p(A)}},8896:function(Ae,K,m){"use strict";m.d(K,{E:function(){return W},c:function(){return A}});var G=m(7451),W=new G.y(function(P){return P.complete()});function A(P){return P?function H(P){return new G.y(function(I){return P.schedule(function(){return I.complete()})})}(P):W}},567:function(Ae,K,m){"use strict";m.d(K,{D:function(){return T}});var G=m(4902),W=m(7451),A=m(6688),H=m(4850),P=m(7830),I=m(3527);function T(){for(var j=arguments.length,R=new Array(j),v=0;v<j;v++)R[v]=arguments[v];if(1===R.length){var x=R[0];if((0,A.k)(x))return E(x,null);if((0,P.K)(x)&&Object.getPrototypeOf(x)===Object.prototype){var w=Object.keys(x);return E(w.map(function(D){return x[D]}),w)}}if("function"==typeof R[R.length-1]){var Z=R.pop();return E(R=1===R.length&&(0,A.k)(R[0])?R[0]:R,null).pipe((0,H.U)(function(D){return Z.apply(void 0,(0,G.Z)(D))}))}return E(R,null)}function E(j,R){return new W.y(function(v){var x=j.length;if(0!==x)for(var w=new Array(x),Z=0,D=0,b=function(M){var N=(0,I.D)(j[M]),F=!1;v.add(N.subscribe({next:function($){F||(F=!0,D++),w[M]=$},error:function($){return v.error($)},complete:function(){(++Z===x||!F)&&(D===x&&v.next(R?R.reduce(function($,V,Q){return $[V]=w[Q],$},{}):w),v.complete())}}))},S=0;S<x;S++)b(S);else v.complete()})}},3527:function(Ae,K,m){"use strict";m.d(K,{D:function(){return H}});var G=m(7451),W=m(3071),A=m(6266);function H(P,I){return I?(0,A.x)(P,I):P instanceof G.y?P:new G.y((0,W.s)(P))}},3009:function(Ae,K,m){"use strict";m.d(K,{n:function(){return H}});var G=m(7451),W=m(3650),A=m(6454);function H(P,I){return I?(0,A.r)(P,I):new G.y((0,W.V)(P))}},3753:function(Ae,K,m){"use strict";m.d(K,{R:function(){return T}});var G=m(4902),W=m(7451),A=m(6688),H=m(7043),P=m(4850);Object.prototype.toString;function T(x,w,Z,D){return(0,H.m)(Z)&&(D=Z,Z=void 0),D?T(x,w,Z).pipe((0,P.U)(function(b){return(0,A.k)(b)?D.apply(void 0,(0,G.Z)(b)):D(b)})):new W.y(function(b){E(x,w,function S(k){arguments.length>1?b.next(Array.prototype.slice.call(arguments)):b.next(k)},b,Z)})}function E(x,w,Z,D,b){var S;if(function v(x){return x&&"function"==typeof x.addEventListener&&"function"==typeof x.removeEventListener}(x)){var k=x;x.addEventListener(w,Z,b),S=function(){return k.removeEventListener(w,Z,b)}}else if(function R(x){return x&&"function"==typeof x.on&&"function"==typeof x.off}(x)){var M=x;x.on(w,Z),S=function(){return M.off(w,Z)}}else if(function j(x){return x&&"function"==typeof x.addListener&&"function"==typeof x.removeListener}(x)){var N=x;x.addListener(w,Z),S=function(){return N.removeListener(w,Z)}}else{if(!x||!x.length)throw new TypeError("Invalid event target");for(var F=0,X=x.length;F<X;F++)E(x[F],w,Z,D,b)}D.add(S)}},1715:function(Ae,K,m){"use strict";m.d(K,{F:function(){return H}});var G=m(7451),W=m(353),A=m(4241);function H(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.P;return(!(0,A.k)(I)||I<0)&&(I=0),(!T||"function"!=typeof T.schedule)&&(T=W.P),new G.y(function(E){return E.add(T.schedule(P,I,{subscriber:E,counter:0,period:I})),E})}function P(I){var T=I.subscriber,E=I.counter,j=I.period;T.next(E),this.schedule({subscriber:T,counter:E+1,period:j},j)}},6787:function(Ae,K,m){"use strict";m.d(K,{T:function(){return P}});var G=m(7451),W=m(2866),A=m(9146),H=m(3009);function P(){for(var I=Number.POSITIVE_INFINITY,T=null,E=arguments.length,j=new Array(E),R=0;R<E;R++)j[R]=arguments[R];var v=j[j.length-1];return(0,W.K)(v)?(T=j.pop(),j.length>1&&"number"==typeof j[j.length-1]&&(I=j.pop())):"number"==typeof v&&(I=j.pop()),null===T&&1===j.length&&j[0]instanceof G.y?j[0]:(0,A.J)(I)((0,H.n)(j,T))}},1086:function(Ae,K,m){"use strict";m.d(K,{of:function(){return H}});var G=m(2866),W=m(3009),A=m(6454);function H(){for(var P=arguments.length,I=new Array(P),T=0;T<P;T++)I[T]=arguments[T];var E=I[I.length-1];return(0,G.K)(E)?(I.pop(),(0,A.r)(I,E)):(0,W.n)(I)}},1946:function(Ae,K,m){"use strict";m.d(K,{S3:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(6688),I=m(3009),T=m(826),E=m(9054);function j(){for(var x=arguments.length,w=new Array(x),Z=0;Z<x;Z++)w[Z]=arguments[Z];if(1===w.length){if(!(0,P.k)(w[0]))return w[0];w=w[0]}return(0,I.n)(w,void 0).lift(new R)}var R=function(){function x(){(0,A.Z)(this,x)}return(0,H.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new v(Z))}}]),x}(),v=function(x){(0,G.Z)(Z,x);var w=(0,W.Z)(Z);function Z(D){var b;return(0,A.Z)(this,Z),(b=w.call(this,D)).hasFirst=!1,b.observables=[],b.subscriptions=[],b}return(0,H.Z)(Z,[{key:"_next",value:function(b){this.observables.push(b)}},{key:"_complete",value:function(){var b=this.observables,S=b.length;if(0===S)this.destination.complete();else{for(var k=0;k<S&&!this.hasFirst;k++){var M=b[k],N=(0,E.D)(this,M,void 0,k);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}},{key:"notifyNext",value:function(b,S,k){if(!this.hasFirst){this.hasFirst=!0;for(var M=0;M<this.subscriptions.length;M++)if(M!==k){var N=this.subscriptions[M];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(S)}}]),Z}(T.L)},3103:function(Ae,K,m){"use strict";m.d(K,{W:function(){return A},w:function(){return W}});var G=m(7451);function W(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,P=arguments.length>1?arguments[1]:void 0,I=arguments.length>2?arguments[2]:void 0;return new G.y(function(T){void 0===P&&(P=H,H=0);var E=0,j=H;if(I)return I.schedule(A,0,{index:E,count:P,start:H,subscriber:T});for(;;){if(E++>=P){T.complete();break}if(T.next(j++),T.closed)break}})}function A(H){var P=H.start,I=H.index,T=H.count,E=H.subscriber;I>=T?E.complete():(E.next(P),!E.closed&&(H.index=I+1,H.start=P+1,this.schedule(H)))}},1737:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(7451);function W(H,P){return P?new G.y(function(I){return P.schedule(A,0,{error:H,subscriber:I})}):new G.y(function(I){return I.error(H)})}function A(H){var P=H.error;H.subscriber.error(P)}},8723:function(Ae,K,m){"use strict";m.d(K,{H:function(){return P}});var G=m(7451),W=m(353),A=m(4241),H=m(2866);function P(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,E=arguments.length>1?arguments[1]:void 0,j=arguments.length>2?arguments[2]:void 0,R=-1;return(0,A.k)(E)?R=Number(E)<1?1:Number(E):(0,H.K)(E)&&(j=E),(0,H.K)(j)||(j=W.P),new G.y(function(v){var x=(0,A.k)(T)?T:+T-j.now();return j.schedule(I,x,{index:0,period:R,subscriber:v})})}function I(T){var E=T.index,j=T.period,R=T.subscriber;if(R.next(E),!R.closed){if(-1===j)return R.complete();T.index=E+1,this.schedule(T,j)}}},1746:function(Ae,K,m){"use strict";m.d(K,{$R:function(){return R},mx:function(){return v}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3009),I=m(6688),T=m(3489),E=m(5430),j=m(1177);function R(){for(var b=arguments.length,S=new Array(b),k=0;k<b;k++)S[k]=arguments[k];var M=S[S.length-1];return"function"==typeof M&&S.pop(),(0,P.n)(S,void 0).lift(new v(M))}var v=function(){function b(S){(0,A.Z)(this,b),this.resultSelector=S}return(0,H.Z)(b,[{key:"call",value:function(k,M){return M.subscribe(new x(k,this.resultSelector))}}]),b}(),x=function(b){(0,G.Z)(k,b);var S=(0,W.Z)(k);function k(M,N){var F;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,A.Z)(this,k),(F=S.call(this,M)).resultSelector=N,F.iterators=[],F.active=0,F.resultSelector="function"==typeof N?N:void 0,F}return(0,H.Z)(k,[{key:"_next",value:function(N){var F=this.iterators;(0,I.k)(N)?F.push(new Z(N)):"function"==typeof N[E.hZ]?F.push(new w(N[E.hZ]())):F.push(new D(this.destination,this,N))}},{key:"_complete",value:function(){var N=this.iterators,F=N.length;if(this.unsubscribe(),0!==F){this.active=F;for(var X=0;X<F;X++){var $=N[X];if($.stillUnsubscribed)this.destination.add($.subscribe());else this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var N=this.iterators,F=N.length,X=this.destination,$=0;$<F;$++){var V=N[$];if("function"==typeof V.hasValue&&!V.hasValue())return}for(var Q=!1,te=[],be=0;be<F;be++){var pe=N[be],fe=pe.next();if(pe.hasCompleted()&&(Q=!0),fe.done)return void X.complete();te.push(fe.value)}this.resultSelector?this._tryresultSelector(te):X.next(te),Q&&X.complete()}},{key:"_tryresultSelector",value:function(N){var F;try{F=this.resultSelector.apply(this,N)}catch(X){return void this.destination.error(X)}this.destination.next(F)}}]),k}(T.L),w=function(){function b(S){(0,A.Z)(this,b),this.iterator=S,this.nextResult=S.next()}return(0,H.Z)(b,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var k=this.nextResult;return this.nextResult=this.iterator.next(),k}},{key:"hasCompleted",value:function(){var k=this.nextResult;return Boolean(k&&k.done)}}]),b}(),Z=function(){function b(S){(0,A.Z)(this,b),this.array=S,this.index=0,this.length=0,this.length=S.length}return(0,H.Z)(b,[{key:E.hZ,value:function(){return this}},{key:"next",value:function(k){var M=this.index++,N=this.array;return M<this.length?{value:N[M],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),b}(),D=function(b){(0,G.Z)(k,b);var S=(0,W.Z)(k);function k(M,N,F){var X;return(0,A.Z)(this,k),(X=S.call(this,M)).parent=N,X.observable=F,X.stillUnsubscribed=!0,X.buffer=[],X.isComplete=!1,X}return(0,H.Z)(k,[{key:E.hZ,value:function(){return this}},{key:"next",value:function(){var N=this.buffer;return 0===N.length&&this.isComplete?{value:null,done:!0}:{value:N.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(N){this.buffer.push(N),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,j.ft)(this.observable,new j.IY(this))}}]),k}(j.Ds)},384:function(Ae,K,m){"use strict";m.d(K,{U:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(1177);function I(j){return function(v){return v.lift(new T(j))}}var T=function(){function j(R){(0,A.Z)(this,j),this.durationSelector=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.durationSelector))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).durationSelector=w,Z.hasValue=!1,Z}return(0,H.Z)(v,[{key:"_next",value:function(w){if(this.value=w,this.hasValue=!0,!this.throttled){var Z;try{Z=(0,this.durationSelector)(w)}catch(S){return this.destination.error(S)}var b=(0,P.ft)(Z,new P.IY(this));!b||b.closed?this.clearThrottle():this.add(this.throttled=b)}}},{key:"clearThrottle",value:function(){var w=this.value,Z=this.hasValue,D=this.throttled;D&&(this.remove(D),this.throttled=void 0,D.unsubscribe()),Z&&(this.value=void 0,this.hasValue=!1,this.destination.next(w))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),v}(P.Ds)},7568:function(Ae,K,m){"use strict";m.d(K,{e:function(){return H}});var G=m(353),W=m(384),A=m(8723);function H(P){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.P;return(0,W.U)(function(){return(0,A.H)(P,I)})}},7221:function(Ae,K,m){"use strict";m.d(K,{K:function(){return E}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),P=m(5671),I=m(3144),T=m(1177);function E(v){return function(w){var Z=new j(v),D=w.lift(Z);return Z.caught=D}}var j=function(){function v(x){(0,P.Z)(this,v),this.selector=x}return(0,I.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.selector,this.caught))}}]),v}(),R=function(v){(0,A.Z)(w,v);var x=(0,H.Z)(w);function w(Z,D,b){var S;return(0,P.Z)(this,w),(S=x.call(this,Z)).selector=D,S.caught=b,S}return(0,I.Z)(w,[{key:"error",value:function(D){if(!this.isStopped){var b;try{b=this.selector(D,this.caught)}catch(M){return void(0,G.Z)((0,W.Z)(w.prototype),"error",this).call(this,M)}this._unsubscribeAndRecycle();var S=new T.IY(this);this.add(S);var k=(0,T.ft)(b,S);k!==S&&this.add(k)}}}]),w}(T.Ds)},534:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(9146);function W(){return(0,G.J)(1)}},1406:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(1709);function W(A,H){return(0,G.zg)(A,H,1)}},3906:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j){return function(R){return R.lift(new T(j,R))}}var T=function(){function j(R,v){(0,A.Z)(this,j),this.predicate=R,this.source=v}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.source))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.source=Z,D.count=0,D.index=0,D}return(0,H.Z)(v,[{key:"_next",value:function(w){this.predicate?this._tryPredicate(w):this.count++}},{key:"_tryPredicate",value:function(w){var Z;try{Z=this.predicate(w,this.index++,this.source)}catch(D){return void this.destination.error(D)}Z&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),v}(P.L)},13:function(Ae,K,m){"use strict";m.d(K,{b:function(){return T}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489),I=m(353);function T(v){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.P;return function(w){return w.lift(new E(v,x))}}var E=function(){function v(x,w){(0,A.Z)(this,v),this.dueTime=x,this.scheduler=w}return(0,H.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new j(w,this.dueTime,this.scheduler))}}]),v}(),j=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D,b){var S;return(0,A.Z)(this,w),(S=x.call(this,Z)).dueTime=D,S.scheduler=b,S.debouncedSubscription=null,S.lastValue=null,S.hasValue=!1,S}return(0,H.Z)(w,[{key:"_next",value:function(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(R,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var D=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}},{key:"clearDebounce",value:function(){var D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}]),w}(P.L);function R(v){v.debouncedNext()}},7314:function(Ae,K,m){"use strict";m.d(K,{d:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(R){return R.lift(new T(j))}}var T=function(){function j(R){(0,A.Z)(this,j),this.defaultValue=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.defaultValue))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).defaultValue=w,Z.isEmpty=!0,Z}return(0,H.Z)(v,[{key:"_next",value:function(w){this.isEmpty=!1,this.destination.next(w)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),v}(P.L)},943:function(Ae,K,m){"use strict";m.d(K,{g:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(353),I=m(2697),T=m(3489),E=m(9312);function j(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P,D=(0,I.J)(w),b=D?+w-Z.now():Math.abs(w);return function(S){return S.lift(new R(b,Z))}}var R=function(){function w(Z,D){(0,A.Z)(this,w),this.delay=Z,this.scheduler=D}return(0,H.Z)(w,[{key:"call",value:function(D,b){return b.subscribe(new v(D,this.delay,this.scheduler))}}]),w}(),v=function(w){(0,G.Z)(D,w);var Z=(0,W.Z)(D);function D(b,S,k){var M;return(0,A.Z)(this,D),(M=Z.call(this,b)).delay=S,M.scheduler=k,M.queue=[],M.active=!1,M.errored=!1,M}return(0,H.Z)(D,[{key:"_schedule",value:function(S){this.active=!0,this.destination.add(S.schedule(D.dispatch,this.delay,{source:this,destination:this.destination,scheduler:S}))}},{key:"scheduleNotification",value:function(S){if(!0!==this.errored){var k=this.scheduler,M=new x(k.now()+this.delay,S);this.queue.push(M),!1===this.active&&this._schedule(k)}}},{key:"_next",value:function(S){this.scheduleNotification(E.P.createNext(S))}},{key:"_error",value:function(S){this.errored=!0,this.queue=[],this.destination.error(S),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(E.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){for(var k=S.source,M=k.queue,N=S.scheduler,F=S.destination;M.length>0&&M[0].time-N.now()<=0;)M.shift().notification.observe(F);if(M.length>0){var X=Math.max(0,M[0].time-N.now());this.schedule(S,X)}else this.unsubscribe(),k.active=!1}}]),D}(T.L),x=(0,H.Z)(function w(Z,D){(0,A.Z)(this,w),this.time=Z,this.notification=D})},5778:function(Ae,K,m){"use strict";m.d(K,{x:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j,R){return function(v){return v.lift(new T(j,R))}}var T=function(){function j(R,v){(0,A.Z)(this,j),this.compare=R,this.keySelector=v}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.compare,this.keySelector))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).keySelector=Z,D.hasKey=!1,"function"==typeof w&&(D.compare=w),D}return(0,H.Z)(v,[{key:"compare",value:function(w,Z){return w===Z}},{key:"_next",value:function(w){var Z;try{var D=this.keySelector;Z=D?D(w):w}catch(k){return this.destination.error(k)}var b=!1;if(this.hasKey)try{b=(0,this.compare)(this.key,Z)}catch(k){return this.destination.error(k)}else this.hasKey=!0;b||(this.key=Z,this.destination.next(w))}}]),v}(P.L)},9664:function(Ae,K,m){"use strict";m.d(K,{h:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j,R){return function(x){return x.lift(new T(j,R))}}var T=function(){function j(R,v){(0,A.Z)(this,j),this.predicate=R,this.thisArg=v}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.thisArg))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.thisArg=Z,D.count=0,D}return(0,H.Z)(v,[{key:"_next",value:function(w){var Z;try{Z=this.predicate.call(this.thisArg,w,this.count++)}catch(D){return void this.destination.error(D)}Z&&this.destination.next(w)}}]),v}(P.L)},537:function(Ae,K,m){"use strict";m.d(K,{x:function(){return T}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489),I=m(4096);function T(R){return function(v){return v.lift(new E(R))}}var E=function(){function R(v){(0,A.Z)(this,R),this.callback=v}return(0,H.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new j(x,this.callback))}}]),R}(),j=function(R){(0,G.Z)(x,R);var v=(0,W.Z)(x);function x(w,Z){var D;return(0,A.Z)(this,x),(D=v.call(this,w)).add(new I.w(Z)),D}return(0,H.Z)(x)}(P.L)},7224:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T}});var G=m(4450),W=m(9664),A=m(2986),H=m(7314),P=m(4907),I=m(5379);function T(E,j){var R=arguments.length>=2;return function(v){return v.pipe(E?(0,W.h)(function(x,w){return E(x,w,v)}):I.y,(0,A.q)(1),R?(0,H.d)(j):(0,P.T)(function(){return new G.K}))}}},4002:function(Ae,K,m){"use strict";m.d(K,{T:function(){return D},v:function(){return v}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),P=m(5671),I=m(3144),T=m(3489),E=m(4096),j=m(7451),R=m(8929);function v(S,k,M,N){return function(F){return F.lift(new x(S,k,M,N))}}var x=function(){function S(k,M,N,F){(0,P.Z)(this,S),this.keySelector=k,this.elementSelector=M,this.durationSelector=N,this.subjectSelector=F}return(0,I.Z)(S,[{key:"call",value:function(M,N){return N.subscribe(new w(M,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),S}(),w=function(S){(0,A.Z)(M,S);var k=(0,H.Z)(M);function M(N,F,X,$,V){var Q;return(0,P.Z)(this,M),(Q=k.call(this,N)).keySelector=F,Q.elementSelector=X,Q.durationSelector=$,Q.subjectSelector=V,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,I.Z)(M,[{key:"_next",value:function(F){var X;try{X=this.keySelector(F)}catch($){return void this.error($)}this._group(F,X)}},{key:"_group",value:function(F,X){var $=this.groups;$||($=this.groups=new Map);var Q,V=$.get(X);if(this.elementSelector)try{Q=this.elementSelector(F)}catch(pe){this.error(pe)}else Q=F;if(!V){V=this.subjectSelector?this.subjectSelector():new R.xQ,$.set(X,V);var te=new D(X,V,this);if(this.destination.next(te),this.durationSelector){var be;try{be=this.durationSelector(new D(X,V))}catch(pe){return void this.error(pe)}this.add(be.subscribe(new Z(X,V,this)))}}V.closed||V.next(Q)}},{key:"_error",value:function(F){var X=this.groups;X&&(X.forEach(function($,V){$.error(F)}),X.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(X,$){X.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,G.Z)((0,W.Z)(M.prototype),"unsubscribe",this).call(this))}}]),M}(T.L),Z=function(S){(0,A.Z)(M,S);var k=(0,H.Z)(M);function M(N,F,X){var $;return(0,P.Z)(this,M),($=k.call(this,F)).key=N,$.group=F,$.parent=X,$}return(0,I.Z)(M,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,X=this.key;this.key=this.parent=null,F&&F.removeGroup(X)}}]),M}(T.L),D=function(S){(0,A.Z)(M,S);var k=(0,H.Z)(M);function M(N,F,X){var $;return(0,P.Z)(this,M),($=k.call(this)).key=N,$.groupSubject=F,$.refCountSubscription=X,$}return(0,I.Z)(M,[{key:"_subscribe",value:function(F){var X=new E.w,$=this.refCountSubscription,V=this.groupSubject;return $&&!$.closed&&X.add(new b($)),X.add(V.subscribe(F)),X}}]),M}(j.y),b=function(S){(0,A.Z)(M,S);var k=(0,H.Z)(M);function M(N){var F;return(0,P.Z)(this,M),(F=k.call(this)).parent=N,N.count++,F}return(0,I.Z)(M,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,G.Z)((0,W.Z)(M.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),M}(E.w)},8127:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return T}});var G=m(4450),W=m(9664),A=m(2821),H=m(4907),P=m(7314),I=m(5379);function T(E,j){var R=arguments.length>=2;return function(v){return v.pipe(E?(0,W.h)(function(x,w){return E(x,w,v)}):I.y,(0,A.h)(1),R?(0,P.d)(j):(0,H.T)(function(){return new G.K}))}}},4850:function(Ae,K,m){"use strict";m.d(K,{U:function(){return T}});var G=m(7326),W=m(136),A=m(9388),H=m(5671),P=m(3144),I=m(3489);function T(R,v){return function(w){if("function"!=typeof R)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return w.lift(new E(R,v))}}var E=function(){function R(v,x){(0,H.Z)(this,R),this.project=v,this.thisArg=x}return(0,P.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new j(x,this.project,this.thisArg))}}]),R}(),j=function(R){(0,W.Z)(x,R);var v=(0,A.Z)(x);function x(w,Z,D){var b;return(0,H.Z)(this,x),(b=v.call(this,w)).project=Z,b.count=0,b.thisArg=D||(0,G.Z)(b),b}return(0,P.Z)(x,[{key:"_next",value:function(Z){var D;try{D=this.project.call(this.thisArg,Z,this.count++)}catch(b){return void this.destination.error(b)}this.destination.next(D)}}]),x}(I.L)},7604:function(Ae,K,m){"use strict";m.d(K,{h:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j){return function(R){return R.lift(new T(j))}}var T=function(){function j(R){(0,A.Z)(this,j),this.value=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.value))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).value=w,Z}return(0,H.Z)(v,[{key:"_next",value:function(w){this.destination.next(this.value)}}]),v}(P.L)},9146:function(Ae,K,m){"use strict";m.d(K,{J:function(){return A}});var G=m(1709),W=m(5379);function A(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,G.zg)(W.y,H)}},1709:function(Ae,K,m){"use strict";m.d(K,{VS:function(){return v},zg:function(){return E}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(4850),I=m(3527),T=m(1177);function E(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof w?function(D){return D.pipe(E(function(b,S){return(0,I.D)(x(b,S)).pipe((0,P.U)(function(k,M){return w(b,k,S,M)}))},Z))}:("number"==typeof w&&(Z=w),function(D){return D.lift(new j(x,Z))})}var j=function(){function x(w){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,A.Z)(this,x),this.project=w,this.concurrent=Z}return(0,H.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new R(Z,this.project,this.concurrent))}}]),x}(),R=function(x){(0,G.Z)(Z,x);var w=(0,W.Z)(Z);function Z(D,b){var S,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,Z),(S=w.call(this,D)).project=b,S.concurrent=k,S.hasCompleted=!1,S.buffer=[],S.active=0,S.index=0,S}return(0,H.Z)(Z,[{key:"_next",value:function(b){this.active<this.concurrent?this._tryNext(b):this.buffer.push(b)}},{key:"_tryNext",value:function(b){var S,k=this.index++;try{S=this.project(b,k)}catch(M){return void this.destination.error(M)}this.active++,this._innerSub(S)}},{key:"_innerSub",value:function(b){var S=new T.IY(this),k=this.destination;k.add(S);var M=(0,T.ft)(b,S);M!==S&&k.add(M)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(b){this.destination.next(b)}},{key:"notifyComplete",value:function(){var b=this.buffer;this.active--,b.length>0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),Z}(T.Ds),v=E},2536:function(Ae,K,m){"use strict";m.d(K,{O:function(){return H}});var G=m(5671),W=m(3144),A=m(1762);function H(I,T){return function(j){var R;if(R="function"==typeof I?I:function(){return I},"function"==typeof T)return j.lift(new P(R,T));var v=Object.create(j,A.N);return v.source=j,v.subjectFactory=R,v}}var P=function(){function I(T,E){(0,G.Z)(this,I),this.subjectFactory=T,this.selector=E}return(0,W.Z)(I,[{key:"call",value:function(E,j){var R=this.selector,v=this.subjectFactory(),x=R(v).subscribe(E);return x.add(j.subscribe(v)),x}}]),I}()},7770:function(Ae,K,m){"use strict";m.d(K,{QV:function(){return T},ht:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489),I=m(9312);function T(v){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Z){return Z.lift(new E(v,x))}}var E=function(){function v(x){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,A.Z)(this,v),this.scheduler=x,this.delay=w}return(0,H.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new j(w,this.scheduler,this.delay))}}]),v}(),j=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,A.Z)(this,w),(b=x.call(this,Z)).scheduler=D,b.delay=S,b}return(0,H.Z)(w,[{key:"scheduleMessage",value:function(D){this.destination.add(this.scheduler.schedule(w.dispatch,this.delay,new R(D,this.destination)))}},{key:"_next",value:function(D){this.scheduleMessage(I.P.createNext(D))}},{key:"_error",value:function(D){this.scheduleMessage(I.P.createError(D)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(I.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(D){var b=D.notification,S=D.destination;b.observe(S),this.unsubscribe()}}]),w}(P.L),R=(0,H.Z)(function v(x,w){(0,A.Z)(this,v),this.notification=x,this.destination=w})},519:function(Ae,K,m){"use strict";m.d(K,{G:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(){return function(j){return j.lift(new T)}}var T=function(){function j(){(0,A.Z)(this,j)}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x){var w;return(0,A.Z)(this,v),(w=R.call(this,x)).hasPrev=!1,w}return(0,H.Z)(v,[{key:"_next",value:function(w){var Z;this.hasPrev?Z=[this.prev,w]:this.hasPrev=!0,this.prev=w,Z&&this.destination.next(Z)}}]),v}(P.L)},4327:function(Ae,K,m){"use strict";m.d(K,{x:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(){return function(R){return R.lift(new T(R))}}var T=function(){function j(R){(0,A.Z)(this,j),this.connectable=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){var w=this.connectable;w._refCount++;var Z=new E(v,w),D=x.subscribe(Z);return Z.closed||(Z.connection=w.connect()),D}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).connectable=w,Z}return(0,H.Z)(v,[{key:"_unsubscribe",value:function(){var w=this.connectable;if(w){this.connectable=null;var Z=w._refCount;if(Z<=0)this.connection=null;else if(w._refCount=Z-1,Z>1)this.connection=null;else{var D=this.connection,b=w._connection;this.connection=null,b&&(!D||b===D)&&b.unsubscribe()}}else this.connection=null}}]),v}(P.L)},2014:function(Ae,K,m){"use strict";m.d(K,{R:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j,R){var v=!1;return arguments.length>=2&&(v=!0),function(w){return w.lift(new T(j,R,v))}}var T=function(){function j(R,v){var x=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,A.Z)(this,j),this.accumulator=R,this.seed=v,this.hasSeed=x}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.accumulator,this.seed,this.hasSeed))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w,Z,D){var b;return(0,A.Z)(this,v),(b=R.call(this,x)).accumulator=w,b._seed=Z,b.hasSeed=D,b.index=0,b}return(0,H.Z)(v,[{key:"seed",get:function(){return this._seed},set:function(w){this.hasSeed=!0,this._seed=w}},{key:"_next",value:function(w){if(this.hasSeed)return this._tryNext(w);this.seed=w,this.destination.next(w)}},{key:"_tryNext",value:function(w){var D,Z=this.index++;try{D=this.accumulator(this.seed,w,Z)}catch(b){this.destination.error(b)}this.seed=D,this.destination.next(D)}}]),v}(P.L)},8117:function(Ae,K,m){"use strict";m.d(K,{B:function(){return P}});var G=m(2536),W=m(4327),A=m(8929);function H(){return new A.xQ}function P(){return function(I){return(0,W.x)()((0,G.O)(H)(I))}}},5154:function(Ae,K,m){"use strict";m.d(K,{d:function(){return W}});var G=m(839);function W(H,P,I){var T;return T=H&&"object"==typeof H?H:{bufferSize:H,windowTime:P,refCount:!1,scheduler:I},function(E){return E.lift(function A(H){var v,w,P=H.bufferSize,I=void 0===P?Number.POSITIVE_INFINITY:P,T=H.windowTime,E=void 0===T?Number.POSITIVE_INFINITY:T,j=H.refCount,R=H.scheduler,x=0,Z=!1,D=!1;return function(S){var k;x++,!v||Z?(Z=!1,v=new G.t(I,E,R),k=v.subscribe(this),w=S.subscribe({next:function(N){v.next(N)},error:function(N){Z=!0,v.error(N)},complete:function(){D=!0,w=void 0,v.complete()}}),D&&(w=void 0)):k=v.subscribe(this),this.add(function(){x--,k.unsubscribe(),k=void 0,w&&!D&&j&&0===x&&(w.unsubscribe(),w=void 0,v=void 0)})}}(T))}}},1307:function(Ae,K,m){"use strict";m.d(K,{T:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j){return function(R){return R.lift(new T(j))}}var T=function(){function j(R){(0,A.Z)(this,j),this.total=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.total))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w){var Z;return(0,A.Z)(this,v),(Z=R.call(this,x)).total=w,Z.count=0,Z}return(0,H.Z)(v,[{key:"_next",value:function(w){++this.count>this.total&&this.destination.next(w)}}]),v}(P.L)},1059:function(Ae,K,m){"use strict";m.d(K,{O:function(){return A}});var G=m(1961),W=m(2866);function A(){for(var H=arguments.length,P=new Array(H),I=0;I<H;I++)P[I]=arguments[I];var T=P[P.length-1];return(0,W.K)(T)?(P.pop(),function(E){return(0,G.z)(P,E,T)}):function(E){return(0,G.z)(P,E)}}},7545:function(Ae,K,m){"use strict";m.d(K,{w:function(){return R}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),P=m(5671),I=m(3144),T=m(4850),E=m(3527),j=m(1177);function R(w,Z){return"function"==typeof Z?function(D){return D.pipe(R(function(b,S){return(0,E.D)(w(b,S)).pipe((0,T.U)(function(k,M){return Z(b,k,S,M)}))}))}:function(D){return D.lift(new v(w))}}var v=function(){function w(Z){(0,P.Z)(this,w),this.project=Z}return(0,I.Z)(w,[{key:"call",value:function(D,b){return b.subscribe(new x(D,this.project))}}]),w}(),x=function(w){(0,A.Z)(D,w);var Z=(0,H.Z)(D);function D(b,S){var k;return(0,P.Z)(this,D),(k=Z.call(this,b)).project=S,k.index=0,k}return(0,I.Z)(D,[{key:"_next",value:function(S){var k,M=this.index++;try{k=this.project(S,M)}catch(N){return void this.destination.error(N)}this._innerSub(k)}},{key:"_innerSub",value:function(S){var k=this.innerSubscription;k&&k.unsubscribe();var M=new j.IY(this),N=this.destination;N.add(M),this.innerSubscription=(0,j.ft)(S,M),this.innerSubscription!==M&&N.add(this.innerSubscription)}},{key:"_complete",value:function(){var S=this.innerSubscription;(!S||S.closed)&&(0,G.Z)((0,W.Z)(D.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,G.Z)((0,W.Z)(D.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(S){this.destination.next(S)}}]),D}(j.Ds)},2986:function(Ae,K,m){"use strict";m.d(K,{q:function(){return E}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489),I=m(4231),T=m(8896);function E(v){return function(x){return 0===v?(0,T.c)():x.lift(new j(v))}}var j=function(){function v(x){if((0,A.Z)(this,v),this.total=x,this.total<0)throw new I.W}return(0,H.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.total))}}]),v}(),R=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).total=D,b.count=0,b}return(0,H.Z)(w,[{key:"_next",value:function(D){var b=this.total,S=++this.count;S<=b&&(this.destination.next(D),S===b&&(this.destination.complete(),this.unsubscribe()))}}]),w}(P.L)},2821:function(Ae,K,m){"use strict";m.d(K,{h:function(){return E}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489),I=m(4231),T=m(8896);function E(v){return function(w){return 0===v?(0,T.c)():w.lift(new j(v))}}var j=function(){function v(x){if((0,A.Z)(this,v),this.total=x,this.total<0)throw new I.W}return(0,H.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new R(w,this.total))}}]),v}(),R=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).total=D,b.ring=new Array,b.count=0,b}return(0,H.Z)(w,[{key:"_next",value:function(D){var b=this.ring,S=this.total,k=this.count++;b.length<S?b.push(D):b[k%S]=D}},{key:"_complete",value:function(){var D=this.destination,b=this.count;if(b>0)for(var S=this.count>=this.total?this.total:this.count,k=this.ring,M=0;M<S;M++){var N=b++%S;D.next(k[N])}D.complete()}}]),w}(P.L)},7625:function(Ae,K,m){"use strict";m.d(K,{R:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(1177);function I(j){return function(R){return R.lift(new T(j))}}var T=function(){function j(R){(0,A.Z)(this,j),this.notifier=R}return(0,H.Z)(j,[{key:"call",value:function(v,x){var w=new E(v),Z=(0,P.ft)(this.notifier,new P.IY(w));return Z&&!w.seenValue?(w.add(Z),x.subscribe(w)):w}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x){var w;return(0,A.Z)(this,v),(w=R.call(this,x)).seenValue=!1,w}return(0,H.Z)(v,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),v}(P.Ds)},4290:function(Ae,K,m){"use strict";m.d(K,{o:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(3489);function I(j){var R=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(v){return v.lift(new T(j,R))}}var T=function(){function j(R,v){(0,A.Z)(this,j),this.predicate=R,this.inclusive=v}return(0,H.Z)(j,[{key:"call",value:function(v,x){return x.subscribe(new E(v,this.predicate,this.inclusive))}}]),j}(),E=function(j){(0,G.Z)(v,j);var R=(0,W.Z)(v);function v(x,w,Z){var D;return(0,A.Z)(this,v),(D=R.call(this,x)).predicate=w,D.inclusive=Z,D.index=0,D}return(0,H.Z)(v,[{key:"_next",value:function(w){var D,Z=this.destination;try{D=this.predicate(w,this.index++)}catch(b){return void Z.error(b)}this.nextOrComplete(w,D)}},{key:"nextOrComplete",value:function(w,Z){var D=this.destination;Boolean(Z)?D.next(w):(this.inclusive&&D.next(w),D.complete())}}]),v}(P.L)},2994:function(Ae,K,m){"use strict";m.d(K,{b:function(){return j}});var G=m(7326),W=m(136),A=m(9388),H=m(5671),P=m(3144),I=m(3489),T=m(7876),E=m(7043);function j(x,w,Z){return function(b){return b.lift(new R(x,w,Z))}}var R=function(){function x(w,Z,D){(0,H.Z)(this,x),this.nextOrObserver=w,this.error=Z,this.complete=D}return(0,P.Z)(x,[{key:"call",value:function(Z,D){return D.subscribe(new v(Z,this.nextOrObserver,this.error,this.complete))}}]),x}(),v=function(x){(0,W.Z)(Z,x);var w=(0,A.Z)(Z);function Z(D,b,S,k){var M;return(0,H.Z)(this,Z),(M=w.call(this,D))._tapNext=T.Z,M._tapError=T.Z,M._tapComplete=T.Z,M._tapError=S||T.Z,M._tapComplete=k||T.Z,(0,E.m)(b)?(M._context=(0,G.Z)(M),M._tapNext=b):b&&(M._context=b,M._tapNext=b.next||T.Z,M._tapError=b.error||T.Z,M._tapComplete=b.complete||T.Z),M}return(0,P.Z)(Z,[{key:"_next",value:function(b){try{this._tapNext.call(this._context,b)}catch(S){return void this.destination.error(S)}this.destination.next(b)}},{key:"_error",value:function(b){try{this._tapError.call(this._context,b)}catch(S){return void this.destination.error(S)}this.destination.error(b)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(b){return void this.destination.error(b)}return this.destination.complete()}}]),Z}(I.L)},2444:function(Ae,K,m){"use strict";m.d(K,{P:function(){return T},d:function(){return I}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(1177),I={leading:!0,trailing:!1};function T(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;return function(x){return x.lift(new E(R,!!v.leading,!!v.trailing))}}var E=function(){function R(v,x,w){(0,A.Z)(this,R),this.durationSelector=v,this.leading=x,this.trailing=w}return(0,H.Z)(R,[{key:"call",value:function(x,w){return w.subscribe(new j(x,this.durationSelector,this.leading,this.trailing))}}]),R}(),j=function(R){(0,G.Z)(x,R);var v=(0,W.Z)(x);function x(w,Z,D,b){var S;return(0,A.Z)(this,x),(S=v.call(this,w)).destination=w,S.durationSelector=Z,S._leading=D,S._trailing=b,S._hasValue=!1,S}return(0,H.Z)(x,[{key:"_next",value:function(Z){this._hasValue=!0,this._sendValue=Z,this._throttled||(this._leading?this.send():this.throttle(Z))}},{key:"send",value:function(){var Z=this._hasValue,D=this._sendValue;Z&&(this.destination.next(D),this.throttle(D)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(Z){var D=this.tryDurationSelector(Z);D&&this.add(this._throttled=(0,P.ft)(D,new P.IY(this)))}},{key:"tryDurationSelector",value:function(Z){try{return this.durationSelector(Z)}catch(D){return this.destination.error(D),null}}},{key:"throttlingDone",value:function(){var Z=this._throttled,D=this._trailing;Z&&Z.unsubscribe(),this._throttled=void 0,D&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),x}(P.Ds)},4907:function(Ae,K,m){"use strict";m.d(K,{T:function(){return T}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),P=m(4450),I=m(3489);function T(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;return function(x){return x.lift(new E(v))}}var E=function(){function v(x){(0,A.Z)(this,v),this.errorFactory=x}return(0,H.Z)(v,[{key:"call",value:function(w,Z){return Z.subscribe(new j(w,this.errorFactory))}}]),v}(),j=function(v){(0,G.Z)(w,v);var x=(0,W.Z)(w);function w(Z,D){var b;return(0,A.Z)(this,w),(b=x.call(this,Z)).errorFactory=D,b.hasValue=!1,b}return(0,H.Z)(w,[{key:"_next",value:function(D){this.hasValue=!0,this.destination.next(D)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var D;try{D=this.errorFactory()}catch(b){D=b}this.destination.error(D)}}]),w}(I.L);function R(){return new P.K}},3485:function(Ae,K,m){"use strict";m.d(K,{J:function(){return T},R:function(){return E}});var G=m(3144),W=m(5671),A=m(353),H=m(2014),P=m(8514),I=m(4850);function T(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return function(R){return(0,P.P)(function(){return R.pipe((0,H.R)(function(v,x){var w=v.current;return{value:x,current:j.now(),last:w}},{current:j.now(),value:void 0,last:void 0}),(0,I.U)(function(v){var x=v.current,w=v.last,Z=v.value;return new E(Z,x-w)}))})}}var E=(0,G.Z)(function j(R,v){(0,W.Z)(this,j),this.value=R,this.interval=v})},7781:function(Ae,K,m){"use strict";m.d(K,{A:function(){return P},E:function(){return I}});var G=m(3144),W=m(5671),A=m(353),H=m(4850);function P(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return(0,H.U)(function(E){return new I(E,T.now())})}var I=(0,G.Z)(function T(E,j){(0,W.Z)(this,T),this.value=E,this.timestamp=j})},6454:function(Ae,K,m){"use strict";m.d(K,{r:function(){return A}});var G=m(7451),W=m(4096);function A(H,P){return new G.y(function(I){var T=new W.w,E=0;return T.add(P.schedule(function(){E!==H.length?(I.next(H[E++]),I.closed||T.add(this.schedule())):I.complete()})),T})}},6389:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return H}});var G=m(7451),W=m(4096),A=m(5430);function H(P,I){if(!P)throw new Error("Iterable cannot be null");return new G.y(function(T){var j,E=new W.w;return E.add(function(){j&&"function"==typeof j.return&&j.return()}),E.add(I.schedule(function(){j=P[A.hZ](),E.add(I.schedule(function(){if(!T.closed){var R,v;try{var x=j.next();R=x.value,v=x.done}catch(w){return void T.error(w)}v?T.complete():(T.next(R),this.schedule())}}))})),E})}},8687:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(7451),W=m(4096);function A(H,P){return new G.y(function(I){var T=new W.w;return T.add(P.schedule(function(){return H.then(function(E){T.add(P.schedule(function(){I.next(E),T.add(P.schedule(function(){return I.complete()}))}))},function(E){T.add(P.schedule(function(){return I.error(E)}))})})),T})}},6266:function(Ae,K,m){"use strict";m.d(K,{x:function(){return x}});var G=m(7451),W=m(4096),A=m(3821);var P=m(8687),I=m(6454),T=m(6389),E=m(8845),j=m(8955),R=m(8515),v=m(2198);function x(w,Z){if(null!=w){if((0,E.c)(w))return function H(w,Z){return new G.y(function(D){var b=new W.w;return b.add(Z.schedule(function(){var S=w[A.L]();b.add(S.subscribe({next:function(M){b.add(Z.schedule(function(){return D.next(M)}))},error:function(M){b.add(Z.schedule(function(){return D.error(M)}))},complete:function(){b.add(Z.schedule(function(){return D.complete()}))}}))})),b})}(w,Z);if((0,j.t)(w))return(0,P.c)(w,Z);if((0,R.z)(w))return(0,I.r)(w,Z);if((0,v.T)(w)||"string"==typeof w)return(0,T.Q)(w,Z)}throw new TypeError((null!==w&&typeof w||w)+" is not observable")}},6686:function(Ae,K,m){"use strict";m.d(K,{o:function(){return T}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),I=function(E){(0,A.Z)(R,E);var j=(0,H.Z)(R);function R(v,x){return(0,G.Z)(this,R),j.call(this)}return(0,W.Z)(R,[{key:"schedule",value:function(x){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),R}(m(4096).w),T=function(E){(0,A.Z)(R,E);var j=(0,H.Z)(R);function R(v,x){var w;return(0,G.Z)(this,R),(w=j.call(this,v,x)).scheduler=v,w.work=x,w.pending=!1,w}return(0,W.Z)(R,[{key:"schedule",value:function(x){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=x;var Z=this.id,D=this.scheduler;return null!=Z&&(this.id=this.recycleAsyncId(D,Z,w)),this.pending=!0,this.delay=w,this.id=this.id||this.requestAsyncId(D,this.id,w),this}},{key:"requestAsyncId",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(x.flush.bind(x,this),Z)}},{key:"recycleAsyncId",value:function(x,w){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==Z&&this.delay===Z&&!1===this.pending)return w;clearInterval(w)}},{key:"execute",value:function(x,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var Z=this._execute(x,w);if(Z)return Z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(x,w){var Z=!1,D=void 0;try{this.work(x)}catch(b){Z=!0,D=!!b&&b||new Error(b)}if(Z)return this.unsubscribe(),D}},{key:"_unsubscribe",value:function(){var x=this.id,w=this.scheduler,Z=w.actions,D=Z.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&Z.splice(D,1),null!=x&&(this.id=this.recycleAsyncId(w,x,null)),this.delay=null}}]),R}(I)},198:function(Ae,K,m){"use strict";m.d(K,{v:function(){return j}});var G=m(5671),W=m(3144),A=m(7326),H=m(3237),P=m(1120),I=m(136),T=m(9388),E=m(2221),j=function(R){(0,I.Z)(x,R);var v=(0,T.Z)(x);function x(w){var Z,D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.b.now;return(0,G.Z)(this,x),(Z=v.call(this,w,function(){return x.delegate&&x.delegate!==(0,A.Z)(Z)?x.delegate.now():D()})).actions=[],Z.active=!1,Z.scheduled=void 0,Z}return(0,W.Z)(x,[{key:"schedule",value:function(Z){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,b=arguments.length>2?arguments[2]:void 0;return x.delegate&&x.delegate!==this?x.delegate.schedule(Z,D,b):(0,H.Z)((0,P.Z)(x.prototype),"schedule",this).call(this,Z,D,b)}},{key:"flush",value:function(Z){var D=this.actions;if(this.active)D.push(Z);else{var b;this.active=!0;do{if(b=Z.execute(Z.state,Z.delay))break}while(Z=D.shift());if(this.active=!1,b){for(;Z=D.shift();)Z.unsubscribe();throw b}}}}]),x}(E.b)},9027:function(Ae,K,m){"use strict";m.d(K,{h:function(){return R},y:function(){return j}});var G=m(3237),W=m(1120),A=m(5671),H=m(3144),P=m(136),I=m(9388),T=m(6686),j=function(v){(0,P.Z)(w,v);var x=(0,I.Z)(w);function w(){var Z,D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,w),(Z=x.call(this,D,function(){return Z.frame})).maxFrames=b,Z.frame=0,Z.index=-1,Z}return(0,H.Z)(w,[{key:"flush",value:function(){for(var S,k,D=this.actions,b=this.maxFrames;(k=D[0])&&k.delay<=b&&(D.shift(),this.frame=k.delay,!(S=k.execute(k.state,k.delay))););if(S){for(;k=D.shift();)k.unsubscribe();throw S}}}]),w}(m(198).v);j.frameTimeFactor=10;var R=function(v){(0,P.Z)(w,v);var x=(0,I.Z)(w);function w(Z,D){var b,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.index+=1;return(0,A.Z)(this,w),(b=x.call(this,Z,D)).scheduler=Z,b.work=D,b.index=S,b.active=!0,b.index=Z.index=S,b}return(0,H.Z)(w,[{key:"schedule",value:function(D){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,G.Z)((0,W.Z)(w.prototype),"schedule",this).call(this,D,b);this.active=!1;var S=new w(this.scheduler,this.work);return this.add(S),S.schedule(D,b)}},{key:"requestAsyncId",value:function(D,b){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=D.frame+S;var k=D.actions;return k.push(this),k.sort(w.sortActions),!0}},{key:"recycleAsyncId",value:function(D,b){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(D,b){if(!0===this.active)return(0,G.Z)((0,W.Z)(w.prototype),"_execute",this).call(this,D,b)}}],[{key:"sortActions",value:function(D,b){return D.delay===b.delay?D.index===b.index?0:D.index>b.index?1:-1:D.delay>b.delay?1:-1}}]),w}(T.o)},352:function(Ae,K,m){"use strict";m.d(K,{r:function(){return x},Z:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),E=function(w){(0,P.Z)(D,w);var Z=(0,I.Z)(D);function D(b,S){var k;return(0,G.Z)(this,D),(k=Z.call(this,b,S)).scheduler=b,k.work=S,k}return(0,W.Z)(D,[{key:"requestAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==M&&M>0?(0,A.Z)((0,H.Z)(D.prototype),"requestAsyncId",this).call(this,S,k,M):(S.actions.push(this),S.scheduled||(S.scheduled=requestAnimationFrame(function(){return S.flush(null)})))}},{key:"recycleAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==M&&M>0||null===M&&this.delay>0)return(0,A.Z)((0,H.Z)(D.prototype),"recycleAsyncId",this).call(this,S,k,M);0===S.actions.length&&(cancelAnimationFrame(k),S.scheduled=void 0)}}]),D}(m(6686).o),R=function(w){(0,P.Z)(D,w);var Z=(0,I.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D,[{key:"flush",value:function(S){this.active=!0,this.scheduled=void 0;var M,k=this.actions,N=-1,F=k.length;S=S||k.shift();do{if(M=S.execute(S.state,S.delay))break}while(++N<F&&(S=k.shift()));if(this.active=!1,M){for(;++N<F&&(S=k.shift());)S.unsubscribe();throw M}}}]),D}(m(198).v),v=new R(E),x=v},9931:function(Ae,K,m){"use strict";m.d(K,{e:function(){return w},E:function(){return x}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(1450),j=function(Z){(0,P.Z)(b,Z);var D=(0,I.Z)(b);function b(S,k){var M;return(0,G.Z)(this,b),(M=D.call(this,S,k)).scheduler=S,M.work=k,M}return(0,W.Z)(b,[{key:"requestAsyncId",value:function(k,M){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==N&&N>0?(0,A.Z)((0,H.Z)(b.prototype),"requestAsyncId",this).call(this,k,M,N):(k.actions.push(this),k.scheduled||(k.scheduled=T.H.setImmediate(k.flush.bind(k,null))))}},{key:"recycleAsyncId",value:function(k,M){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==N&&N>0||null===N&&this.delay>0)return(0,A.Z)((0,H.Z)(b.prototype),"recycleAsyncId",this).call(this,k,M,N);0===k.actions.length&&(T.H.clearImmediate(M),k.scheduled=void 0)}}]),b}(m(6686).o),v=function(Z){(0,P.Z)(b,Z);var D=(0,I.Z)(b);function b(){return(0,G.Z)(this,b),D.apply(this,arguments)}return(0,W.Z)(b,[{key:"flush",value:function(k){this.active=!0,this.scheduled=void 0;var N,M=this.actions,F=-1,X=M.length;k=k||M.shift();do{if(N=k.execute(k.state,k.delay))break}while(++F<X&&(k=M.shift()));if(this.active=!1,N){for(;++F<X&&(k=M.shift());)k.unsubscribe();throw N}}}]),b}(m(198).v),x=new v(j),w=x},353:function(Ae,K,m){"use strict";m.d(K,{P:function(){return H},z:function(){return A}});var G=m(6686),A=new(m(198).v)(G.o),H=A},341:function(Ae,K,m){"use strict";m.d(K,{c:function(){return x},N:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),E=function(w){(0,P.Z)(D,w);var Z=(0,I.Z)(D);function D(b,S){var k;return(0,G.Z)(this,D),(k=Z.call(this,b,S)).scheduler=b,k.work=S,k}return(0,W.Z)(D,[{key:"schedule",value:function(S){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k>0?(0,A.Z)((0,H.Z)(D.prototype),"schedule",this).call(this,S,k):(this.delay=k,this.state=S,this.scheduler.flush(this),this)}},{key:"execute",value:function(S,k){return k>0||this.closed?(0,A.Z)((0,H.Z)(D.prototype),"execute",this).call(this,S,k):this._execute(S,k)}},{key:"requestAsyncId",value:function(S,k){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==M&&M>0||null===M&&this.delay>0?(0,A.Z)((0,H.Z)(D.prototype),"requestAsyncId",this).call(this,S,k,M):S.flush(this)}}]),D}(m(6686).o),R=function(w){(0,P.Z)(D,w);var Z=(0,I.Z)(D);function D(){return(0,G.Z)(this,D),Z.apply(this,arguments)}return(0,W.Z)(D)}(m(198).v),v=new R(E),x=v},5430:function(Ae,K,m){"use strict";m.d(K,{hZ:function(){return W}});var W=function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(Ae,K,m){"use strict";m.d(K,{L:function(){return G}});var G="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(Ae,K,m){"use strict";m.d(K,{b:function(){return G}});var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}()},4450:function(Ae,K,m){"use strict";m.d(K,{K:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}()},1450:function(Ae,K,m){"use strict";m.d(K,{H:function(){return P}});var G=1,W=Promise.resolve(),A={};function H(T){return T in A&&(delete A[T],!0)}var P={setImmediate:function(E){var j=G++;return A[j]=!0,W.then(function(){return H(j)&&E()}),j},clearImmediate:function(E){H(E)}}},5279:function(Ae,K,m){"use strict";m.d(K,{N:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}()},854:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return A.prototype=Object.create(Error.prototype),A}()},7964:function(Ae,K,m){"use strict";m.d(K,{B:function(){return W}});var W=function(){function A(H){return Error.call(this),this.message=H?"".concat(H.length," errors occurred during unsubscription:\n").concat(H.map(function(P,I){return"".concat(I+1,") ").concat(P.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=H,this}return A.prototype=Object.create(Error.prototype),A}()},5128:function(Ae,K,m){"use strict";function G(W,A){for(var H=0,P=A.length;H<P;H++)for(var I=A[H],T=Object.getOwnPropertyNames(I.prototype),E=0,j=T.length;E<j;E++){var R=T[E];W.prototype[R]=I.prototype[R]}}m.d(K,{e:function(){return G}})},9476:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(3489);function W(A){for(;A;){var H=A,P=H.closed,I=H.destination,T=H.isStopped;if(P||T)return!1;A=I&&I instanceof G.L?I:null}return!0}},2782:function(Ae,K,m){"use strict";function G(W){setTimeout(function(){throw W},0)}m.d(K,{z:function(){return G}})},5379:function(Ae,K,m){"use strict";function G(W){return W}m.d(K,{y:function(){return G}})},6688:function(Ae,K,m){"use strict";m.d(K,{k:function(){return G}});var G=Array.isArray||function(W){return W&&"number"==typeof W.length}},8515:function(Ae,K,m){"use strict";m.d(K,{z:function(){return G}});var G=function(A){return A&&"number"==typeof A.length&&"function"!=typeof A}},2697:function(Ae,K,m){"use strict";function G(W){return W instanceof Date&&!isNaN(+W)}m.d(K,{J:function(){return G}})},7043:function(Ae,K,m){"use strict";function G(W){return"function"==typeof W}m.d(K,{m:function(){return G}})},8845:function(Ae,K,m){"use strict";m.d(K,{c:function(){return W}});var G=m(3821);function W(A){return A&&"function"==typeof A[G.L]}},2198:function(Ae,K,m){"use strict";m.d(K,{T:function(){return W}});var G=m(5430);function W(A){return A&&"function"==typeof A[G.hZ]}},4241:function(Ae,K,m){"use strict";m.d(K,{k:function(){return W}});var G=m(6688);function W(A){return!(0,G.k)(A)&&A-parseFloat(A)+1>=0}},7830:function(Ae,K,m){"use strict";function G(W){return null!==W&&"object"==typeof W}m.d(K,{K:function(){return G}})},4715:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(7451);function W(A){return!!A&&(A instanceof G.y||"function"==typeof A.lift&&"function"==typeof A.subscribe)}},8955:function(Ae,K,m){"use strict";function G(W){return!!W&&"function"!=typeof W.subscribe&&"function"==typeof W.then}m.d(K,{t:function(){return G}})},2866:function(Ae,K,m){"use strict";function G(W){return W&&"function"==typeof W.schedule}m.d(K,{K:function(){return G}})},7876:function(Ae,K,m){"use strict";function G(){}m.d(K,{Z:function(){return G}})},5884:function(Ae,K,m){"use strict";function G(W,A){function H(){return!H.pred.apply(H.thisArg,arguments)}return H.pred=W,H.thisArg=A,H}m.d(K,{f:function(){return G}})},4843:function(Ae,K,m){"use strict";m.d(K,{U:function(){return A},z:function(){return W}});var G=m(5379);function W(){for(var H=arguments.length,P=new Array(H),I=0;I<H;I++)P[I]=arguments[I];return A(P)}function A(H){return 0===H.length?G.y:1===H.length?H[0]:function(I){return H.reduce(function(T,E){return E(T)},I)}}},797:function(Ae,K,m){"use strict";m.d(K,{J:function(){return H}});var G="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A="undefined"!=typeof global&&global,H=G||A||W;!function(){if(!H)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(Ae,K,m){"use strict";m.d(K,{s:function(){return R}});var G=m(3650),W=m(3445),A=m(3720),H=m(1810),P=m(8515),I=m(8955),T=m(7830),E=m(5430),j=m(3821),R=function(x){if(x&&"function"==typeof x[j.L])return(0,H.h)(x);if((0,P.z)(x))return(0,G.V)(x);if((0,I.t)(x))return(0,W.A)(x);if(x&&"function"==typeof x[E.hZ])return(0,A.u)(x);var w=(0,T.K)(x)?"an invalid object":"'".concat(x,"'"),Z="You provided ".concat(w," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(Z)}},3650:function(Ae,K,m){"use strict";m.d(K,{V:function(){return G}});var G=function(A){return function(H){for(var P=0,I=A.length;P<I&&!H.closed;P++)H.next(A[P]);H.complete()}}},3720:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(5430),W=function(H){return function(P){for(var I=H[G.hZ]();;){var T=void 0;try{T=I.next()}catch(E){return P.error(E),P}if(T.done){P.complete();break}if(P.next(T.value),P.closed)break}return"function"==typeof I.return&&P.add(function(){I.return&&I.return()}),P}}},1810:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var G=m(3821),W=function(H){return function(P){var I=H[G.L]();if("function"!=typeof I.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return I.subscribe(P)}}},3445:function(Ae,K,m){"use strict";m.d(K,{A:function(){return W}});var G=m(2782),W=function(H){return function(P){return H.then(function(I){P.closed||(P.next(I),P.complete())},function(I){return P.error(I)}).then(null,G.z),P}}},9054:function(Ae,K,m){"use strict";m.d(K,{D:function(){return H}});var G=m(1869),W=m(3071),A=m(7451);function H(P,I,T,E){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new G.d(P,T,E);if(!j.closed)return I instanceof A.y?I.subscribe(j):(0,W.s)(I)(j)}},5221:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return H}});var G=m(3489),W=m(7668),A=m(3292);function H(P,I,T){if(P){if(P instanceof G.L)return P;if(P[W.b])return P[W.b]()}return P||I||T?new G.L(P,I,T):new G.L(A.c)}},6650:function(Ae,K,m){"use strict";m.r(K),m.d(K,{audit:function(){return G.U},auditTime:function(){return W.e},buffer:function(){return j},bufferCount:function(){return D},bufferTime:function(){return F},bufferToggle:function(){return de},bufferWhen:function(){return ot},catchError:function(){return Dt.K},combineAll:function(){return Ze},combineLatest:function(){return Ot},concat:function(){return Ct},concatAll:function(){return Ve.u},concatMap:function(){return at.b},concatMapTo:function(){return ht},count:function(){return Ut.Q},debounce:function(){return Wt},debounceTime:function(){return qe.b},defaultIfEmpty:function(){return Be.d},delay:function(){return le.g},delayWhen:function(){return Lt},dematerialize:function(){return Vt},distinct:function(){return Fe},distinctUntilChanged:function(){return he.x},distinctUntilKeyChanged:function(){return Le},elementAt:function(){return sn},endWith:function(){return ln},every:function(){return Sn},exhaust:function(){return At},exhaustMap:function(){return We},expand:function(){return Je},filter:function(){return ut.h},finalize:function(){return Un.x},find:function(){return Kt},findIndex:function(){return gt},first:function(){return wt.P},flatMap:function(){return ki.VS},groupBy:function(){return nn.v},ignoreElements:function(){return Hn},isEmpty:function(){return ir},last:function(){return zi.Z},map:function(){return Et.U},mapTo:function(){return Va.h},materialize:function(){return wa},max:function(){return vr},merge:function(){return ni},mergeAll:function(){return ws.J},mergeMap:function(){return ki.zg},mergeMapTo:function(){return Yo},mergeScan:function(){return ri},min:function(){return xr},multicast:function(){return Vi.O},observeOn:function(){return Eo.QV},onErrorResumeNext:function(){return ca},pairwise:function(){return Ya.G},partition:function(){return Ui},pluck:function(){return Ks},publish:function(){return $u},publishBehavior:function(){return Ai},publishLast:function(){return Yi},publishReplay:function(){return en},race:function(){return no},reduce:function(){return Gn},refCount:function(){return Ii.x},repeat:function(){return qo},repeatWhen:function(){return Rn},retry:function(){return Yn},retryWhen:function(){return qi},sample:function(){return oi},sampleTime:function(){return hr},scan:function(){return Di.R},sequenceEqual:function(){return go},share:function(){return Ka.B},shareReplay:function(){return qa.d},single:function(){return Qo},skip:function(){return xc.T},skipLast:function(){return Br},skipUntil:function(){return mf},skipWhile:function(){return po},startWith:function(){return Dc.O},subscribeOn:function(){return vu},switchAll:function(){return bd},switchMap:function(){return pa.w},switchMapTo:function(){return Ts},take:function(){return jt.q},takeLast:function(){return na.h},takeUntil:function(){return Xm.R},takeWhile:function(){return Ja.o},tap:function(){return nh.b},throttle:function(){return Ms.P},throttleTime:function(){return Cr},throwIfEmpty:function(){return Nt.T},timeInterval:function(){return ih.J},timeout:function(){return ke},timeoutWith:function(){return yu},timestamp:function(){return se.A},toArray:function(){return Oe},window:function(){return pt},windowCount:function(){return Qn},windowTime:function(){return Xs},windowToggle:function(){return e_},windowWhen:function(){return Ac},withLatestFrom:function(){return Es},zip:function(){return vl},zipAll:function(){return Ma}});var G=m(384),W=m(7568),A=m(7326),H=m(136),P=m(9388),I=m(5671),T=m(3144),E=m(1177);function j(Ie){return function(_e){return _e.lift(new R(Ie))}}var R=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.closingNotifier=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new v(_e,this.closingNotifier))}}]),Ie}(),v=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).buffer=[],ze.add((0,E.ft)(Te,new E.IY((0,A.Z)(ze)))),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.buffer.push(Te)}},{key:"notifyNext",value:function(){var Te=this.buffer;this.buffer=[],this.destination.next(Te)}}]),_e}(E.Ds),x=m(3237),w=m(1120),Z=m(3489);function D(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(xe){return xe.lift(new b(Ie,Ge))}}var b=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.bufferSize=Ge,this.startBufferEvery=_e,this.subscriberClass=_e&&Ge!==_e?k:S}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new this.subscriberClass(_e,this.bufferSize,this.startBufferEvery))}}]),Ie}(),S=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).bufferSize=Te,ze.buffer=[],ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.buffer;ze.push(Te),ze.length==this.bufferSize&&(this.destination.next(ze),this.buffer=[])}},{key:"_complete",value:function(){var Te=this.buffer;Te.length>0&&this.destination.next(Te),(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(Z.L),k=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).bufferSize=Te,mt.startBufferEvery=ze,mt.buffers=[],mt.count=0,mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.bufferSize,mt=this.startBufferEvery,Mt=this.buffers,wn=this.count;this.count++,wn%mt==0&&Mt.push([]);for(var Rr=Mt.length;Rr--;){var ai=Mt[Rr];ai.push(Te),ai.length===ze&&(Mt.splice(Rr,1),this.destination.next(ai))}}},{key:"_complete",value:function(){for(var Te=this.buffers,ze=this.destination;Te.length>0;){var mt=Te.shift();mt.length>0&&ze.next(mt)}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(Z.L),M=m(353),N=m(2866);function F(Ie){var Ge=arguments.length,_e=M.P;(0,N.K)(arguments[arguments.length-1])&&(_e=arguments[arguments.length-1],Ge--);var xe=null;Ge>=2&&(xe=arguments[1]);var Te=Number.POSITIVE_INFINITY;return Ge>=3&&(Te=arguments[2]),function(mt){return mt.lift(new X(Ie,xe,Te,_e))}}var X=function(){function Ie(Ge,_e,xe,Te){(0,I.Z)(this,Ie),this.bufferTimeSpan=Ge,this.bufferCreationInterval=_e,this.maxBufferSize=xe,this.scheduler=Te}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new V(_e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ie}(),$=(0,T.Z)(function Ie(){(0,I.Z)(this,Ie),this.buffer=[]}),V=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,I.Z)(this,_e),(wn=Ge.call(this,xe)).bufferTimeSpan=Te,wn.bufferCreationInterval=ze,wn.maxBufferSize=mt,wn.scheduler=Mt,wn.contexts=[];var Rr=wn.openContext();if(wn.timespanOnly=null==ze||ze<0,wn.timespanOnly){var ai={subscriber:(0,A.Z)(wn),context:Rr,bufferTimeSpan:Te};wn.add(Rr.closeAction=Mt.schedule(Q,Te,ai))}else{var si={subscriber:(0,A.Z)(wn),context:Rr},$s={bufferTimeSpan:Te,bufferCreationInterval:ze,subscriber:(0,A.Z)(wn),scheduler:Mt};wn.add(Rr.closeAction=Mt.schedule(be,Te,si)),wn.add(Mt.schedule(te,ze,$s))}return wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var Mt,ze=this.contexts,mt=ze.length,wn=0;wn<mt;wn++){var Rr=ze[wn],ai=Rr.buffer;ai.push(Te),ai.length==this.maxBufferSize&&(Mt=Rr)}Mt&&this.onBufferFull(Mt)}},{key:"_error",value:function(Te){this.contexts.length=0,(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){for(var Te=this.contexts,ze=this.destination;Te.length>0;){var mt=Te.shift();ze.next(mt.buffer)}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Te){this.closeContext(Te);var ze=Te.closeAction;if(ze.unsubscribe(),this.remove(ze),!this.closed&&this.timespanOnly){Te=this.openContext();var mt=this.bufferTimeSpan,Mt={subscriber:this,context:Te,bufferTimeSpan:mt};this.add(Te.closeAction=this.scheduler.schedule(Q,mt,Mt))}}},{key:"openContext",value:function(){var Te=new $;return this.contexts.push(Te),Te}},{key:"closeContext",value:function(Te){this.destination.next(Te.buffer);var ze=this.contexts;(ze?ze.indexOf(Te):-1)>=0&&ze.splice(ze.indexOf(Te),1)}}]),_e}(Z.L);function Q(Ie){var Ge=Ie.subscriber,_e=Ie.context;_e&&Ge.closeContext(_e),Ge.closed||(Ie.context=Ge.openContext(),Ie.context.closeAction=this.schedule(Ie,Ie.bufferTimeSpan))}function te(Ie){var Ge=Ie.bufferCreationInterval,_e=Ie.bufferTimeSpan,xe=Ie.subscriber,Te=Ie.scheduler,ze=xe.openContext();xe.closed||(xe.add(ze.closeAction=Te.schedule(be,_e,{subscriber:xe,context:ze})),this.schedule(Ie,Ge))}function be(Ie){var Ge=Ie.subscriber,_e=Ie.context;Ge.closeContext(_e)}var pe=m(4096),fe=m(9054),ue=m(826);function de(Ie,Ge){return function(xe){return xe.lift(new ge(Ie,Ge))}}var ge=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.openings=Ge,this.closingSelector=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new je(_e,this.openings,this.closingSelector))}}]),Ie}(),je=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).closingSelector=ze,mt.contexts=[],mt.add((0,fe.D)((0,A.Z)(mt),Te)),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.contexts,mt=ze.length,Mt=0;Mt<mt;Mt++)ze[Mt].buffer.push(Te)}},{key:"_error",value:function(Te){for(var ze=this.contexts;ze.length>0;){var mt=ze.shift();mt.subscription.unsubscribe(),mt.buffer=null,mt.subscription=null}this.contexts=null,(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){for(var Te=this.contexts;Te.length>0;){var ze=Te.shift();this.destination.next(ze.buffer),ze.subscription.unsubscribe(),ze.buffer=null,ze.subscription=null}this.contexts=null,(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Te,ze){Te?this.closeBuffer(Te):this.openBuffer(ze)}},{key:"notifyComplete",value:function(Te){this.closeBuffer(Te.context)}},{key:"openBuffer",value:function(Te){try{var mt=this.closingSelector.call(this,Te);mt&&this.trySubscribe(mt)}catch(Mt){this._error(Mt)}}},{key:"closeBuffer",value:function(Te){var ze=this.contexts;if(ze&&Te){var mt=Te.buffer,Mt=Te.subscription;this.destination.next(mt),ze.splice(ze.indexOf(Te),1),this.remove(Mt),Mt.unsubscribe()}}},{key:"trySubscribe",value:function(Te){var ze=this.contexts,Mt=new pe.w,wn={buffer:[],subscription:Mt};ze.push(wn);var Rr=(0,fe.D)(this,Te,wn);!Rr||Rr.closed?this.closeBuffer(wn):(Rr.context=wn,this.add(Rr),Mt.add(Rr))}}]),_e}(ue.L);function ot(Ie){return function(Ge){return Ge.lift(new St(Ie))}}var St=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.closingSelector=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Tt(_e,this.closingSelector))}}]),Ie}(),Tt=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).closingSelector=Te,ze.subscribing=!1,ze.openBuffer(),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.buffer.push(Te)}},{key:"_complete",value:function(){var Te=this.buffer;Te&&this.destination.next(Te),(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var Te=this.closingSubscription;Te&&(this.remove(Te),Te.unsubscribe());var mt,ze=this.buffer;this.buffer&&this.destination.next(ze),this.buffer=[];try{mt=(0,this.closingSelector)()}catch(wn){return this.error(wn)}Te=new pe.w,this.closingSubscription=Te,this.add(Te),this.subscribing=!0,Te.add((0,E.ft)(mt,new E.IY(this))),this.subscribing=!1}}]),_e}(E.Ds),Dt=m(7221),Rt=m(6053);function Ze(Ie){return function(Ge){return Ge.lift(new Rt.Ms(Ie))}}var $t=m(4902),Ft=m(6688),pn=m(3527);function Ot(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];var xe=null;return"function"==typeof Ge[Ge.length-1]&&(xe=Ge.pop()),1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0].slice()),function(Te){return Te.lift.call((0,pn.D)([Te].concat((0,$t.Z)(Ge))),new Rt.Ms(xe))}}var _t=m(1961);function Ct(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(xe){return xe.lift.call(_t.z.apply(void 0,[xe].concat(Ge)))}}var Ve=m(534),at=m(1406);function ht(Ie,Ge){return(0,at.b)(function(){return Ie},Ge)}var Ut=m(3906);function Wt(Ie){return function(Ge){return Ge.lift(new U(Ie))}}var U=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.durationSelector=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new B(_e,this.durationSelector))}}]),Ie}(),B=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).durationSelector=Te,ze.hasValue=!1,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){try{var ze=this.durationSelector.call(this,Te);ze&&this._tryNext(Te,ze)}catch(mt){this.destination.error(mt)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(Te,ze){var mt=this.durationSubscription;this.value=Te,this.hasValue=!0,mt&&(mt.unsubscribe(),this.remove(mt)),(mt=(0,E.ft)(ze,new E.IY(this)))&&!mt.closed&&this.add(this.durationSubscription=mt)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var Te=this.value,ze=this.durationSubscription;ze&&(this.durationSubscription=void 0,ze.unsubscribe(),this.remove(ze)),this.value=void 0,this.hasValue=!1,(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}}}]),_e}(E.Ds),qe=m(13),Be=m(7314),le=m(943),t=m(7451);function Lt(Ie,Ge){return Ge?function(_e){return new Qt(_e,Ge).lift(new zt(Ie))}:function(_e){return _e.lift(new zt(Ie))}}var zt=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.delayDurationSelector=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new an(_e,this.delayDurationSelector))}}]),Ie}(),an=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).delayDurationSelector=Te,ze.completed=!1,ze.delayNotifierSubscriptions=[],ze.index=0,ze}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){this.destination.next(Te),this.removeSubscription(wn),this.tryComplete()}},{key:"notifyError",value:function(Te,ze){this._error(Te)}},{key:"notifyComplete",value:function(Te){var ze=this.removeSubscription(Te);ze&&this.destination.next(ze),this.tryComplete()}},{key:"_next",value:function(Te){var ze=this.index++;try{var mt=this.delayDurationSelector(Te,ze);mt&&this.tryDelay(mt,Te)}catch(Mt){this.destination.error(Mt)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(Te){Te.unsubscribe();var ze=this.delayNotifierSubscriptions.indexOf(Te);return-1!==ze&&this.delayNotifierSubscriptions.splice(ze,1),Te.outerValue}},{key:"tryDelay",value:function(Te,ze){var mt=(0,fe.D)(this,Te,ze);mt&&!mt.closed&&(this.destination.add(mt),this.delayNotifierSubscriptions.push(mt))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),_e}(ue.L),Qt=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this)).source=xe,ze.subscriptionDelay=Te,ze}return(0,T.Z)(_e,[{key:"_subscribe",value:function(Te){this.subscriptionDelay.subscribe(new vn(Te,this.source))}}]),_e}(t.y),vn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this)).parent=xe,ze.source=Te,ze.sourceSubscribed=!1,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.subscribeToSource()}},{key:"_error",value:function(Te){this.unsubscribe(),this.parent.error(Te)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),_e}(Z.L);function Vt(){return function(Ge){return Ge.lift(new Jt)}}var Jt=function(){function Ie(){(0,I.Z)(this,Ie)}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qe(_e))}}]),Ie}(),Qe=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe){return(0,I.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){Te.observe(this.destination)}}]),_e}(Z.L);function Fe(Ie,Ge){return function(_e){return _e.lift(new ne(Ie,Ge))}}var ne=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.keySelector=Ge,this.flushes=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ye(_e,this.keySelector,this.flushes))}}]),Ie}(),ye=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).keySelector=Te,mt.values=new Set,ze&&mt.add((0,E.ft)(ze,new E.IY((0,A.Z)(mt)))),mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"_next",value:function(Te){this.keySelector?this._useKeySelector(Te):this._finalizeNext(Te,Te)}},{key:"_useKeySelector",value:function(Te){var ze,mt=this.destination;try{ze=this.keySelector(Te)}catch(Mt){return void mt.error(Mt)}this._finalizeNext(ze,Te)}},{key:"_finalizeNext",value:function(Te,ze){var mt=this.values;mt.has(Te)||(mt.add(Te),this.destination.next(ze))}}]),_e}(E.Ds),he=m(5778);function Le(Ie,Ge){return(0,he.x)(function(_e,xe){return Ge?Ge(_e[Ie],xe[Ie]):_e[Ie]===xe[Ie]})}var lt=m(4231),ut=m(9664),Nt=m(4907),jt=m(2986);function sn(Ie,Ge){if(Ie<0)throw new lt.W;var _e=arguments.length>=2;return function(xe){return xe.pipe((0,ut.h)(function(Te,ze){return ze===Ie}),(0,jt.q)(1),_e?(0,Be.d)(Ge):(0,Nt.T)(function(){return new lt.W}))}}var yn=m(1086);function ln(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(xe){return(0,_t.z)(xe,yn.of.apply(void 0,Ge))}}function Sn(Ie,Ge){return function(_e){return _e.lift(new hn(Ie,Ge,_e))}}var hn=function(){function Ie(Ge,_e,xe){(0,I.Z)(this,Ie),this.predicate=Ge,this.thisArg=_e,this.source=xe}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new mn(_e,this.predicate,this.thisArg,this.source))}}]),Ie}(),mn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,I.Z)(this,_e),(Mt=Ge.call(this,xe)).predicate=Te,Mt.thisArg=ze,Mt.source=mt,Mt.index=0,Mt.thisArg=ze||(0,A.Z)(Mt),Mt}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){this.destination.next(Te),this.destination.complete()}},{key:"_next",value:function(Te){var ze=!1;try{ze=this.predicate.call(this.thisArg,Te,this.index++,this.source)}catch(mt){return void this.destination.error(mt)}ze||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(Z.L);function At(){return function(Ie){return Ie.lift(new xt)}}var xt=function(){function Ie(){(0,I.Z)(this,Ie)}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new tt(_e))}}]),Ie}(),tt=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe){var Te;return(0,I.Z)(this,_e),(Te=Ge.call(this,xe)).hasCompleted=!1,Te.hasSubscription=!1,Te}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasSubscription||(this.hasSubscription=!0,this.add((0,E.ft)(Te,new E.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(E.Ds),Et=m(4850);function We(Ie,Ge){return Ge?function(_e){return _e.pipe(We(function(xe,Te){return(0,pn.D)(Ie(xe,Te)).pipe((0,Et.U)(function(ze,mt){return Ge(xe,ze,Te,mt)}))}))}:function(_e){return _e.lift(new Ye(Ie))}}var Ye=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.project=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Re(_e,this.project))}}]),Ie}(),Re=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).project=Te,ze.hasSubscription=!1,ze.hasCompleted=!1,ze.index=0,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasSubscription||this.tryNext(Te)}},{key:"tryNext",value:function(Te){var ze,mt=this.index++;try{ze=this.project(Te,mt)}catch(Mt){return void this.destination.error(Mt)}this.hasSubscription=!0,this._innerSub(ze)}},{key:"_innerSub",value:function(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Te){this.destination.next(Te)}},{key:"notifyError",value:function(Te){this.destination.error(Te)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(E.Ds);function Je(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,_e=arguments.length>2?arguments[2]:void 0;return Ge=(Ge||0)<1?Number.POSITIVE_INFINITY:Ge,function(xe){return xe.lift(new vt(Ie,Ge,_e))}}var vt=function(){function Ie(Ge,_e,xe){(0,I.Z)(this,Ie),this.project=Ge,this.concurrent=_e,this.scheduler=xe}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new dn(_e,this.project,this.concurrent,this.scheduler))}}]),Ie}(),dn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,I.Z)(this,_e),(Mt=Ge.call(this,xe)).project=Te,Mt.concurrent=ze,Mt.scheduler=mt,Mt.index=0,Mt.active=0,Mt.hasCompleted=!1,ze<Number.POSITIVE_INFINITY&&(Mt.buffer=[]),Mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.destination;if(ze.closed)this._complete();else{var mt=this.index++;if(this.active<this.concurrent){ze.next(Te);try{var wn=(0,this.project)(Te,mt);if(this.scheduler){var Rr={subscriber:this,result:wn,value:Te,index:mt};this.destination.add(this.scheduler.schedule(_e.dispatch,0,Rr))}else this.subscribeToProjection(wn,Te,mt)}catch(si){ze.error(si)}}else this.buffer.push(Te)}}},{key:"subscribeToProjection",value:function(Te,ze,mt){this.active++,this.destination.add((0,E.ft)(Te,new E.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Te){this._next(Te)}},{key:"notifyComplete",value:function(){var Te=this.buffer;this.active--,Te&&Te.length>0&&this._next(Te.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Te){var ze=Te.subscriber,mt=Te.result,Mt=Te.value,wn=Te.index;ze.subscribeToProjection(mt,Mt,wn)}}]),_e}(E.Ds),Un=m(537);function Kt(Ie,Ge){if("function"!=typeof Ie)throw new TypeError("predicate is not a function");return function(_e){return _e.lift(new yt(Ie,_e,!1,Ge))}}var yt=function(){function Ie(Ge,_e,xe,Te){(0,I.Z)(this,Ie),this.predicate=Ge,this.source=_e,this.yieldIndex=xe,this.thisArg=Te}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new et(_e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ie}(),et=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,I.Z)(this,_e),(wn=Ge.call(this,xe)).predicate=Te,wn.source=ze,wn.yieldIndex=mt,wn.thisArg=Mt,wn.index=0,wn}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete(),this.unsubscribe()}},{key:"_next",value:function(Te){var ze=this.predicate,mt=this.thisArg,Mt=this.index++;try{ze.call(mt||this,Te,Mt,this.source)&&this.notifyComplete(this.yieldIndex?Mt:Te)}catch(Rr){this.destination.error(Rr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),_e}(Z.L);function gt(Ie,Ge){return function(_e){return _e.lift(new yt(Ie,_e,!0,Ge))}}var wt=m(7224),nn=m(4002);function Hn(){return function(Ge){return Ge.lift(new Wn)}}var Wn=function(){function Ie(){(0,I.Z)(this,Ie)}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Vn(_e))}}]),Ie}(),Vn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(){return(0,I.Z)(this,_e),Ge.apply(this,arguments)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){}}]),_e}(Z.L);function ir(){return function(Ie){return Ie.lift(new Pr)}}var Pr=function(){function Ie(){(0,I.Z)(this,Ie)}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new yi(_e))}}]),Ie}(),yi=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe){return(0,I.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"notifyComplete",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete()}},{key:"_next",value:function(Te){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(Z.L),zi=m(8127),Va=m(7604),Ca=m(9312);function wa(){return function(Ge){return Ge.lift(new ls)}}var ls=function(){function Ie(){(0,I.Z)(this,Ie)}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ta(_e))}}]),Ie}(),ta=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe){return(0,I.Z)(this,_e),Ge.call(this,xe)}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.destination.next(Ca.P.createNext(Te))}},{key:"_error",value:function(Te){var ze=this.destination;ze.next(Ca.P.createError(Te)),ze.complete()}},{key:"_complete",value:function(){var Te=this.destination;Te.next(Ca.P.createComplete()),Te.complete()}}]),_e}(Z.L),Di=m(2014),na=m(2821),_o=m(4843);function Gn(Ie,Ge){return arguments.length>=2?function(xe){return(0,_o.z)((0,Di.R)(Ie,Ge),(0,na.h)(1),(0,Be.d)(Ge))(xe)}:function(xe){return(0,_o.z)((0,Di.R)(function(Te,ze,mt){return Ie(Te,ze,mt+1)}),(0,na.h)(1))(xe)}}function vr(Ie){return Gn("function"==typeof Ie?function(_e,xe){return Ie(_e,xe)>0?_e:xe}:function(_e,xe){return _e>xe?_e:xe})}var fi=m(6787);function ni(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(xe){return xe.lift.call(fi.T.apply(void 0,[xe].concat(Ge)))}}var ws=m(9146),ki=m(1709);function Yo(Ie,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ge?(0,ki.zg)(function(){return Ie},Ge,_e):("number"==typeof Ge&&(_e=Ge),(0,ki.zg)(function(){return Ie},_e))}function ri(Ie,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(xe){return xe.lift(new So(Ie,Ge,_e))}}var So=function(){function Ie(Ge,_e,xe){(0,I.Z)(this,Ie),this.accumulator=Ge,this.seed=_e,this.concurrent=xe}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new so(_e,this.accumulator,this.seed,this.concurrent))}}]),Ie}(),so=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,I.Z)(this,_e),(Mt=Ge.call(this,xe)).accumulator=Te,Mt.acc=ze,Mt.concurrent=mt,Mt.hasValue=!1,Mt.hasCompleted=!1,Mt.buffer=[],Mt.active=0,Mt.index=0,Mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){if(this.active<this.concurrent){var Mt,ze=this.index++,mt=this.destination;try{Mt=(0,this.accumulator)(this.acc,Te,ze)}catch(Rr){return mt.error(Rr)}this.active++,this._innerSub(Mt)}else this.buffer.push(Te)}},{key:"_innerSub",value:function(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(Te){var ze=this.destination;this.acc=Te,this.hasValue=!0,ze.next(Te)}},{key:"notifyComplete",value:function(){var Te=this.buffer;this.active--,Te.length>0?this._next(Te.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),_e}(E.Ds);function xr(Ie){return Gn("function"==typeof Ie?function(_e,xe){return Ie(_e,xe)<0?_e:xe}:function(_e,xe){return _e<xe?_e:xe})}var Vi=m(2536),Eo=m(7770);function ca(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return 1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0]),function(xe){return xe.lift(new lo(Ge))}}var lo=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.nextSources=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new da(_e,this.nextSources))}}]),Ie}(),da=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.nextSources=Te,ze}return(0,T.Z)(_e,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(Te){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var Te=this.nextSources.shift();if(Te){var ze=new E.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,E.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}else this.destination.complete()}}]),_e}(E.Ds),Ya=m(519),uo=m(5884);function Ui(Ie,Ge){return function(_e){return[(0,ut.h)(Ie,Ge)(_e),(0,ut.h)((0,uo.f)(Ie,Ge))(_e)]}}function Ks(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];var xe=Ge.length;if(0===xe)throw new Error("list of properties cannot be empty.");return function(Te){return(0,Et.U)(ii(Ge,xe))(Te)}}function ii(Ie,Ge){return function(Te){for(var ze=Te,mt=0;mt<Ge;mt++){var Mt=null!=ze?ze[Ie[mt]]:void 0;if(void 0===Mt)return;ze=Mt}return ze}}var Ko=m(8929);function $u(Ie){return Ie?(0,Vi.O)(function(){return new Ko.xQ},Ie):(0,Vi.O)(new Ko.xQ)}var to=m(591);function Ai(Ie){return function(Ge){return(0,Vi.O)(new to.X(Ie))(Ge)}}var pu=m(2185);function Yi(){return function(Ie){return(0,Vi.O)(new pu.c)(Ie)}}var tn=m(839);function en(Ie,Ge,_e,xe){_e&&"function"!=typeof _e&&(xe=_e);var Te="function"==typeof _e?_e:void 0,ze=new tn.t(Ie,Ge,xe);return function(mt){return(0,Vi.O)(function(){return ze},Te)(mt)}}var Dr=m(1946);function no(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(Te){return 1===Ge.length&&(0,Ft.k)(Ge[0])&&(Ge=Ge[0]),Te.lift.call(Dr.S3.apply(void 0,[Te].concat((0,$t.Z)(Ge))))}}var Ki=m(8896);function qo(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ge){return 0===Ie?(0,Ki.c)():Ie<0?Ge.lift(new Ti(-1,Ge)):Ge.lift(new Ti(Ie-1,Ge))}}var Ti=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.count=Ge,this.source=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ro(_e,this.count,this.source))}}]),Ie}(),ro=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"complete",value:function(){if(!this.isStopped){var Te=this.source,ze=this.count;if(0===ze)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this);ze>-1&&(this.count=ze-1),Te.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(Z.L);function Rn(Ie){return function(Ge){return Ge.lift(new hu(Ie))}}var hu=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.notifier=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Jr(_e,this.notifier,xe))}}]),Ie}(),Jr=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt.sourceIsBeingSubscribedTo=!0,mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Te=this.notifications,ze=this.retriesSubscription;Te&&(Te.unsubscribe(),this.notifications=void 0),ze&&(ze.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Te=this._unsubscribe;return this._unsubscribe=null,(0,x.Z)((0,w.Z)(_e.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Te,this}},{key:"subscribeToRetries",value:function(){var Te;this.notifications=new Ko.xQ;try{Te=(0,this.notifier)(this.notifications)}catch(mt){return(0,x.Z)((0,w.Z)(_e.prototype),"complete",this).call(this)}this.retries=Te,this.retriesSubscription=(0,E.ft)(Te,new E.IY(this))}}]),_e}(E.Ds);function Yn(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ge){return Ge.lift(new An(Ie,Ge))}}var An=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.count=Ge,this.source=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new cn(_e,this.count,this.source))}}]),Ie}(),cn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"error",value:function(Te){if(!this.isStopped){var ze=this.source,mt=this.count;if(0===mt)return(0,x.Z)((0,w.Z)(_e.prototype),"error",this).call(this,Te);mt>-1&&(this.count=mt-1),ze.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(Z.L);function qi(Ie){return function(Ge){return Ge.lift(new Oi(Ie,Ge))}}var Oi=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.notifier=Ge,this.source=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ji(_e,this.notifier,this.source))}}]),Ie}(),Ji=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt}return(0,T.Z)(_e,[{key:"error",value:function(Te){if(!this.isStopped){var ze=this.errors,mt=this.retries,Mt=this.retriesSubscription;if(mt)this.errors=void 0,this.retriesSubscription=void 0;else{ze=new Ko.xQ;try{mt=(0,this.notifier)(ze)}catch(Rr){return(0,x.Z)((0,w.Z)(_e.prototype),"error",this).call(this,Rr)}Mt=(0,E.ft)(mt,new E.IY(this))}this._unsubscribeAndRecycle(),this.errors=ze,this.retries=mt,this.retriesSubscription=Mt,ze.next(Te)}}},{key:"_unsubscribe",value:function(){var Te=this.errors,ze=this.retriesSubscription;Te&&(Te.unsubscribe(),this.errors=void 0),ze&&(ze.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Te=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Te,this.source.subscribe(this)}}]),_e}(E.Ds),Ii=m(4327);function oi(Ie){return function(Ge){return Ge.lift(new Mi(Ie))}}var Mi=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.notifier=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){var Te=new Hi(_e),ze=xe.subscribe(Te);return ze.add((0,E.ft)(this.notifier,new E.IY(Te))),ze}}]),Ie}(),Hi=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(){var xe;return(0,I.Z)(this,_e),(xe=Ge.apply(this,arguments)).hasValue=!1,xe}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.value=Te,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),_e}(E.Ds);function hr(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P;return function(_e){return _e.lift(new co(Ie,Ge))}}var co=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.period=Ge,this.scheduler=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new fa(_e,this.period,this.scheduler))}}]),Ie}(),fa=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).period=Te,mt.scheduler=ze,mt.hasValue=!1,mt.add(ze.schedule(ka,Te,{subscriber:(0,A.Z)(mt),period:Te})),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.lastValue=Te,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),_e}(Z.L);function ka(Ie){var Ge=Ie.subscriber,_e=Ie.period;Ge.notifyNext(),this.schedule(Ie,_e)}function go(Ie,Ge){return function(_e){return _e.lift(new fo(Ie,Ge))}}var fo=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.compareTo=Ge,this.comparator=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ia(_e,this.compareTo,this.comparator))}}]),Ie}(),ia=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).compareTo=Te,mt.comparator=ze,mt._a=[],mt._b=[],mt._oneComplete=!1,mt.destination.add(Te.subscribe(new hl(xe,(0,A.Z)(mt)))),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Te),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Te=this._a,ze=this._b,mt=this.comparator;Te.length>0&&ze.length>0;){var Mt=Te.shift(),wn=ze.shift(),Rr=!1;try{Rr=mt?mt(Mt,wn):Mt===wn}catch(ai){this.destination.error(ai)}Rr||this.emit(!1)}}},{key:"emit",value:function(Te){var ze=this.destination;ze.next(Te),ze.complete()}},{key:"nextB",value:function(Te){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Te),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),_e}(Z.L),hl=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).parent=Te,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.parent.nextB(Te)}},{key:"_error",value:function(Te){this.parent.error(Te),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),_e}(Z.L),Ka=m(8117),qa=m(5154),Jo=m(4450);function Qo(Ie){return function(Ge){return Ge.lift(new mu(Ie,Ge))}}var mu=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.predicate=Ge,this.source=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ec(_e,this.predicate,this.source))}}]),Ie}(),ec=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).predicate=Te,mt.source=ze,mt.seenValue=!1,mt.index=0,mt}return(0,T.Z)(_e,[{key:"applySingleValue",value:function(Te){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Te)}},{key:"_next",value:function(Te){var ze=this.index++;this.predicate?this.tryNext(Te,ze):this.applySingleValue(Te)}},{key:"tryNext",value:function(Te,ze){try{this.predicate(Te,ze,this.source)&&this.applySingleValue(Te)}catch(mt){this.destination.error(mt)}}},{key:"_complete",value:function(){var Te=this.destination;this.index>0?(Te.next(this.seenValue?this.singleValue:void 0),Te.complete()):Te.error(new Jo.K)}}]),_e}(Z.L),xc=m(1307);function Br(Ie){return function(Ge){return Ge.lift(new _u(Ie))}}var _u=function(){function Ie(Ge){if((0,I.Z)(this,Ie),this._skipCount=Ge,this._skipCount<0)throw new lt.W}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return 0===this._skipCount?xe.subscribe(new Z.L(_e)):xe.subscribe(new ml(_e,this._skipCount))}}]),Ie}(),ml=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe))._skipCount=Te,ze._count=0,ze._ring=new Array(Te),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this._skipCount,mt=this._count++;if(mt<ze)this._ring[mt]=Te;else{var Mt=mt%ze,wn=this._ring,Rr=wn[Mt];wn[Mt]=Te,this.destination.next(Rr)}}}]),_e}(Z.L);function mf(Ie){return function(Ge){return Ge.lift(new _l(Ie))}}var _l=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.notifier=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new gu(_e,this.notifier))}}]),Ie}(),gu=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).hasValue=!1;var mt=new E.IY((0,A.Z)(ze));ze.add(mt),ze.innerSubscription=mt;var Mt=(0,E.ft)(Te,mt);return Mt!==mt&&(ze.add(Mt),ze.innerSubscription=Mt),ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.hasValue&&(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),_e}(E.Ds);function po(Ie){return function(Ge){return Ge.lift(new ks(Ie))}}var ks=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.predicate=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ul(_e,this.predicate))}}]),Ie}(),Ul=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).predicate=Te,ze.skipping=!0,ze.index=0,ze}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.destination;this.skipping&&this.tryCallPredicate(Te),this.skipping||ze.next(Te)}},{key:"tryCallPredicate",value:function(Te){try{var ze=this.predicate(Te,this.index++);this.skipping=Boolean(ze)}catch(mt){this.destination.error(mt)}}}]),_e}(Z.L),Dc=m(1059),xo=m(3837);function vu(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new qs(Ie,Ge))}}var qs=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.scheduler=Ge,this.delay=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return new xo.e(xe,this.delay,this.scheduler).subscribe(_e)}}]),Ie}(),pa=m(7545),jo=m(5379);function bd(){return(0,pa.w)(jo.y)}function Ts(Ie,Ge){return Ge?(0,pa.w)(function(){return Ie},Ge):(0,pa.w)(function(){return Ie})}var Xm=m(7625),Ja=m(4290),nh=m(2994),Ms=m(2444);function Cr(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P,_e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ms.d;return function(xe){return xe.lift(new us(Ie,Ge,_e.leading,_e.trailing))}}var us=function(){function Ie(Ge,_e,xe,Te){(0,I.Z)(this,Ie),this.duration=Ge,this.scheduler=_e,this.leading=xe,this.trailing=Te}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new rh(_e,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ie}(),rh=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,I.Z)(this,_e),(wn=Ge.call(this,xe)).duration=Te,wn.scheduler=ze,wn.leading=mt,wn.trailing=Mt,wn._hasTrailingValue=!1,wn._trailingValue=null,wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){this.throttled?this.trailing&&(this._trailingValue=Te,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ov,this.duration,{subscriber:this})),this.leading?this.destination.next(Te):this.trailing&&(this._trailingValue=Te,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Te=this.throttled;Te&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Te.unsubscribe(),this.remove(Te),this.throttled=null)}}]),_e}(Z.L);function Ov(Ie){Ie.subscriber.clearThrottle()}var ih=m(3485),_f=m(854),Js=m(2697);function yu(Ie,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.P;return function(xe){var Te=(0,Js.J)(Ie),ze=Te?+Ie-_e.now():Math.abs(Ie);return xe.lift(new Hl(ze,Te,Ge,_e))}}var Hl=function(){function Ie(Ge,_e,xe,Te){(0,I.Z)(this,Ie),this.waitFor=Ge,this.absoluteTimeout=_e,this.withObservable=xe,this.scheduler=Te}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new xn(_e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ie}(),xn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,I.Z)(this,_e),(wn=Ge.call(this,xe)).absoluteTimeout=Te,wn.waitFor=ze,wn.withObservable=mt,wn.scheduler=Mt,wn.scheduleTimeout(),wn}return(0,T.Z)(_e,[{key:"scheduleTimeout",value:function(){var Te=this.action;Te?this.action=Te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(_e.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Te){this.absoluteTimeout||this.scheduleTimeout(),(0,x.Z)((0,w.Z)(_e.prototype),"_next",this).call(this,Te)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Te){var ze=Te.withObservable;Te._unsubscribeAndRecycle(),Te.add((0,E.ft)(ze,new E.IY(Te)))}}]),_e}(E.Ds),we=m(1737);function ke(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.P;return yu(Ie,(0,we._)(new _f.W),Ge)}var se=m(7781);function Me(Ie,Ge,_e){return 0===_e?[Ge]:(Ie.push(Ge),Ie)}function Oe(){return Gn(Me,[])}function pt(Ie){return function(_e){return _e.lift(new Yt(Ie))}}var Yt=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.windowBoundaries=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){var Te=new Pn(_e),ze=xe.subscribe(Te);return ze.closed||Te.add((0,E.ft)(this.windowBoundaries,new E.IY(Te))),ze}}]),Ie}(),Pn=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe){var Te;return(0,I.Z)(this,_e),(Te=Ge.call(this,xe)).window=new Ko.xQ,xe.next(Te.window),Te}return(0,T.Z)(_e,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Te){this.window.next(Te)}},{key:"_error",value:function(Te){this.window.error(Te),this.destination.error(Te)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Te=this.window;Te&&Te.complete();var ze=this.destination,mt=this.window=new Ko.xQ;ze.next(mt)}}]),_e}(E.Ds);function Qn(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new Qs(Ie,Ge))}}var Qs=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.windowSize=Ge,this.startWindowEvery=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new tc(_e,this.windowSize,this.startWindowEvery))}}]),Ie}(),tc=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).destination=xe,mt.windowSize=Te,mt.startWindowEvery=ze,mt.windows=[new Ko.xQ],mt.count=0,xe.next(mt.windows[0]),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,mt=this.destination,Mt=this.windowSize,wn=this.windows,Rr=wn.length,ai=0;ai<Rr&&!this.closed;ai++)wn[ai].next(Te);var si=this.count-Mt+1;if(si>=0&&si%ze==0&&!this.closed&&wn.shift().complete(),++this.count%ze==0&&!this.closed){var $s=new Ko.xQ;wn.push($s),mt.next($s)}}},{key:"_error",value:function(Te){var ze=this.windows;if(ze)for(;ze.length>0&&!this.closed;)ze.shift().error(Te);this.destination.error(Te)}},{key:"_complete",value:function(){var Te=this.windows;if(Te)for(;Te.length>0&&!this.closed;)Te.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),_e}(Z.L),Go=m(4241);function Xs(Ie){var Ge=M.P,_e=null,xe=Number.POSITIVE_INFINITY;return(0,N.K)(arguments[3])&&(Ge=arguments[3]),(0,N.K)(arguments[2])?Ge=arguments[2]:(0,Go.k)(arguments[2])&&(xe=Number(arguments[2])),(0,N.K)(arguments[1])?Ge=arguments[1]:(0,Go.k)(arguments[1])&&(_e=Number(arguments[1])),function(ze){return ze.lift(new Xo(Ie,_e,xe,Ge))}}var Xo=function(){function Ie(Ge,_e,xe,Te){(0,I.Z)(this,Ie),this.windowTimeSpan=Ge,this.windowCreationInterval=_e,this.maxWindowSize=xe,this.scheduler=Te}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new nc(_e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ie}(),Qa=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(){var xe;return(0,I.Z)(this,_e),(xe=Ge.apply(this,arguments))._numberOfNextedValues=0,xe}return(0,T.Z)(_e,[{key:"next",value:function(Te){this._numberOfNextedValues++,(0,x.Z)((0,w.Z)(_e.prototype),"next",this).call(this,Te)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),_e}(Ko.xQ),nc=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,I.Z)(this,_e),(wn=Ge.call(this,xe)).destination=xe,wn.windowTimeSpan=Te,wn.windowCreationInterval=ze,wn.maxWindowSize=mt,wn.scheduler=Mt,wn.windows=[];var Rr=wn.openWindow();if(null!==ze&&ze>=0){var ai={subscriber:(0,A.Z)(wn),window:Rr,context:null},si={windowTimeSpan:Te,windowCreationInterval:ze,subscriber:(0,A.Z)(wn),scheduler:Mt};wn.add(Mt.schedule($m,Te,ai)),wn.add(Mt.schedule(cs,ze,si))}else{var $s={subscriber:(0,A.Z)(wn),window:Rr,windowTimeSpan:Te};wn.add(Mt.schedule(Ta,Te,$s))}return wn}return(0,T.Z)(_e,[{key:"_next",value:function(Te){for(var ze=this.windows,mt=ze.length,Mt=0;Mt<mt;Mt++){var wn=ze[Mt];wn.closed||(wn.next(Te),wn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(wn))}}},{key:"_error",value:function(Te){for(var ze=this.windows;ze.length>0;)ze.shift().error(Te);this.destination.error(Te)}},{key:"_complete",value:function(){for(var Te=this.windows;Te.length>0;){var ze=Te.shift();ze.closed||ze.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Te=new Qa;return this.windows.push(Te),this.destination.next(Te),Te}},{key:"closeWindow",value:function(Te){Te.complete();var ze=this.windows;ze.splice(ze.indexOf(Te),1)}}]),_e}(Z.L);function Ta(Ie){var Ge=Ie.subscriber,_e=Ie.windowTimeSpan,xe=Ie.window;xe&&Ge.closeWindow(xe),Ie.window=Ge.openWindow(),this.schedule(Ie,_e)}function cs(Ie){var Ge=Ie.windowTimeSpan,_e=Ie.subscriber,xe=Ie.scheduler,Te=Ie.windowCreationInterval,ze=_e.openWindow(),Mt={action:this,subscription:null},wn={subscriber:_e,window:ze,context:Mt};Mt.subscription=xe.schedule($m,Ge,wn),this.add(Mt.subscription),this.schedule(Ie,Te)}function $m(Ie){var Ge=Ie.subscriber,_e=Ie.window,xe=Ie.context;xe&&xe.action&&xe.subscription&&xe.action.remove(xe.subscription),Ge.closeWindow(_e)}function e_(Ie,Ge){return function(_e){return _e.lift(new oh(Ie,Ge))}}var oh=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.openings=Ge,this.closingSelector=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new t_(_e,this.openings,this.closingSelector))}}]),Ie}(),t_=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;return(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).openings=Te,mt.closingSelector=ze,mt.contexts=[],mt.add(mt.openSubscription=(0,fe.D)((0,A.Z)(mt),Te,Te)),mt}return(0,T.Z)(_e,[{key:"_next",value:function(Te){var ze=this.contexts;if(ze)for(var mt=ze.length,Mt=0;Mt<mt;Mt++)ze[Mt].window.next(Te)}},{key:"_error",value:function(Te){var ze=this.contexts;if(this.contexts=null,ze)for(var mt=ze.length,Mt=-1;++Mt<mt;){var wn=ze[Mt];wn.window.error(Te),wn.subscription.unsubscribe()}(0,x.Z)((0,w.Z)(_e.prototype),"_error",this).call(this,Te)}},{key:"_complete",value:function(){var Te=this.contexts;if(this.contexts=null,Te)for(var ze=Te.length,mt=-1;++mt<ze;){var Mt=Te[mt];Mt.window.complete(),Mt.subscription.unsubscribe()}(0,x.Z)((0,w.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var Te=this.contexts;if(this.contexts=null,Te)for(var ze=Te.length,mt=-1;++mt<ze;){var Mt=Te[mt];Mt.window.unsubscribe(),Mt.subscription.unsubscribe()}}},{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){if(Te===this.openings){var Rr;try{Rr=(0,this.closingSelector)(ze)}catch(vf){return this.error(vf)}var si=new Ko.xQ,$s=new pe.w,gf={window:si,subscription:$s};this.contexts.push(gf);var Ar=(0,fe.D)(this,Rr,gf);Ar.closed?this.closeWindow(this.contexts.length-1):(Ar.context=gf,$s.add(Ar)),this.destination.next(si)}else this.closeWindow(this.contexts.indexOf(Te))}},{key:"notifyError",value:function(Te){this.error(Te)}},{key:"notifyComplete",value:function(Te){Te!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(Te.context))}},{key:"closeWindow",value:function(Te){if(-1!==Te){var ze=this.contexts,mt=ze[Te],Mt=mt.window,wn=mt.subscription;ze.splice(Te,1),Mt.complete(),wn.unsubscribe()}}}]),_e}(ue.L);function Ac(Ie){return function(_e){return _e.lift(new rc(Ie))}}var rc=function(){function Ie(Ge){(0,I.Z)(this,Ie),this.closingSelector=Ge}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ss(_e,this.closingSelector))}}]),Ie}(),Ss=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te){var ze;return(0,I.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.closingSelector=Te,ze.openWindow(),ze}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt,Mt,wn){this.openWindow(wn)}},{key:"notifyError",value:function(Te){this._error(Te)}},{key:"notifyComplete",value:function(Te){this.openWindow(Te)}},{key:"_next",value:function(Te){this.window.next(Te)}},{key:"_error",value:function(Te){this.window.error(Te),this.destination.error(Te),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Te&&(this.remove(Te),Te.unsubscribe());var ze=this.window;ze&&ze.complete();var Mt,mt=this.window=new Ko.xQ;this.destination.next(mt);try{var wn=this.closingSelector;Mt=wn()}catch(Rr){return this.destination.error(Rr),void this.window.error(Rr)}this.add(this.closingNotification=(0,fe.D)(this,Mt))}}]),_e}(ue.L);function Es(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(xe){var Te;"function"==typeof Ge[Ge.length-1]&&(Te=Ge.pop());var ze=Ge;return xe.lift(new gl(ze,Te))}}var gl=function(){function Ie(Ge,_e){(0,I.Z)(this,Ie),this.observables=Ge,this.project=_e}return(0,T.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Cd(_e,this.observables,this.project))}}]),Ie}(),Cd=function(Ie){(0,H.Z)(_e,Ie);var Ge=(0,P.Z)(_e);function _e(xe,Te,ze){var mt;(0,I.Z)(this,_e),(mt=Ge.call(this,xe)).observables=Te,mt.project=ze,mt.toRespond=[];var Mt=Te.length;mt.values=new Array(Mt);for(var wn=0;wn<Mt;wn++)mt.toRespond.push(wn);for(var Rr=0;Rr<Mt;Rr++){var ai=Te[Rr];mt.add((0,fe.D)((0,A.Z)(mt),ai,void 0,Rr))}return mt}return(0,T.Z)(_e,[{key:"notifyNext",value:function(Te,ze,mt){this.values[mt]=ze;var Mt=this.toRespond;if(Mt.length>0){var wn=Mt.indexOf(mt);-1!==wn&&Mt.splice(wn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Te){if(0===this.toRespond.length){var ze=[Te].concat((0,$t.Z)(this.values));this.project?this._tryProject(ze):this.destination.next(ze)}}},{key:"_tryProject",value:function(Te){var ze;try{ze=this.project.apply(this,Te)}catch(mt){return void this.destination.error(mt)}this.destination.next(ze)}}]),_e}(ue.L),wd=m(1746);function vl(){for(var Ie=arguments.length,Ge=new Array(Ie),_e=0;_e<Ie;_e++)Ge[_e]=arguments[_e];return function(Te){return Te.lift.call(wd.$R.apply(void 0,[Te].concat(Ge)))}}function Ma(Ie){return function(Ge){return Ge.lift(new wd.mx(Ie))}}},9594:function(Ae,K,m){"use strict";m.r(K),m.d(K,{TestScheduler:function(){return M}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(7451),E=m(9312),j=m(4096),R=(0,W.Z)(function N(F){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,G.Z)(this,N),this.subscribedFrame=F,this.unsubscribedFrame=X}),v=function(){function N(){(0,G.Z)(this,N),this.subscriptions=[]}return(0,W.Z)(N,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new R(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(X){var $=this.subscriptions,V=$[X];$[X]=new R(V.subscribedFrame,this.scheduler.now())}}]),N}(),x=m(5128),w=function(N){(0,P.Z)(X,N);var F=(0,I.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=F.call(this,function(te){var be=this,pe=be.logSubscribedFrame(),fe=new j.w;return fe.add(new j.w(function(){be.logUnsubscribedFrame(pe)})),be.scheduleMessages(te),fe})).messages=$,Q.subscriptions=[],Q.scheduler=V,Q}return(0,W.Z)(X,[{key:"scheduleMessages",value:function(V){for(var Q=this.messages.length,te=0;te<Q;te++){var be=this.messages[te];V.add(this.scheduler.schedule(function(pe){var fe=pe.message,ue=pe.subscriber;fe.notification.observe(ue)},be.frame,{message:be,subscriber:V}))}}}]),X}(T.y);(0,x.e)(w,[v]);var D=function(N){(0,P.Z)(X,N);var F=(0,I.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=F.call(this)).messages=$,Q.subscriptions=[],Q.scheduler=V,Q}return(0,W.Z)(X,[{key:"_subscribe",value:function(V){var Q=this,te=Q.logSubscribedFrame(),be=new j.w;return be.add(new j.w(function(){Q.logUnsubscribedFrame(te)})),be.add((0,A.Z)((0,H.Z)(X.prototype),"_subscribe",this).call(this,V)),be}},{key:"setup",value:function(){for(var V=this,Q=V.messages.length,te=0;te<Q;te++)!function(){var be=V.messages[te];V.scheduler.schedule(function(){be.notification.observe(V)},be.frame)}()}}]),X}(m(8929).xQ);(0,x.e)(D,[v]);var b=m(9027),S=m(198),M=function(N){(0,P.Z)(X,N);var F=(0,I.Z)(X);function X($){var V;return(0,G.Z)(this,X),(V=F.call(this,b.h,750)).assertDeepEqual=$,V.hotObservables=[],V.coldObservables=[],V.flushTests=[],V.runMode=!1,V}return(0,W.Z)(X,[{key:"createTime",value:function(V){var Q=V.indexOf("|");if(-1===Q)throw new Error('marble diagram for time should have a completion marker "|"');return Q*X.frameTimeFactor}},{key:"createColdObservable",value:function(V,Q,te){if(-1!==V.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==V.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var be=X.parseMarbles(V,Q,te,void 0,this.runMode),pe=new w(be,this);return this.coldObservables.push(pe),pe}},{key:"createHotObservable",value:function(V,Q,te){if(-1!==V.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var be=X.parseMarbles(V,Q,te,void 0,this.runMode),pe=new D(be,this);return this.hotObservables.push(pe),pe}},{key:"materializeInnerObservable",value:function(V,Q){var te=this,be=[];return V.subscribe(function(pe){be.push({frame:te.frame-Q,notification:E.P.createNext(pe)})},function(pe){be.push({frame:te.frame-Q,notification:E.P.createError(pe)})},function(){be.push({frame:te.frame-Q,notification:E.P.createComplete()})}),be}},{key:"expectObservable",value:function(V){var ge,Q=this,te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,be=[],pe={actual:be,ready:!1},fe=X.parseMarblesAsSubscriptions(te,this.runMode),ue=fe.subscribedFrame===Number.POSITIVE_INFINITY?0:fe.subscribedFrame,de=fe.unsubscribedFrame;this.schedule(function(){ge=V.subscribe(function(ot){var St=ot;ot instanceof T.y&&(St=Q.materializeInnerObservable(St,Q.frame)),be.push({frame:Q.frame,notification:E.P.createNext(St)})},function(ot){be.push({frame:Q.frame,notification:E.P.createError(ot)})},function(){be.push({frame:Q.frame,notification:E.P.createComplete()})})},ue),de!==Number.POSITIVE_INFINITY&&this.schedule(function(){return ge.unsubscribe()},de),this.flushTests.push(pe);var je=this.runMode;return{toBe:function(St,Tt,Dt){pe.ready=!0,pe.expected=X.parseMarbles(St,Tt,Dt,!0,je)}}}},{key:"expectSubscriptions",value:function(V){var Q={actual:V,ready:!1};this.flushTests.push(Q);var te=this.runMode;return{toBe:function(pe){var fe="string"==typeof pe?[pe]:pe;Q.ready=!0,Q.expected=fe.map(function(ue){return X.parseMarblesAsSubscriptions(ue,te)})}}}},{key:"flush",value:function(){for(var V=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,A.Z)((0,H.Z)(X.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(te){return!te.ready||(V.assertDeepEqual(te.actual,te.expected),!1)})}},{key:"run",value:function(V){var Q=X.frameTimeFactor,te=this.maxFrames;X.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,S.v.delegate=this;var be={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var pe=V(be);return this.flush(),pe}finally{X.frameTimeFactor=Q,this.maxFrames=te,this.runMode=!1,S.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(V){var Q=this,te=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof V)return new R(Number.POSITIVE_INFINITY);for(var be=V.length,pe=-1,fe=Number.POSITIVE_INFINITY,ue=Number.POSITIVE_INFINITY,de=0,ge=function(St){var Tt=de,Dt=function(_t){Tt+=_t*Q.frameTimeFactor},Rt=V[St];switch(Rt){case" ":te||Dt(1);break;case"-":Dt(1);break;case"(":pe=de,Dt(1);break;case")":pe=-1,Dt(1);break;case"^":if(fe!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");fe=pe>-1?pe:de,Dt(1);break;case"!":if(ue!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");ue=pe>-1?pe:de;break;default:if(te&&Rt.match(/^[0-9]$/)&&(0===St||" "===V[St-1])){var $t=V.slice(St).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if($t){St+=$t[0].length-1;var rt,Ft=parseFloat($t[1]);switch($t[2]){case"ms":rt=Ft;break;case"s":rt=1e3*Ft;break;case"m":rt=1e3*Ft*60}Dt(rt/Q.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Rt+"'.")}de=Tt,je=St},je=0;je<be;je++)ge(je);return ue<0?new R(fe):new R(fe,ue)}},{key:"parseMarbles",value:function(V,Q,te){var be=this,pe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],fe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==V.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var ue=V.length,de=[],ge=fe?V.replace(/^[ ]+/,"").indexOf("^"):V.indexOf("^"),je=-1===ge?0:ge*-this.frameTimeFactor,ot="object"!=typeof Q?function(Rt){return Rt}:function(Rt){return pe&&Q[Rt]instanceof w?Q[Rt].messages:Q[Rt]},St=-1,Tt=function(Ze){var pn,$t=je,Ft=function(Ut){$t+=Ut*be.frameTimeFactor},rt=V[Ze];switch(rt){case" ":fe||Ft(1);break;case"-":case"^":Ft(1);break;case"(":St=je,Ft(1);break;case")":St=-1,Ft(1);break;case"|":pn=E.P.createComplete(),Ft(1);break;case"#":pn=E.P.createError(te||"error"),Ft(1);break;default:if(fe&&rt.match(/^[0-9]$/)&&(0===Ze||" "===V[Ze-1])){var _t=V.slice(Ze).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){Ze+=_t[0].length-1;var at,Ct=parseFloat(_t[1]);switch(_t[2]){case"ms":at=Ct;break;case"s":at=1e3*Ct;break;case"m":at=1e3*Ct*60}Ft(at/be.frameTimeFactor);break}}pn=E.P.createNext(ot(rt)),Ft(1)}pn&&de.push({frame:St>-1?St:je,notification:pn}),je=$t,Dt=Ze},Dt=0;Dt<ue;Dt++)Tt(Dt);return de}}]),X}(b.y)},2301:function(Ae,K,m){"use strict";m.r(K),m.d(K,{WebSocketSubject:function(){return W.p},webSocket:function(){return G.j}});var G=m(7623),W=m(2741)},5561:function(Ae,K,m){"use strict";m(5772)},2033:function(Ae,K){"use strict";var m,G;!function(){var W=K||{};m=[],void 0!==(G=function(){return W}.apply(K,m))&&(Ae.exports=G),W.default=W;var A="http://www.w3.org/2000/xmlns/",P="http://www.w3.org/2000/svg",T=/url\(["']?(.+?)["']?\)/,E={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},j=function(fe){return fe instanceof HTMLElement||fe instanceof SVGElement},R=function(fe){if(!j(fe))throw new Error("an HTMLElement or SVGElement is required; got "+fe)},v=function(fe){return new Promise(function(ue,de){j(fe)?ue(fe):de(new Error("an HTMLElement or SVGElement is required; got "+fe))})},w=function(fe){var ue=Object.keys(E).filter(function(de){return fe.indexOf("."+de)>0}).map(function(de){return E[de]});return ue?ue[0]:(console.error("Unknown font format for "+fe+". Fonts may not be working correctly."),"application/octet-stream")},D=function(fe,ue,de){var ge=fe.viewBox&&fe.viewBox.baseVal&&fe.viewBox.baseVal[de]||null!==ue.getAttribute(de)&&!ue.getAttribute(de).match(/%$/)&&parseInt(ue.getAttribute(de))||fe.getBoundingClientRect()[de]||parseInt(ue.style[de])||parseInt(window.getComputedStyle(fe).getPropertyValue(de));return null==ge||isNaN(parseFloat(ge))?0:ge},k=function(fe){for(var ue=window.atob(fe.split(",")[1]),de=fe.split(",")[0].split(":")[1].split(";")[0],ge=new ArrayBuffer(ue.length),je=new Uint8Array(ge),ot=0;ot<ue.length;ot++)je[ot]=ue.charCodeAt(ot);return new Blob([ge],{type:de})},F=function(fe){return Promise.all(Array.from(fe.querySelectorAll("image")).map(function(ue){var de=ue.getAttributeNS("http://www.w3.org/1999/xlink","href")||ue.getAttribute("href");return de?(function(fe){return fe&&0===fe.lastIndexOf("http",0)&&-1===fe.lastIndexOf(window.location.host)}(de)&&(de+=(-1===de.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(ge,je){var ot=document.createElement("canvas"),St=new Image;St.crossOrigin="anonymous",St.src=de,St.onerror=function(){return je(new Error("Could not load "+de))},St.onload=function(){ot.width=St.width,ot.height=St.height,ot.getContext("2d").drawImage(St,0,0),ue.setAttributeNS("http://www.w3.org/1999/xlink","href",ot.toDataURL("image/png")),ge(!0)}})):Promise.resolve(null)}))},X={},$=function(fe){return Promise.all(fe.map(function(ue){return new Promise(function(de,ge){if(X[ue.url])return de(X[ue.url]);var je=new XMLHttpRequest;je.addEventListener("load",function(){var ot=function(fe){for(var ue="",de=new Uint8Array(fe),ge=0;ge<de.byteLength;ge++)ue+=String.fromCharCode(de[ge]);return window.btoa(ue)}(je.response),St=ue.text.replace(T,'url("data:'+ue.format+";base64,"+ot+'")')+"\n";X[ue.url]=St,de(St)}),je.addEventListener("error",function(ot){console.warn("Failed to load font from: "+ue.url,ot),X[ue.url]=null,de(null)}),je.addEventListener("abort",function(ot){console.warn("Aborted loading font from: "+ue.url,ot),de(null)}),je.open("GET",ue.url),je.responseType="arraybuffer",je.send()})})).then(function(ue){return ue.filter(function(de){return de}).join("")})},V=null,te=function(fe,ue){var de=ue||{},ge=de.selectorRemap,je=de.modifyStyle,ot=de.modifyCss,St=de.fonts,Tt=de.excludeUnusedCss,Dt=ot||function(Ft,pn){return(ge?ge(Ft):Ft)+"{"+(je?je(pn):pn)+"}\n"},Rt=[],Ze=void 0===St,$t=St||[];return(V||(V=Array.from(document.styleSheets).map(function(fe){try{return{rules:fe.cssRules,href:fe.href}}catch(ue){return console.warn("Stylesheet could not be loaded: "+fe.href,ue),{}}}))).forEach(function(Ft){var pn=Ft.rules,rt=Ft.href;!pn||Array.from(pn).forEach(function(Ot){if(void 0!==Ot.style)if(function(fe,ue){if(ue)try{return fe.querySelector(ue)||fe.parentNode&&fe.parentNode.querySelector(ue)}catch(de){console.warn('Invalid CSS selector "'+ue+'"',de)}}(fe,Ot.selectorText))Rt.push(Dt(Ot.selectorText,Ot.style.cssText));else if(Ze&&Ot.cssText.match(/^@font-face/)){var _t=function(fe,ue){var de=fe.cssText.match(T),ge=de&&de[1]||"";if(ge&&!ge.match(/^data:/)&&"about:blank"!==ge){var je=ge.startsWith("../")?ue+"/../"+ge:ge.startsWith("./")?ue+"/."+ge:ge;return{text:fe.cssText,format:w(je),url:je}}}(Ot,rt);_t&&$t.push(_t)}else Tt||Rt.push(Ot.cssText)})}),$($t).then(function(Ft){return Rt.join("\n")+Ft})},be=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};W.prepareSvg=function(pe,fe,ue){R(pe);var de=fe||{},ge=de.left,je=void 0===ge?0:ge,ot=de.top,St=void 0===ot?0:ot,Tt=de.width,Dt=de.height,Rt=de.scale,Ze=void 0===Rt?1:Rt,$t=de.responsive,Ft=void 0!==$t&&$t,pn=de.excludeCss,rt=void 0!==pn&&pn;return F(pe).then(function(){var Ot=pe.cloneNode(!0);Ot.style.backgroundColor=(fe||{}).backgroundColor||pe.style.backgroundColor;var _t=function(fe,ue,de,ge){if("svg"===fe.tagName)return{width:de||D(fe,ue,"width"),height:ge||D(fe,ue,"height")};if(fe.getBBox){var je=fe.getBBox(),ot=je.x,St=je.y;return{width:ot+je.width,height:St+je.height}}}(pe,Ot,Tt,Dt),Ct=_t.width,Ve=_t.height;if("svg"!==pe.tagName){if(!pe.getBBox)return void console.error("Attempted to render non-SVG element",pe);null!=Ot.getAttribute("transform")&&Ot.setAttribute("transform",Ot.getAttribute("transform").replace(/translate\(.*?\)/,""));var at=document.createElementNS("http://www.w3.org/2000/svg","svg");at.appendChild(Ot),Ot=at}if(Ot.setAttribute("version","1.1"),Ot.setAttribute("viewBox",[je,St,Ct,Ve].join(" ")),Ot.getAttribute("xmlns")||Ot.setAttributeNS(A,"xmlns",P),Ot.getAttribute("xmlns:xlink")||Ot.setAttributeNS(A,"xmlns:xlink","http://www.w3.org/1999/xlink"),Ft?(Ot.removeAttribute("width"),Ot.removeAttribute("height"),Ot.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ot.setAttribute("width",Ct*Ze),Ot.setAttribute("height",Ve*Ze)),Array.from(Ot.querySelectorAll("foreignObject > *")).forEach(function(Wt){Wt.setAttributeNS(A,"xmlns","svg"===Wt.tagName?P:"http://www.w3.org/1999/xhtml")}),!rt)return te(pe,fe).then(function(Wt){var U=document.createElement("style");U.setAttribute("type","text/css"),U.innerHTML="<![CDATA[\n"+Wt+"\n]]>";var B=document.createElement("defs");B.appendChild(U),Ot.insertBefore(B,Ot.firstChild);var qe=document.createElement("div");qe.appendChild(Ot);var Be=qe.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof ue)return{src:Be,width:Ct,height:Ve};ue(Be,Ct,Ve)});var ht=document.createElement("div");ht.appendChild(Ot);var Ut=ht.innerHTML;if("function"!=typeof ue)return{src:Ut,width:Ct,height:Ve};ue(Ut,Ct,Ve)})},W.svgAsDataUri=function(pe,fe,ue){return R(pe),W.prepareSvg(pe,fe).then(function(de){var ge=de.src,je=de.width,ot=de.height,St="data:image/svg+xml;base64,"+window.btoa(function(fe){return decodeURIComponent(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(ue,de){var ge=String.fromCharCode("0x"+de);return"%"===ge?"%25":ge}))}('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+ge));return"function"==typeof ue&&ue(St,je,ot),St})},W.svgAsPngUri=function(pe,fe,ue){R(pe);var de=fe||{},ge=de.encoderType,je=void 0===ge?"image/png":ge,ot=de.encoderOptions,St=void 0===ot?.8:ot,Tt=de.canvg,Dt=function(Ze){var $t=Ze.src,Ft=Ze.width,pn=Ze.height,rt=document.createElement("canvas"),Ot=rt.getContext("2d"),_t=window.devicePixelRatio||1;rt.width=Ft*_t,rt.height=pn*_t,rt.style.width=rt.width+"px",rt.style.height=rt.height+"px",Ot.setTransform(_t,0,0,_t,0,0),Tt?Tt(rt,$t):Ot.drawImage($t,0,0);var Ct=void 0;try{Ct=rt.toDataURL(je,St)}catch(Ve){if("undefined"!=typeof SecurityError&&Ve instanceof SecurityError||"SecurityError"===Ve.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw Ve}return"function"==typeof ue&&ue(Ct,rt.width,rt.height),Promise.resolve(Ct)};return Tt?W.prepareSvg(pe,fe).then(Dt):W.svgAsDataUri(pe,fe).then(function(Rt){return new Promise(function(Ze,$t){var Ft=new Image;Ft.onload=function(){return Ze(Dt({src:Ft,width:Ft.width,height:Ft.height}))},Ft.onerror=function(){$t("There was an error loading the data URI as an image on the following SVG\n"+window.atob(Rt.slice(26))+"Open the following link to see browser's diagnosis\n"+Rt)},Ft.src=Rt})})},W.download=function(pe,fe,ue){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(k(fe),pe);else{var de=document.createElement("a");if("download"in de){de.download=pe,de.style.display="none",document.body.appendChild(de);try{var ge=k(fe),je=URL.createObjectURL(ge);de.href=je,de.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(je)})}}catch(ot){console.error(ot),console.warn("Error while getting object URL. Falling back to string URL."),de.href=fe}de.click(),document.body.removeChild(de)}else ue&&ue.popup&&(ue.popup.document.title=pe,ue.popup.location.replace(fe))}},W.saveSvg=function(pe,fe,ue){var de=be();return v(pe).then(function(ge){return W.svgAsDataUri(ge,ue||{})}).then(function(ge){return W.download(fe,ge,de)})},W.saveSvgAsPng=function(pe,fe,ue){var de=be();return v(pe).then(function(ge){return W.svgAsPngUri(ge,ue||{})}).then(function(ge){return W.download(fe,ge,de)})}}()},6842:function(Ae,K,m){var G=m(2472),W=Object.prototype.hasOwnProperty,A="undefined"!=typeof Map;function H(){this._array=[],this._set=A?new Map:Object.create(null)}H.fromArray=function(I,T){for(var E=new H,j=0,R=I.length;j<R;j++)E.add(I[j],T);return E},H.prototype.size=function(){return A?this._set.size:Object.getOwnPropertyNames(this._set).length},H.prototype.add=function(I,T){var E=A?I:G.toSetString(I),j=A?this.has(I):W.call(this._set,E),R=this._array.length;(!j||T)&&this._array.push(I),j||(A?this._set.set(I,R):this._set[E]=R)},H.prototype.has=function(I){if(A)return this._set.has(I);var T=G.toSetString(I);return W.call(this._set,T)},H.prototype.indexOf=function(I){if(A){var T=this._set.get(I);if(T>=0)return T}else{var E=G.toSetString(I);if(W.call(this._set,E))return this._set[E]}throw new Error('"'+I+'" is not in the set.')},H.prototype.at=function(I){if(I>=0&&I<this._array.length)return this._array[I];throw new Error("No element indexed by "+I)},H.prototype.toArray=function(){return this._array.slice()},K.I=H},3357:function(Ae,K,m){var G=m(5773);K.encode=function(j){var v,R="",x=function I(E){return E<0?1+(-E<<1):0+(E<<1)}(j);do{v=31&x,(x>>>=5)>0&&(v|=32),R+=G.encode(v)}while(x>0);return R},K.decode=function(j,R,v){var D,b,x=j.length,w=0,Z=0;do{if(R>=x)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(b=G.decode(j.charCodeAt(R++))))throw new Error("Invalid base64 digit: "+j.charAt(R-1));D=!!(32&b),w+=(b&=31)<<Z,Z+=5}while(D);v.value=function T(E){var R=E>>1;return 1==(1&E)?-R:R}(w),v.rest=R}},5773:function(Ae,K){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");K.encode=function(G){if(0<=G&&G<m.length)return m[G];throw new TypeError("Must be between 0 and 63: "+G)},K.decode=function(G){return 65<=G&&G<=90?G-65:97<=G&&G<=122?G-97+26:48<=G&&G<=57?G-48+52:43==G?62:47==G?63:-1}},1490:function(Ae,K,m){var G=m(2472);function A(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}A.prototype.unsortedForEach=function(P,I){this._array.forEach(P,I)},A.prototype.add=function(P){!function W(H,P){var I=H.generatedLine,T=P.generatedLine,E=H.generatedColumn,j=P.generatedColumn;return T>I||T==I&&j>=E||G.compareByGeneratedPositionsInflated(H,P)<=0}(this._last,P)?(this._sorted=!1,this._array.push(P)):(this._last=P,this._array.push(P))},A.prototype.toArray=function(){return this._sorted||(this._array.sort(G.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},K.H=A},3058:function(Ae,K,m){var G=m(3357),W=m(2472),A=m(6842).I,H=m(1490).H;function P(I){I||(I={}),this._file=W.getArg(I,"file",null),this._sourceRoot=W.getArg(I,"sourceRoot",null),this._skipValidation=W.getArg(I,"skipValidation",!1),this._sources=new A,this._names=new A,this._mappings=new H,this._sourcesContents=null}P.prototype._version=3,P.fromSourceMap=function(T){var E=T.sourceRoot,j=new P({file:T.file,sourceRoot:E});return T.eachMapping(function(R){var v={generated:{line:R.generatedLine,column:R.generatedColumn}};null!=R.source&&(v.source=R.source,null!=E&&(v.source=W.relative(E,v.source)),v.original={line:R.originalLine,column:R.originalColumn},null!=R.name&&(v.name=R.name)),j.addMapping(v)}),T.sources.forEach(function(R){var v=R;null!==E&&(v=W.relative(E,R)),j._sources.has(v)||j._sources.add(v);var x=T.sourceContentFor(R);null!=x&&j.setSourceContent(R,x)}),j},P.prototype.addMapping=function(T){var E=W.getArg(T,"generated"),j=W.getArg(T,"original",null),R=W.getArg(T,"source",null),v=W.getArg(T,"name",null);this._skipValidation||this._validateMapping(E,j,R,v),null!=R&&(R=String(R),this._sources.has(R)||this._sources.add(R)),null!=v&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:E.line,generatedColumn:E.column,originalLine:null!=j&&j.line,originalColumn:null!=j&&j.column,source:R,name:v})},P.prototype.setSourceContent=function(T,E){var j=T;null!=this._sourceRoot&&(j=W.relative(this._sourceRoot,j)),null!=E?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(j)]=E):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(j)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},P.prototype.applySourceMap=function(T,E,j){var R=E;if(null==E){if(null==T.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');R=T.file}var v=this._sourceRoot;null!=v&&(R=W.relative(v,R));var x=new A,w=new A;this._mappings.unsortedForEach(function(Z){if(Z.source===R&&null!=Z.originalLine){var D=T.originalPositionFor({line:Z.originalLine,column:Z.originalColumn});null!=D.source&&(Z.source=D.source,null!=j&&(Z.source=W.join(j,Z.source)),null!=v&&(Z.source=W.relative(v,Z.source)),Z.originalLine=D.line,Z.originalColumn=D.column,null!=D.name&&(Z.name=D.name))}var b=Z.source;null!=b&&!x.has(b)&&x.add(b);var S=Z.name;null!=S&&!w.has(S)&&w.add(S)},this),this._sources=x,this._names=w,T.sources.forEach(function(Z){var D=T.sourceContentFor(Z);null!=D&&(null!=j&&(Z=W.join(j,Z)),null!=v&&(Z=W.relative(v,Z)),this.setSourceContent(Z,D))},this)},P.prototype._validateMapping=function(T,E,j,R){if(E&&"number"!=typeof E.line&&"number"!=typeof E.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(T&&"line"in T&&"column"in T&&T.line>0&&T.column>=0)||E||j||R){if(T&&"line"in T&&"column"in T&&E&&"line"in E&&"column"in E&&T.line>0&&T.column>=0&&E.line>0&&E.column>=0&&j)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:T,source:j,original:E,name:R}))}},P.prototype._serializeMappings=function(){for(var Z,D,b,S,T=0,E=1,j=0,R=0,v=0,x=0,w="",k=this._mappings.toArray(),M=0,N=k.length;M<N;M++){if(Z="",(D=k[M]).generatedLine!==E)for(T=0;D.generatedLine!==E;)Z+=";",E++;else if(M>0){if(!W.compareByGeneratedPositionsInflated(D,k[M-1]))continue;Z+=","}Z+=G.encode(D.generatedColumn-T),T=D.generatedColumn,null!=D.source&&(S=this._sources.indexOf(D.source),Z+=G.encode(S-x),x=S,Z+=G.encode(D.originalLine-1-R),R=D.originalLine-1,Z+=G.encode(D.originalColumn-j),j=D.originalColumn,null!=D.name&&(b=this._names.indexOf(D.name),Z+=G.encode(b-v),v=b)),w+=Z}return w},P.prototype._generateSourcesContent=function(T,E){return T.map(function(j){if(!this._sourcesContents)return null;null!=E&&(j=W.relative(E,j));var R=W.toSetString(j);return Object.prototype.hasOwnProperty.call(this._sourcesContents,R)?this._sourcesContents[R]:null},this)},P.prototype.toJSON=function(){var T={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(T.file=this._file),null!=this._sourceRoot&&(T.sourceRoot=this._sourceRoot),this._sourcesContents&&(T.sourcesContent=this._generateSourcesContent(T.sources,T.sourceRoot)),T},P.prototype.toString=function(){return JSON.stringify(this.toJSON())},K.h=P},2472:function(Ae,K){K.getArg=function m($,V,Q){if(V in $)return $[V];if(3===arguments.length)return Q;throw new Error('"'+V+'" is a required argument.')};var G=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,W=/^data:.+\,.+$/;function A($){var V=$.match(G);return V?{scheme:V[1],auth:V[2],host:V[3],port:V[4],path:V[5]}:null}function H($){var V="";return $.scheme&&(V+=$.scheme+":"),V+="//",$.auth&&(V+=$.auth+"@"),$.host&&(V+=$.host),$.port&&(V+=":"+$.port),$.path&&(V+=$.path),V}K.urlParse=A,K.urlGenerate=H;var T=function I($){var V=[];return function(Q){for(var te=0;te<V.length;te++)if(V[te].input===Q){var be=V[0];return V[0]=V[te],V[te]=be,V[0].result}var pe=$(Q);return V.unshift({input:Q,result:pe}),V.length>32&&V.pop(),pe}}(function(V){var Q=V,te=A(V);if(te){if(!te.path)return V;Q=te.path}for(var be=K.isAbsolute(Q),pe=[],fe=0,ue=0;;){if(fe=ue,-1===(ue=Q.indexOf("/",fe))){pe.push(Q.slice(fe));break}for(pe.push(Q.slice(fe,ue));ue<Q.length&&"/"===Q[ue];)ue++}var de,ge=0;for(ue=pe.length-1;ue>=0;ue--)"."===(de=pe[ue])?pe.splice(ue,1):".."===de?ge++:ge>0&&(""===de?(pe.splice(ue+1,ge),ge=0):(pe.splice(ue,2),ge--));return""===(Q=pe.join("/"))&&(Q=be?"/":"."),te?(te.path=Q,H(te)):Q});function E($,V){""===$&&($="."),""===V&&(V=".");var Q=A(V),te=A($);if(te&&($=te.path||"/"),Q&&!Q.scheme)return te&&(Q.scheme=te.scheme),H(Q);if(Q||V.match(W))return V;if(te&&!te.host&&!te.path)return te.host=V,H(te);var be="/"===V.charAt(0)?V:T($.replace(/\/+$/,"")+"/"+V);return te?(te.path=be,H(te)):be}K.normalize=T,K.join=E,K.isAbsolute=function($){return"/"===$.charAt(0)||G.test($)},K.relative=function j($,V){""===$&&($="."),$=$.replace(/\/$/,"");for(var Q=0;0!==V.indexOf($+"/");){var te=$.lastIndexOf("/");if(te<0||($=$.slice(0,te)).match(/^([^\/]+:\/)?\/*$/))return V;++Q}return Array(Q+1).join("../")+V.substr($.length+1)};var R=!("__proto__"in Object.create(null));function v($){return $}function Z($){if(!$)return!1;var V=$.length;if(V<9||95!==$.charCodeAt(V-1)||95!==$.charCodeAt(V-2)||111!==$.charCodeAt(V-3)||116!==$.charCodeAt(V-4)||111!==$.charCodeAt(V-5)||114!==$.charCodeAt(V-6)||112!==$.charCodeAt(V-7)||95!==$.charCodeAt(V-8)||95!==$.charCodeAt(V-9))return!1;for(var Q=V-10;Q>=0;Q--)if(36!==$.charCodeAt(Q))return!1;return!0}function M($,V){return $===V?0:null===$?1:null===V?-1:$>V?1:-1}K.toSetString=R?v:function x($){return Z($)?"$"+$:$},K.fromSetString=R?v:function w($){return Z($)?$.slice(1):$},K.compareByOriginalPositions=function D($,V,Q){var te=M($.source,V.source);return 0!==te||0!==(te=$.originalLine-V.originalLine)||(0!==(te=$.originalColumn-V.originalColumn)||Q)||0!==(te=$.generatedColumn-V.generatedColumn)||0!==(te=$.generatedLine-V.generatedLine)?te:M($.name,V.name)},K.compareByOriginalPositionsNoSource=function b($,V,Q){var te;return 0!==(te=$.originalLine-V.originalLine)||(0!==(te=$.originalColumn-V.originalColumn)||Q)||0!==(te=$.generatedColumn-V.generatedColumn)||0!==(te=$.generatedLine-V.generatedLine)?te:M($.name,V.name)},K.compareByGeneratedPositionsDeflated=function S($,V,Q){var te=$.generatedLine-V.generatedLine;return 0!==te||(0!==(te=$.generatedColumn-V.generatedColumn)||Q)||0!==(te=M($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:M($.name,V.name)},K.compareByGeneratedPositionsDeflatedNoLine=function k($,V,Q){var te=$.generatedColumn-V.generatedColumn;return 0!==te||Q||0!==(te=M($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:M($.name,V.name)},K.compareByGeneratedPositionsInflated=function N($,V){var Q=$.generatedLine-V.generatedLine;return 0!==Q||0!==(Q=$.generatedColumn-V.generatedColumn)||0!==(Q=M($.source,V.source))||0!==(Q=$.originalLine-V.originalLine)||0!==(Q=$.originalColumn-V.originalColumn)?Q:M($.name,V.name)},K.parseSourceMapInput=function F($){return JSON.parse($.replace(/^\)]}'[^\n]*\n/,""))},K.computeSourceURL=function X($,V,Q){if(V=V||"",$&&("/"!==$[$.length-1]&&"/"!==V[0]&&($+="/"),V=$+V),Q){var te=A(Q);if(!te)throw new Error("sourceMapURL could not be parsed");if(te.path){var be=te.path.lastIndexOf("/");be>=0&&(te.path=te.path.substring(0,be+1))}V=E(H(te),V)}return T(V)}},1452:function(Ae){Ae.exports=function(K){"use strict";var G=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function A(b,S){var k=b[0],M=b[1],N=b[2],F=b[3];M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[0]-680876936|0)<<7|k>>>25)+M|0)&M|~k&N)+S[1]-389564586|0)<<12|F>>>20)+k|0)&k|~F&M)+S[2]+606105819|0)<<17|N>>>15)+F|0)&F|~N&k)+S[3]-1044525330|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[4]-176418897|0)<<7|k>>>25)+M|0)&M|~k&N)+S[5]+1200080426|0)<<12|F>>>20)+k|0)&k|~F&M)+S[6]-1473231341|0)<<17|N>>>15)+F|0)&F|~N&k)+S[7]-45705983|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[8]+1770035416|0)<<7|k>>>25)+M|0)&M|~k&N)+S[9]-1958414417|0)<<12|F>>>20)+k|0)&k|~F&M)+S[10]-42063|0)<<17|N>>>15)+F|0)&F|~N&k)+S[11]-1990404162|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&N|~M&F)+S[12]+1804603682|0)<<7|k>>>25)+M|0)&M|~k&N)+S[13]-40341101|0)<<12|F>>>20)+k|0)&k|~F&M)+S[14]-1502002290|0)<<17|N>>>15)+F|0)&F|~N&k)+S[15]+1236535329|0)<<22|M>>>10)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[1]-165796510|0)<<5|k>>>27)+M|0)&N|M&~N)+S[6]-1069501632|0)<<9|F>>>23)+k|0)&M|k&~M)+S[11]+643717713|0)<<14|N>>>18)+F|0)&k|F&~k)+S[0]-373897302|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[5]-701558691|0)<<5|k>>>27)+M|0)&N|M&~N)+S[10]+38016083|0)<<9|F>>>23)+k|0)&M|k&~M)+S[15]-660478335|0)<<14|N>>>18)+F|0)&k|F&~k)+S[4]-405537848|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[9]+568446438|0)<<5|k>>>27)+M|0)&N|M&~N)+S[14]-1019803690|0)<<9|F>>>23)+k|0)&M|k&~M)+S[3]-187363961|0)<<14|N>>>18)+F|0)&k|F&~k)+S[8]+1163531501|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M&F|N&~F)+S[13]-1444681467|0)<<5|k>>>27)+M|0)&N|M&~N)+S[2]-51403784|0)<<9|F>>>23)+k|0)&M|k&~M)+S[7]+1735328473|0)<<14|N>>>18)+F|0)&k|F&~k)+S[12]-1926607734|0)<<20|M>>>12)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[5]-378558|0)<<4|k>>>28)+M|0)^M^N)+S[8]-2022574463|0)<<11|F>>>21)+k|0)^k^M)+S[11]+1839030562|0)<<16|N>>>16)+F|0)^F^k)+S[14]-35309556|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[1]-1530992060|0)<<4|k>>>28)+M|0)^M^N)+S[4]+1272893353|0)<<11|F>>>21)+k|0)^k^M)+S[7]-155497632|0)<<16|N>>>16)+F|0)^F^k)+S[10]-1094730640|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[13]+681279174|0)<<4|k>>>28)+M|0)^M^N)+S[0]-358537222|0)<<11|F>>>21)+k|0)^k^M)+S[3]-722521979|0)<<16|N>>>16)+F|0)^F^k)+S[6]+76029189|0)<<23|M>>>9)+N|0,M=((M+=((N=((N+=((F=((F+=((k=((k+=(M^N^F)+S[9]-640364487|0)<<4|k>>>28)+M|0)^M^N)+S[12]-421815835|0)<<11|F>>>21)+k|0)^k^M)+S[15]+530742520|0)<<16|N>>>16)+F|0)^F^k)+S[2]-995338651|0)<<23|M>>>9)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[0]-198630844|0)<<6|k>>>26)+M|0)|~N))+S[7]+1126891415|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[14]-1416354905|0)<<15|N>>>17)+F|0)|~k))+S[5]-57434055|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[12]+1700485571|0)<<6|k>>>26)+M|0)|~N))+S[3]-1894986606|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[10]-1051523|0)<<15|N>>>17)+F|0)|~k))+S[1]-2054922799|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[8]+1873313359|0)<<6|k>>>26)+M|0)|~N))+S[15]-30611744|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[6]-1560198380|0)<<15|N>>>17)+F|0)|~k))+S[13]+1309151649|0)<<21|M>>>11)+N|0,M=((M+=((F=((F+=(M^((k=((k+=(N^(M|~F))+S[4]-145523070|0)<<6|k>>>26)+M|0)|~N))+S[11]-1120210379|0)<<10|F>>>22)+k|0)^((N=((N+=(k^(F|~M))+S[2]+718787259|0)<<15|N>>>17)+F|0)|~k))+S[9]-343485551|0)<<21|M>>>11)+N|0,b[0]=k+b[0]|0,b[1]=M+b[1]|0,b[2]=N+b[2]|0,b[3]=F+b[3]|0}function H(b){var k,S=[];for(k=0;k<64;k+=4)S[k>>2]=b.charCodeAt(k)+(b.charCodeAt(k+1)<<8)+(b.charCodeAt(k+2)<<16)+(b.charCodeAt(k+3)<<24);return S}function P(b){var k,S=[];for(k=0;k<64;k+=4)S[k>>2]=b[k]+(b[k+1]<<8)+(b[k+2]<<16)+(b[k+3]<<24);return S}function I(b){var M,N,F,X,$,V,S=b.length,k=[1732584193,-271733879,-1732584194,271733878];for(M=64;M<=S;M+=64)A(k,H(b.substring(M-64,M)));for(N=(b=b.substring(M-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M=0;M<N;M+=1)F[M>>2]|=b.charCodeAt(M)<<(M%4<<3);if(F[M>>2]|=128<<(M%4<<3),M>55)for(A(k,F),M=0;M<16;M+=1)F[M]=0;return X=(X=8*S).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,F[14]=$,F[15]=V,A(k,F),k}function T(b){var M,N,F,X,$,V,S=b.length,k=[1732584193,-271733879,-1732584194,271733878];for(M=64;M<=S;M+=64)A(k,P(b.subarray(M-64,M)));for(N=(b=M-64<S?b.subarray(M-64):new Uint8Array(0)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M=0;M<N;M+=1)F[M>>2]|=b[M]<<(M%4<<3);if(F[M>>2]|=128<<(M%4<<3),M>55)for(A(k,F),M=0;M<16;M+=1)F[M]=0;return X=(X=8*S).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,F[14]=$,F[15]=V,A(k,F),k}function E(b){var k,S="";for(k=0;k<4;k+=1)S+=G[b>>8*k+4&15]+G[b>>8*k&15];return S}function j(b){var S;for(S=0;S<b.length;S+=1)b[S]=E(b[S]);return b.join("")}function R(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function v(b,S){var F,k=b.length,M=new ArrayBuffer(k),N=new Uint8Array(M);for(F=0;F<k;F+=1)N[F]=b.charCodeAt(F);return S?N:M}function x(b){return String.fromCharCode.apply(null,new Uint8Array(b))}function w(b,S,k){var M=new Uint8Array(b.byteLength+S.byteLength);return M.set(new Uint8Array(b)),M.set(new Uint8Array(S),b.byteLength),k?M:M.buffer}function Z(b){var M,S=[],k=b.length;for(M=0;M<k-1;M+=2)S.push(parseInt(b.substr(M,2),16));return String.fromCharCode.apply(String,S)}function D(){this.reset()}return j(I("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function b(S,k){return(S=0|S||0)<0?Math.max(S+k,0):Math.min(S,k)}ArrayBuffer.prototype.slice=function(S,k){var X,$,V,Q,M=this.byteLength,N=b(S,M),F=M;return k!==K&&(F=b(k,M)),N>F?new ArrayBuffer(0):(X=F-N,$=new ArrayBuffer(X),V=new Uint8Array($),Q=new Uint8Array(this,N,X),V.set(Q),$)}}(),D.prototype.append=function(b){return this.appendBinary(R(b)),this},D.prototype.appendBinary=function(b){this._buff+=b,this._length+=b.length;var k,S=this._buff.length;for(k=64;k<=S;k+=64)A(this._hash,H(this._buff.substring(k-64,k)));return this._buff=this._buff.substring(k-64),this},D.prototype.end=function(b){var M,F,S=this._buff,k=S.length,N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(M=0;M<k;M+=1)N[M>>2]|=S.charCodeAt(M)<<(M%4<<3);return this._finish(N,k),F=j(this._hash),b&&(F=Z(F)),this.reset(),F},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(b,S){var M,N,F,k=S;if(b[k>>2]|=128<<(k%4<<3),k>55)for(A(this._hash,b),k=0;k<16;k+=1)b[k]=0;M=(M=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(M[2],16),F=parseInt(M[1],16)||0,b[14]=N,b[15]=F,A(this._hash,b)},D.hash=function(b,S){return D.hashBinary(R(b),S)},D.hashBinary=function(b,S){var M=j(I(b));return S?Z(M):M},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(b){var M,S=w(this._buff.buffer,b,!0),k=S.length;for(this._length+=b.byteLength,M=64;M<=k;M+=64)A(this._hash,P(S.subarray(M-64,M)));return this._buff=M-64<k?new Uint8Array(S.buffer.slice(M-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(b){var N,F,S=this._buff,k=S.length,M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(N=0;N<k;N+=1)M[N>>2]|=S[N]<<(N%4<<3);return this._finish(M,k),F=j(this._hash),b&&(F=Z(F)),this.reset(),F},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var b=D.prototype.getState.call(this);return b.buff=x(b.buff),b},D.ArrayBuffer.prototype.setState=function(b){return b.buff=v(b.buff,!0),D.prototype.setState.call(this,b)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(b,S){var M=j(T(new Uint8Array(b)));return S?Z(M):M},D}()},986:function(Ae){window,Ae.exports=function(K){var m={};function G(W){if(m[W])return m[W].exports;var A=m[W]={i:W,l:!1,exports:{}};return K[W].call(A.exports,A,A.exports,G),A.l=!0,A.exports}return G.m=K,G.c=m,G.d=function(W,A,H){G.o(W,A)||Object.defineProperty(W,A,{enumerable:!0,get:H})},G.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},G.t=function(W,A){if(1&A&&(W=G(W)),8&A||4&A&&"object"==typeof W&&W&&W.__esModule)return W;var H=Object.create(null);if(G.r(H),Object.defineProperty(H,"default",{enumerable:!0,value:W}),2&A&&"string"!=typeof W)for(var P in W)G.d(H,P,function(I){return W[I]}.bind(null,P));return H},G.n=function(W){var A=W&&W.__esModule?function(){return W.default}:function(){return W};return G.d(A,"a",A),A},G.o=function(W,A){return Object.prototype.hasOwnProperty.call(W,A)},G.p="",G(G.s=0)}([function(K,m,G){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var W=function(){function H(P,I){this._disposables=[],this._socket=P,this._socket.binaryType="arraybuffer",this._bidirectional=!I||!1!==I.bidirectional}return H.prototype.activate=function(P){var I=this;this._disposables.push(A(this._socket,"message",function(T){var E=T.data;P.write("string"==typeof E?E:new Uint8Array(E))})),this._bidirectional&&(this._disposables.push(P.onData(function(T){return I._sendData(T)})),this._disposables.push(P.onBinary(function(T){return I._sendBinary(T)}))),this._disposables.push(A(this._socket,"close",function(){return I.dispose()})),this._disposables.push(A(this._socket,"error",function(){return I.dispose()}))},H.prototype.dispose=function(){this._disposables.forEach(function(P){return P.dispose()})},H.prototype._sendData=function(P){1===this._socket.readyState&&this._socket.send(P)},H.prototype._sendBinary=function(P){if(1===this._socket.readyState){for(var I=new Uint8Array(P.length),T=0;T<P.length;++T)I[T]=255&P.charCodeAt(T);this._socket.send(I)}},H}();function A(H,P,I){return H.addEventListener(P,I),{dispose:function(){I&&H.removeEventListener(P,I)}}}m.AttachAddon=W}])},9162:function(Ae){self,Ae.exports=function(){"use strict";var K={775:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.FitAddon=void 0;var H=function(){function P(){}return P.prototype.activate=function(I){this._terminal=I},P.prototype.dispose=function(){},P.prototype.fit=function(){var I=this.proposeDimensions();if(I&&this._terminal){var T=this._terminal._core;this._terminal.rows===I.rows&&this._terminal.cols===I.cols||(T._renderService.clear(),this._terminal.resize(I.cols,I.rows))}},P.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var I=this._terminal._core;if(0!==I._renderService.dimensions.actualCellWidth&&0!==I._renderService.dimensions.actualCellHeight){var T=window.getComputedStyle(this._terminal.element.parentElement),E=parseInt(T.getPropertyValue("height")),j=Math.max(0,parseInt(T.getPropertyValue("width"))),R=window.getComputedStyle(this._terminal.element),v=E-(parseInt(R.getPropertyValue("padding-top"))+parseInt(R.getPropertyValue("padding-bottom"))),x=j-(parseInt(R.getPropertyValue("padding-right"))+parseInt(R.getPropertyValue("padding-left")))-I.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(x/I._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(v/I._renderService.dimensions.actualCellHeight))}}}},P}();A.FitAddon=H}},m={};return function G(W){if(m[W])return m[W].exports;var A=m[W]={exports:{}};return K[W](A,A.exports,G),A.exports}(775)}()},4793:function(Ae){self,Ae.exports=function(){"use strict";var K={4567:function(W,A,H){var P,I=this&&this.__extends||(P=function(b,S){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}P(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)});Object.defineProperty(A,"__esModule",{value:!0}),A.AccessibilityManager=void 0;var T=H(9042),E=H(6114),j=H(9924),R=H(3656),v=H(844),x=H(5596),w=H(9631),Z=function(D){function b(S,k){var M=D.call(this)||this;M._terminal=S,M._renderService=k,M._liveRegionLineCount=0,M._charsToConsume=[],M._charsToAnnounce="",M._accessibilityTreeRoot=document.createElement("div"),M._accessibilityTreeRoot.classList.add("xterm-accessibility"),M._accessibilityTreeRoot.tabIndex=0,M._rowContainer=document.createElement("div"),M._rowContainer.setAttribute("role","list"),M._rowContainer.classList.add("xterm-accessibility-tree"),M._rowElements=[];for(var N=0;N<M._terminal.rows;N++)M._rowElements[N]=M._createAccessibilityTreeNode(),M._rowContainer.appendChild(M._rowElements[N]);if(M._topBoundaryFocusListener=function(F){return M._onBoundaryFocus(F,0)},M._bottomBoundaryFocusListener=function(F){return M._onBoundaryFocus(F,1)},M._rowElements[0].addEventListener("focus",M._topBoundaryFocusListener),M._rowElements[M._rowElements.length-1].addEventListener("focus",M._bottomBoundaryFocusListener),M._refreshRowsDimensions(),M._accessibilityTreeRoot.appendChild(M._rowContainer),M._renderRowsDebouncer=new j.TimeBasedDebouncer(M._renderRows.bind(M)),M._refreshRows(),M._liveRegion=document.createElement("div"),M._liveRegion.classList.add("live-region"),M._liveRegion.setAttribute("aria-live","assertive"),M._accessibilityTreeRoot.appendChild(M._liveRegion),!M._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return M._terminal.element.insertAdjacentElement("afterbegin",M._accessibilityTreeRoot),M.register(M._renderRowsDebouncer),M.register(M._terminal.onResize(function(F){return M._onResize(F.rows)})),M.register(M._terminal.onRender(function(F){return M._refreshRows(F.start,F.end)})),M.register(M._terminal.onScroll(function(){return M._refreshRows()})),M.register(M._terminal.onA11yChar(function(F){return M._onChar(F)})),M.register(M._terminal.onLineFeed(function(){return M._onChar("\n")})),M.register(M._terminal.onA11yTab(function(F){return M._onTab(F)})),M.register(M._terminal.onKey(function(F){return M._onKey(F.key)})),M.register(M._terminal.onBlur(function(){return M._clearLiveRegion()})),M.register(M._renderService.onDimensionsChange(function(){return M._refreshRowsDimensions()})),M._screenDprMonitor=new x.ScreenDprMonitor,M.register(M._screenDprMonitor),M._screenDprMonitor.setListener(function(){return M._refreshRowsDimensions()}),M.register((0,R.addDisposableDomListener)(window,"resize",function(){return M._refreshRowsDimensions()})),M}return I(b,D),b.prototype.dispose=function(){D.prototype.dispose.call(this),(0,w.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},b.prototype._onBoundaryFocus=function(S,k){var M=S.target,N=this._rowElements[0===k?1:this._rowElements.length-2];if(M.getAttribute("aria-posinset")!==(0===k?"1":""+this._terminal.buffer.lines.length)&&S.relatedTarget===N){var F,X;if(0===k?(F=M,X=this._rowElements.pop(),this._rowContainer.removeChild(X)):(F=this._rowElements.shift(),X=M,this._rowContainer.removeChild(F)),F.removeEventListener("focus",this._topBoundaryFocusListener),X.removeEventListener("focus",this._bottomBoundaryFocusListener),0===k){var $=this._createAccessibilityTreeNode();this._rowElements.unshift($),this._rowContainer.insertAdjacentElement("afterbegin",$)}else $=this._createAccessibilityTreeNode(),this._rowElements.push($),this._rowContainer.appendChild($);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===k?-1:1),this._rowElements[0===k?1:this._rowElements.length-2].focus(),S.preventDefault(),S.stopImmediatePropagation()}},b.prototype._onResize=function(S){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var k=this._rowContainer.children.length;k<this._terminal.rows;k++)this._rowElements[k]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[k]);for(;this._rowElements.length>S;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},b.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},b.prototype._onTab=function(S){for(var k=0;k<S;k++)this._onChar(" ")},b.prototype._onChar=function(S){var k=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=T.tooMuchOutput)),E.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){k._accessibilityTreeRoot.appendChild(k._liveRegion)},0))},b.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,E.isMac&&(0,w.removeElementFromParent)(this._liveRegion)},b.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},b.prototype._refreshRows=function(S,k){this._renderRowsDebouncer.refresh(S,k,this._terminal.rows)},b.prototype._renderRows=function(S,k){for(var M=this._terminal.buffer,N=M.lines.length.toString(),F=S;F<=k;F++){var X=M.translateBufferLineToString(M.ydisp+F,!0),$=(M.ydisp+F+1).toString(),V=this._rowElements[F];V&&(0===X.length?V.innerText="\xa0":V.textContent=X,V.setAttribute("aria-posinset",$),V.setAttribute("aria-setsize",N))}this._announceCharacters()},b.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S<this._terminal.rows;S++)this._refreshRowDimensions(this._rowElements[S])}},b.prototype._refreshRowDimensions=function(S){S.style.height=this._renderService.dimensions.actualCellHeight+"px"},b.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},b}(v.Disposable);A.AccessibilityManager=Z},3614:function(W,A){function H(E){return E.replace(/\r?\n/g,"\r")}function P(E,j){return j?"\x1b[200~"+E+"\x1b[201~":E}function I(E,j,R){E=P(E=H(E),R.decPrivateModes.bracketedPasteMode),R.triggerDataEvent(E,!0),j.value=""}function T(E,j,R){var v=R.getBoundingClientRect(),x=E.clientX-v.left-10,w=E.clientY-v.top-10;j.style.width="20px",j.style.height="20px",j.style.left=x+"px",j.style.top=w+"px",j.style.zIndex="1000",j.focus()}Object.defineProperty(A,"__esModule",{value:!0}),A.rightClickHandler=A.moveTextAreaUnderMouseCursor=A.paste=A.handlePasteEvent=A.copyHandler=A.bracketTextForPaste=A.prepareTextForTerminal=void 0,A.prepareTextForTerminal=H,A.bracketTextForPaste=P,A.copyHandler=function(E,j){E.clipboardData&&E.clipboardData.setData("text/plain",j.selectionText),E.preventDefault()},A.handlePasteEvent=function(E,j,R){E.stopPropagation(),E.clipboardData&&I(E.clipboardData.getData("text/plain"),j,R)},A.paste=I,A.moveTextAreaUnderMouseCursor=T,A.rightClickHandler=function(E,j,R,v,x){T(E,j,R),x&&v.rightClickSelect(E),j.value=v.selectionText,j.select()}},7239:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ColorContrastCache=void 0;var H=function(){function P(){this._color={},this._rgba={}}return P.prototype.clear=function(){this._color={},this._rgba={}},P.prototype.setCss=function(I,T,E){this._rgba[I]||(this._rgba[I]={}),this._rgba[I][T]=E},P.prototype.getCss=function(I,T){return this._rgba[I]?this._rgba[I][T]:void 0},P.prototype.setColor=function(I,T,E){this._color[I]||(this._color[I]={}),this._color[I][T]=E},P.prototype.getColor=function(I,T){return this._color[I]?this._color[I][T]:void 0},P}();A.ColorContrastCache=H},5680:function(W,A,H){var P=this&&this.__read||function(Z,D){var b="function"==typeof Symbol&&Z[Symbol.iterator];if(!b)return Z;var S,k,M=b.call(Z),N=[];try{for(;(void 0===D||D-- >0)&&!(S=M.next()).done;)N.push(S.value)}catch(F){k={error:F}}finally{try{S&&!S.done&&(b=M.return)&&b.call(M)}finally{if(k)throw k.error}}return N};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorManager=A.DEFAULT_ANSI_COLORS=void 0;var I=H(8055),T=H(7239),E=I.css.toColor("#ffffff"),j=I.css.toColor("#000000"),R=I.css.toColor("#ffffff"),v=I.css.toColor("#000000"),x={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};A.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var Z=[I.css.toColor("#2e3436"),I.css.toColor("#cc0000"),I.css.toColor("#4e9a06"),I.css.toColor("#c4a000"),I.css.toColor("#3465a4"),I.css.toColor("#75507b"),I.css.toColor("#06989a"),I.css.toColor("#d3d7cf"),I.css.toColor("#555753"),I.css.toColor("#ef2929"),I.css.toColor("#8ae234"),I.css.toColor("#fce94f"),I.css.toColor("#729fcf"),I.css.toColor("#ad7fa8"),I.css.toColor("#34e2e2"),I.css.toColor("#eeeeec")],D=[0,95,135,175,215,255],b=0;b<216;b++){var S=D[b/36%6|0],k=D[b/6%6|0],M=D[b%6];Z.push({css:I.channels.toCss(S,k,M),rgba:I.channels.toRgba(S,k,M)})}for(b=0;b<24;b++){var N=8+10*b;Z.push({css:I.channels.toCss(N,N,N),rgba:I.channels.toRgba(N,N,N)})}return Z}());var w=function(){function Z(D,b){this.allowTransparency=b;var S=D.createElement("canvas");S.width=1,S.height=1;var k=S.getContext("2d");if(!k)throw new Error("Could not get rendering context");this._ctx=k,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new T.ColorContrastCache,this.colors={foreground:E,background:j,cursor:R,cursorAccent:v,selectionTransparent:x,selectionOpaque:I.color.blend(j,x),selectionForeground:void 0,ansi:A.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return Z.prototype.onOptionsChange=function(D){"minimumContrastRatio"===D&&this._contrastCache.clear()},Z.prototype.setTheme=function(D){void 0===D&&(D={}),this.colors.foreground=this._parseColor(D.foreground,E),this.colors.background=this._parseColor(D.background,j),this.colors.cursor=this._parseColor(D.cursor,R,!0),this.colors.cursorAccent=this._parseColor(D.cursorAccent,v,!0),this.colors.selectionTransparent=this._parseColor(D.selection,x,!0),this.colors.selectionOpaque=I.color.blend(this.colors.background,this.colors.selectionTransparent);var b={css:"",rgba:0};this.colors.selectionForeground=D.selectionForeground?this._parseColor(D.selectionForeground,b):void 0,this.colors.selectionForeground===b&&(this.colors.selectionForeground=void 0),I.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=I.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(D.black,A.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(D.red,A.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(D.green,A.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(D.yellow,A.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(D.blue,A.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(D.magenta,A.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(D.cyan,A.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(D.white,A.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(D.brightBlack,A.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(D.brightRed,A.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(D.brightGreen,A.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(D.brightYellow,A.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(D.brightBlue,A.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(D.brightMagenta,A.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(D.brightCyan,A.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(D.brightWhite,A.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},Z.prototype.restoreColor=function(D){if(void 0!==D)switch(D){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[D]=this._restoreColors.ansi[D]}else for(var b=0;b<this._restoreColors.ansi.length;++b)this.colors.ansi[b]=this._restoreColors.ansi[b]},Z.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},Z.prototype._parseColor=function(D,b,S){if(void 0===S&&(S=this.allowTransparency),void 0===D)return b;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=D,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+D+" is invalid using fallback "+b.css),b;this._ctx.fillRect(0,0,1,1);var k=this._ctx.getImageData(0,0,1,1).data;if(255!==k[3]){if(!S)return console.warn("Color: "+D+" is using transparency, but allowTransparency is false. Using fallback "+b.css+"."),b;var M=P(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Q){return Number(Q)}),4),N=M[0],F=M[1],X=M[2],$=M[3],V=Math.round(255*$);return{rgba:I.channels.toRgba(N,F,X,V),css:D}}return{css:this._ctx.fillStyle,rgba:I.channels.toRgba(k[0],k[1],k[2],k[3])}},Z}();A.ColorManager=w},9631:function(W,A){var H=this&&this.__values||function(P){var I="function"==typeof Symbol&&Symbol.iterator,T=I&&P[I],E=0;if(T)return T.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&E>=P.length&&(P=void 0),{value:P&&P[E++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.removeElementFromParent=void 0,A.removeElementFromParent=function(){for(var P,I,T,E=[],j=0;j<arguments.length;j++)E[j]=arguments[j];try{for(var R=H(E),v=R.next();!v.done;v=R.next()){var x=v.value;null===(T=null==x?void 0:x.parentElement)||void 0===T||T.removeChild(x)}}catch(w){P={error:w}}finally{try{v&&!v.done&&(I=R.return)&&I.call(R)}finally{if(P)throw P.error}}}},3656:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.addDisposableDomListener=void 0,A.addDisposableDomListener=function(H,P,I,T){H.addEventListener(P,I,T);var E=!1;return{dispose:function(){E||(E=!0,H.removeEventListener(P,I,T))}}}},3551:function(W,A,H){var P=this&&this.__decorate||function(v,x,w,Z){var D,b=arguments.length,S=b<3?x:null===Z?Z=Object.getOwnPropertyDescriptor(x,w):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(v,x,w,Z);else for(var k=v.length-1;k>=0;k--)(D=v[k])&&(S=(b<3?D(S):b>3?D(x,w,S):D(x,w))||S);return b>3&&S&&Object.defineProperty(x,w,S),S},I=this&&this.__param||function(v,x){return function(w,Z){x(w,Z,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZone=A.Linkifier=void 0;var T=H(8460),E=H(2585),j=function(){function v(x,w,Z){this._bufferService=x,this._logService=w,this._unicodeService=Z,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new T.EventEmitter,this._onHideLinkUnderline=new T.EventEmitter,this._onLinkTooltip=new T.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(v.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),v.prototype.attachToDom=function(x,w){this._element=x,this._mouseZoneManager=w},v.prototype.linkifyRows=function(x,w){var Z=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=x,this._rowsToLinkify.end=w):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,x),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,w)),this._mouseZoneManager.clearAll(x,w),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return Z._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var x=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var w=x.ydisp+this._rowsToLinkify.start;if(!(w>=x.lines.length)){for(var Z=x.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,D=Math.ceil(2e3/this._bufferService.cols),b=this._bufferService.buffer.iterator(!1,w,Z,D,D);b.hasNext();)for(var S=b.next(),k=0;k<this._linkMatchers.length;k++)this._doLinkifyRow(S.range.first,S.content,this._linkMatchers[k]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},v.prototype.registerLinkMatcher=function(x,w,Z){if(void 0===Z&&(Z={}),!w)throw new Error("handler must be defined");var D={id:this._nextLinkMatcherId++,regex:x,handler:w,matchIndex:Z.matchIndex,validationCallback:Z.validationCallback,hoverTooltipCallback:Z.tooltipCallback,hoverLeaveCallback:Z.leaveCallback,willLinkActivate:Z.willLinkActivate,priority:Z.priority||0};return this._addLinkMatcherToList(D),D.id},v.prototype._addLinkMatcherToList=function(x){if(0!==this._linkMatchers.length){for(var w=this._linkMatchers.length-1;w>=0;w--)if(x.priority<=this._linkMatchers[w].priority)return void this._linkMatchers.splice(w+1,0,x);this._linkMatchers.splice(0,0,x)}else this._linkMatchers.push(x)},v.prototype.deregisterLinkMatcher=function(x){for(var w=0;w<this._linkMatchers.length;w++)if(this._linkMatchers[w].id===x)return this._linkMatchers.splice(w,1),!0;return!1},v.prototype._doLinkifyRow=function(x,w,Z){for(var D,b=this,S=new RegExp(Z.regex.source,(Z.regex.flags||"")+"g"),k=-1,M=function(){var X=D["number"!=typeof Z.matchIndex?0:Z.matchIndex];if(!X)return N._logService.debug("match found without corresponding matchIndex",D,Z),"break";if(k=w.indexOf(X,k+1),S.lastIndex=k+X.length,k<0)return"break";var $=N._bufferService.buffer.stringIndexToBufferIndex(x,k);if($[0]<0)return"break";var V=N._bufferService.buffer.lines.get($[0]);if(!V)return"break";var Q=V.getFg($[1]),te=Q?Q>>9&511:void 0;Z.validationCallback?Z.validationCallback(X,function(be){b._rowsTimeoutId||be&&b._addLink($[1],$[0]-b._bufferService.buffer.ydisp,X,Z,te)}):N._addLink($[1],$[0]-N._bufferService.buffer.ydisp,X,Z,te)},N=this;null!==(D=S.exec(w))&&"break"!==M(););},v.prototype._addLink=function(x,w,Z,D,b){var S=this;if(this._mouseZoneManager&&this._element){var k=this._unicodeService.getStringCellWidth(Z),M=x%this._bufferService.cols,N=w+Math.floor(x/this._bufferService.cols),F=(M+k)%this._bufferService.cols,X=N+Math.floor((M+k)/this._bufferService.cols);0===F&&(F=this._bufferService.cols,X--),this._mouseZoneManager.add(new R(M+1,N+1,F+1,X+1,function($){if(D.handler)return D.handler($,Z);var V=window.open();V?(V.opener=null,V.location.href=Z):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(M,N,F,X,b)),S._element.classList.add("xterm-cursor-pointer")},function($){S._onLinkTooltip.fire(S._createLinkHoverEvent(M,N,F,X,b)),D.hoverTooltipCallback&&D.hoverTooltipCallback($,Z,{start:{x:M,y:N},end:{x:F,y:X}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(M,N,F,X,b)),S._element.classList.remove("xterm-cursor-pointer"),D.hoverLeaveCallback&&D.hoverLeaveCallback()},function($){return!D.willLinkActivate||D.willLinkActivate($,Z)}))}},v.prototype._createLinkHoverEvent=function(x,w,Z,D,b){return{x1:x,y1:w,x2:Z,y2:D,cols:this._bufferService.cols,fg:b}},v._timeBeforeLatency=200,v=P([I(0,E.IBufferService),I(1,E.ILogService),I(2,E.IUnicodeService)],v)}();A.Linkifier=j;var R=function(x,w,Z,D,b,S,k,M,N){this.x1=x,this.y1=w,this.x2=Z,this.y2=D,this.clickCallback=b,this.hoverCallback=S,this.tooltipCallback=k,this.leaveCallback=M,this.willLinkActivate=N};A.MouseZone=R},6465:function(W,A,H){var P,I=this&&this.__extends||(P=function(S,k){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}P(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}},j=this&&this.__values||function(b){var S="function"==typeof Symbol&&Symbol.iterator,k=S&&b[S],M=0;if(k)return k.call(b);if(b&&"number"==typeof b.length)return{next:function(){return b&&M>=b.length&&(b=void 0),{value:b&&b[M++],done:!b}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},R=this&&this.__read||function(b,S){var k="function"==typeof Symbol&&b[Symbol.iterator];if(!k)return b;var M,N,F=k.call(b),X=[];try{for(;(void 0===S||S-- >0)&&!(M=F.next()).done;)X.push(M.value)}catch($){N={error:$}}finally{try{M&&!M.done&&(k=F.return)&&k.call(F)}finally{if(N)throw N.error}}return X};Object.defineProperty(A,"__esModule",{value:!0}),A.Linkifier2=void 0;var v=H(2585),x=H(8460),w=H(844),Z=H(3656),D=function(b){function S(k){var M=b.call(this)||this;return M._bufferService=k,M._linkProviders=[],M._linkCacheDisposables=[],M._isMouseOut=!0,M._activeLine=-1,M._onShowLinkUnderline=M.register(new x.EventEmitter),M._onHideLinkUnderline=M.register(new x.EventEmitter),M.register((0,w.getDisposeArrayDisposable)(M._linkCacheDisposables)),M}return I(S,b),Object.defineProperty(S.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),S.prototype.registerLinkProvider=function(k){var M=this;return this._linkProviders.push(k),{dispose:function(){var F=M._linkProviders.indexOf(k);-1!==F&&M._linkProviders.splice(F,1)}}},S.prototype.attachToDom=function(k,M,N){var F=this;this._element=k,this._mouseService=M,this._renderService=N,this.register((0,Z.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,Z.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,Z.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,Z.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},S.prototype._onMouseMove=function(k){if(this._lastMouseEvent=k,this._element&&this._mouseService){var M=this._positionFromMouseEvent(k,this._element,this._mouseService);if(M){this._isMouseOut=!1;for(var N=k.composedPath(),F=0;F<N.length;F++){var X=N[F];if(X.classList.contains("xterm"))break;if(X.classList.contains("xterm-hover"))return}this._lastBufferCell&&M.x===this._lastBufferCell.x&&M.y===this._lastBufferCell.y||(this._onHover(M),this._lastBufferCell=M)}}},S.prototype._onHover=function(k){if(this._activeLine!==k.y)return this._clearCurrentLink(),void this._askForLink(k,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,k)||(this._clearCurrentLink(),this._askForLink(k,!0))},S.prototype._askForLink=function(k,M){var N,F,X,$,V=this;this._activeProviderReplies&&M||(null===(X=this._activeProviderReplies)||void 0===X||X.forEach(function(de){null==de||de.forEach(function(ge){ge.link.dispose&&ge.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=k.y);var Q=!1,te=function(ge,je){M?null!==($=be._activeProviderReplies)&&void 0!==$&&$.get(ge)&&(Q=be._checkLinkProviderResult(ge,k,Q)):je.provideLinks(k.y,function(ot){var St,Tt;if(!V._isMouseOut){var Dt=null==ot?void 0:ot.map(function(Rt){return{link:Rt}});null===(St=V._activeProviderReplies)||void 0===St||St.set(ge,Dt),Q=V._checkLinkProviderResult(ge,k,Q),(null===(Tt=V._activeProviderReplies)||void 0===Tt?void 0:Tt.size)===V._linkProviders.length&&V._removeIntersectingLinks(k.y,V._activeProviderReplies)}})},be=this;try{for(var pe=j(this._linkProviders.entries()),fe=pe.next();!fe.done;fe=pe.next()){var ue=R(fe.value,2);te(ue[0],ue[1])}}catch(de){N={error:de}}finally{try{fe&&!fe.done&&(F=pe.return)&&F.call(pe)}finally{if(N)throw N.error}}},S.prototype._removeIntersectingLinks=function(k,M){for(var N=new Set,F=0;F<M.size;F++){var X=M.get(F);if(X)for(var $=0;$<X.length;$++)for(var V=X[$],Q=V.link.range.start.y<k?0:V.link.range.start.x,te=V.link.range.end.y>k?this._bufferService.cols:V.link.range.end.x,be=Q;be<=te;be++){if(N.has(be)){X.splice($--,1);break}N.add(be)}}},S.prototype._checkLinkProviderResult=function(k,M,N){var F,X=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(k),V=!1,Q=0;Q<k;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(V=!0);if(!V&&$){var te=$.find(function(pe){return X._linkAtPosition(pe.link,M)});te&&(N=!0,this._handleNewLink(te))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(Q=0;Q<this._activeProviderReplies.size;Q++){var be=null===(F=this._activeProviderReplies.get(Q))||void 0===F?void 0:F.find(function(pe){return X._linkAtPosition(pe.link,M)});if(be){N=!0,this._handleNewLink(be);break}}return N},S.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},S.prototype._handleMouseUp=function(k){if(this._element&&this._mouseService&&this._currentLink){var M=this._positionFromMouseEvent(k,this._element,this._mouseService);M&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,M)&&this._currentLink.link.activate(k,this._currentLink.link.text)}},S.prototype._clearCurrentLink=function(k,M){this._element&&this._currentLink&&this._lastMouseEvent&&(!k||!M||this._currentLink.link.range.start.y>=k&&this._currentLink.link.range.end.y<=M)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,w.disposeArray)(this._linkCacheDisposables))},S.prototype._handleNewLink=function(k){var M=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(k.link,N)&&(this._currentLink=k,this._currentLink.state={decorations:{underline:void 0===k.link.decorations||k.link.decorations.underline,pointerCursor:void 0===k.link.decorations||k.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,k.link,this._lastMouseEvent),k.link.decorations={},Object.defineProperties(k.link.decorations,{pointerCursor:{get:function(){var X,$;return null===($=null===(X=M._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(X){var $,V;(null===($=M._currentLink)||void 0===$?void 0:$.state)&&M._currentLink.state.decorations.pointerCursor!==X&&(M._currentLink.state.decorations.pointerCursor=X,M._currentLink.state.isHovered&&(null===(V=M._element)||void 0===V||V.classList.toggle("xterm-cursor-pointer",X)))}},underline:{get:function(){var X,$;return null===($=null===(X=M._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.underline},set:function(X){var $,V,Q;(null===($=M._currentLink)||void 0===$?void 0:$.state)&&(null===(Q=null===(V=M._currentLink)||void 0===V?void 0:V.state)||void 0===Q?void 0:Q.decorations.underline)!==X&&(M._currentLink.state.decorations.underline=X,M._currentLink.state.isHovered&&M._fireUnderlineEvent(k.link,X))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(F){var X=0===F.start?0:F.start+1+M._bufferService.buffer.ydisp;M._clearCurrentLink(X,F.end+1+M._bufferService.buffer.ydisp)})))}},S.prototype._linkHover=function(k,M,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(M,!0),this._currentLink.state.decorations.pointerCursor&&k.classList.add("xterm-cursor-pointer")),M.hover&&M.hover(N,M.text)},S.prototype._fireUnderlineEvent=function(k,M){var N=k.range,F=this._bufferService.buffer.ydisp,X=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-F-1,N.end.x,N.end.y-F-1,void 0);(M?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(X)},S.prototype._linkLeave=function(k,M,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(M,!1),this._currentLink.state.decorations.pointerCursor&&k.classList.remove("xterm-cursor-pointer")),M.leave&&M.leave(N,M.text)},S.prototype._linkAtPosition=function(k,M){var N=k.range.start.y===k.range.end.y,F=k.range.start.y<M.y,X=k.range.end.y>M.y;return(N&&k.range.start.x<=M.x&&k.range.end.x>=M.x||F&&k.range.end.x>=M.x||X&&k.range.start.x<=M.x||F&&X)&&k.range.start.y<=M.y&&k.range.end.y>=M.y},S.prototype._positionFromMouseEvent=function(k,M,N){var F=N.getCoords(k,M,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},S.prototype._createLinkUnderlineEvent=function(k,M,N,F,X){return{x1:k,y1:M,x2:N,y2:F,cols:this._bufferService.cols,fg:X}},T([E(0,v.IBufferService)],S)}(w.Disposable);A.Linkifier2=D},9042:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.tooMuchOutput=A.promptLabel=void 0,A.promptLabel="Terminal input",A.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,A,H){var P,I=this&&this.__extends||(P=function(D,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}P(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZoneManager=void 0;var j=H(844),R=H(3656),v=H(4725),x=H(2585),w=function(Z){function D(b,S,k,M,N,F){var X=Z.call(this)||this;return X._element=b,X._screenElement=S,X._bufferService=k,X._mouseService=M,X._selectionService=N,X._optionsService=F,X._zones=[],X._areZonesActive=!1,X._lastHoverCoords=[void 0,void 0],X._initialSelectionLength=0,X.register((0,R.addDisposableDomListener)(X._element,"mousedown",function($){return X._onMouseDown($)})),X._mouseMoveListener=function($){return X._onMouseMove($)},X._mouseLeaveListener=function($){return X._onMouseLeave($)},X._clickListener=function($){return X._onClick($)},X}return I(D,Z),D.prototype.dispose=function(){Z.prototype.dispose.call(this),this._deactivate()},D.prototype.add=function(b){this._zones.push(b),1===this._zones.length&&this._activate()},D.prototype.clearAll=function(b,S){if(0!==this._zones.length){b&&S||(b=0,S=this._bufferService.rows-1);for(var k=0;k<this._zones.length;k++){var M=this._zones[k];(M.y1>b&&M.y1<=S+1||M.y2>b&&M.y2<=S+1||M.y1<b&&M.y2>S+1)&&(this._currentZone&&this._currentZone===M&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(k--,1))}0===this._zones.length&&this._deactivate()}},D.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},D.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},D.prototype._onMouseMove=function(b){this._lastHoverCoords[0]===b.pageX&&this._lastHoverCoords[1]===b.pageY||(this._onHover(b),this._lastHoverCoords=[b.pageX,b.pageY])},D.prototype._onHover=function(b){var S=this,k=this._findZoneEventAt(b);k!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),k&&(this._currentZone=k,k.hoverCallback&&k.hoverCallback(b),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(b)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},D.prototype._onTooltip=function(b){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(b);null==S||S.tooltipCallback(b)},D.prototype._onMouseDown=function(b){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(b);null!=S&&S.willLinkActivate(b)&&(b.preventDefault(),b.stopImmediatePropagation())}},D.prototype._onMouseLeave=function(b){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},D.prototype._onClick=function(b){var S=this._findZoneEventAt(b),k=this._getSelectionLength();S&&k===this._initialSelectionLength&&(S.clickCallback(b),b.preventDefault(),b.stopImmediatePropagation())},D.prototype._getSelectionLength=function(){var b=this._selectionService.selectionText;return b?b.length:0},D.prototype._findZoneEventAt=function(b){var S=this._mouseService.getCoords(b,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var k=S[0],M=S[1],N=0;N<this._zones.length;N++){var F=this._zones[N];if(F.y1===F.y2){if(M===F.y1&&k>=F.x1&&k<F.x2)return F}else if(M===F.y1&&k>=F.x1||M===F.y2&&k<F.x2||M>F.y1&&M<F.y2)return F}},T([E(2,x.IBufferService),E(3,v.IMouseService),E(4,v.ISelectionService),E(5,x.IOptionsService)],D)}(j.Disposable);A.MouseZoneManager=w},6193:function(W,A){var H=this&&this.__values||function(I){var T="function"==typeof Symbol&&Symbol.iterator,E=T&&I[T],j=0;if(E)return E.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&j>=I.length&&(I=void 0),{value:I&&I[j++],done:!I}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderDebouncer=void 0;var P=function(){function I(T){this._renderCallback=T,this._refreshCallbacks=[]}return I.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},I.prototype.addRefreshCallback=function(T){var E=this;return this._refreshCallbacks.push(T),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return E._innerRefresh()})),this._animationFrame},I.prototype.refresh=function(T,E,j){var R=this;this._rowCount=j,T=void 0!==T?T:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,T):T,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return R._innerRefresh()}))},I.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var T=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(T,E),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},I.prototype._runRefreshCallbacks=function(){var T,E;try{for(var j=H(this._refreshCallbacks),R=j.next();!R.done;R=j.next())(0,R.value)(0)}catch(v){T={error:v}}finally{try{R&&!R.done&&(E=j.return)&&E.call(j)}finally{if(T)throw T.error}}this._refreshCallbacks=[]},I}();A.RenderDebouncer=P},5596:function(W,A,H){var P,I=this&&this.__extends||(P=function(j,R){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(v[w]=x[w])})(j,R)},function(E,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function R(){this.constructor=E}P(E,j),E.prototype=null===j?Object.create(j):(R.prototype=j.prototype,new R)});Object.defineProperty(A,"__esModule",{value:!0}),A.ScreenDprMonitor=void 0;var T=function(E){function j(){var R=null!==E&&E.apply(this,arguments)||this;return R._currentDevicePixelRatio=window.devicePixelRatio,R}return I(j,E),j.prototype.setListener=function(R){var v=this;this._listener&&this.clearListener(),this._listener=R,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},j.prototype.dispose=function(){E.prototype.dispose.call(this),this.clearListener()},j.prototype._updateDpr=function(){var R;this._outerListener&&(null===(R=this._resolutionMediaMatchList)||void 0===R||R.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},j.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},j}(H(844).Disposable);A.ScreenDprMonitor=T},3236:function(W,A,H){var P,I=this&&this.__extends||(P=function(Ct,Ve){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,ht){at.__proto__=ht}||function(at,ht){for(var Ut in ht)Object.prototype.hasOwnProperty.call(ht,Ut)&&(at[Ut]=ht[Ut])})(Ct,Ve)},function(_t,Ct){if("function"!=typeof Ct&&null!==Ct)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function Ve(){this.constructor=_t}P(_t,Ct),_t.prototype=null===Ct?Object.create(Ct):(Ve.prototype=Ct.prototype,new Ve)}),T=this&&this.__values||function(_t){var Ct="function"==typeof Symbol&&Symbol.iterator,Ve=Ct&&_t[Ct],at=0;if(Ve)return Ve.call(_t);if(_t&&"number"==typeof _t.length)return{next:function(){return _t&&at>=_t.length&&(_t=void 0),{value:_t&&_t[at++],done:!_t}}};throw new TypeError(Ct?"Object is not iterable.":"Symbol.iterator is not defined.")},E=this&&this.__read||function(_t,Ct){var Ve="function"==typeof Symbol&&_t[Symbol.iterator];if(!Ve)return _t;var at,ht,Ut=Ve.call(_t),Wt=[];try{for(;(void 0===Ct||Ct-- >0)&&!(at=Ut.next()).done;)Wt.push(at.value)}catch(U){ht={error:U}}finally{try{at&&!at.done&&(Ve=Ut.return)&&Ve.call(Ut)}finally{if(ht)throw ht.error}}return Wt},j=this&&this.__spreadArray||function(_t,Ct,Ve){if(Ve||2===arguments.length)for(var at,ht=0,Ut=Ct.length;ht<Ut;ht++)!at&&ht in Ct||(at||(at=Array.prototype.slice.call(Ct,0,ht)),at[ht]=Ct[ht]);return _t.concat(at||Array.prototype.slice.call(Ct))};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var R=H(2950),v=H(1680),x=H(3614),w=H(2584),Z=H(5435),D=H(3525),b=H(3551),S=H(9312),k=H(6114),M=H(3656),N=H(9042),F=H(357),X=H(6954),$=H(4567),V=H(1296),Q=H(7399),te=H(8460),be=H(8437),pe=H(5680),fe=H(3230),ue=H(4725),de=H(428),ge=H(8934),je=H(6465),ot=H(5114),St=H(8969),Tt=H(8055),Dt=H(4269),Rt=H(5941),Ze=H(3107),$t=H(5744),Ft=H(9074),pn=H(2585),rt="undefined"!=typeof window?window.document:null,Ot=function(_t){function Ct(Ve){void 0===Ve&&(Ve={});var at=_t.call(this,Ve)||this;return at.browser=k,at._keyDownHandled=!1,at._keyDownSeen=!1,at._keyPressHandled=!1,at._unprocessedDeadKey=!1,at._onCursorMove=new te.EventEmitter,at._onKey=new te.EventEmitter,at._onRender=new te.EventEmitter,at._onSelectionChange=new te.EventEmitter,at._onTitleChange=new te.EventEmitter,at._onBell=new te.EventEmitter,at._onFocus=new te.EventEmitter,at._onBlur=new te.EventEmitter,at._onA11yCharEmitter=new te.EventEmitter,at._onA11yTabEmitter=new te.EventEmitter,at._setup(),at.linkifier=at._instantiationService.createInstance(b.Linkifier),at.linkifier2=at.register(at._instantiationService.createInstance(je.Linkifier2)),at._decorationService=at._instantiationService.createInstance(Ft.DecorationService),at._instantiationService.setService(pn.IDecorationService,at._decorationService),at.register(at._inputHandler.onRequestBell(function(){return at.bell()})),at.register(at._inputHandler.onRequestRefreshRows(function(ht,Ut){return at.refresh(ht,Ut)})),at.register(at._inputHandler.onRequestSendFocus(function(){return at._reportFocus()})),at.register(at._inputHandler.onRequestReset(function(){return at.reset()})),at.register(at._inputHandler.onRequestWindowsOptionsReport(function(ht){return at._reportWindowsOptions(ht)})),at.register(at._inputHandler.onColor(function(ht){return at._handleColorEvent(ht)})),at.register((0,te.forwardEvent)(at._inputHandler.onCursorMove,at._onCursorMove)),at.register((0,te.forwardEvent)(at._inputHandler.onTitleChange,at._onTitleChange)),at.register((0,te.forwardEvent)(at._inputHandler.onA11yChar,at._onA11yCharEmitter)),at.register((0,te.forwardEvent)(at._inputHandler.onA11yTab,at._onA11yTabEmitter)),at.register(at._bufferService.onResize(function(ht){return at._afterResize(ht.cols,ht.rows)})),at}return I(Ct,_t),Object.defineProperty(Ct.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ct.prototype._handleColorEvent=function(Ve){var at,ht,Ut,Wt;if(this._colorManager){try{for(var U=T(Ve),B=U.next();!B.done;B=U.next()){var qe=B.value,Be=void 0,le="";switch(qe.index){case 256:Be="foreground",le="10";break;case 257:Be="background",le="11";break;case 258:Be="cursor",le="12";break;default:Be="ansi",le="4;"+qe.index}if(Be)switch(qe.type){case 0:var t=Tt.color.toColorRGB("ansi"===Be?this._colorManager.colors.ansi[qe.index]:this._colorManager.colors[Be]);this.coreService.triggerDataEvent(w.C0.ESC+"]"+le+";"+(0,Rt.toRgbString)(t)+w.C1_ESCAPED.ST);break;case 1:"ansi"===Be?this._colorManager.colors.ansi[qe.index]=Tt.rgba.toColor.apply(Tt.rgba,j([],E(qe.color),!1)):this._colorManager.colors[Be]=Tt.rgba.toColor.apply(Tt.rgba,j([],E(qe.color),!1));break;case 2:this._colorManager.restoreColor(qe.index)}}}catch(Lt){at={error:Lt}}finally{try{B&&!B.done&&(ht=U.return)&&ht.call(U)}finally{if(at)throw at.error}}null===(Ut=this._renderService)||void 0===Ut||Ut.setColors(this._colorManager.colors),null===(Wt=this.viewport)||void 0===Wt||Wt.onThemeChange(this._colorManager.colors)}},Ct.prototype.dispose=function(){var Ve,at,ht;this._isDisposed||(_t.prototype.dispose.call(this),null===(Ve=this._renderService)||void 0===Ve||Ve.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(ht=null===(at=this.element)||void 0===at?void 0:at.parentNode)||void 0===ht||ht.removeChild(this.element))},Ct.prototype._setup=function(){_t.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ct.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ct.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ct.prototype._updateOptions=function(Ve){var at,ht,Ut,Wt;switch(_t.prototype._updateOptions.call(this,Ve),Ve){case"fontFamily":case"fontSize":null===(at=this._renderService)||void 0===at||at.clear(),null===(ht=this._charSizeService)||void 0===ht||ht.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)):(null===(Wt=this._accessibilityManager)||void 0===Wt||Wt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},Ct.prototype._onTextAreaFocus=function(Ve){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(w.C0.ESC+"[I"),this.updateCursorStyle(Ve),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ct.prototype.blur=function(){var Ve;return null===(Ve=this.textarea)||void 0===Ve?void 0:Ve.blur()},Ct.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(w.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ct.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var Ve=this.buffer.ybase+this.buffer.y,at=this.buffer.lines.get(Ve);if(at){var ht=Math.min(this.buffer.x,this.cols-1),Ut=this._renderService.dimensions.actualCellHeight,Wt=at.getWidth(ht),U=this._renderService.dimensions.actualCellWidth*Wt,B=this.buffer.y*this._renderService.dimensions.actualCellHeight,qe=ht*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=qe+"px",this.textarea.style.top=B+"px",this.textarea.style.width=U+"px",this.textarea.style.height=Ut+"px",this.textarea.style.lineHeight=Ut+"px",this.textarea.style.zIndex="-5"}}},Ct.prototype._initGlobal=function(){var Ve=this;this._bindKeys(),this.register((0,M.addDisposableDomListener)(this.element,"copy",function(ht){Ve.hasSelection()&&(0,x.copyHandler)(ht,Ve._selectionService)}));var at=function(Ut){return(0,x.handlePasteEvent)(Ut,Ve.textarea,Ve.coreService)};this.register((0,M.addDisposableDomListener)(this.textarea,"paste",at)),this.register((0,M.addDisposableDomListener)(this.element,"paste",at)),k.isFirefox?this.register((0,M.addDisposableDomListener)(this.element,"mousedown",function(ht){2===ht.button&&(0,x.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})):this.register((0,M.addDisposableDomListener)(this.element,"contextmenu",function(ht){(0,x.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})),k.isLinux&&this.register((0,M.addDisposableDomListener)(this.element,"auxclick",function(ht){1===ht.button&&(0,x.moveTextAreaUnderMouseCursor)(ht,Ve.textarea,Ve.screenElement)}))},Ct.prototype._bindKeys=function(){var Ve=this;this.register((0,M.addDisposableDomListener)(this.textarea,"keyup",function(at){return Ve._keyUp(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"keydown",function(at){return Ve._keyDown(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"keypress",function(at){return Ve._keyPress(at)},!0)),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionstart",function(){return Ve._compositionHelper.compositionstart()})),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionupdate",function(at){return Ve._compositionHelper.compositionupdate(at)})),this.register((0,M.addDisposableDomListener)(this.textarea,"compositionend",function(){return Ve._compositionHelper.compositionend()})),this.register((0,M.addDisposableDomListener)(this.textarea,"input",function(at){return Ve._inputEvent(at)},!0)),this.register(this.onRender(function(){return Ve._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(at){return Ve._queueLinkification(at.start,at.end)}))},Ct.prototype.open=function(Ve){var at=this;if(!Ve)throw new Error("Terminal requires a parent element.");Ve.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Ve.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),Ve.appendChild(this.element);var ht=rt.createDocumentFragment();this._viewportElement=rt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ht.appendChild(this._viewportElement),this._viewportScrollArea=rt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=rt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=rt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ht.appendChild(this.screenElement),this.textarea=rt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",N.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,M.addDisposableDomListener)(this.textarea,"focus",function(U){return at._onTextAreaFocus(U)})),this.register((0,M.addDisposableDomListener)(this.textarea,"blur",function(){return at._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ut=this._instantiationService.createInstance(ot.CoreBrowserService,this.textarea);this._instantiationService.setService(ue.ICoreBrowserService,Ut),this._charSizeService=this._instantiationService.createInstance(de.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ue.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new pe.ColorManager(rt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(U){return at._colorManager.onOptionsChange(U)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Dt.CharacterJoinerService),this._instantiationService.setService(ue.ICharacterJoinerService,this._characterJoinerService);var Wt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(fe.RenderService,Wt,this.rows,this.screenElement)),this._instantiationService.setService(ue.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(U){return at._onRender.fire(U)})),this.onResize(function(U){return at._renderService.resize(U.cols,U.rows)}),this._compositionView=rt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(R.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ht),this._soundService=this._instantiationService.createInstance(F.SoundService),this._instantiationService.setService(ue.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(ge.MouseService),this._instantiationService.setService(ue.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(v.Viewport,function(U){return at.scrollLines(U,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return at.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){at._renderService.onCursorMove(),at._syncTextArea()})),this.register(this.onResize(function(){return at._renderService.onResize(at.cols,at.rows)})),this.register(this.onBlur(function(){return at._renderService.onBlur()})),this.register(this.onFocus(function(){return at._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return at.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(S.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(ue.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(U){return at.scrollLines(U.amount,U.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return at._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(U){return at._renderService.onSelectionChanged(U.start,U.end,U.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(U){at.textarea.value=U,at.textarea.focus(),at.textarea.select()})),this.register(this._onScroll.event(function(U){at.viewport.syncScrollArea(),at._selectionService.refresh()})),this.register((0,M.addDisposableDomListener)(this._viewportElement,"scroll",function(){return at._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(X.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return at._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Ze.BufferDecorationRenderer,this.screenElement)),this.register((0,M.addDisposableDomListener)(this.element,"mousedown",function(U){return at._selectionService.onMouseDown(U)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance($t.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!at._overviewRulerRenderer&&at.options.overviewRulerWidth&&at._viewportElement&&at.screenElement&&(at._overviewRulerRenderer=at._instantiationService.createInstance($t.OverviewRulerRenderer,at._viewportElement,at.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ct.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(D.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(V.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ct.prototype._setTheme=function(Ve){var at,ht,Ut;this._theme=Ve,null===(at=this._colorManager)||void 0===at||at.setTheme(Ve),null===(ht=this._renderService)||void 0===ht||ht.setColors(this._colorManager.colors),null===(Ut=this.viewport)||void 0===Ut||Ut.onThemeChange(this._colorManager.colors)},Ct.prototype.bindMouse=function(){var Ve=this,at=this,ht=this.element;function Ut(le){var t,Lt,zt=at._mouseService.getRawByteCoords(le,at.screenElement,at.cols,at.rows);if(!zt)return!1;switch(le.overrideType||le.type){case"mousemove":Lt=32,void 0===le.buttons?(t=3,void 0!==le.button&&(t=le.button<3?le.button:3)):t=1&le.buttons?0:4&le.buttons?1:2&le.buttons?2:3;break;case"mouseup":Lt=0,t=le.button<3?le.button:3;break;case"mousedown":Lt=1,t=le.button<3?le.button:3;break;case"wheel":if(0===at.viewport.getLinesScrolled(le))return!1;Lt=le.deltaY<0?0:1,t=4;break;default:return!1}return!(void 0===Lt||void 0===t||t>4)&&at.coreMouseService.triggerMouseEvent({col:zt.x-33,row:zt.y-33,button:t,action:Lt,ctrl:le.ctrlKey,alt:le.altKey,shift:le.shiftKey})}var Wt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},U=function(t){return Ut(t),t.buttons||(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.removeEventListener("mousemove",Wt.mousedrag)),Ve.cancel(t)},B=function(t){return Ut(t),Ve.cancel(t,!0)},qe=function(t){t.buttons&&Ut(t)},Be=function(t){t.buttons||Ut(t)};this.register(this.coreMouseService.onProtocolChange(function(le){le?("debug"===Ve.optionsService.rawOptions.logLevel&&Ve._logService.debug("Binding to mouse events:",Ve.coreMouseService.explainEvents(le)),Ve.element.classList.add("enable-mouse-events"),Ve._selectionService.disable()):(Ve._logService.debug("Unbinding from mouse events."),Ve.element.classList.remove("enable-mouse-events"),Ve._selectionService.enable()),8&le?Wt.mousemove||(ht.addEventListener("mousemove",Be),Wt.mousemove=Be):(ht.removeEventListener("mousemove",Wt.mousemove),Wt.mousemove=null),16&le?Wt.wheel||(ht.addEventListener("wheel",B,{passive:!1}),Wt.wheel=B):(ht.removeEventListener("wheel",Wt.wheel),Wt.wheel=null),2&le?Wt.mouseup||(Wt.mouseup=U):(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mouseup=null),4&le?Wt.mousedrag||(Wt.mousedrag=qe):(Ve._document.removeEventListener("mousemove",Wt.mousedrag),Wt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,M.addDisposableDomListener)(ht,"mousedown",function(le){if(le.preventDefault(),Ve.focus(),Ve.coreMouseService.areMouseEventsActive&&!Ve._selectionService.shouldForceSelection(le))return Ut(le),Wt.mouseup&&Ve._document.addEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.addEventListener("mousemove",Wt.mousedrag),Ve.cancel(le)})),this.register((0,M.addDisposableDomListener)(ht,"wheel",function(le){if(!Wt.wheel){if(!Ve.buffer.hasScrollback){var t=Ve.viewport.getLinesScrolled(le);if(0===t)return;for(var Lt=w.C0.ESC+(Ve.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(le.deltaY<0?"A":"B"),zt="",an=0;an<Math.abs(t);an++)zt+=Lt;return Ve.coreService.triggerDataEvent(zt,!0),Ve.cancel(le,!0)}return Ve.viewport.onWheel(le)?Ve.cancel(le):void 0}},{passive:!1})),this.register((0,M.addDisposableDomListener)(ht,"touchstart",function(le){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchStart(le),Ve.cancel(le)},{passive:!0})),this.register((0,M.addDisposableDomListener)(ht,"touchmove",function(le){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchMove(le)?void 0:Ve.cancel(le)},{passive:!1}))},Ct.prototype.refresh=function(Ve,at){var ht;null===(ht=this._renderService)||void 0===ht||ht.refreshRows(Ve,at)},Ct.prototype._queueLinkification=function(Ve,at){var ht;null===(ht=this.linkifier)||void 0===ht||ht.linkifyRows(Ve,at)},Ct.prototype.updateCursorStyle=function(Ve){var at;null!==(at=this._selectionService)&&void 0!==at&&at.shouldColumnSelect(Ve)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ct.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ct.prototype.scrollLines=function(Ve,at,ht){void 0===ht&&(ht=0),_t.prototype.scrollLines.call(this,Ve,at,ht),this.refresh(0,this.rows-1)},Ct.prototype.paste=function(Ve){(0,x.paste)(Ve,this.textarea,this.coreService)},Ct.prototype.attachCustomKeyEventHandler=function(Ve){this._customKeyEventHandler=Ve},Ct.prototype.registerLinkMatcher=function(Ve,at,ht){var Ut=this.linkifier.registerLinkMatcher(Ve,at,ht);return this.refresh(0,this.rows-1),Ut},Ct.prototype.deregisterLinkMatcher=function(Ve){this.linkifier.deregisterLinkMatcher(Ve)&&this.refresh(0,this.rows-1)},Ct.prototype.registerLinkProvider=function(Ve){return this.linkifier2.registerLinkProvider(Ve)},Ct.prototype.registerCharacterJoiner=function(Ve){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var at=this._characterJoinerService.register(Ve);return this.refresh(0,this.rows-1),at},Ct.prototype.deregisterCharacterJoiner=function(Ve){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(Ve)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ct.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ct.prototype.addMarker=function(Ve){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Ve)},Ct.prototype.registerDecoration=function(Ve){return this._decorationService.registerDecoration(Ve)},Ct.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ct.prototype.select=function(Ve,at,ht){this._selectionService.setSelection(Ve,at,ht)},Ct.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ct.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ct.prototype.clearSelection=function(){var Ve;null===(Ve=this._selectionService)||void 0===Ve||Ve.clearSelection()},Ct.prototype.selectAll=function(){var Ve;null===(Ve=this._selectionService)||void 0===Ve||Ve.selectAll()},Ct.prototype.selectLines=function(Ve,at){var ht;null===(ht=this._selectionService)||void 0===ht||ht.selectLines(Ve,at)},Ct.prototype._keyDown=function(Ve){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve))return!1;var at=this.browser.isMac&&this.options.macOptionIsMeta&&Ve.altKey;if(!at&&!this._compositionHelper.keydown(Ve))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;at||"Dead"!==Ve.key&&"AltGraph"!==Ve.key||(this._unprocessedDeadKey=!0);var ht=(0,Q.evaluateKeyboardEvent)(Ve,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Ve),3===ht.type||2===ht.type){var Ut=this.rows-1;return this.scrollLines(2===ht.type?-Ut:Ut),this.cancel(Ve,!0)}return 1===ht.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Ve)||(ht.cancel&&this.cancel(Ve,!0),!ht.key||!!(Ve.key&&!Ve.ctrlKey&&!Ve.altKey&&!Ve.metaKey&&1===Ve.key.length&&Ve.key.charCodeAt(0)>=65&&Ve.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(ht.key!==w.C0.ETX&&ht.key!==w.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ht.key,domEvent:Ve}),this._showCursor(),this.coreService.triggerDataEvent(ht.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Ve,!0))))},Ct.prototype._isThirdLevelShift=function(Ve,at){var ht=Ve.isMac&&!this.options.macOptionIsMeta&&at.altKey&&!at.ctrlKey&&!at.metaKey||Ve.isWindows&&at.altKey&&at.ctrlKey&&!at.metaKey||Ve.isWindows&&at.getModifierState("AltGraph");return"keypress"===at.type?ht:ht&&(!at.keyCode||at.keyCode>47)},Ct.prototype._keyUp=function(Ve){var at;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve)||(16===(at=Ve).keyCode||17===at.keyCode||18===at.keyCode||this.focus(),this.updateCursorStyle(Ve),this._keyPressHandled=!1)},Ct.prototype._keyPress=function(Ve){var at;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(Ve))return!1;if(this.cancel(Ve),Ve.charCode)at=Ve.charCode;else if(null===Ve.which||void 0===Ve.which)at=Ve.keyCode;else{if(0===Ve.which||0===Ve.charCode)return!1;at=Ve.which}return!(!at||(Ve.altKey||Ve.ctrlKey||Ve.metaKey)&&!this._isThirdLevelShift(this.browser,Ve)||(at=String.fromCharCode(at),this._onKey.fire({key:at,domEvent:Ve}),this._showCursor(),this.coreService.triggerDataEvent(at,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},Ct.prototype._inputEvent=function(Ve){if(Ve.data&&"insertText"===Ve.inputType&&(!Ve.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var at=Ve.data;return this.coreService.triggerDataEvent(at,!0),this.cancel(Ve),!0}return!1},Ct.prototype.bell=function(){var Ve;this._soundBell()&&(null===(Ve=this._soundService)||void 0===Ve||Ve.playBellSound()),this._onBell.fire()},Ct.prototype.resize=function(Ve,at){Ve!==this.cols||at!==this.rows?_t.prototype.resize.call(this,Ve,at):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ct.prototype._afterResize=function(Ve,at){var ht,Ut;null===(ht=this._charSizeService)||void 0===ht||ht.measure(),null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea(!0)},Ct.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var Ve=1;Ve<this.rows;Ve++)this.buffer.lines.push(this.buffer.getBlankLine(be.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Ct.prototype.reset=function(){var Ve,at;this.options.rows=this.rows,this.options.cols=this.cols;var ht=this._customKeyEventHandler;this._setup(),_t.prototype.reset.call(this),null===(Ve=this._selectionService)||void 0===Ve||Ve.reset(),this._decorationService.reset(),this._customKeyEventHandler=ht,this.refresh(0,this.rows-1),null===(at=this.viewport)||void 0===at||at.syncScrollArea()},Ct.prototype.clearTextureAtlas=function(){var Ve;null===(Ve=this._renderService)||void 0===Ve||Ve.clearTextureAtlas()},Ct.prototype._reportFocus=function(){var Ve;null!==(Ve=this.element)&&void 0!==Ve&&Ve.classList.contains("focus")?this.coreService.triggerDataEvent(w.C0.ESC+"[I"):this.coreService.triggerDataEvent(w.C0.ESC+"[O")},Ct.prototype._reportWindowsOptions=function(Ve){if(this._renderService)switch(Ve){case Z.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var at=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ht=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(w.C0.ESC+"[4;"+ht+";"+at+"t");break;case Z.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ut=this._renderService.dimensions.scaledCellWidth.toFixed(0),Wt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(w.C0.ESC+"[6;"+Wt+";"+Ut+"t")}},Ct.prototype.cancel=function(Ve,at){if(this.options.cancelEvents||at)return Ve.preventDefault(),Ve.stopPropagation(),!1},Ct.prototype._visualBell=function(){return!1},Ct.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Ct}(St.CoreTerminal);A.Terminal=Ot},9924:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.TimeBasedDebouncer=void 0;var H=function(){function P(I,T){void 0===T&&(T=1e3),this._renderCallback=I,this._debounceThresholdMS=T,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return P.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},P.prototype.refresh=function(I,T,E){var j=this;this._rowCount=E,I=void 0!==I?I:0,T=void 0!==T?T:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,I):I,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,T):T;var R=Date.now();if(R-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=R,this._innerRefresh();else if(!this._additionalRefreshRequested){var v=R-this._lastRefreshMs,x=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){j._lastRefreshMs=Date.now(),j._innerRefresh(),j._additionalRefreshRequested=!1,j._refreshTimeoutID=void 0},x)}},P.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var I=Math.max(this._rowStart,0),T=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(I,T)}},P}();A.TimeBasedDebouncer=H},1680:function(W,A,H){var P,I=this&&this.__extends||(P=function(D,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}P(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.Viewport=void 0;var j=H(844),R=H(3656),v=H(4725),x=H(2585),w=function(Z){function D(b,S,k,M,N,F,X,$){var V=Z.call(this)||this;return V._scrollLines=b,V._viewportElement=S,V._scrollArea=k,V._element=M,V._bufferService=N,V._optionsService=F,V._charSizeService=X,V._renderService=$,V.scrollBarWidth=0,V._currentRowHeight=0,V._currentScaledCellHeight=0,V._lastRecordedBufferLength=0,V._lastRecordedViewportHeight=0,V._lastRecordedBufferHeight=0,V._lastTouchY=0,V._lastScrollTop=0,V._wheelPartialScroll=0,V._refreshAnimationFrame=null,V._ignoreNextScrollEvent=!1,V.scrollBarWidth=V._viewportElement.offsetWidth-V._scrollArea.offsetWidth||15,V.register((0,R.addDisposableDomListener)(V._viewportElement,"scroll",V._onScroll.bind(V))),V._activeBuffer=V._bufferService.buffer,V.register(V._bufferService.buffers.onBufferActivate(function(Q){return V._activeBuffer=Q.activeBuffer})),V._renderDimensions=V._renderService.dimensions,V.register(V._renderService.onDimensionsChange(function(Q){return V._renderDimensions=Q})),setTimeout(function(){return V.syncScrollArea()},0),V}return I(D,Z),D.prototype.onThemeChange=function(b){this._viewportElement.style.backgroundColor=b.background.css},D.prototype._refresh=function(b){var S=this;if(b)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},D.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var b=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==b&&(this._lastRecordedBufferHeight=b,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this._refreshAnimationFrame=null},D.prototype.syncScrollArea=function(b){if(void 0===b&&(b=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(b);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(b)},D.prototype._onScroll=function(b){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},D.prototype._bubbleScroll=function(b,S){var k=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&k<this._lastRecordedBufferHeight)||(b.cancelable&&b.preventDefault(),!1)},D.prototype.onWheel=function(b){var S=this._getPixelsScrolled(b);return 0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(b,S))},D.prototype._getPixelsScrolled=function(b){if(0===b.deltaY||b.shiftKey)return 0;var S=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_LINE?S*=this._currentRowHeight:b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._currentRowHeight*this._bufferService.rows),S},D.prototype.getLinesScrolled=function(b){if(0===b.deltaY||b.shiftKey)return 0;var S=this._applyScrollModifier(b.deltaY,b);return b.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(S/=this._currentRowHeight+0,this._wheelPartialScroll+=S,S=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):b.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},D.prototype._applyScrollModifier=function(b,S){var k=this._optionsService.rawOptions.fastScrollModifier;return"alt"===k&&S.altKey||"ctrl"===k&&S.ctrlKey||"shift"===k&&S.shiftKey?b*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:b*this._optionsService.rawOptions.scrollSensitivity},D.prototype.onTouchStart=function(b){this._lastTouchY=b.touches[0].pageY},D.prototype.onTouchMove=function(b){var S=this._lastTouchY-b.touches[0].pageY;return this._lastTouchY=b.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(b,S))},T([E(4,x.IBufferService),E(5,x.IOptionsService),E(6,v.ICharSizeService),E(7,v.IRenderService)],D)}(j.Disposable);A.Viewport=w},3107:function(W,A,H){var P,I=this&&this.__extends||(P=function(b,S){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}P(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},E=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}},j=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferDecorationRenderer=void 0;var R=H(3656),v=H(4725),x=H(844),w=H(2585),Z=function(D){function b(S,k,M,N){var F=D.call(this)||this;return F._screenElement=S,F._bufferService=k,F._decorationService=M,F._renderService=N,F._decorationElements=new Map,F._altBufferIsActive=!1,F._dimensionsChanged=!1,F._container=document.createElement("div"),F._container.classList.add("xterm-decoration-container"),F._screenElement.appendChild(F._container),F.register(F._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),F.register(F._renderService.onDimensionsChange(function(){F._dimensionsChanged=!0,F._queueRefresh()})),F.register((0,R.addDisposableDomListener)(window,"resize",function(){return F._queueRefresh()})),F.register(F._bufferService.buffers.onBufferActivate(function(){F._altBufferIsActive=F._bufferService.buffer===F._bufferService.buffers.alt})),F.register(F._decorationService.onDecorationRegistered(function(){return F._queueRefresh()})),F.register(F._decorationService.onDecorationRemoved(function(X){return F._removeDecoration(X)})),F}return I(b,D),b.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),D.prototype.dispose.call(this)},b.prototype._queueRefresh=function(){var S=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){S.refreshDecorations(),S._animationFrame=void 0}))},b.prototype.refreshDecorations=function(){var S,k;try{for(var M=j(this._decorationService.decorations),N=M.next();!N.done;N=M.next()){var F=N.value;this._renderDecoration(F)}}catch(X){S={error:X}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this._dimensionsChanged=!1},b.prototype._renderDecoration=function(S){this._refreshStyle(S),this._dimensionsChanged&&this._refreshXPosition(S)},b.prototype._createElement=function(S){var k,M=document.createElement("div");M.classList.add("xterm-decoration"),M.style.width=Math.round((S.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",M.style.height=(S.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",M.style.top=(S.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",M.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var N=null!==(k=S.options.x)&&void 0!==k?k:0;return N&&N>this._bufferService.cols&&(M.style.display="none"),this._refreshXPosition(S,M),M},b.prototype._refreshStyle=function(S){var k=this,M=S.marker.line-this._bufferService.buffers.active.ydisp;if(M<0||M>=this._bufferService.rows)S.element&&(S.element.style.display="none",S.onRenderEmitter.fire(S.element));else{var N=this._decorationElements.get(S);N||(S.onDispose(function(){return k._removeDecoration(S)}),N=this._createElement(S),S.element=N,this._decorationElements.set(S,N),this._container.appendChild(N)),N.style.top=M*this._renderService.dimensions.actualCellHeight+"px",N.style.display=this._altBufferIsActive?"none":"block",S.onRenderEmitter.fire(N)}},b.prototype._refreshXPosition=function(S,k){var M;if(void 0===k&&(k=S.element),k){var N=null!==(M=S.options.x)&&void 0!==M?M:0;"right"===(S.options.anchor||"left")?k.style.right=N?N*this._renderService.dimensions.actualCellWidth+"px":"":k.style.left=N?N*this._renderService.dimensions.actualCellWidth+"px":""}},b.prototype._removeDecoration=function(S){var k;null===(k=this._decorationElements.get(S))||void 0===k||k.remove(),this._decorationElements.delete(S)},T([E(1,w.IBufferService),E(2,w.IDecorationService),E(3,v.IRenderService)],b)}(x.Disposable);A.BufferDecorationRenderer=Z},5871:function(W,A){var H=this&&this.__values||function(I){var T="function"==typeof Symbol&&Symbol.iterator,E=T&&I[T],j=0;if(E)return E.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&j>=I.length&&(I=void 0),{value:I&&I[j++],done:!I}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorZoneStore=void 0;var P=function(){function I(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(I.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),I.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},I.prototype.addDecoration=function(T){var E,j;if(T.options.overviewRulerOptions){try{for(var R=H(this._zones),v=R.next();!v.done;v=R.next()){var x=v.value;if(x.color===T.options.overviewRulerOptions.color&&x.position===T.options.overviewRulerOptions.position){if(this._lineIntersectsZone(x,T.marker.line))return;if(this._lineAdjacentToZone(x,T.marker.line,T.options.overviewRulerOptions.position))return void this._addLineToZone(x,T.marker.line)}}}catch(w){E={error:w}}finally{try{v&&!v.done&&(j=R.return)&&j.call(R)}finally{if(E)throw E.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=T.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=T.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=T.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=T.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:T.options.overviewRulerOptions.color,position:T.options.overviewRulerOptions.position,startBufferLine:T.marker.line,endBufferLine:T.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},I.prototype.setPadding=function(T){this._linePadding=T},I.prototype._lineIntersectsZone=function(T,E){return E>=T.startBufferLine&&E<=T.endBufferLine},I.prototype._lineAdjacentToZone=function(T,E,j){return E>=T.startBufferLine-this._linePadding[j||"full"]&&E<=T.endBufferLine+this._linePadding[j||"full"]},I.prototype._addLineToZone=function(T,E){T.startBufferLine=Math.min(T.startBufferLine,E),T.endBufferLine=Math.max(T.endBufferLine,E)},I}();A.ColorZoneStore=P},5744:function(W,A,H){var P,I=this&&this.__extends||(P=function(N,F){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,F)},function(M,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=M}P(M,N),M.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),T=this&&this.__decorate||function(M,N,F,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(M,N,F,X);else for(var te=M.length-1;te>=0;te--)($=M[te])&&(Q=(V<3?$(Q):V>3?$(N,F,Q):$(N,F))||Q);return V>3&&Q&&Object.defineProperty(N,F,Q),Q},E=this&&this.__param||function(M,N){return function(F,X){N(F,X,M)}},j=this&&this.__values||function(M){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&M[N],X=0;if(F)return F.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&X>=M.length&&(M=void 0),{value:M&&M[X++],done:!M}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.OverviewRulerRenderer=void 0;var R=H(5871),v=H(3656),x=H(4725),w=H(844),Z=H(2585),D={full:0,left:0,center:0,right:0},b={full:0,left:0,center:0,right:0},S={full:0,left:0,center:0,right:0},k=function(M){function N(F,X,$,V,Q,te){var be,pe=M.call(this)||this;pe._viewportElement=F,pe._screenElement=X,pe._bufferService=$,pe._decorationService=V,pe._renderService=Q,pe._optionsService=te,pe._colorZoneStore=new R.ColorZoneStore,pe._shouldUpdateDimensions=!0,pe._shouldUpdateAnchor=!0,pe._lastKnownBufferLength=0,pe._canvas=document.createElement("canvas"),pe._canvas.classList.add("xterm-decoration-overview-ruler"),pe._refreshCanvasDimensions(),null===(be=pe._viewportElement.parentElement)||void 0===be||be.insertBefore(pe._canvas,pe._viewportElement);var fe=pe._canvas.getContext("2d");if(!fe)throw new Error("Ctx cannot be null");return pe._ctx=fe,pe._registerDecorationListeners(),pe._registerBufferChangeListeners(),pe._registerDimensionChangeListeners(),pe}return I(N,M),Object.defineProperty(N.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),N.prototype._registerDecorationListeners=function(){var F=this;this.register(this._decorationService.onDecorationRegistered(function(){return F._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return F._queueRefresh(void 0,!0)}))},N.prototype._registerBufferChangeListeners=function(){var F=this;this.register(this._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){F._canvas.style.display=F._bufferService.buffer===F._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){F._lastKnownBufferLength!==F._bufferService.buffers.normal.lines.length&&(F._refreshDrawHeightConstants(),F._refreshColorZonePadding())}))},N.prototype._registerDimensionChangeListeners=function(){var F=this;this.register(this._renderService.onRender(function(){F._containerHeight&&F._containerHeight===F._screenElement.clientHeight||(F._queueRefresh(!0),F._containerHeight=F._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(X){"overviewRulerWidth"===X&&F._queueRefresh(!0)})),this.register((0,v.addDisposableDomListener)(window,"resize",function(){F._queueRefresh(!0)})),this._queueRefresh(!0)},N.prototype.dispose=function(){var F;null===(F=this._canvas)||void 0===F||F.remove(),M.prototype.dispose.call(this)},N.prototype._refreshDrawConstants=function(){var F=Math.floor(this._canvas.width/3),X=Math.ceil(this._canvas.width/3);b.full=this._canvas.width,b.left=F,b.center=X,b.right=F,this._refreshDrawHeightConstants(),S.full=0,S.left=0,S.center=b.left,S.right=b.left+b.center},N.prototype._refreshDrawHeightConstants=function(){D.full=Math.round(2*window.devicePixelRatio);var F=this._canvas.height/this._bufferService.buffer.lines.length,X=Math.round(Math.max(Math.min(F,12),6)*window.devicePixelRatio);D.left=X,D.center=X,D.right=X},N.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*D.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},N.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},N.prototype._refreshDecorations=function(){var F,X,$,V,Q,te;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var be=j(this._decorationService.decorations),pe=be.next();!pe.done;pe=be.next()){var fe=pe.value;this._colorZoneStore.addDecoration(fe)}}catch(Tt){F={error:Tt}}finally{try{pe&&!pe.done&&(X=be.return)&&X.call(be)}finally{if(F)throw F.error}}this._ctx.lineWidth=1;var ue=this._colorZoneStore.zones;try{for(var de=j(ue),ge=de.next();!ge.done;ge=de.next())"full"!==(St=ge.value).position&&this._renderColorZone(St)}catch(Tt){$={error:Tt}}finally{try{ge&&!ge.done&&(V=de.return)&&V.call(de)}finally{if($)throw $.error}}try{for(var je=j(ue),ot=je.next();!ot.done;ot=je.next()){var St;"full"===(St=ot.value).position&&this._renderColorZone(St)}}catch(Tt){Q={error:Tt}}finally{try{ot&&!ot.done&&(te=je.return)&&te.call(je)}finally{if(Q)throw Q.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},N.prototype._renderColorZone=function(F){this._ctx.fillStyle=F.color,this._ctx.fillRect(S[F.position||"full"],Math.round((this._canvas.height-1)*(F.startBufferLine/this._bufferService.buffers.active.lines.length)-D[F.position||"full"]/2),b[F.position||"full"],Math.round((this._canvas.height-1)*((F.endBufferLine-F.startBufferLine)/this._bufferService.buffers.active.lines.length)+D[F.position||"full"]))},N.prototype._queueRefresh=function(F,X){var $=this;this._shouldUpdateDimensions=F||this._shouldUpdateDimensions,this._shouldUpdateAnchor=X||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){$._refreshDecorations(),$._animationFrame=void 0}))},T([E(2,Z.IBufferService),E(3,Z.IDecorationService),E(4,x.IRenderService),E(5,Z.IOptionsService)],N)}(w.Disposable);A.OverviewRulerRenderer=k},2950:function(W,A,H){var P=this&&this.__decorate||function(R,v,x,w){var Z,D=arguments.length,b=D<3?v:null===w?w=Object.getOwnPropertyDescriptor(v,x):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(R,v,x,w);else for(var S=R.length-1;S>=0;S--)(Z=R[S])&&(b=(D<3?Z(b):D>3?Z(v,x,b):Z(v,x))||b);return D>3&&b&&Object.defineProperty(v,x,b),b},I=this&&this.__param||function(R,v){return function(x,w){v(x,w,R)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CompositionHelper=void 0;var T=H(4725),E=H(2585),j=function(){function R(v,x,w,Z,D,b){this._textarea=v,this._compositionView=x,this._bufferService=w,this._optionsService=Z,this._coreService=D,this._renderService=b,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(R.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),R.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},R.prototype.compositionupdate=function(v){var x=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){x._compositionPosition.end=x._textarea.value.length},0)},R.prototype.compositionend=function(){this._finalizeComposition(!0)},R.prototype.keydown=function(v){if(this._isComposing||this._isSendingComposition){if(229===v.keyCode||16===v.keyCode||17===v.keyCode||18===v.keyCode)return!1;this._finalizeComposition(!1)}return 229!==v.keyCode||(this._handleAnyTextareaChanges(),!1)},R.prototype._finalizeComposition=function(v){var x=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var w={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var D;x._isSendingComposition&&(x._isSendingComposition=!1,w.start+=x._dataAlreadySent.length,(D=x._isComposing?x._textarea.value.substring(w.start,w.end):x._textarea.value.substring(w.start)).length>0&&x._coreService.triggerDataEvent(D,!0))},0)}else{this._isSendingComposition=!1;var Z=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(Z,!0)}},R.prototype._handleAnyTextareaChanges=function(){var v=this,x=this._textarea.value;setTimeout(function(){if(!v._isComposing){var w=v._textarea.value.replace(x,"");w.length>0&&(v._dataAlreadySent=w,v._coreService.triggerDataEvent(w,!0))}},0)},R.prototype.updateCompositionElements=function(v){var x=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var w=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Z=this._renderService.dimensions.actualCellHeight,D=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,b=w*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=b+"px",this._compositionView.style.top=D+"px",this._compositionView.style.height=Z+"px",this._compositionView.style.lineHeight=Z+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=b+"px",this._textarea.style.top=D+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}v||setTimeout(function(){return x.updateCompositionElements(!0)},0)}},P([I(2,E.IBufferService),I(3,E.IOptionsService),I(4,E.ICoreService),I(5,T.IRenderService)],R)}();A.CompositionHelper=j},9806:function(W,A){function H(P,I,T){var E=T.getBoundingClientRect(),j=P.getComputedStyle(T),R=parseInt(j.getPropertyValue("padding-left")),v=parseInt(j.getPropertyValue("padding-top"));return[I.clientX-E.left-R,I.clientY-E.top-v]}Object.defineProperty(A,"__esModule",{value:!0}),A.getRawByteCoords=A.getCoords=A.getCoordsRelativeToElement=void 0,A.getCoordsRelativeToElement=H,A.getCoords=function(P,I,T,E,j,R,v,x,w){if(R){var Z=H(P,I,T);if(Z)return Z[0]=Math.ceil((Z[0]+(w?v/2:0))/v),Z[1]=Math.ceil(Z[1]/x),Z[0]=Math.min(Math.max(Z[0],1),E+(w?1:0)),Z[1]=Math.min(Math.max(Z[1],1),j),Z}},A.getRawByteCoords=function(P){if(P)return{x:P[0]+32,y:P[1]+32}}},9504:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.moveToCellSequence=void 0;var P=H(2584);function I(x,w,Z,D){var b=x-T(Z,x),S=w-T(Z,w);return v(Math.abs(b-S)-function(M,N,F){for(var X=0,$=M-T(F,M),V=N-T(F,N),Q=0;Q<Math.abs($-V);Q++){var te="A"===E(M,N)?-1:1,be=F.buffer.lines.get($+te*Q);null!=be&&be.isWrapped&&X++}return X}(x,w,Z),R(E(x,w),D))}function T(x,w){for(var Z=0,D=x.buffer.lines.get(w),b=null==D?void 0:D.isWrapped;b&&w>=0&&w<x.rows;)Z++,b=null==(D=x.buffer.lines.get(--w))?void 0:D.isWrapped;return Z}function E(x,w){return x>w?"A":"B"}function j(x,w,Z,D,b,S){for(var k=x,M=w,N="";k!==Z||M!==D;)k+=b?1:-1,b&&k>S.cols-1?(N+=S.buffer.translateBufferLineToString(M,!1,x,k),k=0,x=0,M++):!b&&k<0&&(N+=S.buffer.translateBufferLineToString(M,!1,0,x+1),x=k=S.cols-1,M--);return N+S.buffer.translateBufferLineToString(M,!1,x,k)}function R(x,w){var Z=w?"O":"[";return P.C0.ESC+Z+x}function v(x,w){x=Math.floor(x);for(var Z="",D=0;D<x;D++)Z+=w;return Z}A.moveToCellSequence=function(x,w,Z,D){var b,N,F,V,Q,S=Z.buffer.x,k=Z.buffer.y;if(!Z.buffer.hasScrollback)return N=S,(0===I(F=k,w,V=Z,Q=D).length?"":v(j(N,F,N,F-T(V,F),!1,V).length,R("D",Q)))+I(k,w,Z,D)+function(N,F,X,$,V,Q){var te;te=I(F,$,V,Q).length>0?$-T(V,$):F;var fe,ue,de,ge,je,St,be=$,pe=(fe=N,ue=F,St=I(de=X,ge=$,je=V,Q).length>0?ge-T(je,ge):ue,fe<de&&St<=ge||fe>=de&&St<ge?"C":"D");return v(j(N,te,X,be,"C"===pe,V).length,R(pe,Q))}(S,k,x,w,Z,D);if(k===w)return b=S>x?"D":"C",v(Math.abs(S-x),R(b,D));b=k>w?"D":"C";var M=Math.abs(k-w);return v(function(N,F){return F.cols-N}(k>w?x:S,Z)+(M-1)*Z.cols+1+((k>w?S:x)-1),R(b,D))}},4389:function(W,A,H){var P=this&&this.__assign||function(){return P=Object.assign||function(D){for(var b,S=1,k=arguments.length;S<k;S++)for(var M in b=arguments[S])Object.prototype.hasOwnProperty.call(b,M)&&(D[M]=b[M]);return D},P.apply(this,arguments)},I=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var T=H(3236),E=H(9042),j=H(7975),R=H(7090),v=H(5741),x=H(8285),w=["cols","rows"],Z=function(){function D(b){var S=this;this._core=new T.Terminal(b),this._addonManager=new v.AddonManager,this._publicOptions=P({},this._core.options);var k=function($){return S._core.options[$]},M=function($,V){S._checkReadonlyOptions($),S._core.options[$]=V};for(var N in this._core.options){var F={get:k.bind(this,N),set:M.bind(this,N)};Object.defineProperty(this._publicOptions,N,F)}}return D.prototype._checkReadonlyOptions=function(b){if(w.includes(b))throw new Error('Option "'+b+'" can only be set in the constructor')},D.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(D.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new j.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"unicode",{get:function(){return this._checkProposedApi(),new R.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new x.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"modes",{get:function(){var S=this._core.coreService.decPrivateModes,k="none";switch(this._core.coreMouseService.activeProtocol){case"X10":k="x10";break;case"VT200":k="vt200";break;case"DRAG":k="drag";break;case"ANY":k="any"}return{applicationCursorKeysMode:S.applicationCursorKeys,applicationKeypadMode:S.applicationKeypad,bracketedPasteMode:S.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:k,originMode:S.origin,reverseWraparoundMode:S.reverseWraparound,sendFocusMode:S.sendFocus,wraparoundMode:S.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"options",{get:function(){return this._publicOptions},set:function(S){for(var k in S)this._publicOptions[k]=S[k]},enumerable:!1,configurable:!0}),D.prototype.blur=function(){this._core.blur()},D.prototype.focus=function(){this._core.focus()},D.prototype.resize=function(b,S){this._verifyIntegers(b,S),this._core.resize(b,S)},D.prototype.open=function(b){this._core.open(b)},D.prototype.attachCustomKeyEventHandler=function(b){this._core.attachCustomKeyEventHandler(b)},D.prototype.registerLinkMatcher=function(b,S,k){return this._checkProposedApi(),this._core.registerLinkMatcher(b,S,k)},D.prototype.deregisterLinkMatcher=function(b){this._checkProposedApi(),this._core.deregisterLinkMatcher(b)},D.prototype.registerLinkProvider=function(b){return this._checkProposedApi(),this._core.registerLinkProvider(b)},D.prototype.registerCharacterJoiner=function(b){return this._checkProposedApi(),this._core.registerCharacterJoiner(b)},D.prototype.deregisterCharacterJoiner=function(b){this._checkProposedApi(),this._core.deregisterCharacterJoiner(b)},D.prototype.registerMarker=function(b){return void 0===b&&(b=0),this._checkProposedApi(),this._verifyIntegers(b),this._core.addMarker(b)},D.prototype.registerDecoration=function(b){var S,k,M;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(S=b.x)&&void 0!==S?S:0,null!==(k=b.width)&&void 0!==k?k:0,null!==(M=b.height)&&void 0!==M?M:0),this._core.registerDecoration(b)},D.prototype.addMarker=function(b){return this.registerMarker(b)},D.prototype.hasSelection=function(){return this._core.hasSelection()},D.prototype.select=function(b,S,k){this._verifyIntegers(b,S,k),this._core.select(b,S,k)},D.prototype.getSelection=function(){return this._core.getSelection()},D.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},D.prototype.clearSelection=function(){this._core.clearSelection()},D.prototype.selectAll=function(){this._core.selectAll()},D.prototype.selectLines=function(b,S){this._verifyIntegers(b,S),this._core.selectLines(b,S)},D.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},D.prototype.scrollLines=function(b){this._verifyIntegers(b),this._core.scrollLines(b)},D.prototype.scrollPages=function(b){this._verifyIntegers(b),this._core.scrollPages(b)},D.prototype.scrollToTop=function(){this._core.scrollToTop()},D.prototype.scrollToBottom=function(){this._core.scrollToBottom()},D.prototype.scrollToLine=function(b){this._verifyIntegers(b),this._core.scrollToLine(b)},D.prototype.clear=function(){this._core.clear()},D.prototype.write=function(b,S){this._core.write(b,S)},D.prototype.writeUtf8=function(b,S){this._core.write(b,S)},D.prototype.writeln=function(b,S){this._core.write(b),this._core.write("\r\n",S)},D.prototype.paste=function(b){this._core.paste(b)},D.prototype.getOption=function(b){return this._core.optionsService.getOption(b)},D.prototype.setOption=function(b,S){this._checkReadonlyOptions(b),this._core.optionsService.setOption(b,S)},D.prototype.refresh=function(b,S){this._verifyIntegers(b,S),this._core.refresh(b,S)},D.prototype.reset=function(){this._core.reset()},D.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},D.prototype.loadAddon=function(b){return this._addonManager.loadAddon(this,b)},Object.defineProperty(D,"strings",{get:function(){return E},enumerable:!1,configurable:!0}),D.prototype._verifyIntegers=function(){for(var b,S,k=[],M=0;M<arguments.length;M++)k[M]=arguments[M];try{for(var N=I(k),F=N.next();!F.done;F=N.next()){var X=F.value;if(X===1/0||isNaN(X)||X%1!=0)throw new Error("This API only accepts integers")}}catch($){b={error:$}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(b)throw b.error}}},D.prototype._verifyPositiveIntegers=function(){for(var b,S,k=[],M=0;M<arguments.length;M++)k[M]=arguments[M];try{for(var N=I(k),F=N.next();!F.done;F=N.next()){var X=F.value;if(X&&(X===1/0||isNaN(X)||X%1!=0||X<0))throw new Error("This API only accepts positive integers")}}catch($){b={error:$}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(b)throw b.error}}},D}();A.Terminal=Z},1546:function(W,A,H){var P=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BaseRenderLayer=void 0;var I=H(643),T=H(8803),E=H(1420),j=H(3734),R=H(1752),v=H(8055),x=H(9631),w=H(8978),Z=function(){function D(b,S,k,M,N,F,X,$,V){this._container=b,this._alpha=M,this._colors=N,this._rendererId=F,this._bufferService=X,this._optionsService=$,this._decorationService=V,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+S+"-layer"),this._canvas.style.zIndex=k.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return D.prototype.dispose=function(){var b;(0,x.removeElementFromParent)(this._canvas),null===(b=this._charAtlas)||void 0===b||b.dispose()},D.prototype._initCanvas=function(){this._ctx=(0,R.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},D.prototype.onOptionsChanged=function(){},D.prototype.onBlur=function(){},D.prototype.onFocus=function(){},D.prototype.onCursorMove=function(){},D.prototype.onGridChanged=function(b,S){},D.prototype.onSelectionChanged=function(b,S,k){void 0===k&&(k=!1),this._selectionStart=b,this._selectionEnd=S,this._columnSelectMode=k},D.prototype.setColors=function(b){this._refreshCharAtlas(b)},D.prototype._setTransparency=function(b){if(b!==this._alpha){var S=this._canvas;this._alpha=b,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,S),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},D.prototype._refreshCharAtlas=function(b){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,E.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,b,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},D.prototype.resize=function(b){this._scaledCellWidth=b.scaledCellWidth,this._scaledCellHeight=b.scaledCellHeight,this._scaledCharWidth=b.scaledCharWidth,this._scaledCharHeight=b.scaledCharHeight,this._scaledCharLeft=b.scaledCharLeft,this._scaledCharTop=b.scaledCharTop,this._canvas.width=b.scaledCanvasWidth,this._canvas.height=b.scaledCanvasHeight,this._canvas.style.width=b.canvasWidth+"px",this._canvas.style.height=b.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},D.prototype.clearTextureAtlas=function(){var b;null===(b=this._charAtlas)||void 0===b||b.clear()},D.prototype._fillCells=function(b,S,k,M){this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight)},D.prototype._fillMiddleLineAtCells=function(b,S,k){void 0===k&&(k=1);var M=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(b*this._scaledCellWidth,(S+1)*this._scaledCellHeight-M-window.devicePixelRatio,k*this._scaledCellWidth,window.devicePixelRatio)},D.prototype._fillBottomLineAtCells=function(b,S,k){void 0===k&&(k=1),this._ctx.fillRect(b*this._scaledCellWidth,(S+1)*this._scaledCellHeight-window.devicePixelRatio-1,k*this._scaledCellWidth,window.devicePixelRatio)},D.prototype._fillLeftLineAtCell=function(b,S,k){this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,window.devicePixelRatio*k,this._scaledCellHeight)},D.prototype._strokeRectAtCell=function(b,S,k,M){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(b*this._scaledCellWidth+window.devicePixelRatio/2,S*this._scaledCellHeight+window.devicePixelRatio/2,k*this._scaledCellWidth-window.devicePixelRatio,M*this._scaledCellHeight-window.devicePixelRatio)},D.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},D.prototype._clearCells=function(b,S,k,M){this._alpha?this._ctx.clearRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(b*this._scaledCellWidth,S*this._scaledCellHeight,k*this._scaledCellWidth,M*this._scaledCellHeight))},D.prototype._fillCharTrueColor=function(b,S,k){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=T.TEXT_BASELINE,this._clipRow(k);var M=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(M=(0,w.tryDrawCustomChar)(this._ctx,b.getChars(),S*this._scaledCellWidth,k*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),M||this._ctx.fillText(b.getChars(),S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},D.prototype._drawChars=function(b,S,k){var M,N,F,X=this._getContrastColor(b,S,k);if(X||b.isFgRGB()||b.isBgRGB())this._drawUncachedChars(b,S,k,X);else{var $,V;b.isInverse()?($=b.isBgDefault()?T.INVERTED_DEFAULT_COLOR:b.getBgColor(),V=b.isFgDefault()?T.INVERTED_DEFAULT_COLOR:b.getFgColor()):(V=b.isBgDefault()?I.DEFAULT_COLOR:b.getBgColor(),$=b.isFgDefault()?I.DEFAULT_COLOR:b.getFgColor()),$+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&$<8?8:0,this._currentGlyphIdentifier.chars=b.getChars()||I.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=b.getCode()||I.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=V,this._currentGlyphIdentifier.fg=$,this._currentGlyphIdentifier.bold=!!b.isBold(),this._currentGlyphIdentifier.dim=!!b.isDim(),this._currentGlyphIdentifier.italic=!!b.isItalic();var Q=!1;try{for(var te=P(this._decorationService.getDecorationsAtCell(S,k)),be=te.next();!be.done;be=te.next()){var pe=be.value;if(pe.backgroundColorRGB||pe.foregroundColorRGB){Q=!0;break}}}catch(fe){M={error:fe}}finally{try{be&&!be.done&&(N=te.return)&&N.call(te)}finally{if(M)throw M.error}}!Q&&(null===(F=this._charAtlas)||void 0===F?void 0:F.draw(this._ctx,this._currentGlyphIdentifier,S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(b,S,k)}},D.prototype._drawUncachedChars=function(b,S,k,M){if(this._ctx.save(),this._ctx.font=this._getFont(!!b.isBold(),!!b.isItalic()),this._ctx.textBaseline=T.TEXT_BASELINE,b.isInverse())if(M)this._ctx.fillStyle=M.css;else if(b.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(b.isBgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(b.getBgColor()).join(",")+")";else{var N=b.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&N<8&&(N+=8),this._ctx.fillStyle=this._colors.ansi[N].css}else if(M)this._ctx.fillStyle=M.css;else if(b.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(b.isFgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(b.getFgColor()).join(",")+")";else{var F=b.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&b.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}this._clipRow(k),b.isDim()&&(this._ctx.globalAlpha=T.DIM_OPACITY);var X=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(X=(0,w.tryDrawCustomChar)(this._ctx,b.getChars(),S*this._scaledCellWidth,k*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(b.getChars(),S*this._scaledCellWidth+this._scaledCharLeft,k*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},D.prototype._clipRow=function(b){this._ctx.beginPath(),this._ctx.rect(0,b*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},D.prototype._getFont=function(b,S){return(S?"italic":"")+" "+(b?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},D.prototype._getContrastColor=function(b,S,k){var M,N,F,X,$=!1;try{for(var V=P(this._decorationService.getDecorationsAtCell(S,k)),Q=V.next();!Q.done;Q=V.next()){var te=Q.value;"top"!==te.options.layer&&$||(te.backgroundColorRGB&&(F=te.backgroundColorRGB.rgba),te.foregroundColorRGB&&(X=te.foregroundColorRGB.rgba),$="top"===te.options.layer)}}catch($t){M={error:$t}}finally{try{Q&&!Q.done&&(N=V.return)&&N.call(V)}finally{if(M)throw M.error}}if($||this._colors.selectionForeground&&this._isCellInSelection(S,k)&&(X=this._colors.selectionForeground.rgba),F||X||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,R.excludeFromContrastRatioDemands)(b.getCode())){if(!F&&!X){var be=this._colors.contrastCache.getColor(b.bg,b.fg);if(void 0!==be)return be||void 0}var pe=b.getFgColor(),fe=b.getFgColorMode(),ue=b.getBgColor(),de=b.getBgColorMode(),ge=!!b.isInverse(),je=!!b.isInverse();if(ge){var ot=pe;pe=ue,ue=ot;var St=fe;fe=de,de=St}var Tt=this._resolveBackgroundRgba(void 0!==F?50331648:de,null!=F?F:ue,ge),Dt=this._resolveForegroundRgba(fe,pe,ge,je),Rt=v.rgba.ensureContrastRatio(null!=F?F:Tt,null!=X?X:Dt,this._optionsService.rawOptions.minimumContrastRatio);if(!Rt){if(!X)return void this._colors.contrastCache.setColor(b.bg,b.fg,null);Rt=X}var Ze={css:v.channels.toCss(Rt>>24&255,Rt>>16&255,Rt>>8&255),rgba:Rt};return F||X||this._colors.contrastCache.setColor(b.bg,b.fg,Ze),Ze}},D.prototype._resolveBackgroundRgba=function(b,S,k){switch(b){case 16777216:case 33554432:return this._colors.ansi[S].rgba;case 50331648:return S<<8;default:return k?this._colors.foreground.rgba:this._colors.background.rgba}},D.prototype._resolveForegroundRgba=function(b,S,k,M){switch(b){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&M&&S<8&&(S+=8),this._colors.ansi[S].rgba;case 50331648:return S<<8;default:return k?this._colors.background.rgba:this._colors.foreground.rgba}},D.prototype._isCellInSelection=function(b,S){var k=this._selectionStart,M=this._selectionEnd;return!(!k||!M)&&(this._columnSelectMode?b>=k[0]&&S>=k[1]&&b<M[0]&&S<M[1]:S>k[1]&&S<M[1]||k[1]===M[1]&&S===k[1]&&b>=k[0]&&b<M[0]||k[1]<M[1]&&S===M[1]&&b<M[0]||k[1]<M[1]&&S===k[1]&&b>=k[0])},D}();A.BaseRenderLayer=Z},2512:function(W,A,H){var P,I=this&&this.__extends||(P=function(S,k){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}P(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorRenderLayer=void 0;var j=H(1546),R=H(511),v=H(2585),x=H(4725),w=600,Z=function(b){function S(k,M,N,F,X,$,V,Q,te,be){var pe=b.call(this,k,"cursor",M,!0,N,F,$,V,be)||this;return pe._onRequestRedraw=X,pe._coreService=Q,pe._coreBrowserService=te,pe._cell=new R.CellData,pe._state={x:0,y:0,isFocused:!1,style:"",width:0},pe._cursorRenderers={bar:pe._renderBarCursor.bind(pe),block:pe._renderBlockCursor.bind(pe),underline:pe._renderUnderlineCursor.bind(pe)},pe}return I(S,b),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),b.prototype.dispose.call(this)},S.prototype.resize=function(k){b.prototype.resize.call(this,k),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){var k;this._clearCursor(),null===(k=this._cursorBlinkStateManager)||void 0===k||k.restartBlinkAnimation(),this.onOptionsChanged()},S.prototype.onBlur=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var k,M=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new D(this._coreBrowserService.isFocused,function(){M._render(!0)})):(null===(k=this._cursorBlinkStateManager)||void 0===k||k.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){var k;null===(k=this._cursorBlinkStateManager)||void 0===k||k.restartBlinkAnimation()},S.prototype.onGridChanged=function(k,M){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(k){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var M=this._bufferService.buffer.ybase+this._bufferService.buffer.y,N=M-this._bufferService.buffer.ydisp;if(N<0||N>=this._bufferService.rows)this._clearCursor();else{var F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(M).loadCell(F,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var X=this._optionsService.rawOptions.cursorStyle;return X&&"block"!==X?this._cursorRenderers[X](F,N,this._cell):this._renderBlurCursor(F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=X,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===F&&this._state.y===N&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(k,M,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(k,M,N.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(N,k,M),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(k,M,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(k,M),this._ctx.restore()},S.prototype._renderBlurCursor=function(k,M,N){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(k,M,N.getWidth(),1),this._ctx.restore()},T([E(5,v.IBufferService),E(6,v.IOptionsService),E(7,v.ICoreService),E(8,x.ICoreBrowserService),E(9,v.IDecorationService)],S)}(j.BaseRenderLayer);A.CursorRenderLayer=Z;var D=function(){function b(S,k){this._renderCallback=k,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(b.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},b.prototype._restartInterval=function(S){var k=this;void 0===S&&(S=w),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(k._animationTimeRestarted){var M=w-(Date.now()-k._animationTimeRestarted);if(k._animationTimeRestarted=void 0,M>0)return void k._restartInterval(M)}k.isCursorVisible=!1,k._animationFrame=window.requestAnimationFrame(function(){k._renderCallback(),k._animationFrame=void 0}),k._blinkInterval=window.setInterval(function(){if(k._animationTimeRestarted){var N=w-(Date.now()-k._animationTimeRestarted);return k._animationTimeRestarted=void 0,void k._restartInterval(N)}k.isCursorVisible=!k.isCursorVisible,k._animationFrame=window.requestAnimationFrame(function(){k._renderCallback(),k._animationFrame=void 0})},w)},S)},b.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},b}()},8978:function(W,A,H){var P,I,T,E,j,R,v,x,w,Z,D,b,S,k,M,N,F,X,$,V,Q,te,be,pe,fe,ue,de,ge,je,ot,St,Tt,Dt,Rt,Ze,$t,Ft,pn,rt,Ot,_t,Ct,Ve,at,ht,Ut,Wt,U,B,qe,Be,le,t,Lt,zt,an,Qt,vn,Vt,Jt,Qe,Fe,ne,ye,he,Le,lt,ut,Nt,jt,sn,yn,ln,Sn,hn,mn,At,xt,tt,Et,We,Ye,Re,Je,vt,dn,Un,Kt,yt,et,gt,wt,nn,Hn,Wn,Vn,ir,Pr,yi,zi,Va,Ca,wa,ls,ta,Di,na,_o,Gn,vr,fi,ni,ws,ki,Yo,ri,So,so,xr,Vi,Eo,ca,ra,lo,da,Ya,uo,Ui,Ks=this&&this.__read||function(tn,en){var Dr="function"==typeof Symbol&&tn[Symbol.iterator];if(!Dr)return tn;var no,Ki,qo=Dr.call(tn),Ti=[];try{for(;(void 0===en||en-- >0)&&!(no=qo.next()).done;)Ti.push(no.value)}catch(ro){Ki={error:ro}}finally{try{no&&!no.done&&(Dr=qo.return)&&Dr.call(qo)}finally{if(Ki)throw Ki.error}}return Ti},ii=this&&this.__values||function(tn){var en="function"==typeof Symbol&&Symbol.iterator,Dr=en&&tn[en],no=0;if(Dr)return Dr.call(tn);if(tn&&"number"==typeof tn.length)return{next:function(){return tn&&no>=tn.length&&(tn=void 0),{value:tn&&tn[no++],done:!tn}}};throw new TypeError(en?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.tryDrawCustomChar=A.powerlineDefinitions=A.boxDrawingDefinitions=A.blockElementDefinitions=void 0;var Ko=H(1752);A.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var $u={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};A.boxDrawingDefinitions={"\u2500":(P={},P[1]="M0,.5 L1,.5",P),"\u2501":(I={},I[3]="M0,.5 L1,.5",I),"\u2502":(T={},T[1]="M.5,0 L.5,1",T),"\u2503":(E={},E[3]="M.5,0 L.5,1",E),"\u250c":(j={},j[1]="M0.5,1 L.5,.5 L1,.5",j),"\u250f":(R={},R[3]="M0.5,1 L.5,.5 L1,.5",R),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(x={},x[3]="M0,.5 L.5,.5 L.5,1",x),"\u2514":(w={},w[1]="M.5,0 L.5,.5 L1,.5",w),"\u2517":(Z={},Z[3]="M.5,0 L.5,.5 L1,.5",Z),"\u2518":(D={},D[1]="M.5,0 L.5,.5 L0,.5",D),"\u251b":(b={},b[3]="M.5,0 L.5,.5 L0,.5",b),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(k={},k[3]="M.5,0 L.5,1 M.5,.5 L1,.5",k),"\u2524":(M={},M[1]="M.5,0 L.5,1 M.5,.5 L0,.5",M),"\u252b":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L0,.5",N),"\u252c":(F={},F[1]="M0,.5 L1,.5 M.5,.5 L.5,1",F),"\u2533":(X={},X[3]="M0,.5 L1,.5 M.5,.5 L.5,1",X),"\u2534":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,0",$),"\u253b":(V={},V[3]="M0,.5 L1,.5 M.5,.5 L.5,0",V),"\u253c":(Q={},Q[1]="M0,.5 L1,.5 M.5,0 L.5,1",Q),"\u254b":(te={},te[3]="M0,.5 L1,.5 M.5,0 L.5,1",te),"\u2574":(be={},be[1]="M.5,.5 L0,.5",be),"\u2578":(pe={},pe[3]="M.5,.5 L0,.5",pe),"\u2575":(fe={},fe[1]="M.5,.5 L.5,0",fe),"\u2579":(ue={},ue[3]="M.5,.5 L.5,0",ue),"\u2576":(de={},de[1]="M.5,.5 L1,.5",de),"\u257a":(ge={},ge[3]="M.5,.5 L1,.5",ge),"\u2577":(je={},je[1]="M.5,.5 L.5,1",je),"\u257b":(ot={},ot[3]="M.5,.5 L.5,1",ot),"\u2550":(St={},St[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},St),"\u2551":(Tt={},Tt[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},Tt),"\u2552":(Dt={},Dt[1]=function(tn,en){return"M.5,1 L.5,"+(.5-en)+" L1,"+(.5-en)+" M.5,"+(.5+en)+" L1,"+(.5+en)},Dt),"\u2553":(Rt={},Rt[1]=function(tn,en){return"M"+(.5-tn)+",1 L"+(.5-tn)+",.5 L1,.5 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},Rt),"\u2554":(Ze={},Ze[1]=function(tn,en){return"M1,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1"},Ze),"\u2555":($t={},$t[1]=function(tn,en){return"M0,"+(.5-en)+" L.5,"+(.5-en)+" L.5,1 M0,"+(.5+en)+" L.5,"+(.5+en)},$t),"\u2556":(Ft={},Ft[1]=function(tn,en){return"M"+(.5+tn)+",1 L"+(.5+tn)+",.5 L0,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1"},Ft),"\u2557":(pn={},pn[1]=function(tn,en){return"M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M0,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",1"},pn),"\u2558":(rt={},rt[1]=function(tn,en){return"M.5,0 L.5,"+(.5+en)+" L1,"+(.5+en)+" M.5,"+(.5-en)+" L1,"+(.5-en)},rt),"\u2559":(Ot={},Ot[1]=function(tn,en){return"M1,.5 L"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},Ot),"\u255a":(_t={},_t[1]=function(tn,en){return"M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0 M1,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",0"},_t),"\u255b":(Ct={},Ct[1]=function(tn,en){return"M0,"+(.5+en)+" L.5,"+(.5+en)+" L.5,0 M0,"+(.5-en)+" L.5,"+(.5-en)},Ct),"\u255c":(Ve={},Ve[1]=function(tn,en){return"M0,.5 L"+(.5+tn)+",.5 L"+(.5+tn)+",0 M"+(.5-tn)+",.5 L"+(.5-tn)+",0"},Ve),"\u255d":(at={},at[1]=function(tn,en){return"M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M0,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",0"},at),"\u255e":(ht={},ht[1]=function(tn,en){return"M.5,0 L.5,1 M.5,"+(.5-en)+" L1,"+(.5-en)+" M.5,"+(.5+en)+" L1,"+(.5+en)},ht),"\u255f":(Ut={},Ut[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1 M"+(.5+tn)+",.5 L1,.5"},Ut),"\u2560":(Wt={},Wt[1]=function(tn,en){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},Wt),"\u2561":(U={},U[1]=function(tn,en){return"M.5,0 L.5,1 M0,"+(.5-en)+" L.5,"+(.5-en)+" M0,"+(.5+en)+" L.5,"+(.5+en)},U),"\u2562":(B={},B[1]=function(tn,en){return"M0,.5 L"+(.5-tn)+",.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},B),"\u2563":(qe={},qe[1]=function(tn,en){return"M"+(.5+tn)+",0 L"+(.5+tn)+",1 M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0"},qe),"\u2564":(Be={},Be[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)+" M.5,"+(.5+en)+" L.5,1"},Be),"\u2565":(le={},le[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},le),"\u2566":(t={},t[1]=function(tn,en){return"M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1"},t),"\u2567":(Lt={},Lt[1]=function(tn,en){return"M.5,0 L.5,"+(.5-en)+" M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},Lt),"\u2568":(zt={},zt[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},zt),"\u2569":(an={},an[1]=function(tn,en){return"M0,"+(.5+en)+" L1,"+(.5+en)+" M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},an),"\u256a":(Qt={},Qt[1]=function(tn,en){return"M.5,0 L.5,1 M0,"+(.5-en)+" L1,"+(.5-en)+" M0,"+(.5+en)+" L1,"+(.5+en)},Qt),"\u256b":(vn={},vn[1]=function(tn,en){return"M0,.5 L1,.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},vn),"\u256c":(Vt={},Vt[1]=function(tn,en){return"M0,"+(.5+en)+" L"+(.5-tn)+","+(.5+en)+" L"+(.5-tn)+",1 M1,"+(.5+en)+" L"+(.5+tn)+","+(.5+en)+" L"+(.5+tn)+",1 M0,"+(.5-en)+" L"+(.5-tn)+","+(.5-en)+" L"+(.5-tn)+",0 M1,"+(.5-en)+" L"+(.5+tn)+","+(.5-en)+" L"+(.5+tn)+",0"},Vt),"\u2571":(Jt={},Jt[1]="M1,0 L0,1",Jt),"\u2572":(Qe={},Qe[1]="M0,0 L1,1",Qe),"\u2573":(Fe={},Fe[1]="M1,0 L0,1 M0,0 L1,1",Fe),"\u257c":(ne={},ne[1]="M.5,.5 L0,.5",ne[3]="M.5,.5 L1,.5",ne),"\u257d":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L.5,1",ye),"\u257e":(he={},he[1]="M.5,.5 L1,.5",he[3]="M.5,.5 L0,.5",he),"\u257f":(Le={},Le[1]="M.5,.5 L.5,1",Le[3]="M.5,.5 L.5,0",Le),"\u250d":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,.5 L1,.5",lt),"\u250e":(ut={},ut[1]="M.5,.5 L1,.5",ut[3]="M.5,.5 L.5,1",ut),"\u2511":(Nt={},Nt[1]="M.5,.5 L.5,1",Nt[3]="M.5,.5 L0,.5",Nt),"\u2512":(jt={},jt[1]="M.5,.5 L0,.5",jt[3]="M.5,.5 L.5,1",jt),"\u2515":(sn={},sn[1]="M.5,.5 L.5,0",sn[3]="M.5,.5 L1,.5",sn),"\u2516":(yn={},yn[1]="M.5,.5 L1,.5",yn[3]="M.5,.5 L.5,0",yn),"\u2519":(ln={},ln[1]="M.5,.5 L.5,0",ln[3]="M.5,.5 L0,.5",ln),"\u251a":(Sn={},Sn[1]="M.5,.5 L0,.5",Sn[3]="M.5,.5 L.5,0",Sn),"\u251d":(hn={},hn[1]="M.5,0 L.5,1",hn[3]="M.5,.5 L1,.5",hn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(At={},At[1]="M.5,0 L.5,.5 L1,.5",At[3]="M.5,.5 L.5,1",At),"\u2520":(xt={},xt[1]="M.5,.5 L1,.5",xt[3]="M.5,0 L.5,1",xt),"\u2521":(tt={},tt[1]="M.5,.5 L.5,1",tt[3]="M.5,0 L.5,.5 L1,.5",tt),"\u2522":(Et={},Et[1]="M.5,.5 L.5,0",Et[3]="M0.5,1 L.5,.5 L1,.5",Et),"\u2525":(We={},We[1]="M.5,0 L.5,1",We[3]="M.5,.5 L0,.5",We),"\u2526":(Ye={},Ye[1]="M0,.5 L.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"\u2527":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"\u2528":(Je={},Je[1]="M.5,.5 L0,.5",Je[3]="M.5,0 L.5,1",Je),"\u2529":(vt={},vt[1]="M.5,.5 L.5,1",vt[3]="M.5,0 L.5,.5 L0,.5",vt),"\u252a":(dn={},dn[1]="M.5,.5 L.5,0",dn[3]="M0,.5 L.5,.5 L.5,1",dn),"\u252d":(Un={},Un[1]="M0.5,1 L.5,.5 L1,.5",Un[3]="M.5,.5 L0,.5",Un),"\u252e":(Kt={},Kt[1]="M0,.5 L.5,.5 L.5,1",Kt[3]="M.5,.5 L1,.5",Kt),"\u252f":(yt={},yt[1]="M.5,.5 L.5,1",yt[3]="M0,.5 L1,.5",yt),"\u2530":(et={},et[1]="M0,.5 L1,.5",et[3]="M.5,.5 L.5,1",et),"\u2531":(gt={},gt[1]="M.5,.5 L1,.5",gt[3]="M0,.5 L.5,.5 L.5,1",gt),"\u2532":(wt={},wt[1]="M.5,.5 L0,.5",wt[3]="M0.5,1 L.5,.5 L1,.5",wt),"\u2535":(nn={},nn[1]="M.5,0 L.5,.5 L1,.5",nn[3]="M.5,.5 L0,.5",nn),"\u2536":(Hn={},Hn[1]="M.5,0 L.5,.5 L0,.5",Hn[3]="M.5,.5 L1,.5",Hn),"\u2537":(Wn={},Wn[1]="M.5,.5 L.5,0",Wn[3]="M0,.5 L1,.5",Wn),"\u2538":(Vn={},Vn[1]="M0,.5 L1,.5",Vn[3]="M.5,.5 L.5,0",Vn),"\u2539":(ir={},ir[1]="M.5,.5 L1,.5",ir[3]="M.5,0 L.5,.5 L0,.5",ir),"\u253a":(Pr={},Pr[1]="M.5,.5 L0,.5",Pr[3]="M.5,0 L.5,.5 L1,.5",Pr),"\u253d":(yi={},yi[1]="M.5,0 L.5,1 M.5,.5 L1,.5",yi[3]="M.5,.5 L0,.5",yi),"\u253e":(zi={},zi[1]="M.5,0 L.5,1 M.5,.5 L0,.5",zi[3]="M.5,.5 L1,.5",zi),"\u253f":(Va={},Va[1]="M.5,0 L.5,1",Va[3]="M0,.5 L1,.5",Va),"\u2540":(Ca={},Ca[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ca[3]="M.5,.5 L.5,0",Ca),"\u2541":(wa={},wa[1]="M.5,.5 L.5,0 M0,.5 L1,.5",wa[3]="M.5,.5 L.5,1",wa),"\u2542":(ls={},ls[1]="M0,.5 L1,.5",ls[3]="M.5,0 L.5,1",ls),"\u2543":(ta={},ta[1]="M0.5,1 L.5,.5 L1,.5",ta[3]="M.5,0 L.5,.5 L0,.5",ta),"\u2544":(Di={},Di[1]="M0,.5 L.5,.5 L.5,1",Di[3]="M.5,0 L.5,.5 L1,.5",Di),"\u2545":(na={},na[1]="M.5,0 L.5,.5 L1,.5",na[3]="M0,.5 L.5,.5 L.5,1",na),"\u2546":(_o={},_o[1]="M.5,0 L.5,.5 L0,.5",_o[3]="M0.5,1 L.5,.5 L1,.5",_o),"\u2547":(Gn={},Gn[1]="M.5,.5 L.5,1",Gn[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Gn),"\u2548":(vr={},vr[1]="M.5,.5 L.5,0",vr[3]="M0,.5 L1,.5 M.5,.5 L.5,1",vr),"\u2549":(fi={},fi[1]="M.5,.5 L1,.5",fi[3]="M.5,0 L.5,1 M.5,.5 L0,.5",fi),"\u254a":(ni={},ni[1]="M.5,.5 L0,.5",ni[3]="M.5,0 L.5,1 M.5,.5 L1,.5",ni),"\u254c":(ws={},ws[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ws),"\u254d":(ki={},ki[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ki),"\u2504":(Yo={},Yo[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Yo),"\u2505":(ri={},ri[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ri),"\u2508":(So={},So[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",So),"\u2509":(so={},so[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",so),"\u254e":(xr={},xr[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",xr),"\u254f":(Vi={},Vi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Vi),"\u2506":(Eo={},Eo[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Eo),"\u2507":(ca={},ca[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ca),"\u250a":(ra={},ra[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",ra),"\u250b":(lo={},lo[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",lo),"\u256d":(da={},da[1]="C.5,1,.5,.5,1,.5",da),"\u256e":(Ya={},Ya[1]="C.5,1,.5,.5,0,.5",Ya),"\u256f":(uo={},uo[1]="C.5,0,.5,.5,0,.5",uo),"\u2570":(Ui={},Ui[1]="C.5,0,.5,.5,1,.5",Ui)},A.powerlineDefinitions={"\ue0b0":{d:"M0,0 L1,.5 L0,1",type:0},"\ue0b1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\ue0b2":{d:"M1,0 L0,.5 L1,1",type:0},"\ue0b3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},A.tryDrawCustomChar=function(tn,en,Dr,no,Ki,qo){var Ti=A.blockElementDefinitions[en];if(Ti)return function(Jr,Yn,An,cn,qi,Oi){for(var Ji=0;Ji<Yn.length;Ji++){var Ii=Yn[Ji],oi=qi/8,Mi=Oi/8;Jr.fillRect(An+Ii.x*oi,cn+Ii.y*Mi,Ii.w*oi,Ii.h*Mi)}}(tn,Ti,Dr,no,Ki,qo),!0;var ro=$u[en];if(ro)return function(Jr,Yn,An,cn,qi,Oi){var Ji,Ii=to.get(Yn);Ii||(Ii=new Map,to.set(Yn,Ii));var oi=Jr.fillStyle;if("string"!=typeof oi)throw new Error('Unexpected fillStyle type "'+oi+'"');var Mi=Ii.get(oi);if(!Mi){var Hi=Yn[0].length,hr=Yn.length,co=document.createElement("canvas");co.width=Hi,co.height=hr;var fa=(0,Ko.throwIfFalsy)(co.getContext("2d")),ka=new ImageData(Hi,hr),go=void 0,fo=void 0,ia=void 0,hl=void 0;if(oi.startsWith("#"))go=parseInt(oi.slice(1,3),16),fo=parseInt(oi.slice(3,5),16),ia=parseInt(oi.slice(5,7),16),hl=oi.length>7&&parseInt(oi.slice(7,9),16)||1;else{if(!oi.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+oi+'" when drawing pattern glyph');go=(Ji=Ks(oi.substring(5,oi.length-1).split(",").map(function(Jo){return parseFloat(Jo)}),4))[0],fo=Ji[1],ia=Ji[2],hl=Ji[3]}for(var Ka=0;Ka<hr;Ka++)for(var qa=0;qa<Hi;qa++)ka.data[4*(Ka*Hi+qa)]=go,ka.data[4*(Ka*Hi+qa)+1]=fo,ka.data[4*(Ka*Hi+qa)+2]=ia,ka.data[4*(Ka*Hi+qa)+3]=Yn[Ka][qa]*(255*hl);fa.putImageData(ka,0,0),Mi=(0,Ko.throwIfFalsy)(Jr.createPattern(co,null)),Ii.set(oi,Mi)}Jr.fillStyle=Mi,Jr.fillRect(An,cn,qi,Oi)}(tn,ro,Dr,no,Ki,qo),!0;var Rn=A.boxDrawingDefinitions[en];if(Rn)return function(Jr,Yn,An,cn,qi,Oi){var Ji,Ii,oi,Mi;Jr.strokeStyle=Jr.fillStyle;try{for(var Hi=ii(Object.entries(Yn)),hr=Hi.next();!hr.done;hr=Hi.next()){var co=Ks(hr.value,2),fa=co[0],ka=co[1];Jr.beginPath(),Jr.lineWidth=window.devicePixelRatio*Number.parseInt(fa);var go=void 0;go="function"==typeof ka?ka(.15,.15/Oi*qi):ka;try{for(var fo=(oi=void 0,ii(go.split(" "))),ia=fo.next();!ia.done;ia=fo.next()){var hl=ia.value,Ka=hl[0],qa=pu[Ka];if(qa){var Jo=hl.substring(1).split(",");Jo[0]&&Jo[1]&&qa(Jr,Yi(Jo,qi,Oi,An,cn))}else console.error('Could not find drawing instructions for "'+Ka+'"')}}catch(Qo){oi={error:Qo}}finally{try{ia&&!ia.done&&(Mi=fo.return)&&Mi.call(fo)}finally{if(oi)throw oi.error}}Jr.stroke(),Jr.closePath()}}catch(Qo){Ji={error:Qo}}finally{try{hr&&!hr.done&&(Ii=Hi.return)&&Ii.call(Hi)}finally{if(Ji)throw Ji.error}}}(tn,Rn,Dr,no,Ki,qo),!0;var hu=A.powerlineDefinitions[en];return!!hu&&(function(Jr,Yn,An,cn,qi,Oi){var Ji,Ii;Jr.beginPath(),Jr.lineWidth=window.devicePixelRatio;try{for(var oi=ii(Yn.d.split(" ")),Mi=oi.next();!Mi.done;Mi=oi.next()){var Hi=Mi.value,hr=Hi[0],co=pu[hr];if(co){var fa=Hi.substring(1).split(",");fa[0]&&fa[1]&&co(Jr,Yi(fa,qi,Oi,An,cn,Yn.horizontalPadding))}else console.error('Could not find drawing instructions for "'+hr+'"')}}catch(ka){Ji={error:ka}}finally{try{Mi&&!Mi.done&&(Ii=oi.return)&&Ii.call(oi)}finally{if(Ji)throw Ji.error}}1===Yn.type?(Jr.strokeStyle=Jr.fillStyle,Jr.stroke()):Jr.fill(),Jr.closePath()}(tn,hu,Dr,no,Ki,qo),!0)};var to=new Map;function Ai(tn,en,Dr){return void 0===Dr&&(Dr=0),Math.max(Math.min(tn,en),Dr)}var pu={C:function(en,Dr){return en.bezierCurveTo(Dr[0],Dr[1],Dr[2],Dr[3],Dr[4],Dr[5])},L:function(en,Dr){return en.lineTo(Dr[0],Dr[1])},M:function(en,Dr){return en.moveTo(Dr[0],Dr[1])}};function Yi(tn,en,Dr,no,Ki,qo){void 0===qo&&(qo=0);var Ti=tn.map(function(hu){return parseFloat(hu)||parseInt(hu)});if(Ti.length<2)throw new Error("Too few arguments for instruction");for(var ro=0;ro<Ti.length;ro+=2)Ti[ro]*=en-2*qo*window.devicePixelRatio,0!==Ti[ro]&&(Ti[ro]=Ai(Math.round(Ti[ro]+.5)-.5,en,0)),Ti[ro]+=no+qo*window.devicePixelRatio;for(var Rn=1;Rn<Ti.length;Rn+=2)Ti[Rn]*=Dr,0!==Ti[Rn]&&(Ti[Rn]=Ai(Math.round(Ti[Rn]+.5)-.5,Dr,0)),Ti[Rn]+=Ki;return Ti}},3700:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.GridCache=void 0;var H=function(){function P(){this.cache=[]}return P.prototype.resize=function(I,T){for(var E=0;E<I;E++){this.cache.length<=E&&this.cache.push([]);for(var j=this.cache[E].length;j<T;j++)this.cache[E].push(void 0);this.cache[E].length=T}this.cache.length=I},P.prototype.clear=function(){for(var I=0;I<this.cache.length;I++)for(var T=0;T<this.cache[I].length;T++)this.cache[I][T]=void 0},P}();A.GridCache=H},5098:function(W,A,H){var P,I=this&&this.__extends||(P=function(D,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}P(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.LinkRenderLayer=void 0;var j=H(1546),R=H(8803),v=H(2040),x=H(2585),w=function(Z){function D(b,S,k,M,N,F,X,$,V){var Q=Z.call(this,b,"link",S,!0,k,M,X,$,V)||this;return N.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),N.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),F.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),F.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),Q}return I(D,Z),D.prototype.resize=function(b){Z.prototype.resize.call(this,b),this._state=void 0},D.prototype.reset=function(){this._clearCurrentLink()},D.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var b=this._state.y2-this._state.y1-1;b>0&&this._clearCells(0,this._state.y1+1,this._state.cols,b),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},D.prototype._onShowLinkUnderline=function(b){if(b.fg===R.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:b.fg&&(0,v.is256Color)(b.fg)?this._ctx.fillStyle=this._colors.ansi[b.fg].css:this._ctx.fillStyle=this._colors.foreground.css,b.y1===b.y2)this._fillBottomLineAtCells(b.x1,b.y1,b.x2-b.x1);else{this._fillBottomLineAtCells(b.x1,b.y1,b.cols-b.x1);for(var S=b.y1+1;S<b.y2;S++)this._fillBottomLineAtCells(0,S,b.cols);this._fillBottomLineAtCells(0,b.y2,b.x2)}this._state=b},D.prototype._onHideLinkUnderline=function(b){this._clearCurrentLink()},T([E(6,x.IBufferService),E(7,x.IOptionsService),E(8,x.IDecorationService)],D)}(j.BaseRenderLayer);A.LinkRenderLayer=w},3525:function(W,A,H){var P,I=this&&this.__extends||(P=function(X,$){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,Q){V.__proto__=Q}||function(V,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(V[te]=Q[te])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}P(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)}),T=this&&this.__decorate||function(F,X,$,V){var Q,te=arguments.length,be=te<3?X:null===V?V=Object.getOwnPropertyDescriptor(X,$):V;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)be=Reflect.decorate(F,X,$,V);else for(var pe=F.length-1;pe>=0;pe--)(Q=F[pe])&&(be=(te<3?Q(be):te>3?Q(X,$,be):Q(X,$))||be);return te>3&&be&&Object.defineProperty(X,$,be),be},E=this&&this.__param||function(F,X){return function($,V){X($,V,F)}},j=this&&this.__values||function(F){var X="function"==typeof Symbol&&Symbol.iterator,$=X&&F[X],V=0;if($)return $.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&V>=F.length&&(F=void 0),{value:F&&F[V++],done:!F}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Renderer=void 0;var R=H(9596),v=H(4149),x=H(2512),w=H(5098),Z=H(844),D=H(4725),b=H(2585),S=H(1420),k=H(8460),M=1,N=function(F){function X($,V,Q,te,be,pe,fe,ue){var de=F.call(this)||this;de._colors=$,de._screenElement=V,de._bufferService=pe,de._charSizeService=fe,de._optionsService=ue,de._id=M++,de._onRequestRedraw=new k.EventEmitter;var ge=de._optionsService.rawOptions.allowTransparency;return de._renderLayers=[be.createInstance(R.TextRenderLayer,de._screenElement,0,de._colors,ge,de._id),be.createInstance(v.SelectionRenderLayer,de._screenElement,1,de._colors,de._id),be.createInstance(w.LinkRenderLayer,de._screenElement,2,de._colors,de._id,Q,te),be.createInstance(x.CursorRenderLayer,de._screenElement,3,de._colors,de._id,de._onRequestRedraw)],de.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},de._devicePixelRatio=window.devicePixelRatio,de._updateDimensions(),de.onOptionsChanged(),de}return I(X,F),Object.defineProperty(X.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),X.prototype.dispose=function(){var $,V;try{for(var Q=j(this._renderLayers),te=Q.next();!te.done;te=Q.next())te.value.dispose()}catch(be){$={error:be}}finally{try{te&&!te.done&&(V=Q.return)&&V.call(Q)}finally{if($)throw $.error}}F.prototype.dispose.call(this),(0,S.removeTerminalFromCache)(this._id)},X.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},X.prototype.setColors=function($){var V,Q;this._colors=$;try{for(var te=j(this._renderLayers),be=te.next();!be.done;be=te.next()){var pe=be.value;pe.setColors(this._colors),pe.reset()}}catch(fe){V={error:fe}}finally{try{be&&!be.done&&(Q=te.return)&&Q.call(te)}finally{if(V)throw V.error}}},X.prototype.onResize=function($,V){var Q,te;this._updateDimensions();try{for(var be=j(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.resize(this.dimensions)}catch(fe){Q={error:fe}}finally{try{pe&&!pe.done&&(te=be.return)&&te.call(be)}finally{if(Q)throw Q.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},X.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},X.prototype.onBlur=function(){this._runOperation(function($){return $.onBlur()})},X.prototype.onFocus=function(){this._runOperation(function($){return $.onFocus()})},X.prototype.onSelectionChanged=function($,V,Q){void 0===Q&&(Q=!1),this._runOperation(function(te){return te.onSelectionChanged($,V,Q)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},X.prototype.onCursorMove=function(){this._runOperation(function($){return $.onCursorMove()})},X.prototype.onOptionsChanged=function(){this._runOperation(function($){return $.onOptionsChanged()})},X.prototype.clear=function(){this._runOperation(function($){return $.reset()})},X.prototype._runOperation=function($){var V,Q;try{for(var te=j(this._renderLayers),be=te.next();!be.done;be=te.next())$(be.value)}catch(pe){V={error:pe}}finally{try{be&&!be.done&&(Q=te.return)&&Q.call(te)}finally{if(V)throw V.error}}},X.prototype.renderRows=function($,V){var Q,te;try{for(var be=j(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.onGridChanged($,V)}catch(fe){Q={error:fe}}finally{try{pe&&!pe.done&&(te=be.return)&&te.call(be)}finally{if(Q)throw Q.error}}},X.prototype.clearTextureAtlas=function(){var $,V;try{for(var Q=j(this._renderLayers),te=Q.next();!te.done;te=Q.next())te.value.clearTextureAtlas()}catch(be){$={error:be}}finally{try{te&&!te.done&&(V=Q.return)&&V.call(Q)}finally{if($)throw $.error}}},X.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},T([E(4,b.IInstantiationService),E(5,b.IBufferService),E(6,D.ICharSizeService),E(7,b.IOptionsService)],X)}(Z.Disposable);A.Renderer=N},1752:function(W,A){function H(P){return 57508<=P&&P<=57558}Object.defineProperty(A,"__esModule",{value:!0}),A.excludeFromContrastRatioDemands=A.isPowerlineGlyph=A.throwIfFalsy=void 0,A.throwIfFalsy=function(P){if(!P)throw new Error("value must not be falsy");return P},A.isPowerlineGlyph=H,A.excludeFromContrastRatioDemands=function(P){return H(P)||9472<=(I=P)&&I<=9631;var I}},4149:function(W,A,H){var P,I=this&&this.__extends||(P=function(w,Z){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,b){D.__proto__=b}||function(D,b){for(var S in b)Object.prototype.hasOwnProperty.call(b,S)&&(D[S]=b[S])})(w,Z)},function(x,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function Z(){this.constructor=x}P(x,w),x.prototype=null===w?Object.create(w):(Z.prototype=w.prototype,new Z)}),T=this&&this.__decorate||function(x,w,Z,D){var b,S=arguments.length,k=S<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,Z):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(x,w,Z,D);else for(var M=x.length-1;M>=0;M--)(b=x[M])&&(k=(S<3?b(k):S>3?b(w,Z,k):b(w,Z))||k);return S>3&&k&&Object.defineProperty(w,Z,k),k},E=this&&this.__param||function(x,w){return function(Z,D){w(Z,D,x)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionRenderLayer=void 0;var j=H(1546),R=H(2585),v=function(x){function w(Z,D,b,S,k,M,N){var F=x.call(this,Z,"selection",D,!0,b,S,k,M,N)||this;return F._clearState(),F}return I(w,x),w.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},w.prototype.resize=function(Z){x.prototype.resize.call(this,Z),this._clearState()},w.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},w.prototype.onSelectionChanged=function(Z,D,b){if(x.prototype.onSelectionChanged.call(this,Z,D,b),this._didStateChange(Z,D,b,this._bufferService.buffer.ydisp))if(this._clearAll(),Z&&D){var S=Z[1]-this._bufferService.buffer.ydisp,k=D[1]-this._bufferService.buffer.ydisp,M=Math.max(S,0),N=Math.min(k,this._bufferService.rows-1);if(M>=this._bufferService.rows||N<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,b){var F=Z[0],X=D[0]-F,$=N-M+1;this._fillCells(F,M,X,$)}else{F=S===M?Z[0]:0;var V=M===k?D[0]:this._bufferService.cols;this._fillCells(F,M,V-F,1);var Q=Math.max(N-M-1,0);if(this._fillCells(0,M+1,this._bufferService.cols,Q),M!==N){var te=k===N?D[0]:this._bufferService.cols;this._fillCells(0,N,te,1)}}this._state.start=[Z[0],Z[1]],this._state.end=[D[0],D[1]],this._state.columnSelectMode=b,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},w.prototype._didStateChange=function(Z,D,b,S){return!this._areCoordinatesEqual(Z,this._state.start)||!this._areCoordinatesEqual(D,this._state.end)||b!==this._state.columnSelectMode||S!==this._state.ydisp},w.prototype._areCoordinatesEqual=function(Z,D){return!(!Z||!D)&&Z[0]===D[0]&&Z[1]===D[1]},T([E(4,R.IBufferService),E(5,R.IOptionsService),E(6,R.IDecorationService)],w)}(j.BaseRenderLayer);A.SelectionRenderLayer=v},9596:function(W,A,H){var P,I=this&&this.__extends||(P=function(N,F){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,F)},function(M,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=M}P(M,N),M.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),T=this&&this.__decorate||function(M,N,F,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(M,N,F,X);else for(var te=M.length-1;te>=0;te--)($=M[te])&&(Q=(V<3?$(Q):V>3?$(N,F,Q):$(N,F))||Q);return V>3&&Q&&Object.defineProperty(N,F,Q),Q},E=this&&this.__param||function(M,N){return function(F,X){N(F,X,M)}},j=this&&this.__values||function(M){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&M[N],X=0;if(F)return F.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&X>=M.length&&(M=void 0),{value:M&&M[X++],done:!M}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.TextRenderLayer=void 0;var R=H(3700),v=H(1546),x=H(3734),w=H(643),Z=H(511),D=H(2585),b=H(4725),S=H(4269),k=function(M){function N(F,X,$,V,Q,te,be,pe,fe){var ue=M.call(this,F,"text",X,V,$,Q,te,be,fe)||this;return ue._characterJoinerService=pe,ue._characterWidth=0,ue._characterFont="",ue._characterOverlapCache={},ue._workCell=new Z.CellData,ue._state=new R.GridCache,ue}return I(N,M),N.prototype.resize=function(F){M.prototype.resize.call(this,F);var X=this._getFont(!1,!1);this._characterWidth===F.scaledCharWidth&&this._characterFont===X||(this._characterWidth=F.scaledCharWidth,this._characterFont=X,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},N.prototype.reset=function(){this._state.clear(),this._clearAll()},N.prototype._forEachCell=function(F,X,$){for(var V=F;V<=X;V++)for(var Q=V+this._bufferService.buffer.ydisp,te=this._bufferService.buffer.lines.get(Q),be=this._characterJoinerService.getJoinedCharacters(Q),pe=0;pe<this._bufferService.cols;pe++){te.loadCell(pe,this._workCell);var fe=this._workCell,ue=!1,de=pe;if(0!==fe.getWidth()){if(be.length>0&&pe===be[0][0]){ue=!0;var ge=be.shift();fe=new S.JoinedCellData(this._workCell,te.translateToString(!0,ge[0],ge[1]),ge[1]-ge[0]),de=ge[1]-1}!ue&&this._isOverlapping(fe)&&de<te.length-1&&te.getCodePoint(de+1)===w.NULL_CELL_CODE&&(fe.content&=-12582913,fe.content|=2<<22),$(fe,pe,V),pe=de}}},N.prototype._drawBackground=function(F,X){var $=this,V=this._ctx,Q=this._bufferService.cols,te=0,be=0,pe=null;V.save(),this._forEachCell(F,X,function(fe,ue,de){var ge,je,ot=null;fe.isInverse()?ot=fe.isFgDefault()?$._colors.foreground.css:fe.isFgRGB()?"rgb("+x.AttributeData.toColorRGB(fe.getFgColor()).join(",")+")":$._colors.ansi[fe.getFgColor()].css:fe.isBgRGB()?ot="rgb("+x.AttributeData.toColorRGB(fe.getBgColor()).join(",")+")":fe.isBgPalette()&&(ot=$._colors.ansi[fe.getBgColor()].css);var St=!1;try{for(var Tt=j($._decorationService.getDecorationsAtCell(ue,$._bufferService.buffer.ydisp+de)),Dt=Tt.next();!Dt.done;Dt=Tt.next()){var Rt=Dt.value;"top"!==Rt.options.layer&&St||(Rt.backgroundColorRGB&&(ot=Rt.backgroundColorRGB.css),St="top"===Rt.options.layer)}}catch(Ze){ge={error:Ze}}finally{try{Dt&&!Dt.done&&(je=Tt.return)&&je.call(Tt)}finally{if(ge)throw ge.error}}null===pe&&(te=ue,be=de),de!==be?(V.fillStyle=pe||"",$._fillCells(te,be,Q-te,1),te=ue,be=de):pe!==ot&&(V.fillStyle=pe||"",$._fillCells(te,be,ue-te,1),te=ue,be=de),pe=ot}),null!==pe&&(V.fillStyle=pe,this._fillCells(te,be,Q-te,1)),V.restore()},N.prototype._drawForeground=function(F,X){var $=this;this._forEachCell(F,X,function(V,Q,te){if(!V.isInvisible()&&($._drawChars(V,Q,te),V.isUnderline()||V.isStrikethrough())){if($._ctx.save(),V.isInverse())if(V.isBgDefault())$._ctx.fillStyle=$._colors.background.css;else if(V.isBgRGB())$._ctx.fillStyle="rgb("+x.AttributeData.toColorRGB(V.getBgColor()).join(",")+")";else{var be=V.getBgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&V.isBold()&&be<8&&(be+=8),$._ctx.fillStyle=$._colors.ansi[be].css}else if(V.isFgDefault())$._ctx.fillStyle=$._colors.foreground.css;else if(V.isFgRGB())$._ctx.fillStyle="rgb("+x.AttributeData.toColorRGB(V.getFgColor()).join(",")+")";else{var pe=V.getFgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&V.isBold()&&pe<8&&(pe+=8),$._ctx.fillStyle=$._colors.ansi[pe].css}V.isStrikethrough()&&$._fillMiddleLineAtCells(Q,te,V.getWidth()),V.isUnderline()&&$._fillBottomLineAtCells(Q,te,V.getWidth()),$._ctx.restore()}})},N.prototype.onGridChanged=function(F,X){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,F,this._bufferService.cols,X-F+1),this._drawBackground(F,X),this._drawForeground(F,X))},N.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},N.prototype._isOverlapping=function(F){if(1!==F.getWidth()||F.getCode()<256)return!1;var X=F.getChars();if(this._characterOverlapCache.hasOwnProperty(X))return this._characterOverlapCache[X];this._ctx.save(),this._ctx.font=this._characterFont;var $=Math.floor(this._ctx.measureText(X).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[X]=$,$},T([E(5,D.IBufferService),E(6,D.IOptionsService),E(7,b.ICharacterJoinerService),E(8,D.IDecorationService)],N)}(v.BaseRenderLayer);A.TextRenderLayer=k},9616:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.BaseCharAtlas=void 0;var H=function(){function P(){this._didWarmUp=!1}return P.prototype.dispose=function(){},P.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},P.prototype._doWarmUp=function(){},P.prototype.clear=function(){},P.prototype.beginFrame=function(){},P}();A.BaseCharAtlas=H},1420:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.removeTerminalFromCache=A.acquireCharAtlas=void 0;var P=H(2040),I=H(1906),T=[];A.acquireCharAtlas=function(E,j,R,v,x){for(var w=(0,P.generateConfig)(v,x,E,R),Z=0;Z<T.length;Z++){var D=(b=T[Z]).ownedBy.indexOf(j);if(D>=0){if((0,P.configEquals)(b.config,w))return b.atlas;1===b.ownedBy.length?(b.atlas.dispose(),T.splice(Z,1)):b.ownedBy.splice(D,1);break}}for(Z=0;Z<T.length;Z++){var b=T[Z];if((0,P.configEquals)(b.config,w))return b.ownedBy.push(j),b.atlas}var S={atlas:new I.DynamicCharAtlas(document,w),config:w,ownedBy:[j]};return T.push(S),S.atlas},A.removeTerminalFromCache=function(E){for(var j=0;j<T.length;j++){var R=T[j].ownedBy.indexOf(E);if(-1!==R){1===T[j].ownedBy.length?(T[j].atlas.dispose(),T.splice(j,1)):T[j].ownedBy.splice(R,1);break}}}},2040:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.is256Color=A.configEquals=A.generateConfig=void 0;var P=H(643);A.generateConfig=function(I,T,E,j){var R={foreground:j.foreground,background:j.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:j.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:I,scaledCharHeight:T,fontFamily:E.fontFamily,fontSize:E.fontSize,fontWeight:E.fontWeight,fontWeightBold:E.fontWeightBold,allowTransparency:E.allowTransparency,colors:R}},A.configEquals=function(I,T){for(var E=0;E<I.colors.ansi.length;E++)if(I.colors.ansi[E].rgba!==T.colors.ansi[E].rgba)return!1;return I.devicePixelRatio===T.devicePixelRatio&&I.fontFamily===T.fontFamily&&I.fontSize===T.fontSize&&I.fontWeight===T.fontWeight&&I.fontWeightBold===T.fontWeightBold&&I.allowTransparency===T.allowTransparency&&I.scaledCharWidth===T.scaledCharWidth&&I.scaledCharHeight===T.scaledCharHeight&&I.colors.foreground===T.colors.foreground&&I.colors.background===T.colors.background},A.is256Color=function(I){return I<P.DEFAULT_COLOR}},8803:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.CHAR_ATLAS_CELL_SPACING=A.TEXT_BASELINE=A.DIM_OPACITY=A.INVERTED_DEFAULT_COLOR=void 0;var P=H(6114);A.INVERTED_DEFAULT_COLOR=257,A.DIM_OPACITY=.5,A.TEXT_BASELINE=P.isFirefox||P.isLegacyEdge?"bottom":"ideographic",A.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,A,H){var P,I=this&&this.__extends||(P=function(X,$){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,Q){V.__proto__=Q}||function(V,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(V[te]=Q[te])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}P(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)});Object.defineProperty(A,"__esModule",{value:!0}),A.NoneCharAtlas=A.DynamicCharAtlas=A.getGlyphCacheKey=void 0;var T=H(8803),E=H(9616),j=H(5680),R=H(7001),v=H(6114),x=H(1752),w=H(8055),Z=1024,D=1024,b={css:"rgba(0, 0, 0, 0)",rgba:0};function S(F){return F.code<<21|F.bg<<12|F.fg<<3|(F.bold?0:4)+(F.dim?0:2)+(F.italic?0:1)}A.getGlyphCacheKey=S;var k=function(F){function X($,V){var Q=F.call(this)||this;Q._config=V,Q._drawToCacheCount=0,Q._glyphsWaitingOnBitmap=[],Q._bitmapCommitTimeout=null,Q._bitmap=null,Q._cacheCanvas=$.createElement("canvas"),Q._cacheCanvas.width=Z,Q._cacheCanvas.height=D,Q._cacheCtx=(0,x.throwIfFalsy)(Q._cacheCanvas.getContext("2d",{alpha:!0}));var te=$.createElement("canvas");te.width=Q._config.scaledCharWidth,te.height=Q._config.scaledCharHeight,Q._tmpCtx=(0,x.throwIfFalsy)(te.getContext("2d",{alpha:Q._config.allowTransparency})),Q._width=Math.floor(Z/Q._config.scaledCharWidth),Q._height=Math.floor(D/Q._config.scaledCharHeight);var be=Q._width*Q._height;return Q._cacheMap=new R.LRUMap(be),Q._cacheMap.prealloc(be),Q}return I(X,F),X.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},X.prototype.beginFrame=function(){this._drawToCacheCount=0},X.prototype.clear=function(){if(this._cacheMap.size>0){var $=this._width*this._height;this._cacheMap=new R.LRUMap($),this._cacheMap.prealloc($)}this._cacheCtx.clearRect(0,0,Z,D),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},X.prototype.draw=function($,V,Q,te){if(32===V.code)return!0;if(!this._canCache(V))return!1;var be=S(V),pe=this._cacheMap.get(be);if(null!=pe)return this._drawFromCache($,pe,Q,te),!0;if(this._drawToCacheCount<100){var fe;fe=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ue=this._drawToCache(V,fe);return this._cacheMap.set(be,ue),this._drawFromCache($,ue,Q,te),!0}return!1},X.prototype._canCache=function($){return $.code<256},X.prototype._toCoordinateX=function($){return $%this._width*this._config.scaledCharWidth},X.prototype._toCoordinateY=function($){return Math.floor($/this._width)*this._config.scaledCharHeight},X.prototype._drawFromCache=function($,V,Q,te){if(!V.isEmpty){var be=this._toCoordinateX(V.index),pe=this._toCoordinateY(V.index);$.drawImage(V.inBitmap?this._bitmap:this._cacheCanvas,be,pe,this._config.scaledCharWidth,this._config.scaledCharHeight,Q,te,this._config.scaledCharWidth,this._config.scaledCharHeight)}},X.prototype._getColorFromAnsiIndex=function($){return $<this._config.colors.ansi.length?this._config.colors.ansi[$]:j.DEFAULT_ANSI_COLORS[$]},X.prototype._getBackgroundColor=function($){return this._config.allowTransparency?b:$.bg===T.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:$.bg<256?this._getColorFromAnsiIndex($.bg):this._config.colors.background},X.prototype._getForegroundColor=function($){return $.fg===T.INVERTED_DEFAULT_COLOR?w.color.opaque(this._config.colors.background):$.fg<256?this._getColorFromAnsiIndex($.fg):this._config.colors.foreground},X.prototype._drawToCache=function($,V){this._drawToCacheCount++,this._tmpCtx.save();var Q=this._getBackgroundColor($);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=Q.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var te=$.bold?this._config.fontWeightBold:this._config.fontWeight,be=$.italic?"italic":"";this._tmpCtx.font=be+" "+te+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=T.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor($).css,$.dim&&(this._tmpCtx.globalAlpha=T.DIM_OPACITY),this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight);var pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),fe=!1;if(this._config.allowTransparency||(fe=N(pe,Q)),fe&&"_"===$.chars&&!this._config.allowTransparency)for(var ue=1;ue<=5&&(this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight-ue),fe=N(pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),Q));ue++);this._tmpCtx.restore();var de=this._toCoordinateX(V),ge=this._toCoordinateY(V);this._cacheCtx.putImageData(pe,de,ge);var je={index:V,isEmpty:fe,inBitmap:!1};return this._addGlyphToBitmap(je),je},X.prototype._addGlyphToBitmap=function($){var V=this;!("createImageBitmap"in window)||v.isFirefox||v.isSafari||(this._glyphsWaitingOnBitmap.push($),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return V._generateBitmap()},100)))},X.prototype._generateBitmap=function(){var $=this,V=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(Q){$._bitmap=Q;for(var te=0;te<V.length;te++)V[te].inBitmap=!0}),this._bitmapCommitTimeout=null},X}(E.BaseCharAtlas);A.DynamicCharAtlas=k;var M=function(F){function X($,V){return F.call(this)||this}return I(X,F),X.prototype.draw=function($,V,Q,te){return!1},X}(E.BaseCharAtlas);function N(F,X){for(var $=!0,V=X.rgba>>>24,Q=X.rgba>>>16&255,te=X.rgba>>>8&255,be=0;be<F.data.length;be+=4)F.data[be]===V&&F.data[be+1]===Q&&F.data[be+2]===te?F.data[be+3]=0:$=!1;return $}A.NoneCharAtlas=M},7001:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.LRUMap=void 0;var H=function(){function P(I){this.capacity=I,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return P.prototype._unlinkNode=function(I){var T=I.prev,E=I.next;I===this._head&&(this._head=E),I===this._tail&&(this._tail=T),null!==T&&(T.next=E),null!==E&&(E.prev=T)},P.prototype._appendNode=function(I){var T=this._tail;null!==T&&(T.next=I),I.prev=T,I.next=null,this._tail=I,null===this._head&&(this._head=I)},P.prototype.prealloc=function(I){for(var T=this._nodePool,E=0;E<I;E++)T.push({prev:null,next:null,key:null,value:null})},P.prototype.get=function(I){var T=this._map[I];return void 0!==T?(this._unlinkNode(T),this._appendNode(T),T.value):null},P.prototype.peekValue=function(I){var T=this._map[I];return void 0!==T?T.value:null},P.prototype.peek=function(){var I=this._head;return null===I?null:I.value},P.prototype.set=function(I,T){var E=this._map[I];if(void 0!==E)E=this._map[I],this._unlinkNode(E),E.value=T;else if(this.size>=this.capacity)E=this._head,this._unlinkNode(E),delete this._map[E.key],E.key=I,E.value=T,this._map[I]=E;else{var j=this._nodePool;j.length>0?((E=j.pop()).key=I,E.value=T):E={prev:null,next:null,key:I,value:T},this._map[I]=E,this.size++}this._appendNode(E)},P}();A.LRUMap=H},1296:function(W,A,H){var P,I=this&&this.__extends||(P=function(Q,te){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,pe){be.__proto__=pe}||function(be,pe){for(var fe in pe)Object.prototype.hasOwnProperty.call(pe,fe)&&(be[fe]=pe[fe])})(Q,te)},function(V,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function te(){this.constructor=V}P(V,Q),V.prototype=null===Q?Object.create(Q):(te.prototype=Q.prototype,new te)}),T=this&&this.__decorate||function(V,Q,te,be){var pe,fe=arguments.length,ue=fe<3?Q:null===be?be=Object.getOwnPropertyDescriptor(Q,te):be;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ue=Reflect.decorate(V,Q,te,be);else for(var de=V.length-1;de>=0;de--)(pe=V[de])&&(ue=(fe<3?pe(ue):fe>3?pe(Q,te,ue):pe(Q,te))||ue);return fe>3&&ue&&Object.defineProperty(Q,te,ue),ue},E=this&&this.__param||function(V,Q){return function(te,be){Q(te,be,V)}},j=this&&this.__values||function(V){var Q="function"==typeof Symbol&&Symbol.iterator,te=Q&&V[Q],be=0;if(te)return te.call(V);if(V&&"number"==typeof V.length)return{next:function(){return V&&be>=V.length&&(V=void 0),{value:V&&V[be++],done:!V}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRenderer=void 0;var R=H(3787),v=H(8803),x=H(844),w=H(4725),Z=H(2585),D=H(8460),b=H(8055),S=H(9631),k="xterm-dom-renderer-owner-",M="xterm-fg-",N="xterm-bg-",F="xterm-focus",X=1,$=function(V){function Q(te,be,pe,fe,ue,de,ge,je,ot,St){var Tt=V.call(this)||this;return Tt._colors=te,Tt._element=be,Tt._screenElement=pe,Tt._viewportElement=fe,Tt._linkifier=ue,Tt._linkifier2=de,Tt._charSizeService=je,Tt._optionsService=ot,Tt._bufferService=St,Tt._terminalClass=X++,Tt._rowElements=[],Tt._rowContainer=document.createElement("div"),Tt._rowContainer.classList.add("xterm-rows"),Tt._rowContainer.style.lineHeight="normal",Tt._rowContainer.setAttribute("aria-hidden","true"),Tt._refreshRowElements(Tt._bufferService.cols,Tt._bufferService.rows),Tt._selectionContainer=document.createElement("div"),Tt._selectionContainer.classList.add("xterm-selection"),Tt._selectionContainer.setAttribute("aria-hidden","true"),Tt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Tt._updateDimensions(),Tt._injectCss(),Tt._rowFactory=ge.createInstance(R.DomRendererRowFactory,document,Tt._colors),Tt._element.classList.add(k+Tt._terminalClass),Tt._screenElement.appendChild(Tt._rowContainer),Tt._screenElement.appendChild(Tt._selectionContainer),Tt.register(Tt._linkifier.onShowLinkUnderline(function(Dt){return Tt._onLinkHover(Dt)})),Tt.register(Tt._linkifier.onHideLinkUnderline(function(Dt){return Tt._onLinkLeave(Dt)})),Tt.register(Tt._linkifier2.onShowLinkUnderline(function(Dt){return Tt._onLinkHover(Dt)})),Tt.register(Tt._linkifier2.onHideLinkUnderline(function(Dt){return Tt._onLinkLeave(Dt)})),Tt}return I(Q,V),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return(new D.EventEmitter).event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._element.classList.remove(k+this._terminalClass),(0,S.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),V.prototype.dispose.call(this)},Q.prototype._updateDimensions=function(){var te,be;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var pe=j(this._rowElements),fe=pe.next();!fe.done;fe=pe.next()){var ue=fe.value;ue.style.width=this.dimensions.canvasWidth+"px",ue.style.height=this.dimensions.actualCellHeight+"px",ue.style.lineHeight=this.dimensions.actualCellHeight+"px",ue.style.overflow="hidden"}}catch(ge){te={error:ge}}finally{try{fe&&!fe.done&&(be=pe.return)&&be.call(pe)}finally{if(te)throw te.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var de=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=de,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},Q.prototype.setColors=function(te){this._colors=te,this._injectCss()},Q.prototype._injectCss=function(){var te=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var be=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";be+=this._terminalSelector+" span:not(."+R.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+R.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+R.ITALIC_CLASS+" { font-style: italic;}",be+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",be+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",be+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_BLINK_CLASS+":not(."+R.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_BLINK_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+R.CURSOR_CLASS+"."+R.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",be+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(pe,fe){be+=te._terminalSelector+" ."+M+fe+" { color: "+pe.css+"; }"+te._terminalSelector+" ."+N+fe+" { background-color: "+pe.css+"; }"}),be+=this._terminalSelector+" ."+M+v.INVERTED_DEFAULT_COLOR+" { color: "+b.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+N+v.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=be},Q.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},Q.prototype._refreshRowElements=function(te,be){for(var pe=this._rowElements.length;pe<=be;pe++){var fe=document.createElement("div");this._rowContainer.appendChild(fe),this._rowElements.push(fe)}for(;this._rowElements.length>be;)this._rowContainer.removeChild(this._rowElements.pop())},Q.prototype.onResize=function(te,be){this._refreshRowElements(te,be),this._updateDimensions()},Q.prototype.onCharSizeChanged=function(){this._updateDimensions()},Q.prototype.onBlur=function(){this._rowContainer.classList.remove(F)},Q.prototype.onFocus=function(){this._rowContainer.classList.add(F)},Q.prototype.onSelectionChanged=function(te,be,pe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(te,be,pe),this.renderRows(0,this._bufferService.rows-1),te&&be){var fe=te[1]-this._bufferService.buffer.ydisp,ue=be[1]-this._bufferService.buffer.ydisp,de=Math.max(fe,0),ge=Math.min(ue,this._bufferService.rows-1);if(!(de>=this._bufferService.rows||ge<0)){var je=document.createDocumentFragment();if(pe){var ot=te[0]>be[0];je.appendChild(this._createSelectionElement(de,ot?be[0]:te[0],ot?te[0]:be[0],ge-de+1))}else{var St=fe===de?te[0]:0,Tt=de===ue?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(de,St,Tt));var Dt=ge-de-1;if(je.appendChild(this._createSelectionElement(de+1,0,this._bufferService.cols,Dt)),de!==ge){var Rt=ue===ge?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(ge,0,Rt))}}this._selectionContainer.appendChild(je)}}},Q.prototype._createSelectionElement=function(te,be,pe,fe){void 0===fe&&(fe=1);var ue=document.createElement("div");return ue.style.height=fe*this.dimensions.actualCellHeight+"px",ue.style.top=te*this.dimensions.actualCellHeight+"px",ue.style.left=be*this.dimensions.actualCellWidth+"px",ue.style.width=this.dimensions.actualCellWidth*(pe-be)+"px",ue},Q.prototype.onCursorMove=function(){},Q.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},Q.prototype.clear=function(){var te,be;try{for(var pe=j(this._rowElements),fe=pe.next();!fe.done;fe=pe.next())fe.value.innerText=""}catch(ue){te={error:ue}}finally{try{fe&&!fe.done&&(be=pe.return)&&be.call(pe)}finally{if(te)throw te.error}}},Q.prototype.renderRows=function(te,be){for(var pe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,fe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ue=this._optionsService.rawOptions.cursorBlink,de=te;de<=be;de++){var ge=this._rowElements[de];ge.innerText="";var je=de+this._bufferService.buffer.ydisp,ot=this._bufferService.buffer.lines.get(je),St=this._optionsService.rawOptions.cursorStyle;ge.appendChild(this._rowFactory.createRow(ot,je,je===pe,St,fe,ue,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(Q.prototype,"_terminalSelector",{get:function(){return"."+k+this._terminalClass},enumerable:!1,configurable:!0}),Q.prototype._onLinkHover=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!0)},Q.prototype._onLinkLeave=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!1)},Q.prototype._setCellUnderline=function(te,be,pe,fe,ue,de){for(;te!==be||pe!==fe;){var ge=this._rowElements[pe];if(!ge)return;var je=ge.children[te];je&&(je.style.textDecoration=de?"underline":"none"),++te>=ue&&(te=0,pe++)}},T([E(6,Z.IInstantiationService),E(7,w.ICharSizeService),E(8,Z.IOptionsService),E(9,Z.IBufferService)],Q)}(x.Disposable);A.DomRenderer=$},3787:function(W,A,H){var P=this&&this.__decorate||function(k,M,N,F){var X,$=arguments.length,V=$<3?M:null===F?F=Object.getOwnPropertyDescriptor(M,N):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)V=Reflect.decorate(k,M,N,F);else for(var Q=k.length-1;Q>=0;Q--)(X=k[Q])&&(V=($<3?X(V):$>3?X(M,N,V):X(M,N))||V);return $>3&&V&&Object.defineProperty(M,N,V),V},I=this&&this.__param||function(k,M){return function(N,F){M(N,F,k)}},T=this&&this.__values||function(k){var M="function"==typeof Symbol&&Symbol.iterator,N=M&&k[M],F=0;if(N)return N.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&F>=k.length&&(k=void 0),{value:k&&k[F++],done:!k}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRendererRowFactory=A.CURSOR_STYLE_UNDERLINE_CLASS=A.CURSOR_STYLE_BAR_CLASS=A.CURSOR_STYLE_BLOCK_CLASS=A.CURSOR_BLINK_CLASS=A.CURSOR_CLASS=A.STRIKETHROUGH_CLASS=A.UNDERLINE_CLASS=A.ITALIC_CLASS=A.DIM_CLASS=A.BOLD_CLASS=void 0;var E=H(8803),j=H(643),R=H(511),v=H(2585),x=H(8055),w=H(4725),Z=H(4269),D=H(1752);A.BOLD_CLASS="xterm-bold",A.DIM_CLASS="xterm-dim",A.ITALIC_CLASS="xterm-italic",A.UNDERLINE_CLASS="xterm-underline",A.STRIKETHROUGH_CLASS="xterm-strikethrough",A.CURSOR_CLASS="xterm-cursor",A.CURSOR_BLINK_CLASS="xterm-cursor-blink",A.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",A.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",A.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var b=function(){function k(M,N,F,X,$,V){this._document=M,this._colors=N,this._characterJoinerService=F,this._optionsService=X,this._coreService=$,this._decorationService=V,this._workCell=new R.CellData,this._columnSelectMode=!1}return k.prototype.setColors=function(M){this._colors=M},k.prototype.onSelectionChanged=function(M,N,F){this._selectionStart=M,this._selectionEnd=N,this._columnSelectMode=F},k.prototype.createRow=function(M,N,F,X,$,V,Q,te){for(var be,pe,fe=this._document.createDocumentFragment(),ue=this._characterJoinerService.getJoinedCharacters(N),de=0,ge=Math.min(M.length,te)-1;ge>=0;ge--)if(M.loadCell(ge,this._workCell).getCode()!==j.NULL_CELL_CODE||F&&ge===$){de=ge+1;break}for(ge=0;ge<de;ge++){M.loadCell(ge,this._workCell);var je=this._workCell.getWidth();if(0!==je){var ot=!1,St=ge,Tt=this._workCell;if(ue.length>0&&ge===ue[0][0]){ot=!0;var Dt=ue.shift();Tt=new Z.JoinedCellData(this._workCell,M.translateToString(!0,Dt[0],Dt[1]),Dt[1]-Dt[0]),St=Dt[1]-1,je=Tt.getWidth()}var Rt=this._document.createElement("span");if(je>1&&(Rt.style.width=Q*je+"px"),ot&&(Rt.style.display="inline",$>=ge&&$<=St&&($=ge)),!this._coreService.isCursorHidden&&F&&ge===$)switch(Rt.classList.add(A.CURSOR_CLASS),V&&Rt.classList.add(A.CURSOR_BLINK_CLASS),X){case"bar":Rt.classList.add(A.CURSOR_STYLE_BAR_CLASS);break;case"underline":Rt.classList.add(A.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Rt.classList.add(A.CURSOR_STYLE_BLOCK_CLASS)}Tt.isBold()&&Rt.classList.add(A.BOLD_CLASS),Tt.isItalic()&&Rt.classList.add(A.ITALIC_CLASS),Tt.isDim()&&Rt.classList.add(A.DIM_CLASS),Tt.isUnderline()&&Rt.classList.add(A.UNDERLINE_CLASS),Tt.isInvisible()?Rt.textContent=j.WHITESPACE_CELL_CHAR:Rt.textContent=Tt.getChars()||j.WHITESPACE_CELL_CHAR,Tt.isStrikethrough()&&Rt.classList.add(A.STRIKETHROUGH_CLASS);var Ze=Tt.getFgColor(),$t=Tt.getFgColorMode(),Ft=Tt.getBgColor(),pn=Tt.getBgColorMode(),rt=!!Tt.isInverse();if(rt){var Ot=Ze;Ze=Ft,Ft=Ot;var _t=$t;$t=pn,pn=_t}var Ct=void 0,Ve=void 0,at=!1;try{for(var ht=(be=void 0,T(this._decorationService.getDecorationsAtCell(ge,N))),Ut=ht.next();!Ut.done;Ut=ht.next()){var Wt=Ut.value;"top"!==Wt.options.layer&&at||(Wt.backgroundColorRGB&&(pn=50331648,Ft=Wt.backgroundColorRGB.rgba>>8&16777215,Ct=Wt.backgroundColorRGB),Wt.foregroundColorRGB&&($t=50331648,Ze=Wt.foregroundColorRGB.rgba>>8&16777215,Ve=Wt.foregroundColorRGB),at="top"===Wt.options.layer)}}catch(Be){be={error:Be}}finally{try{Ut&&!Ut.done&&(pe=ht.return)&&pe.call(ht)}finally{if(be)throw be.error}}var U=this._isCellInSelection(ge,N);at||this._colors.selectionForeground&&U&&($t=50331648,Ze=this._colors.selectionForeground.rgba>>8&16777215,Ve=this._colors.selectionForeground),U&&(Ct=this._colors.selectionOpaque,at=!0),at&&Rt.classList.add("xterm-decoration-top");var B=void 0;switch(pn){case 16777216:case 33554432:B=this._colors.ansi[Ft],Rt.classList.add("xterm-bg-"+Ft);break;case 50331648:B=x.rgba.toColor(Ft>>16,Ft>>8&255,255&Ft),this._addStyle(Rt,"background-color:#"+S((Ft>>>0).toString(16),"0",6));break;default:rt?(B=this._colors.foreground,Rt.classList.add("xterm-bg-"+E.INVERTED_DEFAULT_COLOR)):B=this._colors.background}switch($t){case 16777216:case 33554432:Tt.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(Rt,B,this._colors.ansi[Ze],Tt,Ct,void 0)||Rt.classList.add("xterm-fg-"+Ze);break;case 50331648:var qe=x.rgba.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(Rt,B,qe,Tt,Ct,Ve)||this._addStyle(Rt,"color:#"+S(Ze.toString(16),"0",6));break;default:this._applyMinimumContrast(Rt,B,this._colors.foreground,Tt,Ct,void 0)||rt&&Rt.classList.add("xterm-fg-"+E.INVERTED_DEFAULT_COLOR)}fe.appendChild(Rt),ge=St}}return fe},k.prototype._applyMinimumContrast=function(M,N,F,X,$,V){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,D.excludeFromContrastRatioDemands)(X.getCode()))return!1;var Q=void 0;return $||V||(Q=this._colors.contrastCache.getColor(N.rgba,F.rgba)),void 0===Q&&(Q=x.color.ensureContrastRatio($||N,V||F,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(($||N).rgba,(V||F).rgba,null!=Q?Q:null)),!!Q&&(this._addStyle(M,"color:"+Q.css),!0)},k.prototype._addStyle=function(M,N){M.setAttribute("style",""+(M.getAttribute("style")||"")+N+";")},k.prototype._isCellInSelection=function(M,N){var F=this._selectionStart,X=this._selectionEnd;return!(!F||!X)&&(this._columnSelectMode?F[0]<=X[0]?M>=F[0]&&N>=F[1]&&M<X[0]&&N<=X[1]:M<F[0]&&N>=F[1]&&M>=X[0]&&N<=X[1]:N>F[1]&&N<X[1]||F[1]===X[1]&&N===F[1]&&M>=F[0]&&M<X[0]||F[1]<X[1]&&N===X[1]&&M<X[0]||F[1]<X[1]&&N===F[1]&&M>=F[0])},P([I(2,w.ICharacterJoinerService),I(3,v.IOptionsService),I(4,v.ICoreService),I(5,v.IDecorationService)],k)}();function S(k,M,N){for(;k.length<N;)k=M+k;return k}A.DomRendererRowFactory=b},456:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionModel=void 0;var H=function(){function P(I){this._bufferService=I,this.isSelectAllActive=!1,this.selectionStartLength=0}return P.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(P.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(T=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?T%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)-1]:[T%this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)]:[T,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(T=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[T%this._bufferService.cols,this.selectionStart[1]+Math.floor(T/this._bufferService.cols)]:[Math.max(T,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var T},enumerable:!1,configurable:!0}),P.prototype.areSelectionValuesReversed=function(){var I=this.selectionStart,T=this.selectionEnd;return!(!I||!T)&&(I[1]>T[1]||I[1]===T[1]&&I[0]>T[0])},P.prototype.onTrim=function(I){return this.selectionStart&&(this.selectionStart[1]-=I),this.selectionEnd&&(this.selectionEnd[1]-=I),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},P}();A.SelectionModel=H},428:function(W,A,H){var P=this&&this.__decorate||function(v,x,w,Z){var D,b=arguments.length,S=b<3?x:null===Z?Z=Object.getOwnPropertyDescriptor(x,w):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(v,x,w,Z);else for(var k=v.length-1;k>=0;k--)(D=v[k])&&(S=(b<3?D(S):b>3?D(x,w,S):D(x,w))||S);return b>3&&S&&Object.defineProperty(x,w,S),S},I=this&&this.__param||function(v,x){return function(w,Z){x(w,Z,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharSizeService=void 0;var T=H(2585),E=H(8460),j=function(){function v(x,w,Z){this._optionsService=Z,this.width=0,this.height=0,this._onCharSizeChange=new E.EventEmitter,this._measureStrategy=new R(x,w,this._optionsService)}return Object.defineProperty(v.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),v.prototype.measure=function(){var x=this._measureStrategy.measure();x.width===this.width&&x.height===this.height||(this.width=x.width,this.height=x.height,this._onCharSizeChange.fire())},P([I(2,T.IOptionsService)],v)}();A.CharSizeService=j;var R=function(){function v(x,w,Z){this._document=x,this._parentElement=w,this._optionsService=Z,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return v.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var x=this._measureElement.getBoundingClientRect();return 0!==x.width&&0!==x.height&&(this._result.width=x.width,this._result.height=Math.ceil(x.height)),this._result},v}()},4269:function(W,A,H){var P,I=this&&this.__extends||(P=function(b,S){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}P(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},E=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharacterJoinerService=A.JoinedCellData=void 0;var j=H(3734),R=H(643),v=H(511),x=H(2585),w=function(D){function b(S,k,M){var N=D.call(this)||this;return N.content=0,N.combinedData="",N.fg=S.fg,N.bg=S.bg,N.combinedData=k,N._width=M,N}return I(b,D),b.prototype.isCombined=function(){return 2097152},b.prototype.getWidth=function(){return this._width},b.prototype.getChars=function(){return this.combinedData},b.prototype.getCode=function(){return 2097151},b.prototype.setFromCharData=function(S){throw new Error("not implemented")},b.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},b}(j.AttributeData);A.JoinedCellData=w;var Z=function(){function D(b){this._bufferService=b,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return D.prototype.register=function(b){var S={id:this._nextCharacterJoinerId++,handler:b};return this._characterJoiners.push(S),S.id},D.prototype.deregister=function(b){for(var S=0;S<this._characterJoiners.length;S++)if(this._characterJoiners[S].id===b)return this._characterJoiners.splice(S,1),!0;return!1},D.prototype.getJoinedCharacters=function(b){if(0===this._characterJoiners.length)return[];var S=this._bufferService.buffer.lines.get(b);if(!S||0===S.length)return[];for(var k=[],M=S.translateToString(!0),N=0,F=0,X=0,$=S.getFg(0),V=S.getBg(0),Q=0;Q<S.getTrimmedLength();Q++)if(S.loadCell(Q,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==$||this._workCell.bg!==V){if(Q-N>1)for(var te=this._getJoinedRanges(M,X,F,S,N),be=0;be<te.length;be++)k.push(te[be]);N=Q,X=F,$=this._workCell.fg,V=this._workCell.bg}F+=this._workCell.getChars().length||R.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-N>1)for(te=this._getJoinedRanges(M,X,F,S,N),be=0;be<te.length;be++)k.push(te[be]);return k},D.prototype._getJoinedRanges=function(b,S,k,M,N){var F=b.substring(S,k),X=[];try{X=this._characterJoiners[0].handler(F)}catch(te){console.error(te)}for(var $=1;$<this._characterJoiners.length;$++)try{for(var V=this._characterJoiners[$].handler(F),Q=0;Q<V.length;Q++)D._mergeRanges(X,V[Q])}catch(te){console.error(te)}return this._stringRangesToCellRanges(X,M,N),X},D.prototype._stringRangesToCellRanges=function(b,S,k){var M=0,N=!1,F=0,X=b[M];if(X){for(var $=k;$<this._bufferService.cols;$++){var V=S.getWidth($),Q=S.getString($).length||R.WHITESPACE_CELL_CHAR.length;if(0!==V){if(!N&&X[0]<=F&&(X[0]=$,N=!0),X[1]<=F){if(X[1]=$,!(X=b[++M]))break;X[0]<=F?(X[0]=$,N=!0):N=!1}F+=Q}}X&&(X[1]=this._bufferService.cols)}},D._mergeRanges=function(b,S){for(var k=!1,M=0;M<b.length;M++){var N=b[M];if(k){if(S[1]<=N[0])return b[M-1][1]=S[1],b;if(S[1]<=N[1])return b[M-1][1]=Math.max(S[1],N[1]),b.splice(M,1),b;b.splice(M,1),M--}else{if(S[1]<=N[0])return b.splice(M,0,S),b;if(S[1]<=N[1])return N[0]=Math.min(S[0],N[0]),b;S[0]<N[1]&&(N[0]=Math.min(S[0],N[0]),k=!0)}}return k?b[b.length-1][1]=S[1]:b.push(S),b},D=T([E(0,x.IBufferService)],D)}();A.CharacterJoinerService=Z},5114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CoreBrowserService=void 0;var H=function(){function P(I){this._textarea=I}return Object.defineProperty(P.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),P}();A.CoreBrowserService=H},8934:function(W,A,H){var P=this&&this.__decorate||function(R,v,x,w){var Z,D=arguments.length,b=D<3?v:null===w?w=Object.getOwnPropertyDescriptor(v,x):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(R,v,x,w);else for(var S=R.length-1;S>=0;S--)(Z=R[S])&&(b=(D<3?Z(b):D>3?Z(v,x,b):Z(v,x))||b);return D>3&&b&&Object.defineProperty(v,x,b),b},I=this&&this.__param||function(R,v){return function(x,w){v(x,w,R)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseService=void 0;var T=H(4725),E=H(9806),j=function(){function R(v,x){this._renderService=v,this._charSizeService=x}return R.prototype.getCoords=function(v,x,w,Z,D){return(0,E.getCoords)(window,v,x,w,Z,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,D)},R.prototype.getRawByteCoords=function(v,x,w,Z){var D=this.getCoords(v,x,w,Z);return(0,E.getRawByteCoords)(D)},P([I(0,T.IRenderService),I(1,T.ICharSizeService)],R)}();A.MouseService=j},3230:function(W,A,H){var P,I=this&&this.__extends||(P=function(k,M){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,F){N.__proto__=F}||function(N,F){for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&(N[X]=F[X])})(k,M)},function(S,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function M(){this.constructor=S}P(S,k),S.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)}),T=this&&this.__decorate||function(S,k,M,N){var F,X=arguments.length,$=X<3?k:null===N?N=Object.getOwnPropertyDescriptor(k,M):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(S,k,M,N);else for(var V=S.length-1;V>=0;V--)(F=S[V])&&($=(X<3?F($):X>3?F(k,M,$):F(k,M))||$);return X>3&&$&&Object.defineProperty(k,M,$),$},E=this&&this.__param||function(S,k){return function(M,N){k(M,N,S)}};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderService=void 0;var j=H(6193),R=H(8460),v=H(844),x=H(5596),w=H(3656),Z=H(2585),D=H(4725),b=function(S){function k(M,N,F,X,$,V,Q){var te=S.call(this)||this;if(te._renderer=M,te._rowCount=N,te._charSizeService=$,te._isPaused=!1,te._needsFullRefresh=!1,te._isNextRenderRedrawOnly=!0,te._needsSelectionRefresh=!1,te._canvasWidth=0,te._canvasHeight=0,te._selectionState={start:void 0,end:void 0,columnSelectMode:!1},te._onDimensionsChange=new R.EventEmitter,te._onRenderedViewportChange=new R.EventEmitter,te._onRender=new R.EventEmitter,te._onRefreshRequest=new R.EventEmitter,te.register({dispose:function(){return te._renderer.dispose()}}),te._renderDebouncer=new j.RenderDebouncer(function(pe,fe){return te._renderRows(pe,fe)}),te.register(te._renderDebouncer),te._screenDprMonitor=new x.ScreenDprMonitor,te._screenDprMonitor.setListener(function(){return te.onDevicePixelRatioChange()}),te.register(te._screenDprMonitor),te.register(Q.onResize(function(){return te._fullRefresh()})),te.register(Q.buffers.onBufferActivate(function(){var pe;return null===(pe=te._renderer)||void 0===pe?void 0:pe.clear()})),te.register(X.onOptionChange(function(){return te._handleOptionsChanged()})),te.register(te._charSizeService.onCharSizeChange(function(){return te.onCharSizeChanged()})),te.register(V.onDecorationRegistered(function(){return te._fullRefresh()})),te.register(V.onDecorationRemoved(function(){return te._fullRefresh()})),te._renderer.onRequestRedraw(function(pe){return te.refreshRows(pe.start,pe.end,!0)}),te.register((0,w.addDisposableDomListener)(window,"resize",function(){return te.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var be=new IntersectionObserver(function(pe){return te._onIntersectionChange(pe[pe.length-1])},{threshold:0});be.observe(F),te.register({dispose:function(){return be.disconnect()}})}return te}return I(k,S),Object.defineProperty(k.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),k.prototype._onIntersectionChange=function(M){this._isPaused=void 0===M.isIntersecting?0===M.intersectionRatio:!M.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},k.prototype.refreshRows=function(M,N,F){void 0===F&&(F=!1),this._isPaused?this._needsFullRefresh=!0:(F||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(M,N,this._rowCount))},k.prototype._renderRows=function(M,N){this._renderer.renderRows(M,N),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:M,end:N}),this._onRender.fire({start:M,end:N}),this._isNextRenderRedrawOnly=!0},k.prototype.resize=function(M,N){this._rowCount=N,this._fireOnCanvasResize()},k.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},k.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},k.prototype.dispose=function(){S.prototype.dispose.call(this)},k.prototype.setRenderer=function(M){var N=this;this._renderer.dispose(),this._renderer=M,this._renderer.onRequestRedraw(function(F){return N.refreshRows(F.start,F.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},k.prototype.addRefreshCallback=function(M){return this._renderDebouncer.addRefreshCallback(M)},k.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},k.prototype.clearTextureAtlas=function(){var M,N;null===(N=null===(M=this._renderer)||void 0===M?void 0:M.clearTextureAtlas)||void 0===N||N.call(M),this._fullRefresh()},k.prototype.setColors=function(M){this._renderer.setColors(M),this._fullRefresh()},k.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},k.prototype.onResize=function(M,N){this._renderer.onResize(M,N),this._fullRefresh()},k.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},k.prototype.onBlur=function(){this._renderer.onBlur()},k.prototype.onFocus=function(){this._renderer.onFocus()},k.prototype.onSelectionChanged=function(M,N,F){this._selectionState.start=M,this._selectionState.end=N,this._selectionState.columnSelectMode=F,this._renderer.onSelectionChanged(M,N,F)},k.prototype.onCursorMove=function(){this._renderer.onCursorMove()},k.prototype.clear=function(){this._renderer.clear()},T([E(3,Z.IOptionsService),E(4,D.ICharSizeService),E(5,Z.IDecorationService),E(6,Z.IBufferService)],k)}(v.Disposable);A.RenderService=b},9312:function(W,A,H){var P,I=this&&this.__extends||(P=function($,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,te){Q.__proto__=te}||function(Q,te){for(var be in te)Object.prototype.hasOwnProperty.call(te,be)&&(Q[be]=te[be])})($,V)},function(X,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function V(){this.constructor=X}P(X,$),X.prototype=null===$?Object.create($):(V.prototype=$.prototype,new V)}),T=this&&this.__decorate||function(X,$,V,Q){var te,be=arguments.length,pe=be<3?$:null===Q?Q=Object.getOwnPropertyDescriptor($,V):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)pe=Reflect.decorate(X,$,V,Q);else for(var fe=X.length-1;fe>=0;fe--)(te=X[fe])&&(pe=(be<3?te(pe):be>3?te($,V,pe):te($,V))||pe);return be>3&&pe&&Object.defineProperty($,V,pe),pe},E=this&&this.__param||function(X,$){return function(V,Q){$(V,Q,X)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionService=void 0;var j=H(6114),R=H(456),v=H(511),x=H(8460),w=H(4725),Z=H(2585),D=H(9806),b=H(9504),S=H(844),k=H(4841),M=String.fromCharCode(160),N=new RegExp(M,"g"),F=function(X){function $(V,Q,te,be,pe,fe,ue,de){var ge=X.call(this)||this;return ge._element=V,ge._screenElement=Q,ge._linkifier=te,ge._bufferService=be,ge._coreService=pe,ge._mouseService=fe,ge._optionsService=ue,ge._renderService=de,ge._dragScrollAmount=0,ge._enabled=!0,ge._workCell=new v.CellData,ge._mouseDownTimeStamp=0,ge._oldHasSelection=!1,ge._oldSelectionStart=void 0,ge._oldSelectionEnd=void 0,ge._onLinuxMouseSelection=ge.register(new x.EventEmitter),ge._onRedrawRequest=ge.register(new x.EventEmitter),ge._onSelectionChange=ge.register(new x.EventEmitter),ge._onRequestScrollLines=ge.register(new x.EventEmitter),ge._mouseMoveListener=function(je){return ge._onMouseMove(je)},ge._mouseUpListener=function(je){return ge._onMouseUp(je)},ge._coreService.onUserInput(function(){ge.hasSelection&&ge.clearSelection()}),ge._trimListener=ge._bufferService.buffer.lines.onTrim(function(je){return ge._onTrim(je)}),ge.register(ge._bufferService.buffers.onBufferActivate(function(je){return ge._onBufferActivate(je)})),ge.enable(),ge._model=new R.SelectionModel(ge._bufferService),ge._activeSelectionMode=0,ge}return I($,X),Object.defineProperty($.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){this._removeMouseDownListeners()},$.prototype.reset=function(){this.clearSelection()},$.prototype.disable=function(){this.clearSelection(),this._enabled=!1},$.prototype.enable=function(){this._enabled=!0},Object.defineProperty($.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"hasSelection",{get:function(){var Q=this._model.finalSelectionStart,te=this._model.finalSelectionEnd;return!(!Q||!te||Q[0]===te[0]&&Q[1]===te[1])},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionText",{get:function(){var Q=this._model.finalSelectionStart,te=this._model.finalSelectionEnd;if(!Q||!te)return"";var be=this._bufferService.buffer,pe=[];if(3===this._activeSelectionMode){if(Q[0]===te[0])return"";for(var fe=Q[0]<te[0]?Q[0]:te[0],ue=Q[0]<te[0]?te[0]:Q[0],de=Q[1];de<=te[1];de++){var ge=be.translateBufferLineToString(de,!0,fe,ue);pe.push(ge)}}else{var je=Q[1]===te[1]?te[0]:void 0;for(pe.push(be.translateBufferLineToString(Q[1],!0,Q[0],je)),de=Q[1]+1;de<=te[1]-1;de++){var ot=be.lines.get(de);ge=be.translateBufferLineToString(de,!0),null!=ot&&ot.isWrapped?pe[pe.length-1]+=ge:pe.push(ge)}Q[1]!==te[1]&&(ot=be.lines.get(te[1]),ge=be.translateBufferLineToString(te[1],!0,0,te[0]),ot&&ot.isWrapped?pe[pe.length-1]+=ge:pe.push(ge))}return pe.map(function(St){return St.replace(N," ")}).join(j.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),$.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},$.prototype.refresh=function(V){var Q=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return Q._refresh()})),j.isLinux&&V&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},$.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},$.prototype._isClickInSelection=function(V){var Q=this._getMouseBufferCoords(V),te=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!!(te&&be&&Q)&&this._areCoordsInSelection(Q,te,be)},$.prototype.isCellInSelection=function(V,Q){var te=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!(!te||!be)&&this._areCoordsInSelection([V,Q],te,be)},$.prototype._areCoordsInSelection=function(V,Q,te){return V[1]>Q[1]&&V[1]<te[1]||Q[1]===te[1]&&V[1]===Q[1]&&V[0]>=Q[0]&&V[0]<te[0]||Q[1]<te[1]&&V[1]===te[1]&&V[0]<te[0]||Q[1]<te[1]&&V[1]===Q[1]&&V[0]>=Q[0]},$.prototype._selectWordAtCursor=function(V,Q){var te,be,pe=null===(be=null===(te=this._linkifier.currentLink)||void 0===te?void 0:te.link)||void 0===be?void 0:be.range;if(pe)return this._model.selectionStart=[pe.start.x-1,pe.start.y-1],this._model.selectionStartLength=(0,k.getRangeLength)(pe,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var fe=this._getMouseBufferCoords(V);return!!fe&&(this._selectWordAt(fe,Q),this._model.selectionEnd=void 0,!0)},$.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},$.prototype.selectLines=function(V,Q){this._model.clearSelection(),V=Math.max(V,0),Q=Math.min(Q,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,V],this._model.selectionEnd=[this._bufferService.cols,Q],this.refresh(),this._onSelectionChange.fire()},$.prototype._onTrim=function(V){this._model.onTrim(V)&&this.refresh()},$.prototype._getMouseBufferCoords=function(V){var Q=this._mouseService.getCoords(V,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(Q)return Q[0]--,Q[1]--,Q[1]+=this._bufferService.buffer.ydisp,Q},$.prototype._getMouseEventScrollAmount=function(V){var Q=(0,D.getCoordsRelativeToElement)(window,V,this._screenElement)[1],te=this._renderService.dimensions.canvasHeight;return Q>=0&&Q<=te?0:(Q>te&&(Q-=te),Q=Math.min(Math.max(Q,-50),50),(Q/=50)/Math.abs(Q)+Math.round(14*Q))},$.prototype.shouldForceSelection=function(V){return j.isMac?V.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:V.shiftKey},$.prototype.onMouseDown=function(V){if(this._mouseDownTimeStamp=V.timeStamp,(2!==V.button||!this.hasSelection)&&0===V.button){if(!this._enabled){if(!this.shouldForceSelection(V))return;V.stopPropagation()}V.preventDefault(),this._dragScrollAmount=0,this._enabled&&V.shiftKey?this._onIncrementalClick(V):1===V.detail?this._onSingleClick(V):2===V.detail?this._onDoubleClick(V):3===V.detail&&this._onTripleClick(V),this._addMouseDownListeners(),this.refresh(!0)}},$.prototype._addMouseDownListeners=function(){var V=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return V._dragScroll()},50)},$.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},$.prototype._onIncrementalClick=function(V){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(V))},$.prototype._onSingleClick=function(V){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(V)?3:0,this._model.selectionStart=this._getMouseBufferCoords(V),this._model.selectionStart){this._model.selectionEnd=void 0;var Q=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);Q&&Q.length!==this._model.selectionStart[0]&&0===Q.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},$.prototype._onDoubleClick=function(V){this._selectWordAtCursor(V,!0)&&(this._activeSelectionMode=1)},$.prototype._onTripleClick=function(V){var Q=this._getMouseBufferCoords(V);Q&&(this._activeSelectionMode=2,this._selectLineAt(Q[1]))},$.prototype.shouldColumnSelect=function(V){return V.altKey&&!(j.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},$.prototype._onMouseMove=function(V){if(V.stopImmediatePropagation(),this._model.selectionStart){var Q=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(V),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(V),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var te=this._bufferService.buffer;if(this._model.selectionEnd[1]<te.lines.length){var be=te.lines.get(this._model.selectionEnd[1]);be&&0===be.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}Q&&Q[0]===this._model.selectionEnd[0]&&Q[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},$.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var V=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(V.ydisp+this._bufferService.rows,V.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=V.ydisp),this.refresh()}},$.prototype._onMouseUp=function(V){var Q=V.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&Q<500&&V.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var te=this._mouseService.getCoords(V,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(te&&void 0!==te[0]&&void 0!==te[1]){var be=(0,b.moveToCellSequence)(te[0]-1,te[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(be,!0)}}}else this._fireEventIfSelectionChanged()},$.prototype._fireEventIfSelectionChanged=function(){var V=this._model.finalSelectionStart,Q=this._model.finalSelectionEnd,te=!(!V||!Q||V[0]===Q[0]&&V[1]===Q[1]);te?V&&Q&&(this._oldSelectionStart&&this._oldSelectionEnd&&V[0]===this._oldSelectionStart[0]&&V[1]===this._oldSelectionStart[1]&&Q[0]===this._oldSelectionEnd[0]&&Q[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(V,Q,te)):this._oldHasSelection&&this._fireOnSelectionChange(V,Q,te)},$.prototype._fireOnSelectionChange=function(V,Q,te){this._oldSelectionStart=V,this._oldSelectionEnd=Q,this._oldHasSelection=te,this._onSelectionChange.fire()},$.prototype._onBufferActivate=function(V){var Q=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=V.activeBuffer.lines.onTrim(function(te){return Q._onTrim(te)})},$.prototype._convertViewportColToCharacterIndex=function(V,Q){for(var te=Q[0],be=0;Q[0]>=be;be++){var pe=V.loadCell(be,this._workCell).getChars().length;0===this._workCell.getWidth()?te--:pe>1&&Q[0]!==be&&(te+=pe-1)}return te},$.prototype.setSelection=function(V,Q,te){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[V,Q],this._model.selectionStartLength=te,this.refresh(),this._fireEventIfSelectionChanged()},$.prototype.rightClickSelect=function(V){this._isClickInSelection(V)||(this._selectWordAtCursor(V,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},$.prototype._getWordAt=function(V,Q,te,be){if(void 0===te&&(te=!0),void 0===be&&(be=!0),!(V[0]>=this._bufferService.cols)){var pe=this._bufferService.buffer,fe=pe.lines.get(V[1]);if(fe){var ue=pe.translateBufferLineToString(V[1],!1),de=this._convertViewportColToCharacterIndex(fe,V),ge=de,je=V[0]-de,ot=0,St=0,Tt=0,Dt=0;if(" "===ue.charAt(de)){for(;de>0&&" "===ue.charAt(de-1);)de--;for(;ge<ue.length&&" "===ue.charAt(ge+1);)ge++}else{var Rt=V[0],Ze=V[0];0===fe.getWidth(Rt)&&(ot++,Rt--),2===fe.getWidth(Ze)&&(St++,Ze++);var $t=fe.getString(Ze).length;for($t>1&&(Dt+=$t-1,ge+=$t-1);Rt>0&&de>0&&!this._isCharWordSeparator(fe.loadCell(Rt-1,this._workCell));){fe.loadCell(Rt-1,this._workCell);var Ft=this._workCell.getChars().length;0===this._workCell.getWidth()?(ot++,Rt--):Ft>1&&(Tt+=Ft-1,de-=Ft-1),de--,Rt--}for(;Ze<fe.length&&ge+1<ue.length&&!this._isCharWordSeparator(fe.loadCell(Ze+1,this._workCell));){fe.loadCell(Ze+1,this._workCell);var pn=this._workCell.getChars().length;2===this._workCell.getWidth()?(St++,Ze++):pn>1&&(Dt+=pn-1,ge+=pn-1),ge++,Ze++}}ge++;var rt=de+je-ot+Tt,Ot=Math.min(this._bufferService.cols,ge-de+ot+St-Tt-Dt);if(Q||""!==ue.slice(de,ge).trim()){if(te&&0===rt&&32!==fe.getCodePoint(0)){var _t=pe.lines.get(V[1]-1);if(_t&&fe.isWrapped&&32!==_t.getCodePoint(this._bufferService.cols-1)){var Ct=this._getWordAt([this._bufferService.cols-1,V[1]-1],!1,!0,!1);if(Ct){var Ve=this._bufferService.cols-Ct.start;rt-=Ve,Ot+=Ve}}}if(be&&rt+Ot===this._bufferService.cols&&32!==fe.getCodePoint(this._bufferService.cols-1)){var at=pe.lines.get(V[1]+1);if((null==at?void 0:at.isWrapped)&&32!==at.getCodePoint(0)){var ht=this._getWordAt([0,V[1]+1],!1,!1,!0);ht&&(Ot+=ht.length)}}return{start:rt,length:Ot}}}}},$.prototype._selectWordAt=function(V,Q){var te=this._getWordAt(V,Q);if(te){for(;te.start<0;)te.start+=this._bufferService.cols,V[1]--;this._model.selectionStart=[te.start,V[1]],this._model.selectionStartLength=te.length}},$.prototype._selectToWordAt=function(V){var Q=this._getWordAt(V,!0);if(Q){for(var te=V[1];Q.start<0;)Q.start+=this._bufferService.cols,te--;if(!this._model.areSelectionValuesReversed())for(;Q.start+Q.length>this._bufferService.cols;)Q.length-=this._bufferService.cols,te++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?Q.start:Q.start+Q.length,te]}},$.prototype._isCharWordSeparator=function(V){return 0!==V.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(V.getChars())>=0},$.prototype._selectLineAt=function(V){var Q=this._bufferService.buffer.getWrappedRangeForLine(V),te={start:{x:0,y:Q.first},end:{x:this._bufferService.cols-1,y:Q.last}};this._model.selectionStart=[0,Q.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,k.getRangeLength)(te,this._bufferService.cols)},T([E(3,Z.IBufferService),E(4,Z.ICoreService),E(5,w.IMouseService),E(6,Z.IOptionsService),E(7,w.IRenderService)],$)}(S.Disposable);A.SelectionService=F},4725:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.ICharacterJoinerService=A.ISoundService=A.ISelectionService=A.IRenderService=A.IMouseService=A.ICoreBrowserService=A.ICharSizeService=void 0;var P=H(8343);A.ICharSizeService=(0,P.createDecorator)("CharSizeService"),A.ICoreBrowserService=(0,P.createDecorator)("CoreBrowserService"),A.IMouseService=(0,P.createDecorator)("MouseService"),A.IRenderService=(0,P.createDecorator)("RenderService"),A.ISelectionService=(0,P.createDecorator)("SelectionService"),A.ISoundService=(0,P.createDecorator)("SoundService"),A.ICharacterJoinerService=(0,P.createDecorator)("CharacterJoinerService")},357:function(W,A,H){var P=this&&this.__decorate||function(j,R,v,x){var w,Z=arguments.length,D=Z<3?R:null===x?x=Object.getOwnPropertyDescriptor(R,v):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(j,R,v,x);else for(var b=j.length-1;b>=0;b--)(w=j[b])&&(D=(Z<3?w(D):Z>3?w(R,v,D):w(R,v))||D);return Z>3&&D&&Object.defineProperty(R,v,D),D},I=this&&this.__param||function(j,R){return function(v,x){R(v,x,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SoundService=void 0;var T=H(2585),E=function(){function j(R){this._optionsService=R}return Object.defineProperty(j,"audioContext",{get:function(){if(!j._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;j._audioContext=new v}return j._audioContext},enumerable:!1,configurable:!0}),j.prototype.playBellSound=function(){var R=j.audioContext;if(R){var v=R.createBufferSource();R.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(x){v.buffer=x,v.connect(R.destination),v.start(0)})}},j.prototype._base64ToArrayBuffer=function(R){for(var v=window.atob(R),x=v.length,w=new Uint8Array(x),Z=0;Z<x;Z++)w[Z]=v.charCodeAt(Z);return w.buffer},j.prototype._removeMimeType=function(R){return R.split(",")[1]},j=P([I(0,T.IOptionsService)],j)}();A.SoundService=E},6349:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.CircularList=void 0;var P=H(8460),I=function(){function T(E){this._maxLength=E,this.onDeleteEmitter=new P.EventEmitter,this.onInsertEmitter=new P.EventEmitter,this.onTrimEmitter=new P.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(T.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"maxLength",{get:function(){return this._maxLength},set:function(j){if(this._maxLength!==j){for(var R=new Array(j),v=0;v<Math.min(j,this.length);v++)R[v]=this._array[this._getCyclicIndex(v)];this._array=R,this._maxLength=j,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._length},set:function(j){if(j>this._length)for(var R=this._length;R<j;R++)this._array[R]=void 0;this._length=j},enumerable:!1,configurable:!0}),T.prototype.get=function(E){return this._array[this._getCyclicIndex(E)]},T.prototype.set=function(E,j){this._array[this._getCyclicIndex(E)]=j},T.prototype.push=function(E){this._array[this._getCyclicIndex(this._length)]=E,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},T.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(T.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),T.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},T.prototype.splice=function(E,j){for(var R=[],v=2;v<arguments.length;v++)R[v-2]=arguments[v];if(j){for(var x=E;x<this._length-j;x++)this._array[this._getCyclicIndex(x)]=this._array[this._getCyclicIndex(x+j)];this._length-=j,this.onDeleteEmitter.fire({index:E,amount:j})}for(x=this._length-1;x>=E;x--)this._array[this._getCyclicIndex(x+R.length)]=this._array[this._getCyclicIndex(x)];for(x=0;x<R.length;x++)this._array[this._getCyclicIndex(E+x)]=R[x];if(R.length&&this.onInsertEmitter.fire({index:E,amount:R.length}),this._length+R.length>this._maxLength){var w=this._length+R.length-this._maxLength;this._startIndex+=w,this._length=this._maxLength,this.onTrimEmitter.fire(w)}else this._length+=R.length},T.prototype.trimStart=function(E){E>this._length&&(E=this._length),this._startIndex+=E,this._length-=E,this.onTrimEmitter.fire(E)},T.prototype.shiftElements=function(E,j,R){if(!(j<=0)){if(E<0||E>=this._length)throw new Error("start argument out of range");if(E+R<0)throw new Error("Cannot shift elements in list beyond index 0");if(R>0){for(var v=j-1;v>=0;v--)this.set(E+v+R,this.get(E+v));var x=E+j+R-this._length;if(x>0)for(this._length+=x;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<j;v++)this.set(E+v+R,this.get(E+v))}},T.prototype._getCyclicIndex=function(E){return(this._startIndex+E)%this._maxLength},T}();A.CircularList=I},1439:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function H(P,I){if(void 0===I&&(I=5),"object"!=typeof P)return P;var T=Array.isArray(P)?[]:{};for(var E in P)T[E]=I<=1?P[E]:P[E]&&H(P[E],I-1);return T}},8055:function(W,A){var H,P,I,T,v,E=this&&this.__read||function(v,x){var w="function"==typeof Symbol&&v[Symbol.iterator];if(!w)return v;var Z,D,b=w.call(v),S=[];try{for(;(void 0===x||x-- >0)&&!(Z=b.next()).done;)S.push(Z.value)}catch(k){D={error:k}}finally{try{Z&&!Z.done&&(w=b.return)&&w.call(b)}finally{if(D)throw D.error}}return S};function j(v){var x=v.toString(16);return x.length<2?"0"+x:x}function R(v,x){return v<x?(x+.05)/(v+.05):(v+.05)/(x+.05)}Object.defineProperty(A,"__esModule",{value:!0}),A.contrastRatio=A.toPaddedHex=A.rgba=A.rgb=A.css=A.color=A.channels=void 0,(v=H=A.channels||(A.channels={})).toCss=function(x,w,Z,D){return void 0!==D?"#"+j(x)+j(w)+j(Z)+j(D):"#"+j(x)+j(w)+j(Z)},v.toRgba=function(x,w,Z,D){return void 0===D&&(D=255),(x<<24|w<<16|Z<<8|D)>>>0},(P=A.color||(A.color={})).blend=function(v,x){var w=(255&x.rgba)/255;if(1===w)return{css:x.css,rgba:x.rgba};var Z=x.rgba>>24&255,D=x.rgba>>16&255,b=x.rgba>>8&255,S=v.rgba>>24&255,k=v.rgba>>16&255,M=v.rgba>>8&255,N=S+Math.round((Z-S)*w),F=k+Math.round((D-k)*w),X=M+Math.round((b-M)*w);return{css:H.toCss(N,F,X),rgba:H.toRgba(N,F,X)}},P.isOpaque=function(v){return 255==(255&v.rgba)},P.ensureContrastRatio=function(v,x,w){var Z=T.ensureContrastRatio(v.rgba,x.rgba,w);if(Z)return T.toColor(Z>>24&255,Z>>16&255,Z>>8&255)},P.opaque=function(v){var x=(255|v.rgba)>>>0,w=E(T.toChannels(x),3),Z=w[0],D=w[1],b=w[2];return{css:H.toCss(Z,D,b),rgba:x}},P.opacity=function(v,x){var w=Math.round(255*x),Z=E(T.toChannels(v.rgba),3),D=Z[0],b=Z[1],S=Z[2];return{css:H.toCss(D,b,S,w),rgba:H.toRgba(D,b,S,w)}},P.toColorRGB=function(v){return[v.rgba>>24&255,v.rgba>>16&255,v.rgba>>8&255]},(A.css||(A.css={})).toColor=function(v){if(v.match(/#[0-9a-f]{3,8}/i))switch(v.length){case 4:var x=parseInt(v.slice(1,2).repeat(2),16),w=parseInt(v.slice(2,3).repeat(2),16),Z=parseInt(v.slice(3,4).repeat(2),16);return T.toColor(x,w,Z);case 5:x=parseInt(v.slice(1,2).repeat(2),16),w=parseInt(v.slice(2,3).repeat(2),16),Z=parseInt(v.slice(3,4).repeat(2),16);var D=parseInt(v.slice(4,5).repeat(2),16);return T.toColor(x,w,Z,D);case 7:return{css:v,rgba:(parseInt(v.slice(1),16)<<8|255)>>>0};case 9:return{css:v,rgba:parseInt(v.slice(1),16)>>>0}}var b=v.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(b)return x=parseInt(b[1]),w=parseInt(b[2]),Z=parseInt(b[3]),D=Math.round(255*(void 0===b[5]?1:parseFloat(b[5]))),T.toColor(x,w,Z,D);throw new Error("css.toColor: Unsupported css format")},function(v){function x(w,Z,D){var b=w/255,S=Z/255,k=D/255;return.2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.0722*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))}v.relativeLuminance=function(w){return x(w>>16&255,w>>8&255,255&w)},v.relativeLuminance2=x}(I=A.rgb||(A.rgb={})),function(v){function x(Z,D,b){for(var S=Z>>24&255,k=Z>>16&255,M=Z>>8&255,N=D>>24&255,F=D>>16&255,X=D>>8&255,$=R(I.relativeLuminance2(N,F,X),I.relativeLuminance2(S,k,M));$<b&&(N>0||F>0||X>0);)N-=Math.max(0,Math.ceil(.1*N)),F-=Math.max(0,Math.ceil(.1*F)),X-=Math.max(0,Math.ceil(.1*X)),$=R(I.relativeLuminance2(N,F,X),I.relativeLuminance2(S,k,M));return(N<<24|F<<16|X<<8|255)>>>0}function w(Z,D,b){for(var S=Z>>24&255,k=Z>>16&255,M=Z>>8&255,N=D>>24&255,F=D>>16&255,X=D>>8&255,$=R(I.relativeLuminance2(N,F,X),I.relativeLuminance2(S,k,M));$<b&&(N<255||F<255||X<255);)N=Math.min(255,N+Math.ceil(.1*(255-N))),F=Math.min(255,F+Math.ceil(.1*(255-F))),X=Math.min(255,X+Math.ceil(.1*(255-X))),$=R(I.relativeLuminance2(N,F,X),I.relativeLuminance2(S,k,M));return(N<<24|F<<16|X<<8|255)>>>0}v.ensureContrastRatio=function(Z,D,b){var S=I.relativeLuminance(Z>>8),k=I.relativeLuminance(D>>8);if(R(S,k)<b){if(k<S){var M=x(Z,D,b),N=R(S,I.relativeLuminance(M>>8));if(N<b){var F=w(Z,Z,b);return N>R(S,I.relativeLuminance(F>>8))?M:F}return M}var X=w(Z,D,b),$=R(S,I.relativeLuminance(X>>8));return $<b?(F=x(Z,Z,b),$>R(S,I.relativeLuminance(F>>8))?X:F):X}},v.reduceLuminance=x,v.increaseLuminance=w,v.toChannels=function(Z){return[Z>>24&255,Z>>16&255,Z>>8&255,255&Z]},v.toColor=function(Z,D,b,S){return{css:H.toCss(Z,D,b,S),rgba:H.toRgba(Z,D,b,S)}}}(T=A.rgba||(A.rgba={})),A.toPaddedHex=j,A.contrastRatio=R},8969:function(W,A,H){var P,I=this&&this.__extends||(P=function(te,be){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,fe){pe.__proto__=fe}||function(pe,fe){for(var ue in fe)Object.prototype.hasOwnProperty.call(fe,ue)&&(pe[ue]=fe[ue])})(te,be)},function(Q,te){if("function"!=typeof te&&null!==te)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");function be(){this.constructor=Q}P(Q,te),Q.prototype=null===te?Object.create(te):(be.prototype=te.prototype,new be)}),T=this&&this.__values||function(Q){var te="function"==typeof Symbol&&Symbol.iterator,be=te&&Q[te],pe=0;if(be)return be.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&pe>=Q.length&&(Q=void 0),{value:Q&&Q[pe++],done:!Q}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreTerminal=void 0;var E=H(844),j=H(2585),R=H(4348),v=H(7866),x=H(744),w=H(7302),Z=H(6975),D=H(8460),b=H(1753),S=H(3730),k=H(1480),M=H(7994),N=H(9282),F=H(5435),X=H(5981),$=!1,V=function(Q){function te(be){var pe=Q.call(this)||this;return pe._onBinary=new D.EventEmitter,pe._onData=new D.EventEmitter,pe._onLineFeed=new D.EventEmitter,pe._onResize=new D.EventEmitter,pe._onScroll=new D.EventEmitter,pe._onWriteParsed=new D.EventEmitter,pe._instantiationService=new R.InstantiationService,pe.optionsService=new w.OptionsService(be),pe._instantiationService.setService(j.IOptionsService,pe.optionsService),pe._bufferService=pe.register(pe._instantiationService.createInstance(x.BufferService)),pe._instantiationService.setService(j.IBufferService,pe._bufferService),pe._logService=pe._instantiationService.createInstance(v.LogService),pe._instantiationService.setService(j.ILogService,pe._logService),pe.coreService=pe.register(pe._instantiationService.createInstance(Z.CoreService,function(){return pe.scrollToBottom()})),pe._instantiationService.setService(j.ICoreService,pe.coreService),pe.coreMouseService=pe._instantiationService.createInstance(b.CoreMouseService),pe._instantiationService.setService(j.ICoreMouseService,pe.coreMouseService),pe._dirtyRowService=pe._instantiationService.createInstance(S.DirtyRowService),pe._instantiationService.setService(j.IDirtyRowService,pe._dirtyRowService),pe.unicodeService=pe._instantiationService.createInstance(k.UnicodeService),pe._instantiationService.setService(j.IUnicodeService,pe.unicodeService),pe._charsetService=pe._instantiationService.createInstance(M.CharsetService),pe._instantiationService.setService(j.ICharsetService,pe._charsetService),pe._inputHandler=new F.InputHandler(pe._bufferService,pe._charsetService,pe.coreService,pe._dirtyRowService,pe._logService,pe.optionsService,pe.coreMouseService,pe.unicodeService),pe.register((0,D.forwardEvent)(pe._inputHandler.onLineFeed,pe._onLineFeed)),pe.register(pe._inputHandler),pe.register((0,D.forwardEvent)(pe._bufferService.onResize,pe._onResize)),pe.register((0,D.forwardEvent)(pe.coreService.onData,pe._onData)),pe.register((0,D.forwardEvent)(pe.coreService.onBinary,pe._onBinary)),pe.register(pe.optionsService.onOptionChange(function(fe){return pe._updateOptions(fe)})),pe.register(pe._bufferService.onScroll(function(fe){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe.register(pe._inputHandler.onScroll(function(fe){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe._writeBuffer=new X.WriteBuffer(function(fe,ue){return pe._inputHandler.parse(fe,ue)}),pe.register((0,D.forwardEvent)(pe._writeBuffer.onWriteParsed,pe._onWriteParsed)),pe}return I(te,Q),Object.defineProperty(te.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onScroll",{get:function(){var pe=this;return this._onScrollApi||(this._onScrollApi=new D.EventEmitter,this.register(this._onScroll.event(function(fe){var ue;null===(ue=pe._onScrollApi)||void 0===ue||ue.fire(fe.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"options",{get:function(){return this.optionsService.options},set:function(pe){for(var fe in pe)this.optionsService.options[fe]=pe[fe]},enumerable:!1,configurable:!0}),te.prototype.dispose=function(){var be;this._isDisposed||(Q.prototype.dispose.call(this),null===(be=this._windowsMode)||void 0===be||be.dispose(),this._windowsMode=void 0)},te.prototype.write=function(be,pe){this._writeBuffer.write(be,pe)},te.prototype.writeSync=function(be,pe){this._logService.logLevel<=j.LogLevelEnum.WARN&&!$&&(this._logService.warn("writeSync is unreliable and will be removed soon."),$=!0),this._writeBuffer.writeSync(be,pe)},te.prototype.resize=function(be,pe){isNaN(be)||isNaN(pe)||(be=Math.max(be,x.MINIMUM_COLS),pe=Math.max(pe,x.MINIMUM_ROWS),this._bufferService.resize(be,pe))},te.prototype.scroll=function(be,pe){void 0===pe&&(pe=!1),this._bufferService.scroll(be,pe)},te.prototype.scrollLines=function(be,pe,fe){this._bufferService.scrollLines(be,pe,fe)},te.prototype.scrollPages=function(be){this._bufferService.scrollPages(be)},te.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},te.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},te.prototype.scrollToLine=function(be){this._bufferService.scrollToLine(be)},te.prototype.registerEscHandler=function(be,pe){return this._inputHandler.registerEscHandler(be,pe)},te.prototype.registerDcsHandler=function(be,pe){return this._inputHandler.registerDcsHandler(be,pe)},te.prototype.registerCsiHandler=function(be,pe){return this._inputHandler.registerCsiHandler(be,pe)},te.prototype.registerOscHandler=function(be,pe){return this._inputHandler.registerOscHandler(be,pe)},te.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},te.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},te.prototype._updateOptions=function(be){var pe;switch(be){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(pe=this._windowsMode)||void 0===pe||pe.dispose(),this._windowsMode=void 0)}},te.prototype._enableWindowsMode=function(){var be=this;if(!this._windowsMode){var pe=[];pe.push(this.onLineFeed(N.updateWindowsModeWrappedState.bind(null,this._bufferService))),pe.push(this.registerCsiHandler({final:"H"},function(){return(0,N.updateWindowsModeWrappedState)(be._bufferService),!1})),this._windowsMode={dispose:function(){var ue,de;try{for(var ge=T(pe),je=ge.next();!je.done;je=ge.next())je.value.dispose()}catch(ot){ue={error:ot}}finally{try{je&&!je.done&&(de=ge.return)&&de.call(ge)}finally{if(ue)throw ue.error}}}}}},te}(E.Disposable);A.CoreTerminal=V},8460:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.forwardEvent=A.EventEmitter=void 0;var H=function(){function P(){this._listeners=[],this._disposed=!1}return Object.defineProperty(P.prototype,"event",{get:function(){var T=this;return this._event||(this._event=function(E){return T._listeners.push(E),{dispose:function(){if(!T._disposed)for(var R=0;R<T._listeners.length;R++)if(T._listeners[R]===E)return void T._listeners.splice(R,1)}}}),this._event},enumerable:!1,configurable:!0}),P.prototype.fire=function(I,T){for(var E=[],j=0;j<this._listeners.length;j++)E.push(this._listeners[j]);for(j=0;j<E.length;j++)E[j].call(void 0,I,T)},P.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},P}();A.EventEmitter=H,A.forwardEvent=function(P,I){return P(function(T){return I.fire(T)})}},5435:function(W,A,H){var P,I=this&&this.__extends||(P=function(fe,ue){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ge){de.__proto__=ge}||function(de,ge){for(var je in ge)Object.prototype.hasOwnProperty.call(ge,je)&&(de[je]=ge[je])})(fe,ue)},function(pe,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function ue(){this.constructor=pe}P(pe,fe),pe.prototype=null===fe?Object.create(fe):(ue.prototype=fe.prototype,new ue)});Object.defineProperty(A,"__esModule",{value:!0}),A.InputHandler=A.WindowsOptionsReportType=void 0;var T,pe,E=H(2584),j=H(7116),R=H(2015),v=H(844),x=H(8273),w=H(482),Z=H(8437),D=H(8460),b=H(643),S=H(511),k=H(3734),M=H(2585),N=H(6242),F=H(6351),X=H(5941),$={"(":0,")":1,"*":2,"+":3,"-":1,".":2},V=131072;function Q(pe,fe){if(pe>24)return fe.setWinLines||!1;switch(pe){case 1:return!!fe.restoreWin;case 2:return!!fe.minimizeWin;case 3:return!!fe.setWinPosition;case 4:return!!fe.setWinSizePixels;case 5:return!!fe.raiseWin;case 6:return!!fe.lowerWin;case 7:return!!fe.refreshWin;case 8:return!!fe.setWinSizeChars;case 9:return!!fe.maximizeWin;case 10:return!!fe.fullscreenWin;case 11:return!!fe.getWinState;case 13:return!!fe.getWinPosition;case 14:return!!fe.getWinSizePixels;case 15:return!!fe.getScreenSizePixels;case 16:return!!fe.getCellSizePixels;case 18:return!!fe.getWinSizeChars;case 19:return!!fe.getScreenSizeChars;case 20:return!!fe.getIconTitle;case 21:return!!fe.getWinTitle;case 22:return!!fe.pushTitle;case 23:return!!fe.popTitle;case 24:return!!fe.setWinLines}return!1}(pe=T=A.WindowsOptionsReportType||(A.WindowsOptionsReportType={}))[pe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",pe[pe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var te=function(){function pe(fe,ue,de,ge){this._bufferService=fe,this._coreService=ue,this._logService=de,this._optionsService=ge,this._data=new Uint32Array(0)}return pe.prototype.hook=function(fe){this._data=new Uint32Array(0)},pe.prototype.put=function(fe,ue,de){this._data=(0,x.concat)(this._data,fe.subarray(ue,de))},pe.prototype.unhook=function(fe){if(!fe)return this._data=new Uint32Array(0),!0;var ue=(0,w.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),ue){case'"q':this._coreService.triggerDataEvent(E.C0.ESC+'P1$r0"q'+E.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(E.C0.ESC+'P1$r61;1"p'+E.C0.ESC+"\\");break;case"r":var de=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(E.C0.ESC+"P1$r"+de+E.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(E.C0.ESC+"P1$r0m"+E.C0.ESC+"\\");break;case" q":var ge={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];ge-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(E.C0.ESC+"P1$r"+ge+" q"+E.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",ue),this._coreService.triggerDataEvent(E.C0.ESC+"P0$r"+E.C0.ESC+"\\")}return!0},pe}(),be=function(pe){function fe(ue,de,ge,je,ot,St,Tt,Dt,Rt){void 0===Rt&&(Rt=new R.EscapeSequenceParser);var Ze=pe.call(this)||this;Ze._bufferService=ue,Ze._charsetService=de,Ze._coreService=ge,Ze._dirtyRowService=je,Ze._logService=ot,Ze._optionsService=St,Ze._coreMouseService=Tt,Ze._unicodeService=Dt,Ze._parser=Rt,Ze._parseBuffer=new Uint32Array(4096),Ze._stringDecoder=new w.StringToUtf32,Ze._utf8Decoder=new w.Utf8ToUtf32,Ze._workCell=new S.CellData,Ze._windowTitle="",Ze._iconName="",Ze._windowTitleStack=[],Ze._iconNameStack=[],Ze._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),Ze._eraseAttrDataInternal=Z.DEFAULT_ATTR_DATA.clone(),Ze._onRequestBell=new D.EventEmitter,Ze._onRequestRefreshRows=new D.EventEmitter,Ze._onRequestReset=new D.EventEmitter,Ze._onRequestSendFocus=new D.EventEmitter,Ze._onRequestSyncScrollBar=new D.EventEmitter,Ze._onRequestWindowsOptionsReport=new D.EventEmitter,Ze._onA11yChar=new D.EventEmitter,Ze._onA11yTab=new D.EventEmitter,Ze._onCursorMove=new D.EventEmitter,Ze._onLineFeed=new D.EventEmitter,Ze._onScroll=new D.EventEmitter,Ze._onTitleChange=new D.EventEmitter,Ze._onColor=new D.EventEmitter,Ze._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Ze._specialColors=[256,257,258],Ze.register(Ze._parser),Ze._activeBuffer=Ze._bufferService.buffer,Ze.register(Ze._bufferService.buffers.onBufferActivate(function(rt){return Ze._activeBuffer=rt.activeBuffer})),Ze._parser.setCsiHandlerFallback(function(rt,Ot){Ze._logService.debug("Unknown CSI code: ",{identifier:Ze._parser.identToString(rt),params:Ot.toArray()})}),Ze._parser.setEscHandlerFallback(function(rt){Ze._logService.debug("Unknown ESC code: ",{identifier:Ze._parser.identToString(rt)})}),Ze._parser.setExecuteHandlerFallback(function(rt){Ze._logService.debug("Unknown EXECUTE code: ",{code:rt})}),Ze._parser.setOscHandlerFallback(function(rt,Ot,_t){Ze._logService.debug("Unknown OSC code: ",{identifier:rt,action:Ot,data:_t})}),Ze._parser.setDcsHandlerFallback(function(rt,Ot,_t){"HOOK"===Ot&&(_t=_t.toArray()),Ze._logService.debug("Unknown DCS code: ",{identifier:Ze._parser.identToString(rt),action:Ot,payload:_t})}),Ze._parser.setPrintHandler(function(rt,Ot,_t){return Ze.print(rt,Ot,_t)}),Ze._parser.registerCsiHandler({final:"@"},function(rt){return Ze.insertChars(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"@"},function(rt){return Ze.scrollLeft(rt)}),Ze._parser.registerCsiHandler({final:"A"},function(rt){return Ze.cursorUp(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"A"},function(rt){return Ze.scrollRight(rt)}),Ze._parser.registerCsiHandler({final:"B"},function(rt){return Ze.cursorDown(rt)}),Ze._parser.registerCsiHandler({final:"C"},function(rt){return Ze.cursorForward(rt)}),Ze._parser.registerCsiHandler({final:"D"},function(rt){return Ze.cursorBackward(rt)}),Ze._parser.registerCsiHandler({final:"E"},function(rt){return Ze.cursorNextLine(rt)}),Ze._parser.registerCsiHandler({final:"F"},function(rt){return Ze.cursorPrecedingLine(rt)}),Ze._parser.registerCsiHandler({final:"G"},function(rt){return Ze.cursorCharAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"H"},function(rt){return Ze.cursorPosition(rt)}),Ze._parser.registerCsiHandler({final:"I"},function(rt){return Ze.cursorForwardTab(rt)}),Ze._parser.registerCsiHandler({final:"J"},function(rt){return Ze.eraseInDisplay(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"J"},function(rt){return Ze.eraseInDisplay(rt)}),Ze._parser.registerCsiHandler({final:"K"},function(rt){return Ze.eraseInLine(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"K"},function(rt){return Ze.eraseInLine(rt)}),Ze._parser.registerCsiHandler({final:"L"},function(rt){return Ze.insertLines(rt)}),Ze._parser.registerCsiHandler({final:"M"},function(rt){return Ze.deleteLines(rt)}),Ze._parser.registerCsiHandler({final:"P"},function(rt){return Ze.deleteChars(rt)}),Ze._parser.registerCsiHandler({final:"S"},function(rt){return Ze.scrollUp(rt)}),Ze._parser.registerCsiHandler({final:"T"},function(rt){return Ze.scrollDown(rt)}),Ze._parser.registerCsiHandler({final:"X"},function(rt){return Ze.eraseChars(rt)}),Ze._parser.registerCsiHandler({final:"Z"},function(rt){return Ze.cursorBackwardTab(rt)}),Ze._parser.registerCsiHandler({final:"`"},function(rt){return Ze.charPosAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"a"},function(rt){return Ze.hPositionRelative(rt)}),Ze._parser.registerCsiHandler({final:"b"},function(rt){return Ze.repeatPrecedingCharacter(rt)}),Ze._parser.registerCsiHandler({final:"c"},function(rt){return Ze.sendDeviceAttributesPrimary(rt)}),Ze._parser.registerCsiHandler({prefix:">",final:"c"},function(rt){return Ze.sendDeviceAttributesSecondary(rt)}),Ze._parser.registerCsiHandler({final:"d"},function(rt){return Ze.linePosAbsolute(rt)}),Ze._parser.registerCsiHandler({final:"e"},function(rt){return Ze.vPositionRelative(rt)}),Ze._parser.registerCsiHandler({final:"f"},function(rt){return Ze.hVPosition(rt)}),Ze._parser.registerCsiHandler({final:"g"},function(rt){return Ze.tabClear(rt)}),Ze._parser.registerCsiHandler({final:"h"},function(rt){return Ze.setMode(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"h"},function(rt){return Ze.setModePrivate(rt)}),Ze._parser.registerCsiHandler({final:"l"},function(rt){return Ze.resetMode(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"l"},function(rt){return Ze.resetModePrivate(rt)}),Ze._parser.registerCsiHandler({final:"m"},function(rt){return Ze.charAttributes(rt)}),Ze._parser.registerCsiHandler({final:"n"},function(rt){return Ze.deviceStatus(rt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"n"},function(rt){return Ze.deviceStatusPrivate(rt)}),Ze._parser.registerCsiHandler({intermediates:"!",final:"p"},function(rt){return Ze.softReset(rt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"q"},function(rt){return Ze.setCursorStyle(rt)}),Ze._parser.registerCsiHandler({final:"r"},function(rt){return Ze.setScrollRegion(rt)}),Ze._parser.registerCsiHandler({final:"s"},function(rt){return Ze.saveCursor(rt)}),Ze._parser.registerCsiHandler({final:"t"},function(rt){return Ze.windowOptions(rt)}),Ze._parser.registerCsiHandler({final:"u"},function(rt){return Ze.restoreCursor(rt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"}"},function(rt){return Ze.insertColumns(rt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"~"},function(rt){return Ze.deleteColumns(rt)}),Ze._parser.setExecuteHandler(E.C0.BEL,function(){return Ze.bell()}),Ze._parser.setExecuteHandler(E.C0.LF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.VT,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.FF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(E.C0.CR,function(){return Ze.carriageReturn()}),Ze._parser.setExecuteHandler(E.C0.BS,function(){return Ze.backspace()}),Ze._parser.setExecuteHandler(E.C0.HT,function(){return Ze.tab()}),Ze._parser.setExecuteHandler(E.C0.SO,function(){return Ze.shiftOut()}),Ze._parser.setExecuteHandler(E.C0.SI,function(){return Ze.shiftIn()}),Ze._parser.setExecuteHandler(E.C1.IND,function(){return Ze.index()}),Ze._parser.setExecuteHandler(E.C1.NEL,function(){return Ze.nextLine()}),Ze._parser.setExecuteHandler(E.C1.HTS,function(){return Ze.tabSet()}),Ze._parser.registerOscHandler(0,new N.OscHandler(function(rt){return Ze.setTitle(rt),Ze.setIconName(rt),!0})),Ze._parser.registerOscHandler(1,new N.OscHandler(function(rt){return Ze.setIconName(rt)})),Ze._parser.registerOscHandler(2,new N.OscHandler(function(rt){return Ze.setTitle(rt)})),Ze._parser.registerOscHandler(4,new N.OscHandler(function(rt){return Ze.setOrReportIndexedColor(rt)})),Ze._parser.registerOscHandler(10,new N.OscHandler(function(rt){return Ze.setOrReportFgColor(rt)})),Ze._parser.registerOscHandler(11,new N.OscHandler(function(rt){return Ze.setOrReportBgColor(rt)})),Ze._parser.registerOscHandler(12,new N.OscHandler(function(rt){return Ze.setOrReportCursorColor(rt)})),Ze._parser.registerOscHandler(104,new N.OscHandler(function(rt){return Ze.restoreIndexedColor(rt)})),Ze._parser.registerOscHandler(110,new N.OscHandler(function(rt){return Ze.restoreFgColor(rt)})),Ze._parser.registerOscHandler(111,new N.OscHandler(function(rt){return Ze.restoreBgColor(rt)})),Ze._parser.registerOscHandler(112,new N.OscHandler(function(rt){return Ze.restoreCursorColor(rt)})),Ze._parser.registerEscHandler({final:"7"},function(){return Ze.saveCursor()}),Ze._parser.registerEscHandler({final:"8"},function(){return Ze.restoreCursor()}),Ze._parser.registerEscHandler({final:"D"},function(){return Ze.index()}),Ze._parser.registerEscHandler({final:"E"},function(){return Ze.nextLine()}),Ze._parser.registerEscHandler({final:"H"},function(){return Ze.tabSet()}),Ze._parser.registerEscHandler({final:"M"},function(){return Ze.reverseIndex()}),Ze._parser.registerEscHandler({final:"="},function(){return Ze.keypadApplicationMode()}),Ze._parser.registerEscHandler({final:">"},function(){return Ze.keypadNumericMode()}),Ze._parser.registerEscHandler({final:"c"},function(){return Ze.fullReset()}),Ze._parser.registerEscHandler({final:"n"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"o"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"|"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"}"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"~"},function(){return Ze.setgLevel(1)}),Ze._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Ze.selectDefaultCharset()}),Ze._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Ze.selectDefaultCharset()});var $t=function(Ot){Ft._parser.registerEscHandler({intermediates:"(",final:Ot},function(){return Ze.selectCharset("("+Ot)}),Ft._parser.registerEscHandler({intermediates:")",final:Ot},function(){return Ze.selectCharset(")"+Ot)}),Ft._parser.registerEscHandler({intermediates:"*",final:Ot},function(){return Ze.selectCharset("*"+Ot)}),Ft._parser.registerEscHandler({intermediates:"+",final:Ot},function(){return Ze.selectCharset("+"+Ot)}),Ft._parser.registerEscHandler({intermediates:"-",final:Ot},function(){return Ze.selectCharset("-"+Ot)}),Ft._parser.registerEscHandler({intermediates:".",final:Ot},function(){return Ze.selectCharset("."+Ot)}),Ft._parser.registerEscHandler({intermediates:"/",final:Ot},function(){return Ze.selectCharset("/"+Ot)})},Ft=this;for(var pn in j.CHARSETS)$t(pn);return Ze._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Ze.screenAlignmentPattern()}),Ze._parser.setErrorHandler(function(rt){return Ze._logService.error("Parsing error: ",rt),rt}),Ze._parser.registerDcsHandler({intermediates:"$",final:"q"},new te(Ze._bufferService,Ze._coreService,Ze._logService,Ze._optionsService)),Ze}return I(fe,pe),Object.defineProperty(fe.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),fe.prototype.dispose=function(){pe.prototype.dispose.call(this)},fe.prototype._preserveStack=function(ue,de,ge,je){this._parseStack.paused=!0,this._parseStack.cursorStartX=ue,this._parseStack.cursorStartY=de,this._parseStack.decodedLength=ge,this._parseStack.position=je},fe.prototype._logSlowResolvingAsync=function(ue){this._logService.logLevel<=M.LogLevelEnum.WARN&&Promise.race([ue,new Promise(function(de,ge){return setTimeout(function(){return ge("#SLOW_TIMEOUT")},5e3)})]).catch(function(de){if("#SLOW_TIMEOUT"!==de)throw de;console.warn("async parser handler taking longer than 5000 ms")})},fe.prototype.parse=function(ue,de){var ge,je=this._activeBuffer.x,ot=this._activeBuffer.y,St=0,Tt=this._parseStack.paused;if(Tt){if(ge=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,de))return this._logSlowResolvingAsync(ge),ge;je=this._parseStack.cursorStartX,ot=this._parseStack.cursorStartY,this._parseStack.paused=!1,ue.length>V&&(St=this._parseStack.position+V)}if(this._logService.logLevel<=M.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof ue?' "'+ue+'"':' "'+Array.prototype.map.call(ue,function($t){return String.fromCharCode($t)}).join("")+'"'),"string"==typeof ue?ue.split("").map(function($t){return $t.charCodeAt(0)}):ue),this._parseBuffer.length<ue.length&&this._parseBuffer.length<V&&(this._parseBuffer=new Uint32Array(Math.min(ue.length,V))),Tt||this._dirtyRowService.clearRange(),ue.length>V)for(var Dt=St;Dt<ue.length;Dt+=V){var Rt=Dt+V<ue.length?Dt+V:ue.length,Ze="string"==typeof ue?this._stringDecoder.decode(ue.substring(Dt,Rt),this._parseBuffer):this._utf8Decoder.decode(ue.subarray(Dt,Rt),this._parseBuffer);if(ge=this._parser.parse(this._parseBuffer,Ze))return this._preserveStack(je,ot,Ze,Dt),this._logSlowResolvingAsync(ge),ge}else if(!Tt&&(Ze="string"==typeof ue?this._stringDecoder.decode(ue,this._parseBuffer):this._utf8Decoder.decode(ue,this._parseBuffer),ge=this._parser.parse(this._parseBuffer,Ze)))return this._preserveStack(je,ot,Ze,0),this._logSlowResolvingAsync(ge),ge;this._activeBuffer.x===je&&this._activeBuffer.y===ot||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},fe.prototype.print=function(ue,de,ge){var je,ot,St=this._charsetService.charset,Tt=this._optionsService.rawOptions.screenReaderMode,Dt=this._bufferService.cols,Rt=this._coreService.decPrivateModes.wraparound,Ze=this._coreService.modes.insertMode,$t=this._curAttrData,Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&ge-de>0&&2===Ft.getWidth(this._activeBuffer.x-1)&&Ft.setCellFromCodePoint(this._activeBuffer.x-1,0,1,$t.fg,$t.bg,$t.extended);for(var pn=de;pn<ge;++pn){if(je=ue[pn],ot=this._unicodeService.wcwidth(je),je<127&&St){var rt=St[String.fromCharCode(je)];rt&&(je=rt.charCodeAt(0))}if(Tt&&this._onA11yChar.fire((0,w.stringFromCodePoint)(je)),ot||!this._activeBuffer.x){if(this._activeBuffer.x+ot-1>=Dt)if(Rt){for(;this._activeBuffer.x<Dt;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,1,$t.fg,$t.bg,$t.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=Dt-1,2===ot)continue;if(Ze&&(Ft.insertCells(this._activeBuffer.x,ot,this._activeBuffer.getNullCell($t),$t),2===Ft.getWidth(Dt-1)&&Ft.setCellFromCodePoint(Dt-1,b.NULL_CELL_CODE,b.NULL_CELL_WIDTH,$t.fg,$t.bg,$t.extended)),Ft.setCellFromCodePoint(this._activeBuffer.x++,je,ot,$t.fg,$t.bg,$t.extended),ot>0)for(;--ot;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,0,$t.fg,$t.bg,$t.extended)}else Ft.getWidth(this._activeBuffer.x-1)?Ft.addCodepointToCell(this._activeBuffer.x-1,je):Ft.addCodepointToCell(this._activeBuffer.x-2,je)}ge-de>0&&(Ft.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<Dt&&ge-de>0&&0===Ft.getWidth(this._activeBuffer.x)&&!Ft.hasContent(this._activeBuffer.x)&&Ft.setCellFromCodePoint(this._activeBuffer.x,0,1,$t.fg,$t.bg,$t.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype.registerCsiHandler=function(ue,de){var ge=this;return"t"!==ue.final||ue.prefix||ue.intermediates?this._parser.registerCsiHandler(ue,de):this._parser.registerCsiHandler(ue,function(je){return!Q(je.params[0],ge._optionsService.rawOptions.windowOptions)||de(je)})},fe.prototype.registerDcsHandler=function(ue,de){return this._parser.registerDcsHandler(ue,new F.DcsHandler(de))},fe.prototype.registerEscHandler=function(ue,de){return this._parser.registerEscHandler(ue,de)},fe.prototype.registerOscHandler=function(ue,de){return this._parser.registerOscHandler(ue,new N.OscHandler(de))},fe.prototype.bell=function(){return this._onRequestBell.fire(),!0},fe.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},fe.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},fe.prototype.backspace=function(){var ue;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(ue=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===ue?void 0:ue.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);de.hasWidth(this._activeBuffer.x)&&!de.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},fe.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var ue=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-ue),!0},fe.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},fe.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},fe.prototype._restrictCursor=function(ue){void 0===ue&&(ue=this._bufferService.cols-1),this._activeBuffer.x=Math.min(ue,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype._setCursor=function(ue,de){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=ue,this._activeBuffer.y=this._activeBuffer.scrollTop+de):(this._activeBuffer.x=ue,this._activeBuffer.y=de),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},fe.prototype._moveCursor=function(ue,de){this._restrictCursor(),this._setCursor(this._activeBuffer.x+ue,this._activeBuffer.y+de)},fe.prototype.cursorUp=function(ue){var de=this._activeBuffer.y-this._activeBuffer.scrollTop;return de>=0?this._moveCursor(0,-Math.min(de,ue.params[0]||1)):this._moveCursor(0,-(ue.params[0]||1)),!0},fe.prototype.cursorDown=function(ue){var de=this._activeBuffer.scrollBottom-this._activeBuffer.y;return de>=0?this._moveCursor(0,Math.min(de,ue.params[0]||1)):this._moveCursor(0,ue.params[0]||1),!0},fe.prototype.cursorForward=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},fe.prototype.cursorBackward=function(ue){return this._moveCursor(-(ue.params[0]||1),0),!0},fe.prototype.cursorNextLine=function(ue){return this.cursorDown(ue),this._activeBuffer.x=0,!0},fe.prototype.cursorPrecedingLine=function(ue){return this.cursorUp(ue),this._activeBuffer.x=0,!0},fe.prototype.cursorCharAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},fe.prototype.cursorPosition=function(ue){return this._setCursor(ue.length>=2?(ue.params[1]||1)-1:0,(ue.params[0]||1)-1),!0},fe.prototype.charPosAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},fe.prototype.hPositionRelative=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},fe.prototype.linePosAbsolute=function(ue){return this._setCursor(this._activeBuffer.x,(ue.params[0]||1)-1),!0},fe.prototype.vPositionRelative=function(ue){return this._moveCursor(0,ue.params[0]||1),!0},fe.prototype.hVPosition=function(ue){return this.cursorPosition(ue),!0},fe.prototype.tabClear=function(ue){var de=ue.params[0];return 0===de?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===de&&(this._activeBuffer.tabs={}),!0},fe.prototype.cursorForwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var de=ue.params[0]||1;de--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},fe.prototype.cursorBackwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var de=ue.params[0]||1;de--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},fe.prototype._eraseInBufferLine=function(ue,de,ge,je){void 0===je&&(je=!1);var ot=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);ot.replaceCells(de,ge,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je&&(ot.isWrapped=!1)},fe.prototype._resetBufferLine=function(ue){var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);de.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+ue),de.isWrapped=!1},fe.prototype.eraseInDisplay=function(ue){var de;switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:for(de=this._activeBuffer.y,this._dirtyRowService.markDirty(de),this._eraseInBufferLine(de++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);de<this._bufferService.rows;de++)this._resetBufferLine(de);this._dirtyRowService.markDirty(de);break;case 1:for(de=this._activeBuffer.y,this._dirtyRowService.markDirty(de),this._eraseInBufferLine(de,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(de+1).isWrapped=!1);de--;)this._resetBufferLine(de);this._dirtyRowService.markDirty(0);break;case 2:for(de=this._bufferService.rows,this._dirtyRowService.markDirty(de-1);de--;)this._resetBufferLine(de);this._dirtyRowService.markDirty(0);break;case 3:var ge=this._activeBuffer.lines.length-this._bufferService.rows;ge>0&&(this._activeBuffer.lines.trimStart(ge),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-ge,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-ge,0),this._onScroll.fire(0))}return!0},fe.prototype.eraseInLine=function(ue){switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},fe.prototype.insertLines=function(ue){this._restrictCursor();var de=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ge=this._activeBuffer.ybase+this._activeBuffer.y,je=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ot=this._bufferService.rows-1+this._activeBuffer.ybase-je+1;de--;)this._activeBuffer.lines.splice(ot-1,1),this._activeBuffer.lines.splice(ge,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},fe.prototype.deleteLines=function(ue){this._restrictCursor();var de=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var ge,je=this._activeBuffer.ybase+this._activeBuffer.y;for(ge=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ge=this._bufferService.rows-1+this._activeBuffer.ybase-ge;de--;)this._activeBuffer.lines.splice(je,1),this._activeBuffer.lines.splice(ge,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},fe.prototype.insertChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.insertCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.deleteChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.deleteCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.scrollUp=function(ue){for(var de=ue.params[0]||1;de--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollDown=function(ue){for(var de=ue.params[0]||1;de--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(Z.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollLeft=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);je.deleteCells(0,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.scrollRight=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);je.insertCells(0,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.insertColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);je.insertCells(this._activeBuffer.x,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.deleteColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var de=ue.params[0]||1,ge=this._activeBuffer.scrollTop;ge<=this._activeBuffer.scrollBottom;++ge){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+ge);je.deleteCells(this._activeBuffer.x,de,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},fe.prototype.eraseChars=function(ue){this._restrictCursor();var de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return de&&(de.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(ue.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},fe.prototype.repeatPrecedingCharacter=function(ue){if(!this._parser.precedingCodepoint)return!0;for(var de=ue.params[0]||1,ge=new Uint32Array(de),je=0;je<de;++je)ge[je]=this._parser.precedingCodepoint;return this.print(ge,0,ge.length),!0},fe.prototype.sendDeviceAttributesPrimary=function(ue){return ue.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(E.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(E.C0.ESC+"[?6c")),!0},fe.prototype.sendDeviceAttributesSecondary=function(ue){return ue.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(E.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(E.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ue.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(E.C0.ESC+"[>83;40003;0c")),!0},fe.prototype._is=function(ue){return 0===(this._optionsService.rawOptions.termName+"").indexOf(ue)},fe.prototype.setMode=function(ue){for(var de=0;de<ue.length;de++)4===ue.params[de]&&(this._coreService.modes.insertMode=!0);return!0},fe.prototype.setModePrivate=function(ue){for(var de=0;de<ue.length;de++)switch(ue.params[de]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),this._charsetService.setgCharset(1,j.DEFAULT_CHARSET),this._charsetService.setgCharset(2,j.DEFAULT_CHARSET),this._charsetService.setgCharset(3,j.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},fe.prototype.resetMode=function(ue){for(var de=0;de<ue.length;de++)4===ue.params[de]&&(this._coreService.modes.insertMode=!1);return!0},fe.prototype.resetModePrivate=function(ue){for(var de=0;de<ue.length;de++)switch(ue.params[de]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===ue.params[de]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},fe.prototype._updateAttrColor=function(ue,de,ge,je,ot){return 2===de?(ue|=50331648,ue&=-16777216,ue|=k.AttributeData.fromColorRGB([ge,je,ot])):5===de&&(ue&=-50331904,ue|=33554432|255&ge),ue},fe.prototype._extractColor=function(ue,de,ge){var je=[0,0,-1,0,0,0],ot=0,St=0;do{if(je[St+ot]=ue.params[de+St],ue.hasSubParams(de+St)){var Tt=ue.getSubParams(de+St),Dt=0;do{5===je[1]&&(ot=1),je[St+Dt+1+ot]=Tt[Dt]}while(++Dt<Tt.length&&Dt+St+1+ot<je.length);break}if(5===je[1]&&St+ot>=2||2===je[1]&&St+ot>=5)break;je[1]&&(ot=1)}while(++St+de<ue.length&&St+ot<je.length);for(Dt=2;Dt<je.length;++Dt)-1===je[Dt]&&(je[Dt]=0);switch(je[0]){case 38:ge.fg=this._updateAttrColor(ge.fg,je[1],je[3],je[4],je[5]);break;case 48:ge.bg=this._updateAttrColor(ge.bg,je[1],je[3],je[4],je[5]);break;case 58:ge.extended=ge.extended.clone(),ge.extended.underlineColor=this._updateAttrColor(ge.extended.underlineColor,je[1],je[3],je[4],je[5])}return St},fe.prototype._processUnderline=function(ue,de){de.extended=de.extended.clone(),(!~ue||ue>5)&&(ue=1),de.extended.underlineStyle=ue,de.fg|=268435456,0===ue&&(de.fg&=-268435457),de.updateExtended()},fe.prototype.charAttributes=function(ue){if(1===ue.length&&0===ue.params[0])return this._curAttrData.fg=Z.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=Z.DEFAULT_ATTR_DATA.bg,!0;for(var de,ge=ue.length,je=this._curAttrData,ot=0;ot<ge;ot++)(de=ue.params[ot])>=30&&de<=37?(je.fg&=-50331904,je.fg|=16777216|de-30):de>=40&&de<=47?(je.bg&=-50331904,je.bg|=16777216|de-40):de>=90&&de<=97?(je.fg&=-50331904,je.fg|=16777224|de-90):de>=100&&de<=107?(je.bg&=-50331904,je.bg|=16777224|de-100):0===de?(je.fg=Z.DEFAULT_ATTR_DATA.fg,je.bg=Z.DEFAULT_ATTR_DATA.bg):1===de?je.fg|=134217728:3===de?je.bg|=67108864:4===de?(je.fg|=268435456,this._processUnderline(ue.hasSubParams(ot)?ue.getSubParams(ot)[0]:1,je)):5===de?je.fg|=536870912:7===de?je.fg|=67108864:8===de?je.fg|=1073741824:9===de?je.fg|=2147483648:2===de?je.bg|=134217728:21===de?this._processUnderline(2,je):22===de?(je.fg&=-134217729,je.bg&=-134217729):23===de?je.bg&=-67108865:24===de?je.fg&=-268435457:25===de?je.fg&=-536870913:27===de?je.fg&=-67108865:28===de?je.fg&=-1073741825:29===de?je.fg&=2147483647:39===de?(je.fg&=-67108864,je.fg|=16777215&Z.DEFAULT_ATTR_DATA.fg):49===de?(je.bg&=-67108864,je.bg|=16777215&Z.DEFAULT_ATTR_DATA.bg):38===de||48===de||58===de?ot+=this._extractColor(ue,ot,je):59===de?(je.extended=je.extended.clone(),je.extended.underlineColor=-1,je.updateExtended()):100===de?(je.fg&=-67108864,je.fg|=16777215&Z.DEFAULT_ATTR_DATA.fg,je.bg&=-67108864,je.bg|=16777215&Z.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",de);return!0},fe.prototype.deviceStatus=function(ue){switch(ue.params[0]){case 5:this._coreService.triggerDataEvent(E.C0.ESC+"[0n");break;case 6:var de=this._activeBuffer.y+1,ge=this._activeBuffer.x+1;this._coreService.triggerDataEvent(E.C0.ESC+"["+de+";"+ge+"R")}return!0},fe.prototype.deviceStatusPrivate=function(ue){if(6===ue.params[0]){var de=this._activeBuffer.y+1,ge=this._activeBuffer.x+1;this._coreService.triggerDataEvent(E.C0.ESC+"[?"+de+";"+ge+"R")}return!0},fe.prototype.softReset=function(ue){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},fe.prototype.setCursorStyle=function(ue){var de=ue.params[0]||1;switch(de){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var ge=de%2==1;return this._optionsService.options.cursorBlink=ge,!0},fe.prototype.setScrollRegion=function(ue){var de,ge=ue.params[0]||1;return(ue.length<2||(de=ue.params[1])>this._bufferService.rows||0===de)&&(de=this._bufferService.rows),de>ge&&(this._activeBuffer.scrollTop=ge-1,this._activeBuffer.scrollBottom=de-1,this._setCursor(0,0)),!0},fe.prototype.windowOptions=function(ue){if(!Q(ue.params[0],this._optionsService.rawOptions.windowOptions))return!0;var de=ue.length>1?ue.params[1]:0;switch(ue.params[0]){case 14:2!==de&&this._onRequestWindowsOptionsReport.fire(T.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(T.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(E.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==de&&2!==de||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==de&&1!==de||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==de&&2!==de||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==de&&1!==de||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},fe.prototype.saveCursor=function(ue){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},fe.prototype.restoreCursor=function(ue){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},fe.prototype.setTitle=function(ue){return this._windowTitle=ue,this._onTitleChange.fire(ue),!0},fe.prototype.setIconName=function(ue){return this._iconName=ue,!0},fe.prototype.setOrReportIndexedColor=function(ue){for(var de=[],ge=ue.split(";");ge.length>1;){var je=ge.shift(),ot=ge.shift();if(/^\d+$/.exec(je)){var St=parseInt(je);if(0<=St&&St<256)if("?"===ot)de.push({type:0,index:St});else{var Tt=(0,X.parseColor)(ot);Tt&&de.push({type:1,index:St,color:Tt})}}}return de.length&&this._onColor.fire(de),!0},fe.prototype._setOrReportSpecialColor=function(ue,de){for(var ge=ue.split(";"),je=0;je<ge.length&&!(de>=this._specialColors.length);++je,++de)if("?"===ge[je])this._onColor.fire([{type:0,index:this._specialColors[de]}]);else{var ot=(0,X.parseColor)(ge[je]);ot&&this._onColor.fire([{type:1,index:this._specialColors[de],color:ot}])}return!0},fe.prototype.setOrReportFgColor=function(ue){return this._setOrReportSpecialColor(ue,0)},fe.prototype.setOrReportBgColor=function(ue){return this._setOrReportSpecialColor(ue,1)},fe.prototype.setOrReportCursorColor=function(ue){return this._setOrReportSpecialColor(ue,2)},fe.prototype.restoreIndexedColor=function(ue){if(!ue)return this._onColor.fire([{type:2}]),!0;for(var de=[],ge=ue.split(";"),je=0;je<ge.length;++je)if(/^\d+$/.exec(ge[je])){var ot=parseInt(ge[je]);0<=ot&&ot<256&&de.push({type:2,index:ot})}return de.length&&this._onColor.fire(de),!0},fe.prototype.restoreFgColor=function(ue){return this._onColor.fire([{type:2,index:256}]),!0},fe.prototype.restoreBgColor=function(ue){return this._onColor.fire([{type:2,index:257}]),!0},fe.prototype.restoreCursorColor=function(ue){return this._onColor.fire([{type:2,index:258}]),!0},fe.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},fe.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},fe.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},fe.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),!0},fe.prototype.selectCharset=function(ue){return 2!==ue.length?(this.selectDefaultCharset(),!0):("/"===ue[0]||this._charsetService.setgCharset($[ue[0]],j.CHARSETS[ue[1]]||j.DEFAULT_CHARSET),!0)},fe.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},fe.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},fe.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var ue=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,ue,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},fe.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},fe.prototype.reset=function(){this._curAttrData=Z.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=Z.DEFAULT_ATTR_DATA.clone()},fe.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},fe.prototype.setgLevel=function(ue){return this._charsetService.setgLevel(ue),!0},fe.prototype.screenAlignmentPattern=function(){var ue=new S.CellData;ue.content=1<<22|"E".charCodeAt(0),ue.fg=this._curAttrData.fg,ue.bg=this._curAttrData.bg,this._setCursor(0,0);for(var de=0;de<this._bufferService.rows;++de){var ge=this._activeBuffer.ybase+this._activeBuffer.y+de,je=this._activeBuffer.lines.get(ge);je&&(je.fill(ue),je.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},fe}(v.Disposable);A.InputHandler=be},844:function(W,A){var H=this&&this.__values||function(T){var E="function"==typeof Symbol&&Symbol.iterator,j=E&&T[E],R=0;if(j)return j.call(T);if(T&&"number"==typeof T.length)return{next:function(){return T&&R>=T.length&&(T=void 0),{value:T&&T[R++],done:!T}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getDisposeArrayDisposable=A.disposeArray=A.Disposable=void 0;var P=function(){function T(){this._disposables=[],this._isDisposed=!1}return T.prototype.dispose=function(){var E,j;this._isDisposed=!0;try{for(var R=H(this._disposables),v=R.next();!v.done;v=R.next())v.value.dispose()}catch(x){E={error:x}}finally{try{v&&!v.done&&(j=R.return)&&j.call(R)}finally{if(E)throw E.error}}this._disposables.length=0},T.prototype.register=function(E){return this._disposables.push(E),E},T.prototype.unregister=function(E){var j=this._disposables.indexOf(E);-1!==j&&this._disposables.splice(j,1)},T}();function I(T){var E,j;try{for(var R=H(T),v=R.next();!v.done;v=R.next())v.value.dispose()}catch(x){E={error:x}}finally{try{v&&!v.done&&(j=R.return)&&j.call(R)}finally{if(E)throw E.error}}T.length=0}A.Disposable=P,A.disposeArray=I,A.getDisposeArrayDisposable=function(T){return{dispose:function(){return I(T)}}}},6114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.isLinux=A.isWindows=A.isIphone=A.isIpad=A.isMac=A.isSafari=A.isLegacyEdge=A.isFirefox=void 0;var H="undefined"==typeof navigator,P=H?"node":navigator.userAgent,I=H?"node":navigator.platform;A.isFirefox=P.includes("Firefox"),A.isLegacyEdge=P.includes("Edge"),A.isSafari=/^((?!chrome|android).)*safari/i.test(P),A.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(I),A.isIpad="iPad"===I,A.isIphone="iPhone"===I,A.isWindows=["Windows","Win16","Win32","WinCE"].includes(I),A.isLinux=I.indexOf("Linux")>=0},6106:function(W,A){var H=this&&this.__generator||function(I,T){var E,j,R,v,x={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return v={next:w(0),throw:w(1),return:w(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function w(Z){return function(D){return function(b){if(E)throw new TypeError("Generator is already executing.");for(;x;)try{if(E=1,j&&(R=2&b[0]?j.return:b[0]?j.throw||((R=j.return)&&R.call(j),0):j.next)&&!(R=R.call(j,b[1])).done)return R;switch(j=0,R&&(b=[2&b[0],R.value]),b[0]){case 0:case 1:R=b;break;case 4:return x.label++,{value:b[1],done:!1};case 5:x.label++,j=b[1],b=[0];continue;case 7:b=x.ops.pop(),x.trys.pop();continue;default:if(!((R=(R=x.trys).length>0&&R[R.length-1])||6!==b[0]&&2!==b[0])){x=0;continue}if(3===b[0]&&(!R||b[1]>R[0]&&b[1]<R[3])){x.label=b[1];break}if(6===b[0]&&x.label<R[1]){x.label=R[1],R=b;break}if(R&&x.label<R[2]){x.label=R[2],x.ops.push(b);break}R[2]&&x.ops.pop(),x.trys.pop();continue}b=T.call(I,x)}catch(S){b=[6,S],j=0}finally{E=R=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([Z,D])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.SortedList=void 0;var P=function(){function I(T){this._getKey=T,this._array=[]}return I.prototype.clear=function(){this._array.length=0},I.prototype.insert=function(T){if(0!==this._array.length){var E=this._search(this._getKey(T),0,this._array.length-1);this._array.splice(E,0,T)}else this._array.push(T)},I.prototype.delete=function(T){if(0===this._array.length)return!1;var E=this._getKey(T),j=this._search(E,0,this._array.length-1);if(this._getKey(this._array[j])!==E)return!1;do{if(this._array[j]===T)return this._array.splice(j,1),!0}while(++j<this._array.length&&this._getKey(this._array[j])===E);return!1},I.prototype.getKeyIterator=function(T){var E;return H(this,function(j){switch(j.label){case 0:if(0===this._array.length)return[2];if((E=this._search(T,0,this._array.length-1))<0||E>=this._array.length)return[2];if(this._getKey(this._array[E])!==T)return[2];j.label=1;case 1:return[4,this._array[E]];case 2:j.sent(),j.label=3;case 3:if(++E<this._array.length&&this._getKey(this._array[E])===T)return[3,1];j.label=4;case 4:return[2]}})},I.prototype.values=function(){return this._array.values()},I.prototype._search=function(T,E,j){if(j<E)return E;var R=Math.floor((E+j)/2);if(this._getKey(this._array[R])>T)return this._search(T,E,R-1);if(this._getKey(this._array[R])<T)return this._search(T,R+1,j);for(;R>0&&this._getKey(this._array[R-1])===T;)R--;return R},I}();A.SortedList=P},8273:function(W,A){function H(P,I,T,E){if(void 0===T&&(T=0),void 0===E&&(E=P.length),T>=P.length)return P;T=(P.length+T)%P.length,E=E>=P.length?P.length:(P.length+E)%P.length;for(var j=T;j<E;++j)P[j]=I;return P}Object.defineProperty(A,"__esModule",{value:!0}),A.concat=A.fillFallback=A.fill=void 0,A.fill=function(P,I,T,E){return P.fill?P.fill(I,T,E):H(P,I,T,E)},A.fillFallback=H,A.concat=function(P,I){var T=new P.constructor(P.length+I.length);return T.set(P),T.set(I,P.length),T}},9282:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.updateWindowsModeWrappedState=void 0;var P=H(643);A.updateWindowsModeWrappedState=function(I){var T=I.buffer.lines.get(I.buffer.ybase+I.buffer.y-1),E=null==T?void 0:T.get(I.cols-1),j=I.buffer.lines.get(I.buffer.ybase+I.buffer.y);j&&E&&(j.isWrapped=E[P.CHAR_DATA_CODE_INDEX]!==P.NULL_CELL_CODE&&E[P.CHAR_DATA_CODE_INDEX]!==P.WHITESPACE_CELL_CODE)}},3734:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ExtendedAttrs=A.AttributeData=void 0;var H=function(){function I(){this.fg=0,this.bg=0,this.extended=new P}return I.toColorRGB=function(T){return[T>>>16&255,T>>>8&255,255&T]},I.fromColorRGB=function(T){return(255&T[0])<<16|(255&T[1])<<8|255&T[2]},I.prototype.clone=function(){var T=new I;return T.fg=this.fg,T.bg=this.bg,T.extended=this.extended.clone(),T},I.prototype.isInverse=function(){return 67108864&this.fg},I.prototype.isBold=function(){return 134217728&this.fg},I.prototype.isUnderline=function(){return 268435456&this.fg},I.prototype.isBlink=function(){return 536870912&this.fg},I.prototype.isInvisible=function(){return 1073741824&this.fg},I.prototype.isItalic=function(){return 67108864&this.bg},I.prototype.isDim=function(){return 134217728&this.bg},I.prototype.isStrikethrough=function(){return 2147483648&this.fg},I.prototype.getFgColorMode=function(){return 50331648&this.fg},I.prototype.getBgColorMode=function(){return 50331648&this.bg},I.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},I.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},I.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},I.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},I.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},I.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},I.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},I.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},I.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},I.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},I.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},I.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},I.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},I.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},I.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},I.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},I.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},I}();A.AttributeData=H;var P=function(){function I(T,E){void 0===T&&(T=0),void 0===E&&(E=-1),this.underlineStyle=T,this.underlineColor=E}return I.prototype.clone=function(){return new I(this.underlineStyle,this.underlineColor)},I.prototype.isEmpty=function(){return 0===this.underlineStyle},I}();A.ExtendedAttrs=P},9092:function(W,A,H){var P=this&&this.__read||function(S,k){var M="function"==typeof Symbol&&S[Symbol.iterator];if(!M)return S;var N,F,X=M.call(S),$=[];try{for(;(void 0===k||k-- >0)&&!(N=X.next()).done;)$.push(N.value)}catch(V){F={error:V}}finally{try{N&&!N.done&&(M=X.return)&&M.call(X)}finally{if(F)throw F.error}}return $},I=this&&this.__spreadArray||function(S,k,M){if(M||2===arguments.length)for(var N,F=0,X=k.length;F<X;F++)!N&&F in k||(N||(N=Array.prototype.slice.call(k,0,F)),N[F]=k[F]);return S.concat(N||Array.prototype.slice.call(k))};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferStringIterator=A.Buffer=A.MAX_BUFFER_SIZE=void 0;var T=H(6349),E=H(8437),j=H(511),R=H(643),v=H(4634),x=H(4863),w=H(7116),Z=H(3734);A.MAX_BUFFER_SIZE=4294967295;var D=function(){function S(k,M,N){this._hasScrollback=k,this._optionsService=M,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=E.DEFAULT_ATTR_DATA.clone(),this.savedCharset=w.DEFAULT_CHARSET,this.markers=[],this._nullCell=j.CellData.fromCharData([0,R.NULL_CELL_CHAR,R.NULL_CELL_WIDTH,R.NULL_CELL_CODE]),this._whitespaceCell=j.CellData.fromCharData([0,R.WHITESPACE_CELL_CHAR,R.WHITESPACE_CELL_WIDTH,R.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new T.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return S.prototype.getNullCell=function(k){return k?(this._nullCell.fg=k.fg,this._nullCell.bg=k.bg,this._nullCell.extended=k.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new Z.ExtendedAttrs),this._nullCell},S.prototype.getWhitespaceCell=function(k){return k?(this._whitespaceCell.fg=k.fg,this._whitespaceCell.bg=k.bg,this._whitespaceCell.extended=k.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new Z.ExtendedAttrs),this._whitespaceCell},S.prototype.getBlankLine=function(k,M){return new E.BufferLine(this._bufferService.cols,this.getNullCell(k),M)},Object.defineProperty(S.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isCursorInViewport",{get:function(){var M=this.ybase+this.y-this.ydisp;return M>=0&&M<this._rows},enumerable:!1,configurable:!0}),S.prototype._getCorrectBufferLength=function(k){if(!this._hasScrollback)return k;var M=k+this._optionsService.rawOptions.scrollback;return M>A.MAX_BUFFER_SIZE?A.MAX_BUFFER_SIZE:M},S.prototype.fillViewportRows=function(k){if(0===this.lines.length){void 0===k&&(k=E.DEFAULT_ATTR_DATA);for(var M=this._rows;M--;)this.lines.push(this.getBlankLine(k))}},S.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new T.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},S.prototype.resize=function(k,M){var N=this.getNullCell(E.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(M);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols<k)for(var X=0;X<this.lines.length;X++)this.lines.get(X).resize(k,N);var $=0;if(this._rows<M)for(var V=this._rows;V<M;V++)this.lines.length<M+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new E.BufferLine(k,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new E.BufferLine(k,N)));else for(V=this._rows;V>M;V--)this.lines.length>M+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F<this.lines.maxLength){var Q=this.lines.length-F;Q>0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=F}this.x=Math.min(this.x,k-1),this.y=Math.min(this.y,M-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,k-1),this.scrollTop=0}if(this.scrollBottom=M-1,this._isReflowEnabled&&(this._reflow(k,M),this._cols>k))for(X=0;X<this.lines.length;X++)this.lines.get(X).resize(k,N);this._cols=k,this._rows=M},Object.defineProperty(S.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),S.prototype._reflow=function(k,M){this._cols!==k&&(k>this._cols?this._reflowLarger(k,M):this._reflowSmaller(k,M))},S.prototype._reflowLarger=function(k,M){var N=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,k,this.ybase+this.y,this.getNullCell(E.DEFAULT_ATTR_DATA));if(N.length>0){var F=(0,v.reflowLargerCreateNewLayout)(this.lines,N);(0,v.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(k,M,F.countRemoved)}},S.prototype._reflowLargerAdjustViewport=function(k,M,N){for(var F=this.getNullCell(E.DEFAULT_ATTR_DATA),X=N;X-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<M&&this.lines.push(new E.BufferLine(k,F))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},S.prototype._reflowSmaller=function(k,M){for(var N=this.getNullCell(E.DEFAULT_ATTR_DATA),F=[],X=0,$=this.lines.length-1;$>=0;$--){var V=this.lines.get($);if(!(!V||!V.isWrapped&&V.getTrimmedLength()<=k)){for(var Q=[V];V.isWrapped&&$>0;)V=this.lines.get(--$),Q.unshift(V);var te=this.ybase+this.y;if(!(te>=$&&te<$+Q.length)){var be,pe=Q[Q.length-1].getTrimmedLength(),fe=(0,v.reflowSmallerGetNewLineLengths)(Q,this._cols,k),ue=fe.length-Q.length;be=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ue):Math.max(0,this.lines.length-this.lines.maxLength+ue);for(var de=[],ge=0;ge<ue;ge++){var je=this.getBlankLine(E.DEFAULT_ATTR_DATA,!0);de.push(je)}de.length>0&&(F.push({start:$+Q.length+X,newLines:de}),X+=de.length),Q.push.apply(Q,I([],P(de),!1));var ot=fe.length-1,St=fe[ot];0===St&&(St=fe[--ot]);for(var Tt=Q.length-ue-1,Dt=pe;Tt>=0;){var Rt=Math.min(Dt,St);if(void 0===Q[ot])break;if(Q[ot].copyCellsFrom(Q[Tt],Dt-Rt,St-Rt,Rt,!0),0==(St-=Rt)&&(St=fe[--ot]),0==(Dt-=Rt)){Tt--;var Ze=Math.max(Tt,0);Dt=(0,v.getWrappedLineTrimmedLength)(Q,Ze,this._cols)}}for(ge=0;ge<Q.length;ge++)fe[ge]<k&&Q[ge].setCell(fe[ge],N);for(var $t=ue-be;$t-- >0;)0===this.ybase?this.y<M-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+X)-M&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ue,this.ybase+M-1)}}}if(F.length>0){var Ft=[],pn=[];for(ge=0;ge<this.lines.length;ge++)pn.push(this.lines.get(ge));var rt=this.lines.length,Ot=rt-1,_t=0,Ct=F[_t];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+X);var Ve=0;for(ge=Math.min(this.lines.maxLength-1,rt+X-1);ge>=0;ge--)if(Ct&&Ct.start>Ot+Ve){for(var at=Ct.newLines.length-1;at>=0;at--)this.lines.set(ge--,Ct.newLines[at]);ge++,Ft.push({index:Ot+1,amount:Ct.newLines.length}),Ve+=Ct.newLines.length,Ct=F[++_t]}else this.lines.set(ge,pn[Ot--]);var ht=0;for(ge=Ft.length-1;ge>=0;ge--)Ft[ge].index+=ht,this.lines.onInsertEmitter.fire(Ft[ge]),ht+=Ft[ge].amount;var Ut=Math.max(0,rt+X-this.lines.maxLength);Ut>0&&this.lines.onTrimEmitter.fire(Ut)}},S.prototype.stringIndexToBufferIndex=function(k,M,N){for(void 0===N&&(N=!1);M;){var F=this.lines.get(k);if(!F)return[-1,-1];for(var X=N?F.getTrimmedLength():F.length,$=0;$<X;++$)if(F.get($)[R.CHAR_DATA_WIDTH_INDEX]&&(M-=F.get($)[R.CHAR_DATA_CHAR_INDEX].length||1),M<0)return[k,$];k++}return[k,0]},S.prototype.translateBufferLineToString=function(k,M,N,F){void 0===N&&(N=0);var X=this.lines.get(k);return X?X.translateToString(M,N,F):""},S.prototype.getWrappedRangeForLine=function(k){for(var M=k,N=k;M>0&&this.lines.get(M).isWrapped;)M--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:M,last:N}},S.prototype.setupTabStops=function(k){for(null!=k?this.tabs[k]||(k=this.prevStop(k)):(this.tabs={},k=0);k<this._cols;k+=this._optionsService.rawOptions.tabStopWidth)this.tabs[k]=!0},S.prototype.prevStop=function(k){for(null==k&&(k=this.x);!this.tabs[--k]&&k>0;);return k>=this._cols?this._cols-1:k<0?0:k},S.prototype.nextStop=function(k){for(null==k&&(k=this.x);!this.tabs[++k]&&k<this._cols;);return k>=this._cols?this._cols-1:k<0?0:k},S.prototype.clearMarkers=function(k){this._isClearing=!0;for(var M=0;M<this.markers.length;M++)this.markers[M].line===k&&(this.markers[M].dispose(),this.markers.splice(M--,1));this._isClearing=!1},S.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var k=0;k<this.markers.length;k++)this.markers[k].dispose(),this.markers.splice(k--,1);this._isClearing=!1},S.prototype.addMarker=function(k){var M=this,N=new x.Marker(k);return this.markers.push(N),N.register(this.lines.onTrim(function(F){N.line-=F,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(F){N.line>=F.index&&(N.line+=F.amount)})),N.register(this.lines.onDelete(function(F){N.line>=F.index&&N.line<F.index+F.amount&&N.dispose(),N.line>F.index&&(N.line-=F.amount)})),N.register(N.onDispose(function(){return M._removeMarker(N)})),N},S.prototype._removeMarker=function(k){this._isClearing||this.markers.splice(this.markers.indexOf(k),1)},S.prototype.iterator=function(k,M,N,F,X){return new b(this,k,M,N,F,X)},S}();A.Buffer=D;var b=function(){function S(k,M,N,F,X,$){void 0===N&&(N=0),void 0===F&&(F=k.lines.length),void 0===X&&(X=0),void 0===$&&($=0),this._buffer=k,this._trimRight=M,this._startIndex=N,this._endIndex=F,this._startOverscan=X,this._endOverscan=$,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return S.prototype.hasNext=function(){return this._current<this._endIndex},S.prototype.next=function(){var k=this._buffer.getWrappedRangeForLine(this._current);k.first<this._startIndex-this._startOverscan&&(k.first=this._startIndex-this._startOverscan),k.last>this._endIndex+this._endOverscan&&(k.last=this._endIndex+this._endOverscan),k.first=Math.max(k.first,0),k.last=Math.min(k.last,this._buffer.lines.length);for(var M="",N=k.first;N<=k.last;++N)M+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=k.last+1,{range:k,content:M}},S}();A.BufferStringIterator=b},8437:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLine=A.DEFAULT_ATTR_DATA=void 0;var P=H(482),I=H(643),T=H(511),E=H(3734);A.DEFAULT_ATTR_DATA=Object.freeze(new E.AttributeData);var j=function(){function R(v,x,w){void 0===w&&(w=!1),this.isWrapped=w,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var Z=x||T.CellData.fromCharData([0,I.NULL_CELL_CHAR,I.NULL_CELL_WIDTH,I.NULL_CELL_CODE]),D=0;D<v;++D)this.setCell(D,Z);this.length=v}return R.prototype.get=function(v){var x=this._data[3*v+0],w=2097151&x;return[this._data[3*v+1],2097152&x?this._combined[v]:w?(0,P.stringFromCodePoint)(w):"",x>>22,2097152&x?this._combined[v].charCodeAt(this._combined[v].length-1):w]},R.prototype.set=function(v,x){this._data[3*v+1]=x[I.CHAR_DATA_ATTR_INDEX],x[I.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=x[1],this._data[3*v+0]=2097152|v|x[I.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=x[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|x[I.CHAR_DATA_WIDTH_INDEX]<<22},R.prototype.getWidth=function(v){return this._data[3*v+0]>>22},R.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},R.prototype.getFg=function(v){return this._data[3*v+1]},R.prototype.getBg=function(v){return this._data[3*v+2]},R.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},R.prototype.getCodePoint=function(v){var x=this._data[3*v+0];return 2097152&x?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&x},R.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},R.prototype.getString=function(v){var x=this._data[3*v+0];return 2097152&x?this._combined[v]:2097151&x?(0,P.stringFromCodePoint)(2097151&x):""},R.prototype.loadCell=function(v,x){var w=3*v;return x.content=this._data[w+0],x.fg=this._data[w+1],x.bg=this._data[w+2],2097152&x.content&&(x.combinedData=this._combined[v]),268435456&x.bg&&(x.extended=this._extendedAttrs[v]),x},R.prototype.setCell=function(v,x){2097152&x.content&&(this._combined[v]=x.combinedData),268435456&x.bg&&(this._extendedAttrs[v]=x.extended),this._data[3*v+0]=x.content,this._data[3*v+1]=x.fg,this._data[3*v+2]=x.bg},R.prototype.setCellFromCodePoint=function(v,x,w,Z,D,b){268435456&D&&(this._extendedAttrs[v]=b),this._data[3*v+0]=x|w<<22,this._data[3*v+1]=Z,this._data[3*v+2]=D},R.prototype.addCodepointToCell=function(v,x){var w=this._data[3*v+0];2097152&w?this._combined[v]+=(0,P.stringFromCodePoint)(x):(2097151&w?(this._combined[v]=(0,P.stringFromCodePoint)(2097151&w)+(0,P.stringFromCodePoint)(x),w&=-2097152,w|=2097152):w=x|1<<22,this._data[3*v+0]=w)},R.prototype.insertCells=function(v,x,w,Z){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),x<this.length-v){for(var D=new T.CellData,b=this.length-v-x-1;b>=0;--b)this.setCell(v+x+b,this.loadCell(v+b,D));for(b=0;b<x;++b)this.setCell(v+b,w)}else for(b=v;b<this.length;++b)this.setCell(b,w);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs)},R.prototype.deleteCells=function(v,x,w,Z){if(v%=this.length,x<this.length-v){for(var D=new T.CellData,b=0;b<this.length-v-x;++b)this.setCell(v+b,this.loadCell(v+x+b,D));for(b=this.length-x;b<this.length;++b)this.setCell(b,w)}else for(b=v;b<this.length;++b)this.setCell(b,w);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs)},R.prototype.replaceCells=function(v,x,w,Z){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs),x<this.length&&2===this.getWidth(x-1)&&this.setCellFromCodePoint(x,0,1,(null==Z?void 0:Z.fg)||0,(null==Z?void 0:Z.bg)||0,(null==Z?void 0:Z.extended)||new E.ExtendedAttrs);v<x&&v<this.length;)this.setCell(v++,w)},R.prototype.resize=function(v,x){if(v!==this.length){if(v>this.length){var w=new Uint32Array(3*v);this.length&&(3*v<this._data.length?w.set(this._data.subarray(0,3*v)):w.set(this._data)),this._data=w;for(var Z=this.length;Z<v;++Z)this.setCell(Z,x)}else if(v){(w=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=w;var D=Object.keys(this._combined);for(Z=0;Z<D.length;Z++){var b=parseInt(D[Z],10);b>=v&&delete this._combined[b]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},R.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var x=0;x<this.length;++x)this.setCell(x,v)},R.prototype.copyFrom=function(v){for(var x in this.length!==v.length?this._data=new Uint32Array(v._data):this._data.set(v._data),this.length=v.length,this._combined={},v._combined)this._combined[x]=v._combined[x];for(var x in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[x]=v._extendedAttrs[x];this.isWrapped=v.isWrapped},R.prototype.clone=function(){var v=new R(0);for(var x in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[x]=this._combined[x];for(var x in this._extendedAttrs)v._extendedAttrs[x]=this._extendedAttrs[x];return v.isWrapped=this.isWrapped,v},R.prototype.getTrimmedLength=function(){for(var v=this.length-1;v>=0;--v)if(4194303&this._data[3*v+0])return v+(this._data[3*v+0]>>22);return 0},R.prototype.copyCellsFrom=function(v,x,w,Z,D){var b=v._data;if(D)for(var S=Z-1;S>=0;S--)for(var k=0;k<3;k++)this._data[3*(w+S)+k]=b[3*(x+S)+k];else for(S=0;S<Z;S++)for(k=0;k<3;k++)this._data[3*(w+S)+k]=b[3*(x+S)+k];var M=Object.keys(v._combined);for(k=0;k<M.length;k++){var N=parseInt(M[k],10);N>=x&&(this._combined[N-x+w]=v._combined[N])}},R.prototype.translateToString=function(v,x,w){void 0===v&&(v=!1),void 0===x&&(x=0),void 0===w&&(w=this.length),v&&(w=Math.min(w,this.getTrimmedLength()));for(var Z="";x<w;){var D=this._data[3*x+0],b=2097151&D;Z+=2097152&D?this._combined[x]:b?(0,P.stringFromCodePoint)(b):I.WHITESPACE_CELL_CHAR,x+=D>>22||1}return Z},R}();A.BufferLine=j},4841:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.getRangeLength=void 0,A.getRangeLength=function(H,P){if(H.start.y>H.end.y)throw new Error("Buffer range end ("+H.end.x+", "+H.end.y+") cannot be before start ("+H.start.x+", "+H.start.y+")");return P*(H.end.y-H.start.y)+(H.end.x-H.start.x+1)}},4634:function(W,A){function H(P,I,T){if(I===P.length-1)return P[I].getTrimmedLength();var E=!P[I].hasContent(T-1)&&1===P[I].getWidth(T-1),j=2===P[I+1].getWidth(0);return E&&j?T-1:T}Object.defineProperty(A,"__esModule",{value:!0}),A.getWrappedLineTrimmedLength=A.reflowSmallerGetNewLineLengths=A.reflowLargerApplyNewLayout=A.reflowLargerCreateNewLayout=A.reflowLargerGetLinesToRemove=void 0,A.reflowLargerGetLinesToRemove=function(P,I,T,E,j){for(var R=[],v=0;v<P.length-1;v++){var x=v,w=P.get(++x);if(w.isWrapped){for(var Z=[P.get(v)];x<P.length&&w.isWrapped;)Z.push(w),w=P.get(++x);if(E>=v&&E<x)v+=Z.length-1;else{for(var D=0,b=H(Z,D,I),S=1,k=0;S<Z.length;){var M=H(Z,S,I),N=M-k,F=T-b,X=Math.min(N,F);Z[D].copyCellsFrom(Z[S],k,b,X,!1),(b+=X)===T&&(D++,b=0),(k+=X)===M&&(S++,k=0),0===b&&0!==D&&2===Z[D-1].getWidth(T-1)&&(Z[D].copyCellsFrom(Z[D-1],T-1,b++,1,!1),Z[D-1].setCell(T-1,j))}Z[D].replaceCells(b,T,j);for(var $=0,V=Z.length-1;V>0&&(V>D||0===Z[V].getTrimmedLength());V--)$++;$>0&&(R.push(v+Z.length-$),R.push($)),v+=Z.length-1}}}return R},A.reflowLargerCreateNewLayout=function(P,I){for(var T=[],E=0,j=I[E],R=0,v=0;v<P.length;v++)if(j===v){var x=I[++E];P.onDeleteEmitter.fire({index:v-R,amount:x}),v+=x-1,R+=x,j=I[++E]}else T.push(v);return{layout:T,countRemoved:R}},A.reflowLargerApplyNewLayout=function(P,I){for(var T=[],E=0;E<I.length;E++)T.push(P.get(I[E]));for(E=0;E<T.length;E++)P.set(E,T[E]);P.length=I.length},A.reflowSmallerGetNewLineLengths=function(P,I,T){for(var E=[],j=P.map(function(b,S){return H(P,S,I)}).reduce(function(b,S){return b+S}),R=0,v=0,x=0;x<j;){if(j-x<T){E.push(j-x);break}R+=T;var w=H(P,v,I);R>w&&(R-=w,v++);var Z=2===P[v].getWidth(R-1);Z&&R--;var D=Z?T-1:T;E.push(D),x+=D}return E},A.getWrappedLineTrimmedLength=H},5295:function(W,A,H){var P,I=this&&this.__extends||(P=function(v,x){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,Z){w.__proto__=Z}||function(w,Z){for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(w[D]=Z[D])})(v,x)},function(R,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function x(){this.constructor=R}P(R,v),R.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(A,"__esModule",{value:!0}),A.BufferSet=void 0;var T=H(9092),E=H(8460),j=function(R){function v(x,w){var Z=R.call(this)||this;return Z._optionsService=x,Z._bufferService=w,Z._onBufferActivate=Z.register(new E.EventEmitter),Z.reset(),Z}return I(v,R),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new T.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new T.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(v.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),v.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},v.prototype.activateAltBuffer=function(x){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(x),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},v.prototype.resize=function(x,w){this._normal.resize(x,w),this._alt.resize(x,w)},v.prototype.setupTabStops=function(x){this._normal.setupTabStops(x),this._alt.setupTabStops(x)},v}(H(844).Disposable);A.BufferSet=j},511:function(W,A,H){var P,I=this&&this.__extends||(P=function(x,w){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,D){Z.__proto__=D}||function(Z,D){for(var b in D)Object.prototype.hasOwnProperty.call(D,b)&&(Z[b]=D[b])})(x,w)},function(v,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function w(){this.constructor=v}P(v,x),v.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(A,"__esModule",{value:!0}),A.CellData=void 0;var T=H(482),E=H(643),j=H(3734),R=function(v){function x(){var w=null!==v&&v.apply(this,arguments)||this;return w.content=0,w.fg=0,w.bg=0,w.extended=new j.ExtendedAttrs,w.combinedData="",w}return I(x,v),x.fromCharData=function(w){var Z=new x;return Z.setFromCharData(w),Z},x.prototype.isCombined=function(){return 2097152&this.content},x.prototype.getWidth=function(){return this.content>>22},x.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,T.stringFromCodePoint)(2097151&this.content):""},x.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},x.prototype.setFromCharData=function(w){this.fg=w[E.CHAR_DATA_ATTR_INDEX],this.bg=0;var Z=!1;if(w[E.CHAR_DATA_CHAR_INDEX].length>2)Z=!0;else if(2===w[E.CHAR_DATA_CHAR_INDEX].length){var D=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=D&&D<=56319){var b=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=b&&b<=57343?this.content=1024*(D-55296)+b-56320+65536|w[E.CHAR_DATA_WIDTH_INDEX]<<22:Z=!0}else Z=!0}else this.content=w[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[E.CHAR_DATA_WIDTH_INDEX]<<22;Z&&(this.combinedData=w[E.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[E.CHAR_DATA_WIDTH_INDEX]<<22)},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(j.AttributeData);A.CellData=R},643:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.WHITESPACE_CELL_CODE=A.WHITESPACE_CELL_WIDTH=A.WHITESPACE_CELL_CHAR=A.NULL_CELL_CODE=A.NULL_CELL_WIDTH=A.NULL_CELL_CHAR=A.CHAR_DATA_CODE_INDEX=A.CHAR_DATA_WIDTH_INDEX=A.CHAR_DATA_CHAR_INDEX=A.CHAR_DATA_ATTR_INDEX=A.DEFAULT_ATTR=A.DEFAULT_COLOR=void 0,A.DEFAULT_COLOR=256,A.DEFAULT_ATTR=256|A.DEFAULT_COLOR<<9,A.CHAR_DATA_ATTR_INDEX=0,A.CHAR_DATA_CHAR_INDEX=1,A.CHAR_DATA_WIDTH_INDEX=2,A.CHAR_DATA_CODE_INDEX=3,A.NULL_CELL_CHAR="",A.NULL_CELL_WIDTH=1,A.NULL_CELL_CODE=0,A.WHITESPACE_CELL_CHAR=" ",A.WHITESPACE_CELL_WIDTH=1,A.WHITESPACE_CELL_CODE=32},4863:function(W,A,H){var P,I=this&&this.__extends||(P=function(R,v){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,w){x.__proto__=w}||function(x,w){for(var Z in w)Object.prototype.hasOwnProperty.call(w,Z)&&(x[Z]=w[Z])})(R,v)},function(j,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function v(){this.constructor=j}P(j,R),j.prototype=null===R?Object.create(R):(v.prototype=R.prototype,new v)});Object.defineProperty(A,"__esModule",{value:!0}),A.Marker=void 0;var T=H(8460),E=function(j){function R(v){var x=j.call(this)||this;return x.line=v,x._id=R._nextId++,x.isDisposed=!1,x._onDispose=new T.EventEmitter,x}return I(R,j),Object.defineProperty(R.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),j.prototype.dispose.call(this))},R._nextId=1,R}(H(844).Disposable);A.Marker=E},7116:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.DEFAULT_CHARSET=A.CHARSETS=void 0,A.CHARSETS={},A.DEFAULT_CHARSET=A.CHARSETS.B,A.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},A.CHARSETS.A={"#":"\xa3"},A.CHARSETS.B=void 0,A.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},A.CHARSETS.C=A.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},A.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},A.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},A.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},A.CHARSETS.E=A.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},A.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},A.CHARSETS.H=A.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(W,A){var H,P,I;Object.defineProperty(A,"__esModule",{value:!0}),A.C1_ESCAPED=A.C1=A.C0=void 0,(I=H=A.C0||(A.C0={})).NUL="\0",I.SOH="\x01",I.STX="\x02",I.ETX="\x03",I.EOT="\x04",I.ENQ="\x05",I.ACK="\x06",I.BEL="\x07",I.BS="\b",I.HT="\t",I.LF="\n",I.VT="\v",I.FF="\f",I.CR="\r",I.SO="\x0e",I.SI="\x0f",I.DLE="\x10",I.DC1="\x11",I.DC2="\x12",I.DC3="\x13",I.DC4="\x14",I.NAK="\x15",I.SYN="\x16",I.ETB="\x17",I.CAN="\x18",I.EM="\x19",I.SUB="\x1a",I.ESC="\x1b",I.FS="\x1c",I.GS="\x1d",I.RS="\x1e",I.US="\x1f",I.SP=" ",I.DEL="\x7f",(P=A.C1||(A.C1={})).PAD="\x80",P.HOP="\x81",P.BPH="\x82",P.NBH="\x83",P.IND="\x84",P.NEL="\x85",P.SSA="\x86",P.ESA="\x87",P.HTS="\x88",P.HTJ="\x89",P.VTS="\x8a",P.PLD="\x8b",P.PLU="\x8c",P.RI="\x8d",P.SS2="\x8e",P.SS3="\x8f",P.DCS="\x90",P.PU1="\x91",P.PU2="\x92",P.STS="\x93",P.CCH="\x94",P.MW="\x95",P.SPA="\x96",P.EPA="\x97",P.SOS="\x98",P.SGCI="\x99",P.SCI="\x9a",P.CSI="\x9b",P.ST="\x9c",P.OSC="\x9d",P.PM="\x9e",P.APC="\x9f",(A.C1_ESCAPED||(A.C1_ESCAPED={})).ST=H.ESC+"\\"},7399:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.evaluateKeyboardEvent=void 0;var P=H(2584),I={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};A.evaluateKeyboardEvent=function(T,E,j,R){var v={type:0,cancel:!1,key:void 0},x=(T.shiftKey?1:0)|(T.altKey?2:0)|(T.ctrlKey?4:0)|(T.metaKey?8:0);switch(T.keyCode){case 0:"UIKeyInputUpArrow"===T.key?v.key=E?P.C0.ESC+"OA":P.C0.ESC+"[A":"UIKeyInputLeftArrow"===T.key?v.key=E?P.C0.ESC+"OD":P.C0.ESC+"[D":"UIKeyInputRightArrow"===T.key?v.key=E?P.C0.ESC+"OC":P.C0.ESC+"[C":"UIKeyInputDownArrow"===T.key&&(v.key=E?P.C0.ESC+"OB":P.C0.ESC+"[B");break;case 8:if(T.shiftKey){v.key=P.C0.BS;break}if(T.altKey){v.key=P.C0.ESC+P.C0.DEL;break}v.key=P.C0.DEL;break;case 9:if(T.shiftKey){v.key=P.C0.ESC+"[Z";break}v.key=P.C0.HT,v.cancel=!0;break;case 13:v.key=T.altKey?P.C0.ESC+P.C0.CR:P.C0.CR,v.cancel=!0;break;case 27:v.key=P.C0.ESC,T.altKey&&(v.key=P.C0.ESC+P.C0.ESC),v.cancel=!0;break;case 37:if(T.metaKey)break;x?(v.key=P.C0.ESC+"[1;"+(x+1)+"D",v.key===P.C0.ESC+"[1;3D"&&(v.key=P.C0.ESC+(j?"b":"[1;5D"))):v.key=E?P.C0.ESC+"OD":P.C0.ESC+"[D";break;case 39:if(T.metaKey)break;x?(v.key=P.C0.ESC+"[1;"+(x+1)+"C",v.key===P.C0.ESC+"[1;3C"&&(v.key=P.C0.ESC+(j?"f":"[1;5C"))):v.key=E?P.C0.ESC+"OC":P.C0.ESC+"[C";break;case 38:if(T.metaKey)break;x?(v.key=P.C0.ESC+"[1;"+(x+1)+"A",j||v.key!==P.C0.ESC+"[1;3A"||(v.key=P.C0.ESC+"[1;5A")):v.key=E?P.C0.ESC+"OA":P.C0.ESC+"[A";break;case 40:if(T.metaKey)break;x?(v.key=P.C0.ESC+"[1;"+(x+1)+"B",j||v.key!==P.C0.ESC+"[1;3B"||(v.key=P.C0.ESC+"[1;5B")):v.key=E?P.C0.ESC+"OB":P.C0.ESC+"[B";break;case 45:T.shiftKey||T.ctrlKey||(v.key=P.C0.ESC+"[2~");break;case 46:v.key=x?P.C0.ESC+"[3;"+(x+1)+"~":P.C0.ESC+"[3~";break;case 36:v.key=x?P.C0.ESC+"[1;"+(x+1)+"H":E?P.C0.ESC+"OH":P.C0.ESC+"[H";break;case 35:v.key=x?P.C0.ESC+"[1;"+(x+1)+"F":E?P.C0.ESC+"OF":P.C0.ESC+"[F";break;case 33:T.shiftKey?v.type=2:T.ctrlKey?v.key=P.C0.ESC+"[5;"+(x+1)+"~":v.key=P.C0.ESC+"[5~";break;case 34:T.shiftKey?v.type=3:T.ctrlKey?v.key=P.C0.ESC+"[6;"+(x+1)+"~":v.key=P.C0.ESC+"[6~";break;case 112:v.key=x?P.C0.ESC+"[1;"+(x+1)+"P":P.C0.ESC+"OP";break;case 113:v.key=x?P.C0.ESC+"[1;"+(x+1)+"Q":P.C0.ESC+"OQ";break;case 114:v.key=x?P.C0.ESC+"[1;"+(x+1)+"R":P.C0.ESC+"OR";break;case 115:v.key=x?P.C0.ESC+"[1;"+(x+1)+"S":P.C0.ESC+"OS";break;case 116:v.key=x?P.C0.ESC+"[15;"+(x+1)+"~":P.C0.ESC+"[15~";break;case 117:v.key=x?P.C0.ESC+"[17;"+(x+1)+"~":P.C0.ESC+"[17~";break;case 118:v.key=x?P.C0.ESC+"[18;"+(x+1)+"~":P.C0.ESC+"[18~";break;case 119:v.key=x?P.C0.ESC+"[19;"+(x+1)+"~":P.C0.ESC+"[19~";break;case 120:v.key=x?P.C0.ESC+"[20;"+(x+1)+"~":P.C0.ESC+"[20~";break;case 121:v.key=x?P.C0.ESC+"[21;"+(x+1)+"~":P.C0.ESC+"[21~";break;case 122:v.key=x?P.C0.ESC+"[23;"+(x+1)+"~":P.C0.ESC+"[23~";break;case 123:v.key=x?P.C0.ESC+"[24;"+(x+1)+"~":P.C0.ESC+"[24~";break;default:if(!T.ctrlKey||T.shiftKey||T.altKey||T.metaKey)if(j&&!R||!T.altKey||T.metaKey)!j||T.altKey||T.ctrlKey||T.shiftKey||!T.metaKey?T.key&&!T.ctrlKey&&!T.altKey&&!T.metaKey&&T.keyCode>=48&&1===T.key.length?v.key=T.key:T.key&&T.ctrlKey&&("_"===T.key&&(v.key=P.C0.US),"@"===T.key&&(v.key=P.C0.NUL)):65===T.keyCode&&(v.type=1);else{var w=I[T.keyCode],Z=null==w?void 0:w[T.shiftKey?1:0];if(Z)v.key=P.C0.ESC+Z;else if(T.keyCode>=65&&T.keyCode<=90){var D=T.ctrlKey?T.keyCode-64:T.keyCode+32,b=String.fromCharCode(D);T.shiftKey&&(b=b.toUpperCase()),v.key=P.C0.ESC+b}else"Dead"===T.key&&T.code.startsWith("Key")&&(b=T.code.slice(3,4),T.shiftKey||(b=b.toLowerCase()),v.key=P.C0.ESC+b,v.cancel=!0)}else T.keyCode>=65&&T.keyCode<=90?v.key=String.fromCharCode(T.keyCode-64):32===T.keyCode?v.key=P.C0.NUL:T.keyCode>=51&&T.keyCode<=55?v.key=String.fromCharCode(T.keyCode-51+27):56===T.keyCode?v.key=P.C0.DEL:219===T.keyCode?v.key=P.C0.ESC:220===T.keyCode?v.key=P.C0.FS:221===T.keyCode&&(v.key=P.C0.GS)}return v}},482:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Utf8ToUtf32=A.StringToUtf32=A.utf32ToString=A.stringFromCodePoint=void 0,A.stringFromCodePoint=function(I){return I>65535?(I-=65536,String.fromCharCode(55296+(I>>10))+String.fromCharCode(I%1024+56320)):String.fromCharCode(I)},A.utf32ToString=function(I,T,E){void 0===T&&(T=0),void 0===E&&(E=I.length);for(var j="",R=T;R<E;++R){var v=I[R];v>65535?(v-=65536,j+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):j+=String.fromCharCode(v)}return j};var H=function(){function I(){this._interim=0}return I.prototype.clear=function(){this._interim=0},I.prototype.decode=function(T,E){var j=T.length;if(!j)return 0;var R=0,v=0;this._interim&&(56320<=(Z=T.charCodeAt(v++))&&Z<=57343?E[R++]=1024*(this._interim-55296)+Z-56320+65536:(E[R++]=this._interim,E[R++]=Z),this._interim=0);for(var x=v;x<j;++x){var w=T.charCodeAt(x);if(55296<=w&&w<=56319){if(++x>=j)return this._interim=w,R;var Z;56320<=(Z=T.charCodeAt(x))&&Z<=57343?E[R++]=1024*(w-55296)+Z-56320+65536:(E[R++]=w,E[R++]=Z)}else 65279!==w&&(E[R++]=w)}return R},I}();A.StringToUtf32=H;var P=function(){function I(){this.interim=new Uint8Array(3)}return I.prototype.clear=function(){this.interim.fill(0)},I.prototype.decode=function(T,E){var j=T.length;if(!j)return 0;var R,v,x,w,Z=0,D=0,b=0;if(this.interim[0]){var S=!1,k=this.interim[0];k&=192==(224&k)?31:224==(240&k)?15:7;for(var M=0,N=void 0;(N=63&this.interim[++M])&&M<4;)k<<=6,k|=N;for(var F=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,X=F-M;b<X;){if(b>=j)return 0;if(128!=(192&(N=T[b++]))){b--,S=!0;break}this.interim[M++]=N,k<<=6,k|=63&N}S||(2===F?k<128?b--:E[Z++]=k:3===F?k<2048||k>=55296&&k<=57343||65279===k||(E[Z++]=k):k<65536||k>1114111||(E[Z++]=k)),this.interim.fill(0)}for(var $=j-4,V=b;V<j;){for(;!(!(V<$)||128&(R=T[V])||128&(v=T[V+1])||128&(x=T[V+2])||128&(w=T[V+3]));)E[Z++]=R,E[Z++]=v,E[Z++]=x,E[Z++]=w,V+=4;if((R=T[V++])<128)E[Z++]=R;else if(192==(224&R)){if(V>=j)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if((D=(31&R)<<6|63&v)<128){V--;continue}E[Z++]=D}else if(224==(240&R)){if(V>=j)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if(V>=j)return this.interim[0]=R,this.interim[1]=v,Z;if(128!=(192&(x=T[V++]))){V--;continue}if((D=(15&R)<<12|(63&v)<<6|63&x)<2048||D>=55296&&D<=57343||65279===D)continue;E[Z++]=D}else if(240==(248&R)){if(V>=j)return this.interim[0]=R,Z;if(128!=(192&(v=T[V++]))){V--;continue}if(V>=j)return this.interim[0]=R,this.interim[1]=v,Z;if(128!=(192&(x=T[V++]))){V--;continue}if(V>=j)return this.interim[0]=R,this.interim[1]=v,this.interim[2]=x,Z;if(128!=(192&(w=T[V++]))){V--;continue}if((D=(7&R)<<18|(63&v)<<12|(63&x)<<6|63&w)<65536||D>1114111)continue;E[Z++]=D}}return Z},I}();A.Utf8ToUtf32=P},225:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeV6=void 0;var P,I=H(8273),T=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],E=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],j=function(){function R(){if(this.version="6",!P){P=new Uint8Array(65536),(0,I.fill)(P,1),P[0]=0,(0,I.fill)(P,0,1,32),(0,I.fill)(P,0,127,160),(0,I.fill)(P,2,4352,4448),P[9001]=2,P[9002]=2,(0,I.fill)(P,2,11904,42192),P[12351]=1,(0,I.fill)(P,2,44032,55204),(0,I.fill)(P,2,63744,64256),(0,I.fill)(P,2,65040,65050),(0,I.fill)(P,2,65072,65136),(0,I.fill)(P,2,65280,65377),(0,I.fill)(P,2,65504,65511);for(var v=0;v<T.length;++v)(0,I.fill)(P,0,T[v][0],T[v][1]+1)}}return R.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?P[v]:function(x,w){var Z,D=0,b=w.length-1;if(x<w[0][0]||x>w[b][1])return!1;for(;b>=D;)if(x>w[Z=D+b>>1][1])D=Z+1;else{if(!(x<w[Z][0]))return!0;b=Z-1}return!1}(v,E)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},R}();A.UnicodeV6=j},5981:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.WriteBuffer=void 0;var P=H(8460),I="undefined"==typeof queueMicrotask?function(E){Promise.resolve().then(E)}:queueMicrotask,T=function(){function E(j){this._action=j,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new P.EventEmitter}return Object.defineProperty(E.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),E.prototype.writeSync=function(j,R){if(void 0!==R&&this._syncCalls>R)this._syncCalls=0;else if(this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);var x=this._callbacks.shift();x&&x()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},E.prototype.write=function(j,R){var v=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return v._innerWrite()})),this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(R)},E.prototype._innerWrite=function(j,R){var v=this;void 0===j&&(j=0),void 0===R&&(R=!0);for(var x=j||Date.now();this._writeBuffer.length>this._bufferOffset;){var w=this._writeBuffer[this._bufferOffset],Z=this._action(w,R);if(Z)return void Z.catch(function(b){return I(function(){throw b}),Promise.resolve(!1)}).then(function(b){return Date.now()-x>=12?setTimeout(function(){return v._innerWrite(0,b)}):v._innerWrite(x,b)});var D=this._callbacks[this._bufferOffset];if(D&&D(),this._bufferOffset++,this._pendingData-=w.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return v._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},E}();A.WriteBuffer=T},5941:function(W,A){var H=this&&this.__read||function(E,j){var R="function"==typeof Symbol&&E[Symbol.iterator];if(!R)return E;var v,x,w=R.call(E),Z=[];try{for(;(void 0===j||j-- >0)&&!(v=w.next()).done;)Z.push(v.value)}catch(D){x={error:D}}finally{try{v&&!v.done&&(R=w.return)&&R.call(w)}finally{if(x)throw x.error}}return Z};Object.defineProperty(A,"__esModule",{value:!0}),A.toRgbString=A.parseColor=void 0;var P=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,I=/^[\da-f]+$/;function T(E,j){var R=E.toString(16),v=R.length<2?"0"+R:R;switch(j){case 4:return R[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}A.parseColor=function(E){if(E){var j=E.toLowerCase();if(0===j.indexOf("rgb:")){j=j.slice(4);var R=P.exec(j);if(R){var v=R[1]?15:R[4]?255:R[7]?4095:65535;return[Math.round(parseInt(R[1]||R[4]||R[7]||R[10],16)/v*255),Math.round(parseInt(R[2]||R[5]||R[8]||R[11],16)/v*255),Math.round(parseInt(R[3]||R[6]||R[9]||R[12],16)/v*255)]}}else if(0===j.indexOf("#")&&(j=j.slice(1),I.exec(j)&&[3,6,9,12].includes(j.length))){for(var x=j.length/3,w=[0,0,0],Z=0;Z<3;++Z){var D=parseInt(j.slice(x*Z,x*Z+x),16);w[Z]=1===x?D<<4:2===x?D:3===x?D>>4:D>>8}return w}}},A.toRgbString=function(E,j){void 0===j&&(j=16);var R=H(E,3),v=R[0],x=R[1],w=R[2];return"rgb:"+T(v,j)+"/"+T(x,j)+"/"+T(w,j)}},5770:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.PAYLOAD_LIMIT=void 0,A.PAYLOAD_LIMIT=1e7},6351:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.DcsHandler=A.DcsParser=void 0;var P=H(482),I=H(8742),T=H(5770),E=[],j=function(){function x(){this._handlers=Object.create(null),this._active=E,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return x.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=E},x.prototype.registerHandler=function(w,Z){void 0===this._handlers[w]&&(this._handlers[w]=[]);var D=this._handlers[w];return D.push(Z),{dispose:function(){var S=D.indexOf(Z);-1!==S&&D.splice(S,1)}}},x.prototype.clearHandler=function(w){this._handlers[w]&&delete this._handlers[w]},x.prototype.setHandlerFallback=function(w){this._handlerFb=w},x.prototype.reset=function(){if(this._active.length)for(var w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=E,this._ident=0},x.prototype.hook=function(w,Z){if(this.reset(),this._ident=w,this._active=this._handlers[w]||E,this._active.length)for(var D=this._active.length-1;D>=0;D--)this._active[D].hook(Z);else this._handlerFb(this._ident,"HOOK",Z)},x.prototype.put=function(w,Z,D){if(this._active.length)for(var b=this._active.length-1;b>=0;b--)this._active[b].put(w,Z,D);else this._handlerFb(this._ident,"PUT",(0,P.utf32ToString)(w,Z,D))},x.prototype.unhook=function(w,Z){if(void 0===Z&&(Z=!0),this._active.length){var D=!1,b=this._active.length-1,S=!1;if(this._stack.paused&&(b=this._stack.loopPosition-1,D=Z,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===D){for(;b>=0&&!0!==(D=this._active[b].unhook(w));b--)if(D instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!1,D;b--}for(;b>=0;b--)if((D=this._active[b].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=b,this._stack.fallThrough=!0,D}else this._handlerFb(this._ident,"UNHOOK",w);this._active=E,this._ident=0},x}();A.DcsParser=j;var R=new I.Params;R.addParam(0);var v=function(){function x(w){this._handler=w,this._data="",this._params=R,this._hitLimit=!1}return x.prototype.hook=function(w){this._params=w.length>1||w.params[0]?w.clone():R,this._data="",this._hitLimit=!1},x.prototype.put=function(w,Z,D){this._hitLimit||(this._data+=(0,P.utf32ToString)(w,Z,D),this._data.length>T.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},x.prototype.unhook=function(w){var Z=this,D=!1;if(this._hitLimit)D=!1;else if(w&&(D=this._handler(this._data,this._params))instanceof Promise)return D.then(function(b){return Z._params=R,Z._data="",Z._hitLimit=!1,b});return this._params=R,this._data="",this._hitLimit=!1,D},x}();A.DcsHandler=v},2015:function(W,A,H){var P,I=this&&this.__extends||(P=function(b,S){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}P(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)});Object.defineProperty(A,"__esModule",{value:!0}),A.EscapeSequenceParser=A.VT500_TRANSITION_TABLE=A.TransitionTable=void 0;var T=H(844),E=H(8273),j=H(8742),R=H(6242),v=H(6351),x=function(){function D(b){this.table=new Uint8Array(b)}return D.prototype.setDefault=function(b,S){(0,E.fill)(this.table,b<<4|S)},D.prototype.add=function(b,S,k,M){this.table[S<<8|b]=k<<4|M},D.prototype.addMany=function(b,S,k,M){for(var N=0;N<b.length;N++)this.table[S<<8|b[N]]=k<<4|M},D}();A.TransitionTable=x;var w=160;A.VT500_TRANSITION_TABLE=function(){var D=new x(4095),b=Array.apply(null,Array(256)).map(function(X,$){return $}),S=function($,V){return b.slice($,V)},k=S(32,127),M=S(0,24);M.push(25),M.push.apply(M,S(28,32));var N,F=S(0,14);for(N in D.setDefault(1,0),D.addMany(k,0,2,0),F)D.addMany([24,26,153,154],N,3,0),D.addMany(S(128,144),N,3,0),D.addMany(S(144,152),N,3,0),D.add(156,N,0,0),D.add(27,N,11,1),D.add(157,N,4,8),D.addMany([152,158,159],N,0,7),D.add(155,N,11,3),D.add(144,N,11,9);return D.addMany(M,0,3,0),D.addMany(M,1,3,1),D.add(127,1,0,1),D.addMany(M,8,0,8),D.addMany(M,3,3,3),D.add(127,3,0,3),D.addMany(M,4,3,4),D.add(127,4,0,4),D.addMany(M,6,3,6),D.addMany(M,5,3,5),D.add(127,5,0,5),D.addMany(M,2,3,2),D.add(127,2,0,2),D.add(93,1,4,8),D.addMany(k,8,5,8),D.add(127,8,5,8),D.addMany([156,27,24,26,7],8,6,0),D.addMany(S(28,32),8,0,8),D.addMany([88,94,95],1,0,7),D.addMany(k,7,0,7),D.addMany(M,7,0,7),D.add(156,7,0,0),D.add(127,7,0,7),D.add(91,1,11,3),D.addMany(S(64,127),3,7,0),D.addMany(S(48,60),3,8,4),D.addMany([60,61,62,63],3,9,4),D.addMany(S(48,60),4,8,4),D.addMany(S(64,127),4,7,0),D.addMany([60,61,62,63],4,0,6),D.addMany(S(32,64),6,0,6),D.add(127,6,0,6),D.addMany(S(64,127),6,0,0),D.addMany(S(32,48),3,9,5),D.addMany(S(32,48),5,9,5),D.addMany(S(48,64),5,0,6),D.addMany(S(64,127),5,7,0),D.addMany(S(32,48),4,9,5),D.addMany(S(32,48),1,9,2),D.addMany(S(32,48),2,9,2),D.addMany(S(48,127),2,10,0),D.addMany(S(48,80),1,10,0),D.addMany(S(81,88),1,10,0),D.addMany([89,90,92],1,10,0),D.addMany(S(96,127),1,10,0),D.add(80,1,11,9),D.addMany(M,9,0,9),D.add(127,9,0,9),D.addMany(S(28,32),9,0,9),D.addMany(S(32,48),9,9,12),D.addMany(S(48,60),9,8,10),D.addMany([60,61,62,63],9,9,10),D.addMany(M,11,0,11),D.addMany(S(32,128),11,0,11),D.addMany(S(28,32),11,0,11),D.addMany(M,10,0,10),D.add(127,10,0,10),D.addMany(S(28,32),10,0,10),D.addMany(S(48,60),10,8,10),D.addMany([60,61,62,63],10,0,11),D.addMany(S(32,48),10,9,12),D.addMany(M,12,0,12),D.add(127,12,0,12),D.addMany(S(28,32),12,0,12),D.addMany(S(32,48),12,9,12),D.addMany(S(48,64),12,0,11),D.addMany(S(64,127),12,12,13),D.addMany(S(64,127),10,12,13),D.addMany(S(64,127),9,12,13),D.addMany(M,13,13,13),D.addMany(k,13,13,13),D.add(127,13,0,13),D.addMany([27,156,24,26],13,14,0),D.add(w,0,2,0),D.add(w,8,5,8),D.add(w,6,0,6),D.add(w,11,0,11),D.add(w,13,13,13),D}();var Z=function(D){function b(S){void 0===S&&(S=A.VT500_TRANSITION_TABLE);var k=D.call(this)||this;return k._transitions=S,k._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},k.initialState=0,k.currentState=k.initialState,k._params=new j.Params,k._params.addParam(0),k._collect=0,k.precedingCodepoint=0,k._printHandlerFb=function(M,N,F){},k._executeHandlerFb=function(M){},k._csiHandlerFb=function(M,N){},k._escHandlerFb=function(M){},k._errorHandlerFb=function(M){return M},k._printHandler=k._printHandlerFb,k._executeHandlers=Object.create(null),k._csiHandlers=Object.create(null),k._escHandlers=Object.create(null),k._oscParser=new R.OscParser,k._dcsParser=new v.DcsParser,k._errorHandler=k._errorHandlerFb,k.registerEscHandler({final:"\\"},function(){return!0}),k}return I(b,D),b.prototype._identifier=function(S,k){void 0===k&&(k=[64,126]);var M=0;if(S.prefix){if(S.prefix.length>1)throw new Error("only one byte as prefix supported");if((M=S.prefix.charCodeAt(0))&&60>M||M>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var N=0;N<S.intermediates.length;++N){var F=S.intermediates.charCodeAt(N);if(32>F||F>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");M<<=8,M|=F}}if(1!==S.final.length)throw new Error("final must be a single byte");var X=S.final.charCodeAt(0);if(k[0]>X||X>k[1])throw new Error("final must be in range "+k[0]+" .. "+k[1]);return(M<<=8)|X},b.prototype.identToString=function(S){for(var k=[];S;)k.push(String.fromCharCode(255&S)),S>>=8;return k.reverse().join("")},b.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},b.prototype.setPrintHandler=function(S){this._printHandler=S},b.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},b.prototype.registerEscHandler=function(S,k){var M=this._identifier(S,[48,126]);void 0===this._escHandlers[M]&&(this._escHandlers[M]=[]);var N=this._escHandlers[M];return N.push(k),{dispose:function(){var X=N.indexOf(k);-1!==X&&N.splice(X,1)}}},b.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},b.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},b.prototype.setExecuteHandler=function(S,k){this._executeHandlers[S.charCodeAt(0)]=k},b.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},b.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},b.prototype.registerCsiHandler=function(S,k){var M=this._identifier(S);void 0===this._csiHandlers[M]&&(this._csiHandlers[M]=[]);var N=this._csiHandlers[M];return N.push(k),{dispose:function(){var X=N.indexOf(k);-1!==X&&N.splice(X,1)}}},b.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},b.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},b.prototype.registerDcsHandler=function(S,k){return this._dcsParser.registerHandler(this._identifier(S),k)},b.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},b.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},b.prototype.registerOscHandler=function(S,k){return this._oscParser.registerHandler(S,k)},b.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},b.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},b.prototype.setErrorHandler=function(S){this._errorHandler=S},b.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},b.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},b.prototype._preserveStack=function(S,k,M,N,F){this._parseStack.state=S,this._parseStack.handlers=k,this._parseStack.handlerPos=M,this._parseStack.transition=N,this._parseStack.chunkPos=F},b.prototype.parse=function(S,k,M){var N,F=0,X=0,$=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,$=this._parseStack.chunkPos+1;else{if(void 0===M||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var V=this._parseStack.handlers,Q=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===M&&Q>-1)for(;Q>=0&&!0!==(N=V[Q](this._params));Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 4:if(!1===M&&Q>-1)for(;Q>=0&&!0!==(N=V[Q]());Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 6:if(F=S[this._parseStack.chunkPos],N=this._dcsParser.unhook(24!==F&&26!==F,M))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(F=S[this._parseStack.chunkPos],N=this._oscParser.end(24!==F&&26!==F,M))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,$=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var te=$;te<k;++te){switch(F=S[te],(X=this._transitions.table[this.currentState<<8|(F<160?F:w)])>>4){case 2:for(var be=te+1;;++be){if(be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}if(++be>=k||(F=S[be])<32||F>126&&F<w){this._printHandler(S,te,be),te=be-1;break}}break;case 3:this._executeHandlers[F]?this._executeHandlers[F]():this._executeHandlerFb(F),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:te,code:F,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var pe=(V=this._csiHandlers[this._collect<<8|F])?V.length-1:-1;pe>=0&&!0!==(N=V[pe](this._params));pe--)if(N instanceof Promise)return this._preserveStack(3,V,pe,X,te),N;pe<0&&this._csiHandlerFb(this._collect<<8|F,this._params),this.precedingCodepoint=0;break;case 8:do{switch(F){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(F-48)}}while(++te<k&&(F=S[te])>47&&F<60);te--;break;case 9:this._collect<<=8,this._collect|=F;break;case 10:for(var fe=this._escHandlers[this._collect<<8|F],ue=fe?fe.length-1:-1;ue>=0&&!0!==(N=fe[ue]());ue--)if(N instanceof Promise)return this._preserveStack(4,fe,ue,X,te),N;ue<0&&this._escHandlerFb(this._collect<<8|F),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|F,this._params);break;case 13:for(var de=te+1;;++de)if(de>=k||24===(F=S[de])||26===F||27===F||F>127&&F<w){this._dcsParser.put(S,te,de),te=de-1;break}break;case 14:if(N=this._dcsParser.unhook(24!==F&&26!==F))return this._preserveStack(6,[],0,X,te),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var ge=te+1;;ge++)if(ge>=k||(F=S[ge])<32||F>127&&F<w){this._oscParser.put(S,te,ge),te=ge-1;break}break;case 6:if(N=this._oscParser.end(24!==F&&26!==F))return this._preserveStack(5,[],0,X,te),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&X}},b}(T.Disposable);A.EscapeSequenceParser=Z},6242:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.OscHandler=A.OscParser=void 0;var P=H(5770),I=H(482),T=[],E=function(){function R(){this._state=0,this._active=T,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return R.prototype.registerHandler=function(v,x){void 0===this._handlers[v]&&(this._handlers[v]=[]);var w=this._handlers[v];return w.push(x),{dispose:function(){var D=w.indexOf(x);-1!==D&&w.splice(D,1)}}},R.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},R.prototype.setHandlerFallback=function(v){this._handlerFb=v},R.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=T},R.prototype.reset=function(){if(2===this._state)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=T,this._id=-1,this._state=0},R.prototype._start=function(){if(this._active=this._handlers[this._id]||T,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},R.prototype._put=function(v,x,w){if(this._active.length)for(var Z=this._active.length-1;Z>=0;Z--)this._active[Z].put(v,x,w);else this._handlerFb(this._id,"PUT",(0,I.utf32ToString)(v,x,w))},R.prototype.start=function(){this.reset(),this._state=1},R.prototype.put=function(v,x,w){if(3!==this._state){if(1===this._state)for(;x<w;){var Z=v[x++];if(59===Z){this._state=2,this._start();break}if(Z<48||57<Z)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+Z-48}2===this._state&&w-x>0&&this._put(v,x,w)}},R.prototype.end=function(v,x){if(void 0===x&&(x=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var w=!1,Z=this._active.length-1,D=!1;if(this._stack.paused&&(Z=this._stack.loopPosition-1,w=x,D=this._stack.fallThrough,this._stack.paused=!1),!D&&!1===w){for(;Z>=0&&!0!==(w=this._active[Z].end(v));Z--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=Z,this._stack.fallThrough=!1,w;Z--}for(;Z>=0;Z--)if((w=this._active[Z].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=Z,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",v);this._active=T,this._id=-1,this._state=0}},R}();A.OscParser=E;var j=function(){function R(v){this._handler=v,this._data="",this._hitLimit=!1}return R.prototype.start=function(){this._data="",this._hitLimit=!1},R.prototype.put=function(v,x,w){this._hitLimit||(this._data+=(0,I.utf32ToString)(v,x,w),this._data.length>P.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},R.prototype.end=function(v){var x=this,w=!1;if(this._hitLimit)w=!1;else if(v&&(w=this._handler(this._data))instanceof Promise)return w.then(function(Z){return x._data="",x._hitLimit=!1,Z});return this._data="",this._hitLimit=!1,w},R}();A.OscHandler=j},8742:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Params=void 0;var H=2147483647,P=function(){function I(T,E){if(void 0===T&&(T=32),void 0===E&&(E=32),this.maxLength=T,this.maxSubParamsLength=E,E>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(T),this.length=0,this._subParams=new Int32Array(E),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(T),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return I.fromArray=function(T){var E=new I;if(!T.length)return E;for(var j=Array.isArray(T[0])?1:0;j<T.length;++j){var R=T[j];if(Array.isArray(R))for(var v=0;v<R.length;++v)E.addSubParam(R[v]);else E.addParam(R)}return E},I.prototype.clone=function(){var T=new I(this.maxLength,this.maxSubParamsLength);return T.params.set(this.params),T.length=this.length,T._subParams.set(this._subParams),T._subParamsLength=this._subParamsLength,T._subParamsIdx.set(this._subParamsIdx),T._rejectDigits=this._rejectDigits,T._rejectSubDigits=this._rejectSubDigits,T._digitIsSub=this._digitIsSub,T},I.prototype.toArray=function(){for(var T=[],E=0;E<this.length;++E){T.push(this.params[E]);var j=this._subParamsIdx[E]>>8,R=255&this._subParamsIdx[E];R-j>0&&T.push(Array.prototype.slice.call(this._subParams,j,R))}return T},I.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},I.prototype.addParam=function(T){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(T<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=T>H?H:T}},I.prototype.addSubParam=function(T){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(T<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=T>H?H:T,this._subParamsIdx[this.length-1]++}},I.prototype.hasSubParams=function(T){return(255&this._subParamsIdx[T])-(this._subParamsIdx[T]>>8)>0},I.prototype.getSubParams=function(T){var E=this._subParamsIdx[T]>>8,j=255&this._subParamsIdx[T];return j-E>0?this._subParams.subarray(E,j):null},I.prototype.getSubParamsAll=function(){for(var T={},E=0;E<this.length;++E){var j=this._subParamsIdx[E]>>8,R=255&this._subParamsIdx[E];R-j>0&&(T[E]=this._subParams.slice(j,R))}return T},I.prototype.addDigit=function(T){var E;if(!(this._rejectDigits||!(E=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var j=this._digitIsSub?this._subParams:this.params,R=j[E-1];j[E-1]=~R?Math.min(10*R+T,H):T}},I}();A.Params=P},5741:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.AddonManager=void 0;var H=function(){function P(){this._addons=[]}return P.prototype.dispose=function(){for(var I=this._addons.length-1;I>=0;I--)this._addons[I].instance.dispose()},P.prototype.loadAddon=function(I,T){var E=this,j={instance:T,dispose:T.dispose,isDisposed:!1};this._addons.push(j),T.dispose=function(){return E._wrappedAddonDispose(j)},T.activate(I)},P.prototype._wrappedAddonDispose=function(I){if(!I.isDisposed){for(var T=-1,E=0;E<this._addons.length;E++)if(this._addons[E]===I){T=E;break}if(-1===T)throw new Error("Could not dispose an addon that has not been loaded");I.isDisposed=!0,I.dispose.apply(I.instance),this._addons.splice(T,1)}},P}();A.AddonManager=H},8771:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferApiView=void 0;var P=H(3785),I=H(511),T=function(){function E(j,R){this._buffer=j,this.type=R}return E.prototype.init=function(j){return this._buffer=j,this},Object.defineProperty(E.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),E.prototype.getLine=function(j){var R=this._buffer.lines.get(j);if(R)return new P.BufferLineApiView(R)},E.prototype.getNullCell=function(){return new I.CellData},E}();A.BufferApiView=T},3785:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLineApiView=void 0;var P=H(511),I=function(){function T(E){this._line=E}return Object.defineProperty(T.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),T.prototype.getCell=function(E,j){if(!(E<0||E>=this._line.length))return j?(this._line.loadCell(E,j),j):this._line.loadCell(E,new P.CellData)},T.prototype.translateToString=function(E,j,R){return this._line.translateToString(E,j,R)},T}();A.BufferLineApiView=I},8285:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferNamespaceApi=void 0;var P=H(8771),I=H(8460),T=function(){function E(j){var R=this;this._core=j,this._onBufferChange=new I.EventEmitter,this._normal=new P.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new P.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return R._onBufferChange.fire(R.active)})}return Object.defineProperty(E.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),E}();A.BufferNamespaceApi=T},7975:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ParserApi=void 0;var H=function(){function P(I){this._core=I}return P.prototype.registerCsiHandler=function(I,T){return this._core.registerCsiHandler(I,function(E){return T(E.toArray())})},P.prototype.addCsiHandler=function(I,T){return this.registerCsiHandler(I,T)},P.prototype.registerDcsHandler=function(I,T){return this._core.registerDcsHandler(I,function(E,j){return T(E,j.toArray())})},P.prototype.addDcsHandler=function(I,T){return this.registerDcsHandler(I,T)},P.prototype.registerEscHandler=function(I,T){return this._core.registerEscHandler(I,T)},P.prototype.addEscHandler=function(I,T){return this.registerEscHandler(I,T)},P.prototype.registerOscHandler=function(I,T){return this._core.registerOscHandler(I,T)},P.prototype.addOscHandler=function(I,T){return this.registerOscHandler(I,T)},P}();A.ParserApi=H},7090:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeApi=void 0;var H=function(){function P(I){this._core=I}return P.prototype.register=function(I){this._core.unicodeService.register(I)},Object.defineProperty(P.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(T){this._core.unicodeService.activeVersion=T},enumerable:!1,configurable:!0}),P}();A.UnicodeApi=H},744:function(W,A,H){var P,I=this&&this.__extends||(P=function(D,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var M in k)Object.prototype.hasOwnProperty.call(k,M)&&(S[M]=k[M])})(D,b)},function(Z,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function b(){this.constructor=Z}P(Z,D),Z.prototype=null===D?Object.create(D):(b.prototype=D.prototype,new b)}),T=this&&this.__decorate||function(Z,D,b,S){var k,M=arguments.length,N=M<3?D:null===S?S=Object.getOwnPropertyDescriptor(D,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(Z,D,b,S);else for(var F=Z.length-1;F>=0;F--)(k=Z[F])&&(N=(M<3?k(N):M>3?k(D,b,N):k(D,b))||N);return M>3&&N&&Object.defineProperty(D,b,N),N},E=this&&this.__param||function(Z,D){return function(b,S){D(b,S,Z)}};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferService=A.MINIMUM_ROWS=A.MINIMUM_COLS=void 0;var j=H(2585),R=H(5295),v=H(8460),x=H(844);A.MINIMUM_COLS=2,A.MINIMUM_ROWS=1;var w=function(Z){function D(b){var S=Z.call(this)||this;return S._optionsService=b,S.isUserScrolling=!1,S._onResize=new v.EventEmitter,S._onScroll=new v.EventEmitter,S.cols=Math.max(b.rawOptions.cols||0,A.MINIMUM_COLS),S.rows=Math.max(b.rawOptions.rows||0,A.MINIMUM_ROWS),S.buffers=new R.BufferSet(b,S),S}return I(D,Z),Object.defineProperty(D.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),D.prototype.dispose=function(){Z.prototype.dispose.call(this),this.buffers.dispose()},D.prototype.resize=function(b,S){this.cols=b,this.rows=S,this.buffers.resize(b,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:b,rows:S})},D.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},D.prototype.scroll=function(b,S){void 0===S&&(S=!1);var k,M=this.buffer;(k=this._cachedBlankLine)&&k.length===this.cols&&k.getFg(0)===b.fg&&k.getBg(0)===b.bg||(k=M.getBlankLine(b,S),this._cachedBlankLine=k),k.isWrapped=S;var N=M.ybase+M.scrollTop,F=M.ybase+M.scrollBottom;if(0===M.scrollTop){var X=M.lines.isFull;F===M.lines.length-1?X?M.lines.recycle().copyFrom(k):M.lines.push(k.clone()):M.lines.splice(F+1,0,k.clone()),X?this.isUserScrolling&&(M.ydisp=Math.max(M.ydisp-1,0)):(M.ybase++,this.isUserScrolling||M.ydisp++)}else{var $=F-N+1;M.lines.shiftElements(N+1,$-1,-1),M.lines.set(F,k.clone())}this.isUserScrolling||(M.ydisp=M.ybase),this._onScroll.fire(M.ydisp)},D.prototype.scrollLines=function(b,S,k){var M=this.buffer;if(b<0){if(0===M.ydisp)return;this.isUserScrolling=!0}else b+M.ydisp>=M.ybase&&(this.isUserScrolling=!1);var N=M.ydisp;M.ydisp=Math.max(Math.min(M.ydisp+b,M.ybase),0),N!==M.ydisp&&(S||this._onScroll.fire(M.ydisp))},D.prototype.scrollPages=function(b){this.scrollLines(b*(this.rows-1))},D.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},D.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},D.prototype.scrollToLine=function(b){var S=b-this.buffer.ydisp;0!==S&&this.scrollLines(S)},T([E(0,j.IOptionsService)],D)}(x.Disposable);A.BufferService=w},7994:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CharsetService=void 0;var H=function(){function P(){this.glevel=0,this._charsets=[]}return P.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},P.prototype.setgLevel=function(I){this.glevel=I,this.charset=this._charsets[I]},P.prototype.setgCharset=function(I,T){this._charsets[I]=T,this.glevel===I&&(this.charset=T)},P}();A.CharsetService=H},1753:function(W,A,H){var P=this&&this.__decorate||function(D,b,S,k){var M,N=arguments.length,F=N<3?b:null===k?k=Object.getOwnPropertyDescriptor(b,S):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(D,b,S,k);else for(var X=D.length-1;X>=0;X--)(M=D[X])&&(F=(N<3?M(F):N>3?M(b,S,F):M(b,S))||F);return N>3&&F&&Object.defineProperty(b,S,F),F},I=this&&this.__param||function(D,b){return function(S,k){b(S,k,D)}},T=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreMouseService=void 0;var E=H(2585),j=H(8460),R={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(b){return 4!==b.button&&1===b.action&&(b.ctrl=!1,b.alt=!1,b.shift=!1,!0)}},VT200:{events:19,restrict:function(b){return 32!==b.action}},DRAG:{events:23,restrict:function(b){return 32!==b.action||3!==b.button}},ANY:{events:31,restrict:function(b){return!0}}};function v(D,b){var S=(D.ctrl?16:0)|(D.shift?4:0)|(D.alt?8:0);return 4===D.button?(S|=64,S|=D.action):(S|=3&D.button,4&D.button&&(S|=64),8&D.button&&(S|=128),32===D.action?S|=32:0!==D.action||b||(S|=3)),S}var x=String.fromCharCode,w={DEFAULT:function(b){var S=[v(b,!1)+32,b.col+32,b.row+32];return S[0]>255||S[1]>255||S[2]>255?"":"\x1b[M"+x(S[0])+x(S[1])+x(S[2])},SGR:function(b){var S=0===b.action&&4!==b.button?"m":"M";return"\x1b[<"+v(b,!0)+";"+b.col+";"+b.row+S}},Z=function(){function D(b,S){var k,M,N,F;this._bufferService=b,this._coreService=S,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new j.EventEmitter,this._lastEvent=null;try{for(var X=T(Object.keys(R)),$=X.next();!$.done;$=X.next()){var V=$.value;this.addProtocol(V,R[V])}}catch(pe){k={error:pe}}finally{try{$&&!$.done&&(M=X.return)&&M.call(X)}finally{if(k)throw k.error}}try{for(var Q=T(Object.keys(w)),te=Q.next();!te.done;te=Q.next()){var be=te.value;this.addEncoding(be,w[be])}}catch(pe){N={error:pe}}finally{try{te&&!te.done&&(F=Q.return)&&F.call(Q)}finally{if(N)throw N.error}}this.reset()}return D.prototype.addProtocol=function(b,S){this._protocols[b]=S},D.prototype.addEncoding=function(b,S){this._encodings[b]=S},Object.defineProperty(D.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(S){if(!this._protocols[S])throw new Error('unknown protocol "'+S+'"');this._activeProtocol=S,this._onProtocolChange.fire(this._protocols[S].events)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(S){if(!this._encodings[S])throw new Error('unknown encoding "'+S+'"');this._activeEncoding=S},enumerable:!1,configurable:!0}),D.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(D.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),D.prototype.triggerMouseEvent=function(b){if(b.col<0||b.col>=this._bufferService.cols||b.row<0||b.row>=this._bufferService.rows||4===b.button&&32===b.action||3===b.button&&32!==b.action||4!==b.button&&(2===b.action||3===b.action)||(b.col++,b.row++,32===b.action&&this._lastEvent&&this._compareEvents(this._lastEvent,b))||!this._protocols[this._activeProtocol].restrict(b))return!1;var S=this._encodings[this._activeEncoding](b);return S&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(S):this._coreService.triggerDataEvent(S,!0)),this._lastEvent=b,!0},D.prototype.explainEvents=function(b){return{down:!!(1&b),up:!!(2&b),drag:!!(4&b),move:!!(8&b),wheel:!!(16&b)}},D.prototype._compareEvents=function(b,S){return b.col===S.col&&b.row===S.row&&b.button===S.button&&b.action===S.action&&b.ctrl===S.ctrl&&b.alt===S.alt&&b.shift===S.shift},P([I(0,E.IBufferService),I(1,E.ICoreService)],D)}();A.CoreMouseService=Z},6975:function(W,A,H){var P,I=this&&this.__extends||(P=function(S,k){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(M[F]=N[F])})(S,k)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function k(){this.constructor=b}P(b,S),b.prototype=null===S?Object.create(S):(k.prototype=S.prototype,new k)}),T=this&&this.__decorate||function(b,S,k,M){var N,F=arguments.length,X=F<3?S:null===M?M=Object.getOwnPropertyDescriptor(S,k):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(b,S,k,M);else for(var $=b.length-1;$>=0;$--)(N=b[$])&&(X=(F<3?N(X):F>3?N(S,k,X):N(S,k))||X);return F>3&&X&&Object.defineProperty(S,k,X),X},E=this&&this.__param||function(b,S){return function(k,M){S(k,M,b)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreService=void 0;var j=H(2585),R=H(8460),v=H(1439),x=H(844),w=Object.freeze({insertMode:!1}),Z=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),D=function(b){function S(k,M,N,F){var X=b.call(this)||this;return X._bufferService=M,X._logService=N,X._optionsService=F,X.isCursorInitialized=!1,X.isCursorHidden=!1,X._onData=X.register(new R.EventEmitter),X._onUserInput=X.register(new R.EventEmitter),X._onBinary=X.register(new R.EventEmitter),X._scrollToBottom=k,X.register({dispose:function(){return X._scrollToBottom=void 0}}),X.modes=(0,v.clone)(w),X.decPrivateModes=(0,v.clone)(Z),X}return I(S,b),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=(0,v.clone)(w),this.decPrivateModes=(0,v.clone)(Z)},S.prototype.triggerDataEvent=function(k,M){if(void 0===M&&(M=!1),!this._optionsService.rawOptions.disableStdin){var N=this._bufferService.buffer;N.ybase!==N.ydisp&&this._scrollToBottom(),M&&this._onUserInput.fire(),this._logService.debug('sending data "'+k+'"',function(){return k.split("").map(function(F){return F.charCodeAt(0)})}),this._onData.fire(k)}},S.prototype.triggerBinaryEvent=function(k){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+k+'"',function(){return k.split("").map(function(M){return M.charCodeAt(0)})}),this._onBinary.fire(k))},T([E(1,j.IBufferService),E(2,j.ILogService),E(3,j.IOptionsService)],S)}(x.Disposable);A.CoreService=D},9074:function(W,A,H){var P,I=this&&this.__extends||(P=function(b,S){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(k[N]=M[N])})(b,S)},function(D,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function S(){this.constructor=D}P(D,b),D.prototype=null===b?Object.create(b):(S.prototype=b.prototype,new S)}),T=this&&this.__generator||function(D,b){var S,k,M,N,F={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return N={next:X(0),throw:X(1),return:X(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function X($){return function(V){return function(Q){if(S)throw new TypeError("Generator is already executing.");for(;F;)try{if(S=1,k&&(M=2&Q[0]?k.return:Q[0]?k.throw||((M=k.return)&&M.call(k),0):k.next)&&!(M=M.call(k,Q[1])).done)return M;switch(k=0,M&&(Q=[2&Q[0],M.value]),Q[0]){case 0:case 1:M=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,k=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((M=(M=F.trys).length>0&&M[M.length-1])||6!==Q[0]&&2!==Q[0])){F=0;continue}if(3===Q[0]&&(!M||Q[1]>M[0]&&Q[1]<M[3])){F.label=Q[1];break}if(6===Q[0]&&F.label<M[1]){F.label=M[1],M=Q;break}if(M&&F.label<M[2]){F.label=M[2],F.ops.push(Q);break}M[2]&&F.ops.pop(),F.trys.pop();continue}Q=b.call(D,F)}catch(te){Q=[6,te],k=0}finally{S=M=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([$,V])}}},E=this&&this.__values||function(D){var b="function"==typeof Symbol&&Symbol.iterator,S=b&&D[b],k=0;if(S)return S.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&k>=D.length&&(D=void 0),{value:D&&D[k++],done:!D}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DecorationService=void 0;var j=H(8055),R=H(8460),v=H(844),x=H(6106),w=function(D){function b(){var S=D.call(this)||this;return S._decorations=new x.SortedList(function(k){return k.marker.line}),S._onDecorationRegistered=S.register(new R.EventEmitter),S._onDecorationRemoved=S.register(new R.EventEmitter),S}return I(b,D),Object.defineProperty(b.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),b.prototype.registerDecoration=function(S){var k=this;if(!S.marker.isDisposed){var M=new Z(S);if(M){var N=M.marker.onDispose(function(){return M.dispose()});M.onDispose(function(){M&&(k._decorations.delete(M)&&k._onDecorationRemoved.fire(M),N.dispose())}),this._decorations.insert(M),this._onDecorationRegistered.fire(M)}return M}},b.prototype.reset=function(){var S,k;try{for(var M=E(this._decorations.values()),N=M.next();!N.done;N=M.next())N.value.dispose()}catch(F){S={error:F}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this._decorations.clear()},b.prototype.getDecorationsAtLine=function(S){return T(this,function(k){return[2,this._decorations.getKeyIterator(S)]})},b.prototype.getDecorationsAtCell=function(S,k,M){var N,F,X,$,V,Q,te,be,pe,fe,ue;return T(this,function(de){switch(de.label){case 0:N=0,F=0,de.label=1;case 1:de.trys.push([1,6,7,8]),X=E(this._decorations.getKeyIterator(k)),$=X.next(),de.label=2;case 2:return $.done?[3,5]:(V=$.value,N=null!==(pe=V.options.x)&&void 0!==pe?pe:0,F=N+(null!==(fe=V.options.width)&&void 0!==fe?fe:1),!(S>=N&&S<F)||M&&(null!==(ue=V.options.layer)&&void 0!==ue?ue:"bottom")!==M?[3,4]:[4,V]);case 3:de.sent(),de.label=4;case 4:return $=X.next(),[3,2];case 5:return[3,8];case 6:return Q=de.sent(),te={error:Q},[3,8];case 7:try{$&&!$.done&&(be=X.return)&&be.call(X)}finally{if(te)throw te.error}return[7];case 8:return[2]}})},b.prototype.dispose=function(){var S,k;try{for(var M=E(this._decorations.values()),N=M.next();!N.done;N=M.next()){var F=N.value;this._onDecorationRemoved.fire(F)}}catch(X){S={error:X}}finally{try{N&&!N.done&&(k=M.return)&&k.call(M)}finally{if(S)throw S.error}}this.reset()},b}(v.Disposable);A.DecorationService=w;var Z=function(D){function b(S){var k=D.call(this)||this;return k.options=S,k.isDisposed=!1,k.onRenderEmitter=k.register(new R.EventEmitter),k.onRender=k.onRenderEmitter.event,k._onDispose=k.register(new R.EventEmitter),k.onDispose=k._onDispose.event,k._cachedBg=null,k._cachedFg=null,k.marker=S.marker,k.options.overviewRulerOptions&&!k.options.overviewRulerOptions.position&&(k.options.overviewRulerOptions.position="full"),k}return I(b,D),Object.defineProperty(b.prototype,"backgroundColorRGB",{get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=j.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"foregroundColorRGB",{get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=j.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),D.prototype.dispose.call(this))},b}(v.Disposable)},3730:function(W,A,H){var P=this&&this.__decorate||function(j,R,v,x){var w,Z=arguments.length,D=Z<3?R:null===x?x=Object.getOwnPropertyDescriptor(R,v):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(j,R,v,x);else for(var b=j.length-1;b>=0;b--)(w=j[b])&&(D=(Z<3?w(D):Z>3?w(R,v,D):w(R,v))||D);return Z>3&&D&&Object.defineProperty(R,v,D),D},I=this&&this.__param||function(j,R){return function(v,x){R(v,x,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.DirtyRowService=void 0;var T=H(2585),E=function(){function j(R){this._bufferService=R,this.clearRange()}return Object.defineProperty(j.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),j.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},j.prototype.markDirty=function(R){R<this._start?this._start=R:R>this._end&&(this._end=R)},j.prototype.markRangeDirty=function(R,v){if(R>v){var x=R;R=v,v=x}R<this._start&&(this._start=R),v>this._end&&(this._end=v)},j.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},P([I(0,T.IBufferService)],j)}();A.DirtyRowService=E},4348:function(W,A,H){var P=this&&this.__values||function(x){var w="function"==typeof Symbol&&Symbol.iterator,Z=w&&x[w],D=0;if(Z)return Z.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&D>=x.length&&(x=void 0),{value:x&&x[D++],done:!x}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},I=this&&this.__read||function(x,w){var Z="function"==typeof Symbol&&x[Symbol.iterator];if(!Z)return x;var D,b,S=Z.call(x),k=[];try{for(;(void 0===w||w-- >0)&&!(D=S.next()).done;)k.push(D.value)}catch(M){b={error:M}}finally{try{D&&!D.done&&(Z=S.return)&&Z.call(S)}finally{if(b)throw b.error}}return k},T=this&&this.__spreadArray||function(x,w,Z){if(Z||2===arguments.length)for(var D,b=0,S=w.length;b<S;b++)!D&&b in w||(D||(D=Array.prototype.slice.call(w,0,b)),D[b]=w[b]);return x.concat(D||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.InstantiationService=A.ServiceCollection=void 0;var E=H(2585),j=H(8343),R=function(){function x(){for(var w,Z,D=[],b=0;b<arguments.length;b++)D[b]=arguments[b];this._entries=new Map;try{for(var S=P(D),k=S.next();!k.done;k=S.next()){var M=I(k.value,2),N=M[0],F=M[1];this.set(N,F)}}catch(X){w={error:X}}finally{try{k&&!k.done&&(Z=S.return)&&Z.call(S)}finally{if(w)throw w.error}}}return x.prototype.set=function(w,Z){var D=this._entries.get(w);return this._entries.set(w,Z),D},x.prototype.forEach=function(w){this._entries.forEach(function(Z,D){return w(D,Z)})},x.prototype.has=function(w){return this._entries.has(w)},x.prototype.get=function(w){return this._entries.get(w)},x}();A.ServiceCollection=R;var v=function(){function x(){this._services=new R,this._services.set(E.IInstantiationService,this)}return x.prototype.setService=function(w,Z){this._services.set(w,Z)},x.prototype.getService=function(w){return this._services.get(w)},x.prototype.createInstance=function(w){for(var Z,D,b=[],S=1;S<arguments.length;S++)b[S-1]=arguments[S];var k=(0,j.getServiceDependencies)(w).sort(function(Q,te){return Q.index-te.index}),M=[];try{for(var N=P(k),F=N.next();!F.done;F=N.next()){var X=F.value,$=this._services.get(X.id);if(!$)throw new Error("[createInstance] "+w.name+" depends on UNKNOWN service "+X.id+".");M.push($)}}catch(Q){Z={error:Q}}finally{try{F&&!F.done&&(D=N.return)&&D.call(N)}finally{if(Z)throw Z.error}}var V=k.length>0?k[0].index:b.length;if(b.length!==V)throw new Error("[createInstance] First service dependency of "+w.name+" at position "+(V+1)+" conflicts with "+b.length+" static arguments");return new(w.bind.apply(w,T([void 0],I(T(T([],I(b),!1),I(M),!1)),!1)))},x}();A.InstantiationService=v},7866:function(W,A,H){var P=this&&this.__decorate||function(x,w,Z,D){var b,S=arguments.length,k=S<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,Z):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(x,w,Z,D);else for(var M=x.length-1;M>=0;M--)(b=x[M])&&(k=(S<3?b(k):S>3?b(w,Z,k):b(w,Z))||k);return S>3&&k&&Object.defineProperty(w,Z,k),k},I=this&&this.__param||function(x,w){return function(Z,D){w(Z,D,x)}},T=this&&this.__read||function(x,w){var Z="function"==typeof Symbol&&x[Symbol.iterator];if(!Z)return x;var D,b,S=Z.call(x),k=[];try{for(;(void 0===w||w-- >0)&&!(D=S.next()).done;)k.push(D.value)}catch(M){b={error:M}}finally{try{D&&!D.done&&(Z=S.return)&&Z.call(S)}finally{if(b)throw b.error}}return k},E=this&&this.__spreadArray||function(x,w,Z){if(Z||2===arguments.length)for(var D,b=0,S=w.length;b<S;b++)!D&&b in w||(D||(D=Array.prototype.slice.call(w,0,b)),D[b]=w[b]);return x.concat(D||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.LogService=void 0;var j=H(2585),R={debug:j.LogLevelEnum.DEBUG,info:j.LogLevelEnum.INFO,warn:j.LogLevelEnum.WARN,error:j.LogLevelEnum.ERROR,off:j.LogLevelEnum.OFF},v=function(){function x(w){var Z=this;this._optionsService=w,this.logLevel=j.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(D){"logLevel"===D&&Z._updateLogLevel()})}return x.prototype._updateLogLevel=function(){this.logLevel=R[this._optionsService.rawOptions.logLevel]},x.prototype._evalLazyOptionalParams=function(w){for(var Z=0;Z<w.length;Z++)"function"==typeof w[Z]&&(w[Z]=w[Z]())},x.prototype._log=function(w,Z,D){this._evalLazyOptionalParams(D),w.call.apply(w,E([console,"xterm.js: "+Z],T(D),!1))},x.prototype.debug=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=j.LogLevelEnum.DEBUG&&this._log(console.log,w,Z)},x.prototype.info=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=j.LogLevelEnum.INFO&&this._log(console.info,w,Z)},x.prototype.warn=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=j.LogLevelEnum.WARN&&this._log(console.warn,w,Z)},x.prototype.error=function(w){for(var Z=[],D=1;D<arguments.length;D++)Z[D-1]=arguments[D];this.logLevel<=j.LogLevelEnum.ERROR&&this._log(console.error,w,Z)},P([I(0,j.IOptionsService)],x)}();A.LogService=v},7302:function(W,A,H){var P=this&&this.__assign||function(){return P=Object.assign||function(R){for(var v,x=1,w=arguments.length;x<w;x++)for(var Z in v=arguments[x])Object.prototype.hasOwnProperty.call(v,Z)&&(R[Z]=v[Z]);return R},P.apply(this,arguments)};Object.defineProperty(A,"__esModule",{value:!0}),A.OptionsService=A.DEFAULT_OPTIONS=A.DEFAULT_BELL_SOUND=void 0;var I=H(8460),T=H(6114);A.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",A.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:A.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:T.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var E=["normal","bold","100","200","300","400","500","600","700","800","900"],j=function(){function R(v){this._onOptionChange=new I.EventEmitter;var x=P({},A.DEFAULT_OPTIONS);for(var w in v)if(w in x)try{var Z=v[w];x[w]=this._sanitizeAndValidateOption(w,Z)}catch(D){console.error(D)}this.rawOptions=x,this.options=P({},x),this._setupOptions()}return Object.defineProperty(R.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),R.prototype._setupOptions=function(){var v=this,x=function(S){if(!(S in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');return v.rawOptions[S]},w=function(S,k){if(!(S in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');k=v._sanitizeAndValidateOption(S,k),v.rawOptions[S]!==k&&(v.rawOptions[S]=k,v._onOptionChange.fire(S))};for(var Z in this.rawOptions){var D={get:x.bind(this,Z),set:w.bind(this,Z)};Object.defineProperty(this.options,Z,D)}},R.prototype.setOption=function(v,x){this.options[v]=x},R.prototype._sanitizeAndValidateOption=function(v,x){switch(v){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":x||(x=A.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof x&&1<=x&&x<=1e3)break;x=E.includes(x)?x:A.DEFAULT_OPTIONS[v];break;case"cursorWidth":x=Math.floor(x);case"lineHeight":case"tabStopWidth":if(x<1)throw new Error(v+" cannot be less than 1, value: "+x);break;case"minimumContrastRatio":x=Math.max(1,Math.min(21,Math.round(10*x)/10));break;case"scrollback":if((x=Math.min(x,4294967295))<0)throw new Error(v+" cannot be less than 0, value: "+x);break;case"fastScrollSensitivity":case"scrollSensitivity":if(x<=0)throw new Error(v+" cannot be less than or equal to 0, value: "+x);case"rows":case"cols":if(!x&&0!==x)throw new Error(v+" must be numeric, value: "+x)}return x},R.prototype.getOption=function(v){return this.options[v]},R}();A.OptionsService=j},8343:function(W,A){function H(P,I,T){I.di$target===I?I.di$dependencies.push({id:P,index:T}):(I.di$dependencies=[{id:P,index:T}],I.di$target=I)}Object.defineProperty(A,"__esModule",{value:!0}),A.createDecorator=A.getServiceDependencies=A.serviceRegistry=void 0,A.serviceRegistry=new Map,A.getServiceDependencies=function(P){return P.di$dependencies||[]},A.createDecorator=function(P){if(A.serviceRegistry.has(P))return A.serviceRegistry.get(P);var I=function T(E,j,R){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");H(T,E,R)};return I.toString=function(){return P},A.serviceRegistry.set(P,I),I}},2585:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.IDecorationService=A.IUnicodeService=A.IOptionsService=A.ILogService=A.LogLevelEnum=A.IInstantiationService=A.IDirtyRowService=A.ICharsetService=A.ICoreService=A.ICoreMouseService=A.IBufferService=void 0;var P,I=H(8343);A.IBufferService=(0,I.createDecorator)("BufferService"),A.ICoreMouseService=(0,I.createDecorator)("CoreMouseService"),A.ICoreService=(0,I.createDecorator)("CoreService"),A.ICharsetService=(0,I.createDecorator)("CharsetService"),A.IDirtyRowService=(0,I.createDecorator)("DirtyRowService"),A.IInstantiationService=(0,I.createDecorator)("InstantiationService"),(P=A.LogLevelEnum||(A.LogLevelEnum={}))[P.DEBUG=0]="DEBUG",P[P.INFO=1]="INFO",P[P.WARN=2]="WARN",P[P.ERROR=3]="ERROR",P[P.OFF=4]="OFF",A.ILogService=(0,I.createDecorator)("LogService"),A.IOptionsService=(0,I.createDecorator)("OptionsService"),A.IUnicodeService=(0,I.createDecorator)("UnicodeService"),A.IDecorationService=(0,I.createDecorator)("DecorationService")},1480:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeService=void 0;var P=H(8460),I=H(225),T=function(){function E(){this._providers=Object.create(null),this._active="",this._onChange=new P.EventEmitter;var j=new I.UnicodeV6;this.register(j),this._active=j.version,this._activeProvider=j}return Object.defineProperty(E.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"activeVersion",{get:function(){return this._active},set:function(R){if(!this._providers[R])throw new Error('unknown Unicode version "'+R+'"');this._active=R,this._activeProvider=this._providers[R],this._onChange.fire(R)},enumerable:!1,configurable:!0}),E.prototype.register=function(j){this._providers[j.version]=j},E.prototype.wcwidth=function(j){return this._activeProvider.wcwidth(j)},E.prototype.getStringCellWidth=function(j){for(var R=0,v=j.length,x=0;x<v;++x){var w=j.charCodeAt(x);if(55296<=w&&w<=56319){if(++x>=v)return R+this.wcwidth(w);var Z=j.charCodeAt(x);56320<=Z&&Z<=57343?w=1024*(w-55296)+Z-56320+65536:R+=this.wcwidth(Z)}R+=this.wcwidth(w)}return R},E}();A.UnicodeService=T}},m={};return function G(W){var A=m[W];if(void 0!==A)return A.exports;var H=m[W]={exports:{}};return K[W].call(H.exports,H,H.exports,G),H.exports}(4389)}()},1777:function(Ae,K,m){"use strict";m.d(K,{F4:function(){return x},IO:function(){return S},LC:function(){return H},SB:function(){return v},X$:function(){return I},ZE:function(){return F},ZN:function(){return N},_j:function(){return A},eR:function(){return w},jt:function(){return T},k1:function(){return X},l3:function(){return P},oB:function(){return R},pV:function(){return D},ru:function(){return E},vP:function(){return j}});var G=m(3144),W=m(5671),A=(0,G.Z)(function $(){(0,W.Z)(this,$)}),H=(0,G.Z)(function $(){(0,W.Z)(this,$)}),P="*";function I($,V){return{type:7,name:$,definitions:V,options:{}}}function T($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:V,timings:$}}function E($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:$,options:V}}function j($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:$,options:V}}function R($){return{type:6,styles:$,offset:null}}function v($,V,Q){return{type:0,name:$,styles:V,options:Q}}function x($){return{type:5,steps:$}}function w($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:$,animation:V,options:Q}}function D(){var $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:$}}function S($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:$,animation:V,options:Q}}function M($){Promise.resolve().then($)}var N=function(){function $(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=V+Q}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"onStart",value:function(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{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 Q=this;M(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),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(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var te="start"==Q?this._onStartFns:this._onDoneFns;te.forEach(function(be){return be()}),te.length=0}}]),$}(),F=function(){function $(V){var Q=this;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=V;var te=0,be=0,pe=0,fe=this.players.length;0==fe?M(function(){return Q._onFinish()}):this.players.forEach(function(ue){ue.onDone(function(){++te==fe&&Q._onFinish()}),ue.onDestroy(function(){++be==fe&&Q._onDestroy()}),ue.onStart(function(){++pe==fe&&Q._onStart()})}),this.totalTime=this.players.reduce(function(ue,de){return Math.max(ue,de.totalTime)},0)}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var te=Q*this.totalTime;this.players.forEach(function(be){var pe=be.totalTime?Math.min(1,te/be.totalTime):1;be.setPosition(pe)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(te,be){return null===te||be.totalTime>te.totalTime?be:te},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var te="start"==Q?this._onStartFns:this._onDoneFns;te.forEach(function(be){return be()}),te.length=0}}]),$}(),X="!"},5664:function(Ae,K,m){"use strict";m.d(K,{$s:function(){return Tt},Em:function(){return Ft},Kd:function(){return jt},X6:function(){return Jt},ic:function(){return rt},kH:function(){return hn},qV:function(){return t},qm:function(){return tt},rt:function(){return Et},s1:function(){return $t},tE:function(){return Sn},yG:function(){return Qe}});var G=m(7685),W=m(7326),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(5671),E=m(3144),j=m(9808),R=m(5e3),v=m(925),x=m(8929),w=m(4096),Z=m(591),D=m(1086),b=m(1159),S=m(2994),k=m(13),M=m(9664),N=m(4850),F=m(2986),X=m(1307),$=m(5778),V=m(7625),Q=m(3191),te=m(7144),be=m(5113);function de(We,Ye){return(We.getAttribute(Ye)||"").match(/\S+/g)||[]}var je="cdk-describedby-message",ot="cdk-describedby-host",St=0,Tt=function(){function We(Ye,Re){(0,T.Z)(this,We),this._platform=Re,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(St++),this._document=Ye,this._id=(0,R.f3M)(R.AFp)+"-"+St++}return(0,E.Z)(We,[{key:"describe",value:function(Re,Je,vt){if(this._canBeDescribed(Re,Je)){var dn=Dt(Je,vt);"string"!=typeof Je?(Rt(Je,this._id),this._messageRegistry.set(dn,{messageElement:Je,referenceCount:0})):this._messageRegistry.has(dn)||this._createMessageElement(Je,vt),this._isElementDescribedByMessage(Re,dn)||this._addMessageReference(Re,dn)}}},{key:"removeDescription",value:function(Re,Je,vt){var dn;if(Je&&this._isElementNode(Re)){var Un=Dt(Je,vt);if(this._isElementDescribedByMessage(Re,Un)&&this._removeMessageReference(Re,Un),"string"==typeof Je){var Kt=this._messageRegistry.get(Un);Kt&&0===Kt.referenceCount&&this._deleteMessageElement(Un)}0===(null===(dn=this._messagesContainer)||void 0===dn?void 0:dn.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Re,Je=this._document.querySelectorAll("[".concat(ot,'="').concat(this._id,'"]')),vt=0;vt<Je.length;vt++)this._removeCdkDescribedByReferenceIds(Je[vt]),Je[vt].removeAttribute(ot);null===(Re=this._messagesContainer)||void 0===Re||Re.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Re,Je){var vt=this._document.createElement("div");Rt(vt,this._id),vt.textContent=Re,Je&&vt.setAttribute("role",Je),this._createMessagesContainer(),this._messagesContainer.appendChild(vt),this._messageRegistry.set(Dt(Re,Je),{messageElement:vt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Re){var Je,vt;null===(vt=null===(Je=this._messageRegistry.get(Re))||void 0===Je?void 0:Je.messageElement)||void 0===vt||vt.remove(),this._messageRegistry.delete(Re)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Re="cdk-describedby-message-container",Je=this._document.querySelectorAll(".".concat(Re,'[platform="server"]')),vt=0;vt<Je.length;vt++)Je[vt].remove();var dn=this._document.createElement("div");dn.style.visibility="hidden",dn.classList.add(Re),dn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&dn.setAttribute("platform","server"),this._document.body.appendChild(dn),this._messagesContainer=dn}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Re){var Je=de(Re,"aria-describedby").filter(function(vt){return 0!=vt.indexOf(je)});Re.setAttribute("aria-describedby",Je.join(" "))}},{key:"_addMessageReference",value:function(Re,Je){var vt=this._messageRegistry.get(Je);(function fe(We,Ye,Re){var Je=de(We,Ye);Je.some(function(vt){return vt.trim()==Re.trim()})||(Je.push(Re.trim()),We.setAttribute(Ye,Je.join(" ")))})(Re,"aria-describedby",vt.messageElement.id),Re.setAttribute(ot,this._id),vt.referenceCount++}},{key:"_removeMessageReference",value:function(Re,Je){var vt=this._messageRegistry.get(Je);vt.referenceCount--,function ue(We,Ye,Re){var vt=de(We,Ye).filter(function(dn){return dn!=Re.trim()});vt.length?We.setAttribute(Ye,vt.join(" ")):We.removeAttribute(Ye)}(Re,"aria-describedby",vt.messageElement.id),Re.removeAttribute(ot)}},{key:"_isElementDescribedByMessage",value:function(Re,Je){var vt=de(Re,"aria-describedby"),dn=this._messageRegistry.get(Je),Un=dn&&dn.messageElement.id;return!!Un&&-1!=vt.indexOf(Un)}},{key:"_canBeDescribed",value:function(Re,Je){if(!this._isElementNode(Re))return!1;if(Je&&"object"==typeof Je)return!0;var vt=null==Je?"":"".concat(Je).trim(),dn=Re.getAttribute("aria-label");return!!vt&&(!dn||dn.trim()!==vt)}},{key:"_isElementNode",value:function(Re){return Re.nodeType===this._document.ELEMENT_NODE}}]),We}();function Dt(We,Ye){return"string"==typeof We?"".concat(Ye||"","/").concat(We):We}function Rt(We,Ye){We.id||(We.id="".concat(je,"-").concat(Ye,"-").concat(St++))}Tt.\u0275fac=function(Ye){return new(Ye||Tt)(R.LFG(j.K0),R.LFG(v.t4))},Tt.\u0275prov=R.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"});var Ze=function(){function We(Ye){var Re=this;(0,T.Z)(this,We),this._items=Ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x.xQ,this._typeaheadSubscription=w.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(Je){return Je.disabled},this._pressedLetters=[],this.tabOut=new x.xQ,this.change=new x.xQ,Ye instanceof R.n_E&&Ye.changes.subscribe(function(Je){if(Re._activeItem){var dn=Je.toArray().indexOf(Re._activeItem);dn>-1&&dn!==Re._activeItemIndex&&(Re._activeItemIndex=dn)}})}return(0,E.Z)(We,[{key:"skipPredicate",value:function(Re){return this._skipPredicateFn=Re,this}},{key:"withWrap",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Re,this}},{key:"withVerticalOrientation",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Re,this}},{key:"withHorizontalOrientation",value:function(Re){return this._horizontal=Re,this}},{key:"withAllowedModifierKeys",value:function(Re){return this._allowedModifierKeys=Re,this}},{key:"withTypeAhead",value:function(){var Re=this,Je=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(function(vt){return Re._pressedLetters.push(vt)}),(0,k.b)(Je),(0,M.h)(function(){return Re._pressedLetters.length>0}),(0,N.U)(function(){return Re._pressedLetters.join("")})).subscribe(function(vt){for(var dn=Re._getItemsArray(),Un=1;Un<dn.length+1;Un++){var Kt=(Re._activeItemIndex+Un)%dn.length,yt=dn[Kt];if(!Re._skipPredicateFn(yt)&&0===yt.getLabel().toUpperCase().trim().indexOf(vt)){Re.setActiveItem(Kt);break}}Re._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Re,this}},{key:"setActiveItem",value:function(Re){var Je=this._activeItem;this.updateActiveItem(Re),this._activeItem!==Je&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Re){var Je=this,vt=Re.keyCode,Un=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Kt){return!Re[Kt]||Je._allowedModifierKeys.indexOf(Kt)>-1});switch(vt){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&Un){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&Un){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&Un){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&Un){this.setLastItemActive();break}return;default:return void((Un||(0,b.Vb)(Re,"shiftKey"))&&(Re.key&&1===Re.key.length?this._letterKeyStream.next(Re.key.toLocaleUpperCase()):(vt>=b.A&&vt<=b.Z||vt>=b.xE&&vt<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(vt))))}this._pressedLetters=[],Re.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(Re){var Je=this._getItemsArray(),vt="number"==typeof Re?Re:Je.indexOf(Re),dn=Je[vt];this._activeItem=null==dn?null:dn,this._activeItemIndex=vt}},{key:"_setActiveItemByDelta",value:function(Re){this._wrap?this._setActiveInWrapMode(Re):this._setActiveInDefaultMode(Re)}},{key:"_setActiveInWrapMode",value:function(Re){for(var Je=this._getItemsArray(),vt=1;vt<=Je.length;vt++){var dn=(this._activeItemIndex+Re*vt+Je.length)%Je.length,Un=Je[dn];if(!this._skipPredicateFn(Un))return void this.setActiveItem(dn)}}},{key:"_setActiveInDefaultMode",value:function(Re){this._setActiveItemByIndex(this._activeItemIndex+Re,Re)}},{key:"_setActiveItemByIndex",value:function(Re,Je){var vt=this._getItemsArray();if(vt[Re]){for(;this._skipPredicateFn(vt[Re]);)if(!vt[Re+=Je])return;this.setActiveItem(Re)}}},{key:"_getItemsArray",value:function(){return this._items instanceof R.n_E?this._items.toArray():this._items}}]),We}(),$t=function(We){(0,P.Z)(Re,We);var Ye=(0,I.Z)(Re);function Re(){return(0,T.Z)(this,Re),Ye.apply(this,arguments)}return(0,E.Z)(Re,[{key:"setActiveItem",value:function(vt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,A.Z)((0,H.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Re}(Ze),Ft=function(We){(0,P.Z)(Re,We);var Ye=(0,I.Z)(Re);function Re(){var Je;return(0,T.Z)(this,Re),(Je=Ye.apply(this,arguments))._origin="program",Je}return(0,E.Z)(Re,[{key:"setFocusOrigin",value:function(vt){return this._origin=vt,this}},{key:"setActiveItem",value:function(vt){(0,A.Z)((0,H.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Re}(Ze),rt=function(){function We(Ye){(0,T.Z)(this,We),this._platform=Ye}return(0,E.Z)(We,[{key:"isDisabled",value:function(Re){return Re.hasAttribute("disabled")}},{key:"isVisible",value:function(Re){return function _t(We){return!!(We.offsetWidth||We.offsetHeight||"function"==typeof We.getClientRects&&We.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}},{key:"isTabbable",value:function(Re){if(!this._platform.isBrowser)return!1;var Je=function Ot(We){try{return We.frameElement}catch(Ye){return null}}(function Be(We){return We.ownerDocument&&We.ownerDocument.defaultView||window}(Re));if(Je&&(-1===U(Je)||!this.isVisible(Je)))return!1;var vt=Re.nodeName.toLowerCase(),dn=U(Re);return Re.hasAttribute("contenteditable")?-1!==dn:!("iframe"===vt||"object"===vt||this._platform.WEBKIT&&this._platform.IOS&&!function B(We){var Ye=We.nodeName.toLowerCase(),Re="input"===Ye&&We.type;return"text"===Re||"password"===Re||"select"===Ye||"textarea"===Ye}(Re))&&("audio"===vt?!!Re.hasAttribute("controls")&&-1!==dn:"video"===vt?-1!==dn&&(null!==dn||(this._platform.FIREFOX||Re.hasAttribute("controls"))):Re.tabIndex>=0)}},{key:"isFocusable",value:function(Re,Je){return function qe(We){return!function Ve(We){return function ht(We){return"input"==We.nodeName.toLowerCase()}(We)&&"hidden"==We.type}(We)&&(function Ct(We){var Ye=We.nodeName.toLowerCase();return"input"===Ye||"select"===Ye||"button"===Ye||"textarea"===Ye}(We)||function at(We){return function Ut(We){return"a"==We.nodeName.toLowerCase()}(We)&&We.hasAttribute("href")}(We)||We.hasAttribute("contenteditable")||Wt(We))}(Re)&&!this.isDisabled(Re)&&((null==Je?void 0:Je.ignoreVisibility)||this.isVisible(Re))}}]),We}();function Wt(We){if(!We.hasAttribute("tabindex")||void 0===We.tabIndex)return!1;var Ye=We.getAttribute("tabindex");return!(!Ye||isNaN(parseInt(Ye,10)))}function U(We){if(!Wt(We))return null;var Ye=parseInt(We.getAttribute("tabindex")||"",10);return isNaN(Ye)?-1:Ye}rt.\u0275fac=function(Ye){return new(Ye||rt)(R.LFG(v.t4))},rt.\u0275prov=R.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"});var le=function(){function We(Ye,Re,Je,vt){var dn=this,Un=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,T.Z)(this,We),this._element=Ye,this._checker=Re,this._ngZone=Je,this._document=vt,this._hasAttached=!1,this.startAnchorListener=function(){return dn.focusLastTabbableElement()},this.endAnchorListener=function(){return dn.focusFirstTabbableElement()},this._enabled=!0,Un||this.attachAnchors()}return(0,E.Z)(We,[{key:"enabled",get:function(){return this._enabled},set:function(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"destroy",value:function(){var Re=this._startAnchor,Je=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),Je&&(Je.removeEventListener("focus",this.endAnchorListener),Je.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Re=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Re._startAnchor||(Re._startAnchor=Re._createAnchor(),Re._startAnchor.addEventListener("focus",Re.startAnchorListener)),Re._endAnchor||(Re._endAnchor=Re._createAnchor(),Re._endAnchor.addEventListener("focus",Re.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(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusInitialElement(Re))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusFirstTabbableElement(Re))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Re){var Je=this;return new Promise(function(vt){Je._executeOnStable(function(){return vt(Je.focusLastTabbableElement(Re))})})}},{key:"_getRegionBoundary",value:function(Re){var Je=this._element.querySelectorAll("[cdk-focus-region-".concat(Re,"], ")+"[cdkFocusRegion".concat(Re,"], ")+"[cdk-focus-".concat(Re,"]"));return"start"==Re?Je.length?Je[0]:this._getFirstTabbableElement(this._element):Je.length?Je[Je.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Re){var Je=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Je){if(!this._checker.isFocusable(Je)){var vt=this._getFirstTabbableElement(Je);return null==vt||vt.focus(Re),!!vt}return Je.focus(Re),!0}return this.focusFirstTabbableElement(Re)}},{key:"focusFirstTabbableElement",value:function(Re){var Je=this._getRegionBoundary("start");return Je&&Je.focus(Re),!!Je}},{key:"focusLastTabbableElement",value:function(Re){var Je=this._getRegionBoundary("end");return Je&&Je.focus(Re),!!Je}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var Je=Re.children,vt=0;vt<Je.length;vt++){var dn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Je[vt]):null;if(dn)return dn}return null}},{key:"_getLastTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var Je=Re.children,vt=Je.length-1;vt>=0;vt--){var dn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Je[vt]):null;if(dn)return dn}return null}},{key:"_createAnchor",value:function(){var Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}},{key:"_toggleAnchorTabIndex",value:function(Re,Je){Re?Je.setAttribute("tabindex","0"):Je.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"_executeOnStable",value:function(Re){this._ngZone.isStable?Re():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(Re)}}]),We}(),t=function(){function We(Ye,Re,Je){(0,T.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._document=Je}return(0,E.Z)(We,[{key:"create",value:function(Re){var Je=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new le(Re,this._checker,this._ngZone,this._document,Je)}}]),We}();t.\u0275fac=function(Ye){return new(Ye||t)(R.LFG(rt),R.LFG(R.R0b),R.LFG(j.K0))},t.\u0275prov=R.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"});var Lt=function(){function We(Ye,Re,Je){(0,T.Z)(this,We),this._elementRef=Ye,this._focusTrapFactory=Re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,E.Z)(We,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Re){this.focusTrap.enabled=(0,Q.Ig)(Re)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Re){this._autoCapture=(0,Q.Ig)(Re)}},{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(Re){var Je=Re.autoCapture;Je&&!Je.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),We}();Lt.\u0275fac=function(Ye){return new(Ye||Lt)(R.Y36(R.SBq),R.Y36(t),R.Y36(j.K0))},Lt.\u0275dir=R.lG2({type:Lt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[R.TTD]});var zt=function(We){(0,P.Z)(Re,We);var Ye=(0,I.Z)(Re);function Re(Je,vt,dn,Un,Kt,yt,et){var gt;return(0,T.Z)(this,Re),(gt=Ye.call(this,Je,vt,dn,Un,et.defer))._focusTrapManager=Kt,gt._inertStrategy=yt,gt._focusTrapManager.register((0,W.Z)(gt)),gt}return(0,E.Z)(Re,[{key:"enabled",get:function(){return this._enabled},set:function(vt){this._enabled=vt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,A.Z)((0,H.Z)(Re.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}]),Re}(le),an=new R.OlP("FOCUS_TRAP_INERT_STRATEGY"),Qt=function(){function We(){(0,T.Z)(this,We),this._listener=null}return(0,E.Z)(We,[{key:"preventFocus",value:function(Re){var Je=this;this._listener&&Re._document.removeEventListener("focus",this._listener,!0),this._listener=function(vt){return Je._trapFocus(Re,vt)},Re._ngZone.runOutsideAngular(function(){Re._document.addEventListener("focus",Je._listener,!0)})}},{key:"allowFocus",value:function(Re){!this._listener||(Re._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Re,Je){var vt,dn=Je.target,Un=Re._element;dn&&!Un.contains(dn)&&(null===(vt=dn.closest)||void 0===vt||!vt.call(dn,"div.cdk-overlay-pane"))&&setTimeout(function(){Re.enabled&&!Un.contains(Re._document.activeElement)&&Re.focusFirstTabbableElement()})}}]),We}(),vn=function(){function We(){(0,T.Z)(this,We),this._focusTrapStack=[]}return(0,E.Z)(We,[{key:"register",value:function(Re){this._focusTrapStack=this._focusTrapStack.filter(function(vt){return vt!==Re});var Je=this._focusTrapStack;Je.length&&Je[Je.length-1]._disable(),Je.push(Re),Re._enable()}},{key:"deregister",value:function(Re){Re._disable();var Je=this._focusTrapStack,vt=Je.indexOf(Re);-1!==vt&&(Je.splice(vt,1),Je.length&&Je[Je.length-1]._enable())}}]),We}();vn.\u0275fac=function(Ye){return new(Ye||vn)},vn.\u0275prov=R.Yz7({token:vn,factory:vn.\u0275fac,providedIn:"root"});var Vt=function(){function We(Ye,Re,Je,vt,dn){(0,T.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._focusTrapManager=Je,this._document=vt,this._inertStrategy=dn||new Qt}return(0,E.Z)(We,[{key:"create",value:function(Re){var vt,Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return vt="boolean"==typeof Je?{defer:Je}:Je,new zt(Re,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,vt)}}]),We}();function Jt(We){return 0===We.buttons||0===We.offsetX&&0===We.offsetY}function Qe(We){var Ye=We.touches&&We.touches[0]||We.changedTouches&&We.changedTouches[0];return!(!Ye||-1!==Ye.identifier||null!=Ye.radiusX&&1!==Ye.radiusX||null!=Ye.radiusY&&1!==Ye.radiusY)}Vt.\u0275fac=function(Ye){return new(Ye||Vt)(R.LFG(rt),R.LFG(R.R0b),R.LFG(vn),R.LFG(j.K0),R.LFG(an,8))},Vt.\u0275prov=R.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"});var Fe=new R.OlP("cdk-input-modality-detector-options"),ne={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},he=(0,v.i$)({passive:!0,capture:!0}),Le=function(){function We(Ye,Re,Je,vt){var dn=this;(0,T.Z)(this,We),this._platform=Ye,this._mostRecentTarget=null,this._modality=new Z.X(null),this._lastTouchMs=0,this._onKeydown=function(Un){var Kt,yt;null!==(yt=null===(Kt=dn._options)||void 0===Kt?void 0:Kt.ignoreKeys)&&void 0!==yt&&yt.some(function(et){return et===Un.keyCode})||(dn._modality.next("keyboard"),dn._mostRecentTarget=(0,v.sA)(Un))},this._onMousedown=function(Un){Date.now()-dn._lastTouchMs<650||(dn._modality.next(Jt(Un)?"keyboard":"mouse"),dn._mostRecentTarget=(0,v.sA)(Un))},this._onTouchstart=function(Un){Qe(Un)?dn._modality.next("keyboard"):(dn._lastTouchMs=Date.now(),dn._modality.next("touch"),dn._mostRecentTarget=(0,v.sA)(Un))},this._options=Object.assign(Object.assign({},ne),vt),this.modalityDetected=this._modality.pipe((0,X.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),Ye.isBrowser&&Re.runOutsideAngular(function(){Je.addEventListener("keydown",dn._onKeydown,he),Je.addEventListener("mousedown",dn._onMousedown,he),Je.addEventListener("touchstart",dn._onTouchstart,he)})}return(0,E.Z)(We,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,he),document.removeEventListener("mousedown",this._onMousedown,he),document.removeEventListener("touchstart",this._onTouchstart,he))}}]),We}();Le.\u0275fac=function(Ye){return new(Ye||Le)(R.LFG(v.t4),R.LFG(R.R0b),R.LFG(j.K0),R.LFG(Fe,8))},Le.\u0275prov=R.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"});var lt=new R.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ut(){return null}});var Nt=new R.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jt=function(){function We(Ye,Re,Je,vt){(0,T.Z)(this,We),this._ngZone=Re,this._defaultOptions=vt,this._document=Je,this._liveElement=Ye||this._createLiveElement()}return(0,E.Z)(We,[{key:"announce",value:function(Re){for(var dn,Un,Je=this,vt=this._defaultOptions,Kt=arguments.length,yt=new Array(Kt>1?Kt-1:0),et=1;et<Kt;et++)yt[et-1]=arguments[et];return 1===yt.length&&"number"==typeof yt[0]?Un=yt[0]:(dn=yt[0],Un=yt[1]),this.clear(),clearTimeout(this._previousTimeout),dn||(dn=vt&&vt.politeness?vt.politeness:"polite"),null==Un&&vt&&(Un=vt.duration),this._liveElement.setAttribute("aria-live",dn),this._ngZone.runOutsideAngular(function(){return Je._currentPromise||(Je._currentPromise=new Promise(function(gt){return Je._currentResolve=gt})),clearTimeout(Je._previousTimeout),Je._previousTimeout=setTimeout(function(){Je._liveElement.textContent=Re,"number"==typeof Un&&(Je._previousTimeout=setTimeout(function(){return Je.clear()},Un)),Je._currentResolve(),Je._currentPromise=Je._currentResolve=void 0},100),Je._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Re,Je;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(Je=this._currentResolve)||void 0===Je||Je.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Re="cdk-live-announcer-element",Je=this._document.getElementsByClassName(Re),vt=this._document.createElement("div"),dn=0;dn<Je.length;dn++)Je[dn].remove();return vt.classList.add(Re),vt.classList.add("cdk-visually-hidden"),vt.setAttribute("aria-atomic","true"),vt.setAttribute("aria-live","polite"),this._document.body.appendChild(vt),vt}}]),We}();jt.\u0275fac=function(Ye){return new(Ye||jt)(R.LFG(lt,8),R.LFG(R.R0b),R.LFG(j.K0),R.LFG(Nt,8))},jt.\u0275prov=R.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var sn=function(){function We(Ye,Re,Je,vt){(0,T.Z)(this,We),this._elementRef=Ye,this._liveAnnouncer=Re,this._contentObserver=Je,this._ngZone=vt,this._politeness="polite"}return(0,E.Z)(We,[{key:"politeness",get:function(){return this._politeness},set:function(Re){var Je=this;this._politeness="off"===Re||"assertive"===Re?Re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return Je._contentObserver.observe(Je._elementRef).subscribe(function(){var vt=Je._elementRef.nativeElement.textContent;vt!==Je._previousAnnouncedText&&(Je._liveAnnouncer.announce(vt,Je._politeness,Je.duration),Je._previousAnnouncedText=vt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),We}();sn.\u0275fac=function(Ye){return new(Ye||sn)(R.Y36(R.SBq),R.Y36(jt),R.Y36(te.yq),R.Y36(R.R0b))},sn.\u0275dir=R.lG2({type:sn,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});var yn=new R.OlP("cdk-focus-monitor-default-options"),ln=(0,v.i$)({passive:!0,capture:!0}),Sn=function(){function We(Ye,Re,Je,vt,dn){var Un=this;(0,T.Z)(this,We),this._ngZone=Ye,this._platform=Re,this._inputModalityDetector=Je,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){Un._windowFocused=!0,Un._windowFocusTimeoutId=window.setTimeout(function(){return Un._windowFocused=!1})},this._stopInputModalityDetector=new x.xQ,this._rootNodeFocusAndBlurListener=function(Kt){for(var et=(0,v.sA)(Kt);et;et=et.parentElement)"focus"===Kt.type?Un._onFocus(Kt,et):Un._onBlur(Kt,et)},this._document=vt,this._detectionMode=(null==dn?void 0:dn.detectionMode)||0}return(0,E.Z)(We,[{key:"monitor",value:function(Re){var Je=arguments.length>1&&void 0!==arguments[1]&&arguments[1],vt=(0,Q.fI)(Re);if(!this._platform.isBrowser||1!==vt.nodeType)return(0,D.of)(null);var dn=(0,v.kV)(vt)||this._getDocument(),Un=this._elementInfo.get(vt);if(Un)return Je&&(Un.checkChildren=!0),Un.subject;var Kt={checkChildren:Je,subject:new x.xQ,rootNode:dn};return this._elementInfo.set(vt,Kt),this._registerGlobalListeners(Kt),Kt.subject}},{key:"stopMonitoring",value:function(Re){var Je=(0,Q.fI)(Re),vt=this._elementInfo.get(Je);vt&&(vt.subject.complete(),this._setClasses(Je),this._elementInfo.delete(Je),this._removeGlobalListeners(vt))}},{key:"focusVia",value:function(Re,Je,vt){var dn=this,Un=(0,Q.fI)(Re);Un===this._getDocument().activeElement?this._getClosestElementsInfo(Un).forEach(function(yt){var et=(0,G.Z)(yt,2),gt=et[0],wt=et[1];return dn._originChanged(gt,Je,wt)}):(this._setOrigin(Je),"function"==typeof Un.focus&&Un.focus(vt))}},{key:"ngOnDestroy",value:function(){var Re=this;this._elementInfo.forEach(function(Je,vt){return Re.stopMonitoring(vt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}},{key:"_shouldBeAttributedToTouch",value:function(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Re,Je){Re.classList.toggle("cdk-focused",!!Je),Re.classList.toggle("cdk-touch-focused","touch"===Je),Re.classList.toggle("cdk-keyboard-focused","keyboard"===Je),Re.classList.toggle("cdk-mouse-focused","mouse"===Je),Re.classList.toggle("cdk-program-focused","program"===Je)}},{key:"_setOrigin",value:function(Re){var Je=this,vt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(Je._origin=Re,Je._originFromTouchInteraction="touch"===Re&&vt,0===Je._detectionMode){clearTimeout(Je._originTimeoutId);var dn=Je._originFromTouchInteraction?650:1;Je._originTimeoutId=setTimeout(function(){return Je._origin=null},dn)}})}},{key:"_onFocus",value:function(Re,Je){var vt=this._elementInfo.get(Je),dn=(0,v.sA)(Re);!vt||!vt.checkChildren&&Je!==dn||this._originChanged(Je,this._getFocusOrigin(dn),vt)}},{key:"_onBlur",value:function(Re,Je){var vt=this._elementInfo.get(Je);!vt||vt.checkChildren&&Re.relatedTarget instanceof Node&&Je.contains(Re.relatedTarget)||(this._setClasses(Je),this._emitOrigin(vt,null))}},{key:"_emitOrigin",value:function(Re,Je){Re.subject.observers.length&&this._ngZone.run(function(){return Re.subject.next(Je)})}},{key:"_registerGlobalListeners",value:function(Re){var Je=this;if(this._platform.isBrowser){var vt=Re.rootNode,dn=this._rootNodeFocusListenerCount.get(vt)||0;dn||this._ngZone.runOutsideAngular(function(){vt.addEventListener("focus",Je._rootNodeFocusAndBlurListener,ln),vt.addEventListener("blur",Je._rootNodeFocusAndBlurListener,ln)}),this._rootNodeFocusListenerCount.set(vt,dn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){Je._getWindow().addEventListener("focus",Je._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(function(Un){Je._setOrigin(Un,!0)}))}}},{key:"_removeGlobalListeners",value:function(Re){var Je=Re.rootNode;if(this._rootNodeFocusListenerCount.has(Je)){var vt=this._rootNodeFocusListenerCount.get(Je);vt>1?this._rootNodeFocusListenerCount.set(Je,vt-1):(Je.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ln),Je.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ln),this._rootNodeFocusListenerCount.delete(Je))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Re,Je,vt){this._setClasses(Re,Je),this._emitOrigin(vt,Je),this._lastFocusOrigin=Je}},{key:"_getClosestElementsInfo",value:function(Re){var Je=[];return this._elementInfo.forEach(function(vt,dn){(dn===Re||vt.checkChildren&&dn.contains(Re))&&Je.push([dn,vt])}),Je}},{key:"_isLastInteractionFromInputLabel",value:function(Re){var Je=this._inputModalityDetector,vt=Je._mostRecentTarget;if("mouse"!==Je.mostRecentModality||!vt||vt===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;var Un=Re.labels;if(Un)for(var Kt=0;Kt<Un.length;Kt++)if(Un[Kt].contains(vt))return!0;return!1}}]),We}();Sn.\u0275fac=function(Ye){return new(Ye||Sn)(R.LFG(R.R0b),R.LFG(v.t4),R.LFG(Le),R.LFG(j.K0,8),R.LFG(yn,8))},Sn.\u0275prov=R.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"});var hn=function(){function We(Ye,Re){(0,T.Z)(this,We),this._elementRef=Ye,this._focusMonitor=Re,this._focusOrigin=null,this.cdkFocusChange=new R.vpe}return(0,E.Z)(We,[{key:"focusOrigin",get:function(){return this._focusOrigin}},{key:"ngAfterViewInit",value:function(){var Re=this,Je=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Je,1===Je.nodeType&&Je.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(vt){Re._focusOrigin=vt,Re.cdkFocusChange.emit(vt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),We}();hn.\u0275fac=function(Ye){return new(Ye||hn)(R.Y36(R.SBq),R.Y36(Sn))},hn.\u0275dir=R.lG2({type:hn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var mn="cdk-high-contrast-black-on-white",At="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active",tt=function(){function We(Ye,Re){var Je=this;(0,T.Z)(this,We),this._platform=Ye,this._document=Re,this._breakpointSubscription=(0,R.f3M)(be.Yg).observe("(forced-colors: active)").subscribe(function(){Je._hasCheckedHighContrastMode&&(Je._hasCheckedHighContrastMode=!1,Je._applyBodyHighContrastModeCssClasses())})}return(0,E.Z)(We,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);var Je=this._document.defaultView||window,vt=Je&&Je.getComputedStyle?Je.getComputedStyle(Re):null,dn=(vt&&vt.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),dn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe()}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Re=this._document.body.classList;Re.remove(xt,mn,At),this._hasCheckedHighContrastMode=!0;var Je=this.getHighContrastMode();1===Je?Re.add(xt,mn):2===Je&&Re.add(xt,At)}}}]),We}();tt.\u0275fac=function(Ye){return new(Ye||tt)(R.LFG(v.t4),R.LFG(j.K0))},tt.\u0275prov=R.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});var Et=(0,E.Z)(function We(Ye){(0,T.Z)(this,We),Ye._applyBodyHighContrastModeCssClasses()});Et.\u0275fac=function(Ye){return new(Ye||Et)(R.LFG(tt))},Et.\u0275mod=R.oAB({type:Et}),Et.\u0275inj=R.cJS({imports:[te.Q8]})},226:function(Ae,K,m){"use strict";m.d(K,{Is:function(){return j},vT:function(){return v}});var G=m(5671),W=m(3144),A=m(5e3),H=m(9808),P=new A.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,A.f3M)(H.K0)}});var T=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function E(x){var w=(null==x?void 0:x.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?T.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}var j=function(){function x(w){if((0,G.Z)(this,x),this.value="ltr",this.change=new A.vpe,w){var Z=w.body?w.body.dir:null,D=w.documentElement?w.documentElement.dir:null;this.value=E(Z||D||"ltr")}}return(0,W.Z)(x,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),x}();j.\u0275fac=function(w){return new(w||j)(A.LFG(P,8))},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var R=function(){function x(){(0,G.Z)(this,x),this._dir="ltr",this._isInitialized=!1,this.change=new A.vpe}return(0,W.Z)(x,[{key:"dir",get:function(){return this._dir},set:function(Z){var D=this._dir;this._dir=E(Z),this._rawDir=Z,D!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}}]),x}();R.\u0275fac=function(w){return new(w||R)},R.\u0275dir=A.lG2({type:R,selectors:[["","dir",""]],hostVars:1,hostBindings:function(w,Z){2&w&&A.uIk("dir",Z._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[A._Bn([{provide:j,useExisting:R}])]});var v=(0,W.Z)(function x(){(0,G.Z)(this,x)});v.\u0275fac=function(w){return new(w||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({})},3191:function(Ae,K,m){"use strict";m.d(K,{Eq:function(){return I},HM:function(){return T},Ig:function(){return A},du:function(){return j},fI:function(){return E},su:function(){return H},t6:function(){return P}});var G=m(7762),W=m(5e3);function A(R){return null!=R&&"false"!=="".concat(R)}function H(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P(R)?Number(R):v}function P(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function I(R){return Array.isArray(R)?R:[R]}function T(R){return null==R?"":"string"==typeof R?R:"".concat(R,"px")}function E(R){return R instanceof W.SBq?R.nativeElement:R}function j(R){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,x=[];if(null!=R){var D,w=Array.isArray(R)?R:"".concat(R).split(v),Z=(0,G.Z)(w);try{for(Z.s();!(D=Z.n()).done;){var b=D.value,S="".concat(b).trim();S&&x.push(S)}}catch(k){Z.e(k)}finally{Z.f()}}return x}},449:function(Ae,K,m){"use strict";m.d(K,{A8:function(){return k},Ov:function(){return b},P3:function(){return w},Z9:function(){return x},eX:function(){return D},k:function(){return M},o2:function(){return v},yy:function(){return Z}});var G=m(7762),W=m(136),A=m(9388),H=m(3144),P=m(5671),I=m(1762),T=m(4715),E=m(1086),j=m(8929),R=m(5e3),v=(0,H.Z)(function N(){(0,P.Z)(this,N)});function x(N){return N&&"function"==typeof N.connect&&!(N instanceof I.c)}var w=function(N){(0,W.Z)(X,N);var F=(0,A.Z)(X);function X($){var V;return(0,P.Z)(this,X),(V=F.call(this))._data=$,V}return(0,H.Z)(X,[{key:"connect",value:function(){return(0,T.b)(this._data)?this._data:(0,E.of)(this._data)}},{key:"disconnect",value:function(){}}]),X}(v),Z=function(){function N(){(0,P.Z)(this,N)}return(0,H.Z)(N,[{key:"applyChanges",value:function(X,$,V,Q,te){X.forEachOperation(function(be,pe,fe){var ue,de;if(null==be.previousIndex){var ge=V(be,pe,fe);ue=$.createEmbeddedView(ge.templateRef,ge.context,ge.index),de=1}else null==fe?($.remove(pe),de=3):(ue=$.get(pe),$.move(ue,fe),de=2);te&&te({context:null==ue?void 0:ue.context,operation:de,record:be})})}},{key:"detach",value:function(){}}]),N}(),D=function(){function N(){(0,P.Z)(this,N),this.viewCacheSize=20,this._viewCache=[]}return(0,H.Z)(N,[{key:"applyChanges",value:function(X,$,V,Q,te){var be=this;X.forEachOperation(function(pe,fe,ue){var de,ge;if(null==pe.previousIndex){ge=(de=be._insertView(function(){return V(pe,fe,ue)},ue,$,Q(pe)))?1:0}else null==ue?(be._detachAndCacheView(fe,$),ge=3):(de=be._moveView(fe,ue,$,Q(pe)),ge=2);te&&te({context:null==de?void 0:de.context,operation:ge,record:pe})})}},{key:"detach",value:function(){var $,X=(0,G.Z)(this._viewCache);try{for(X.s();!($=X.n()).done;){$.value.destroy()}}catch(Q){X.e(Q)}finally{X.f()}this._viewCache=[]}},{key:"_insertView",value:function(X,$,V,Q){var te=this._insertViewFromCache($,V);if(!te){var be=X();return V.createEmbeddedView(be.templateRef,be.context,be.index)}te.context.$implicit=Q}},{key:"_detachAndCacheView",value:function(X,$){var V=$.detach(X);this._maybeCacheView(V,$)}},{key:"_moveView",value:function(X,$,V,Q){var te=V.get(X);return V.move(te,$),te.context.$implicit=Q,te}},{key:"_maybeCacheView",value:function(X,$){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(X);else{var V=$.indexOf(X);-1===V?X.destroy():$.remove(V)}}},{key:"_insertViewFromCache",value:function(X,$){var V=this._viewCache.pop();return V&&$.insert(V,X),V||null}}]),N}(),b=function(){function N(){var F=this,X=arguments.length>0&&void 0!==arguments[0]&&arguments[0],$=arguments.length>1?arguments[1]:void 0,V=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],Q=arguments.length>3?arguments[3]:void 0;(0,P.Z)(this,N),this._multiple=X,this._emitChanges=V,this.compareWith=Q,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j.xQ,$&&$.length&&(X?$.forEach(function(te){return F._markSelected(te)}):this._markSelected($[0]),this._selectedToEmit.length=0)}return(0,H.Z)(N,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V),V.forEach(function(be){return X._markSelected(be)});var te=this._hasQueuedChanges();return this._emitChangeEvent(),te}},{key:"deselect",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V),V.forEach(function(be){return X._unmarkSelected(be)});var te=this._hasQueuedChanges();return this._emitChangeEvent(),te}},{key:"setSelection",value:function(){for(var X=this,$=arguments.length,V=new Array($),Q=0;Q<$;Q++)V[Q]=arguments[Q];this._verifyValueAssignment(V);var te=this.selected,be=new Set(V);V.forEach(function(fe){return X._markSelected(fe)}),te.filter(function(fe){return!be.has(fe)}).forEach(function(fe){return X._unmarkSelected(fe)});var pe=this._hasQueuedChanges();return this._emitChangeEvent(),pe}},{key:"toggle",value:function(X){return this.isSelected(X)?this.deselect(X):this.select(X)}},{key:"clear",value:function(){var X=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._unmarkAll();var $=this._hasQueuedChanges();return X&&this._emitChangeEvent(),$}},{key:"isSelected",value:function(X){if(this.compareWith){var V,$=(0,G.Z)(this._selection);try{for($.s();!(V=$.n()).done;){var Q=V.value;if(this.compareWith(Q,X))return!0}}catch(te){$.e(te)}finally{$.f()}return!1}return this._selection.has(X)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(X){this._multiple&&this.selected&&this._selected.sort(X)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this.isSelected(X)||this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}},{key:"_unmarkSelected",value:function(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}},{key:"_unmarkAll",value:function(){var X=this;this.isEmpty()||this._selection.forEach(function($){return X._unmarkSelected($)})}},{key:"_verifyValueAssignment",value:function(X){X.length>1&&this._multiple}},{key:"_hasQueuedChanges",value:function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}]),N}();var k=function(){function N(){(0,P.Z)(this,N),this._listeners=[]}return(0,H.Z)(N,[{key:"notify",value:function(X,$){var Q,V=(0,G.Z)(this._listeners);try{for(V.s();!(Q=V.n()).done;){(0,Q.value)(X,$)}}catch(be){V.e(be)}finally{V.f()}}},{key:"listen",value:function(X){var $=this;return this._listeners.push(X),function(){$._listeners=$._listeners.filter(function(V){return X!==V})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),N}();k.\u0275fac=function(F){return new(F||k)},k.\u0275prov=R.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"});var M=new R.OlP("_ViewRepeater")},1159:function(Ae,K,m){"use strict";m.d(K,{A:function(){return Ze},JH:function(){return N},JU:function(){return I},K5:function(){return P},LH:function(){return k},L_:function(){return x},MW:function(){return Qe},Mf:function(){return A},SV:function(){return M},Sd:function(){return b},Vb:function(){return ri},Z:function(){return Jt},ZH:function(){return W},aO:function(){return ot},b2:function(){return Yo},hY:function(){return v},jx:function(){return T},oh:function(){return S},uR:function(){return D},xE:function(){return Q},yY:function(){return V},zL:function(){return E}});var W=8,A=9,P=13,I=16,T=17,E=18,v=27,x=32,D=35,b=36,S=37,k=38,M=39,N=40,V=46,Q=48,ot=57,Ze=65,Jt=90,Qe=91,Yo=224;function ri(So){for(var so=arguments.length,xr=new Array(so>1?so-1:0),Vi=1;Vi<so;Vi++)xr[Vi-1]=arguments[Vi];return xr.length?xr.some(function(Eo){return So[Eo]}):So.altKey||So.shiftKey||So.ctrlKey||So.metaKey}},5113:function(Ae,K,m){"use strict";m.d(K,{Yg:function(){return X},u3:function(){return V}});var G=m(3144),W=m(5671),A=m(5e3),H=m(3191),P=m(8929),I=m(6053),T=m(1961),E=m(7451),j=m(2986),R=m(1307),v=m(13),x=m(4850),w=m(1059),Z=m(7625),D=m(925),b=(0,G.Z)(function Q(){(0,W.Z)(this,Q)});b.\u0275fac=function(te){return new(te||b)},b.\u0275mod=A.oAB({type:b}),b.\u0275inj=A.cJS({});var k,S=new Set,M=function(){function Q(te){(0,W.Z)(this,Q),this._platform=te,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}return(0,G.Z)(Q,[{key:"matchMedia",value:function(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(Q){if(!S.has(Q))try{k||((k=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(k)),k.sheet&&(k.sheet.insertRule("@media ".concat(Q," {body{ }}"),0),S.add(Q))}catch(te){console.error(te)}}(be),this._matchMedia(be)}}]),Q}();function F(Q){return{matches:"all"===Q||""===Q,media:Q,addListener:function(){},removeListener:function(){}}}M.\u0275fac=function(te){return new(te||M)(A.LFG(D.t4))},M.\u0275prov=A.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});var X=function(){function Q(te,be){(0,W.Z)(this,Q),this._mediaMatcher=te,this._zone=be,this._queries=new Map,this._destroySubject=new P.xQ}return(0,G.Z)(Q,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(be){var pe=this;return $((0,H.Eq)(be)).some(function(ue){return pe._registerQuery(ue).mql.matches})}},{key:"observe",value:function(be){var pe=this,ue=$((0,H.Eq)(be)).map(function(ge){return pe._registerQuery(ge).observable}),de=(0,I.aj)(ue);return(de=(0,T.z)(de.pipe((0,j.q)(1)),de.pipe((0,R.T)(1),(0,v.b)(0)))).pipe((0,x.U)(function(ge){var je={matches:!1,breakpoints:{}};return ge.forEach(function(ot){var St=ot.matches,Tt=ot.query;je.matches=je.matches||St,je.breakpoints[Tt]=St}),je}))}},{key:"_registerQuery",value:function(be){var pe=this;if(this._queries.has(be))return this._queries.get(be);var fe=this._mediaMatcher.matchMedia(be),de={observable:new E.y(function(ge){var je=function(St){return pe._zone.run(function(){return ge.next(St)})};return fe.addListener(je),function(){fe.removeListener(je)}}).pipe((0,w.O)(fe),(0,x.U)(function(ge){var je=ge.matches;return{query:be,matches:je}}),(0,Z.R)(this._destroySubject)),mql:fe};return this._queries.set(be,de),de}}]),Q}();function $(Q){return Q.map(function(te){return te.split(",")}).reduce(function(te,be){return te.concat(be)}).map(function(te){return te.trim()})}X.\u0275fac=function(te){return new(te||X)(A.LFG(M),A.LFG(A.R0b))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"});var V={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:function(Ae,K,m){"use strict";m.d(K,{Q8:function(){return v},wD:function(){return R},yq:function(){return j}});var G=m(5671),W=m(3144),A=m(3191),H=m(5e3),P=m(7451),I=m(8929),T=m(13),E=function(){function x(){(0,G.Z)(this,x)}return(0,W.Z)(x,[{key:"create",value:function(Z){return"undefined"==typeof MutationObserver?null:new MutationObserver(Z)}}]),x}();E.\u0275fac=function(w){return new(w||E)},E.\u0275prov=H.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"});var j=function(){function x(w){(0,G.Z)(this,x),this._mutationObserverFactory=w,this._observedElements=new Map}return(0,W.Z)(x,[{key:"ngOnDestroy",value:function(){var Z=this;this._observedElements.forEach(function(D,b){return Z._cleanupObserver(b)})}},{key:"observe",value:function(Z){var D=this,b=(0,A.fI)(Z);return new P.y(function(S){var M=D._observeElement(b).subscribe(S);return function(){M.unsubscribe(),D._unobserveElement(b)}})}},{key:"_observeElement",value:function(Z){if(this._observedElements.has(Z))this._observedElements.get(Z).count++;else{var D=new I.xQ,b=this._mutationObserverFactory.create(function(S){return D.next(S)});b&&b.observe(Z,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(Z,{observer:b,stream:D,count:1})}return this._observedElements.get(Z).stream}},{key:"_unobserveElement",value:function(Z){this._observedElements.has(Z)&&(this._observedElements.get(Z).count--,this._observedElements.get(Z).count||this._cleanupObserver(Z))}},{key:"_cleanupObserver",value:function(Z){if(this._observedElements.has(Z)){var D=this._observedElements.get(Z),b=D.observer,S=D.stream;b&&b.disconnect(),S.complete(),this._observedElements.delete(Z)}}}]),x}();j.\u0275fac=function(w){return new(w||j)(H.LFG(E))},j.\u0275prov=H.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var R=function(){function x(w,Z,D){(0,G.Z)(this,x),this._contentObserver=w,this._elementRef=Z,this._ngZone=D,this.event=new H.vpe,this._disabled=!1,this._currentSubscription=null}return(0,W.Z)(x,[{key:"disabled",get:function(){return this._disabled},set:function(Z){this._disabled=(0,A.Ig)(Z),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(Z){this._debounce=(0,A.su)(Z),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var Z=this;this._unsubscribe();var D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){Z._currentSubscription=(Z.debounce?D.pipe((0,T.b)(Z.debounce)):D).subscribe(Z.event)})}},{key:"_unsubscribe",value:function(){var Z;null===(Z=this._currentSubscription)||void 0===Z||Z.unsubscribe()}}]),x}();R.\u0275fac=function(w){return new(w||R)(H.Y36(j),H.Y36(H.SBq),H.Y36(H.R0b))},R.\u0275dir=H.lG2({type:R,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var v=(0,W.Z)(function x(){(0,G.Z)(this,x)});v.\u0275fac=function(w){return new(w||v)},v.\u0275mod=H.oAB({type:v}),v.\u0275inj=H.cJS({providers:[E]})},1314:function(Ae,K,m){"use strict";m.d(K,{Iu:function(){return Ze},U8:function(){return Vt},X_:function(){return je},Xj:function(){return $t},aV:function(){return le},pI:function(){return an},xu:function(){return zt}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),P=m(7685),I=m(7762),T=m(4902),E=m(5671),j=m(3144),R=m(9071),v=m(9808),x=m(5e3),w=m(3191),Z=m(925),D=m(226),b=m(7429),S=m(8929),k=m(4096),M=m(6787),N=m(2986),F=m(7625),X=m(4290),$=m(1159),V=(0,Z.Mq)(),Q=function(){function Qe(Fe,ne){(0,E.Z)(this,Qe),this._viewportRuler=Fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ne}return(0,j.Z)(Qe,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var ne=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ne.style.left||"",this._previousHTMLStyles.top=ne.style.top||"",ne.style.left=(0,w.HM)(-this._previousScrollPosition.left),ne.style.top=(0,w.HM)(-this._previousScrollPosition.top),ne.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var ne=this._document.documentElement,ye=this._document.body,he=ne.style,Le=ye.style,lt=he.scrollBehavior||"",ut=Le.scrollBehavior||"";this._isEnabled=!1,he.left=this._previousHTMLStyles.left,he.top=this._previousHTMLStyles.top,ne.classList.remove("cdk-global-scrollblock"),V&&(he.scrollBehavior=Le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),V&&(he.scrollBehavior=lt,Le.scrollBehavior=ut)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ye=this._document.body,he=this._viewportRuler.getViewportSize();return ye.scrollHeight>he.height||ye.scrollWidth>he.width}}]),Qe}();var be=function(){function Qe(Fe,ne,ye,he){var Le=this;(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._ngZone=ne,this._viewportRuler=ye,this._config=he,this._scrollSubscription=null,this._detach=function(){Le.disable(),Le._overlayRef.hasAttached()&&Le._ngZone.run(function(){return Le._overlayRef.detach()})}}return(0,j.Z)(Qe,[{key:"attach",value:function(ne){this._overlayRef,this._overlayRef=ne}},{key:"enable",value:function(){var ne=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var he=ne._viewportRuler.getViewportScrollPosition().top;Math.abs(he-ne._initialScrollPosition)>ne._config.threshold?ne._detach():ne._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Qe}(),pe=function(){function Qe(){(0,E.Z)(this,Qe)}return(0,j.Z)(Qe,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Qe}();function fe(Qe,Fe){return Fe.some(function(ne){var ye=Qe.bottom<ne.top,he=Qe.top>ne.bottom,Le=Qe.right<ne.left,lt=Qe.left>ne.right;return ye||he||Le||lt})}function ue(Qe,Fe){return Fe.some(function(ne){var ye=Qe.top<ne.top,he=Qe.bottom>ne.bottom,Le=Qe.left<ne.left,lt=Qe.right>ne.right;return ye||he||Le||lt})}var de=function(){function Qe(Fe,ne,ye,he){(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._viewportRuler=ne,this._ngZone=ye,this._config=he,this._scrollSubscription=null}return(0,j.Z)(Qe,[{key:"attach",value:function(ne){this._overlayRef,this._overlayRef=ne}},{key:"enable",value:function(){var ne=this;if(!this._scrollSubscription){var ye=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(ye).subscribe(function(){if(ne._overlayRef.updatePosition(),ne._config&&ne._config.autoClose){var he=ne._overlayRef.overlayElement.getBoundingClientRect(),Le=ne._viewportRuler.getViewportSize(),lt=Le.width,ut=Le.height;fe(he,[{width:lt,height:ut,bottom:ut,right:lt,top:0,left:0}])&&(ne.disable(),ne._ngZone.run(function(){return ne._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Qe}(),ge=(0,j.Z)(function Qe(Fe,ne,ye,he){var Le=this;(0,E.Z)(this,Qe),this._scrollDispatcher=Fe,this._viewportRuler=ne,this._ngZone=ye,this.noop=function(){return new pe},this.close=function(lt){return new be(Le._scrollDispatcher,Le._ngZone,Le._viewportRuler,lt)},this.block=function(){return new Q(Le._viewportRuler,Le._document)},this.reposition=function(lt){return new de(Le._scrollDispatcher,Le._viewportRuler,Le._ngZone,lt)},this._document=he});ge.\u0275fac=function(Fe){return new(Fe||ge)(x.LFG(R.mF),x.LFG(R.rL),x.LFG(x.R0b),x.LFG(v.K0))},ge.\u0275prov=x.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"});var je=(0,j.Z)(function Qe(Fe){if((0,E.Z)(this,Qe),this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Fe)for(var ye=0,he=Object.keys(Fe);ye<he.length;ye++){var Le=he[ye];void 0!==Fe[Le]&&(this[Le]=Fe[Le])}}),Tt=(0,j.Z)(function Qe(Fe,ne){(0,E.Z)(this,Qe),this.connectionPair=Fe,this.scrollableViewProperties=ne});var Ze=function(){function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,jt){var sn=this,yn=arguments.length>9&&void 0!==arguments[9]&&arguments[9];(0,E.Z)(this,Qe),this._portalOutlet=Fe,this._host=ne,this._pane=ye,this._config=he,this._ngZone=Le,this._keyboardDispatcher=lt,this._document=ut,this._location=Nt,this._outsideClickDispatcher=jt,this._animationsDisabled=yn,this._backdropElement=null,this._backdropClick=new S.xQ,this._attachments=new S.xQ,this._detachments=new S.xQ,this._locationChanges=k.w.EMPTY,this._backdropClickHandler=function(ln){return sn._backdropClick.next(ln)},this._backdropTransitionendHandler=function(ln){sn._disposeBackdrop(ln.target)},this._keydownEvents=new S.xQ,this._outsidePointerEvents=new S.xQ,he.scrollStrategy&&(this._scrollStrategy=he.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=he.positionStrategy}return(0,j.Z)(Qe,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(ne){var ye=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var he=this._portalOutlet.attach(ne);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(function(){ye.hasAttached()&&ye.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return ye.dispose()})),this._outsideClickDispatcher.add(this),"function"==typeof(null==he?void 0:he.onDestroy)&&he.onDestroy(function(){ye.hasAttached()&&ye._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return ye.detach()})})}),he}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var ne=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ne}}},{key:"dispose",value:function(){var ne,ye=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(ne=this._host)||void 0===ne||ne.remove(),this._previousHostParent=this._pane=this._host=null,ye&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(ne){ne!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ne,this.hasAttached()&&(ne.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(ne){this._config=Object.assign(Object.assign({},this._config),ne),this._updateElementSize()}},{key:"setDirection",value:function(ne){this._config=Object.assign(Object.assign({},this._config),{direction:ne}),this._updateElementDirection()}},{key:"addPanelClass",value:function(ne){this._pane&&this._toggleClasses(this._pane,ne,!0)}},{key:"removePanelClass",value:function(ne){this._pane&&this._toggleClasses(this._pane,ne,!1)}},{key:"getDirection",value:function(){var ne=this._config.direction;return ne?"string"==typeof ne?ne:ne.value:"ltr"}},{key:"updateScrollStrategy",value:function(ne){ne!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ne,this.hasAttached()&&(ne.attach(this),ne.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var ne=this._pane.style;ne.width=(0,w.HM)(this._config.width),ne.height=(0,w.HM)(this._config.height),ne.minWidth=(0,w.HM)(this._config.minWidth),ne.minHeight=(0,w.HM)(this._config.minHeight),ne.maxWidth=(0,w.HM)(this._config.maxWidth),ne.maxHeight=(0,w.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(ne){this._pane.style.pointerEvents=ne?"":"none"}},{key:"_attachBackdrop",value:function(){var ne=this,ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(ye):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){ne._backdropElement&&ne._backdropElement.classList.add(ye)})})}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var ne=this,ye=this._backdropElement;if(ye){if(this._animationsDisabled)return void this._disposeBackdrop(ye);ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ye.addEventListener("transitionend",ne._backdropTransitionendHandler)}),ye.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){ne._disposeBackdrop(ye)},500)})}}},{key:"_toggleClasses",value:function(ne,ye,he){var lt,ut,Le=(0,w.Eq)(ye||[]).filter(function(Nt){return!!Nt});Le.length&&(he?(lt=ne.classList).add.apply(lt,(0,T.Z)(Le)):(ut=ne.classList).remove.apply(ut,(0,T.Z)(Le)))}},{key:"_detachContentWhenStable",value:function(){var ne=this;this._ngZone.runOutsideAngular(function(){var ye=ne._ngZone.onStable.pipe((0,F.R)((0,M.T)(ne._attachments,ne._detachments))).subscribe(function(){(!ne._pane||!ne._host||0===ne._pane.children.length)&&(ne._pane&&ne._config.panelClass&&ne._toggleClasses(ne._pane,ne._config.panelClass,!1),ne._host&&ne._host.parentElement&&(ne._previousHostParent=ne._host.parentElement,ne._host.remove()),ye.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var ne=this._scrollStrategy;ne&&(ne.disable(),ne.detach&&ne.detach())}},{key:"_disposeBackdrop",value:function(ne){ne&&(ne.removeEventListener("click",this._backdropClickHandler),ne.removeEventListener("transitionend",this._backdropTransitionendHandler),ne.remove(),this._backdropElement===ne&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Qe}(),$t=function(){function Qe(Fe,ne){(0,E.Z)(this,Qe),this._platform=ne,this._document=Fe}return(0,j.Z)(Qe,[{key:"ngOnDestroy",value:function(){var ne;null===(ne=this._containerElement)||void 0===ne||ne.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var ne="cdk-overlay-container";if(this._platform.isBrowser||(0,Z.Oy)())for(var ye=this._document.querySelectorAll(".".concat(ne,'[platform="server"], ')+".".concat(ne,'[platform="test"]')),he=0;he<ye.length;he++)ye[he].remove();var Le=this._document.createElement("div");Le.classList.add(ne),(0,Z.Oy)()?Le.setAttribute("platform","test"):this._platform.isBrowser||Le.setAttribute("platform","server"),this._document.body.appendChild(Le),this._containerElement=Le}}]),Qe}();$t.\u0275fac=function(Fe){return new(Fe||$t)(x.LFG(v.K0),x.LFG(Z.t4))},$t.\u0275prov=x.Yz7({token:$t,factory:$t.\u0275fac,providedIn:"root"});var Ft="cdk-overlay-connected-position-bounding-box",pn=/([A-Za-z%]+)$/,rt=function(){function Qe(Fe,ne,ye,he,Le){(0,E.Z)(this,Qe),this._viewportRuler=ne,this._document=ye,this._platform=he,this._overlayContainer=Le,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new S.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Fe)}return(0,j.Z)(Qe,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(ne){var ye=this;this._overlayRef&&this._overlayRef,this._validatePositions(),ne.hostElement.classList.add(Ft),this._overlayRef=ne,this._boundingBox=ne.hostElement,this._pane=ne.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ye._isInitialRender=!0,ye.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ut,jt,ne=this._originRect,ye=this._overlayRect,he=this._viewportRect,Le=this._containerRect,lt=[],Nt=(0,I.Z)(this._preferredPositions);try{for(Nt.s();!(jt=Nt.n()).done;){var sn=jt.value,yn=this._getOriginPoint(ne,Le,sn),ln=this._getOverlayPoint(yn,ye,sn),Sn=this._getOverlayFit(ln,ye,he,sn);if(Sn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(sn,yn);this._canFitWithFlexibleDimensions(Sn,ln,he)?lt.push({position:sn,origin:yn,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(yn,sn)}):(!ut||ut.overlayFit.visibleArea<Sn.visibleArea)&&(ut={overlayFit:Sn,overlayPoint:ln,originPoint:yn,position:sn,overlayRect:ye})}}catch(We){Nt.e(We)}finally{Nt.f()}if(lt.length){var xt,hn=null,mn=-1,At=(0,I.Z)(lt);try{for(At.s();!(xt=At.n()).done;){var tt=xt.value,Et=tt.boundingBoxRect.width*tt.boundingBoxRect.height*(tt.position.weight||1);Et>mn&&(mn=Et,hn=tt)}}catch(We){At.e(We)}finally{At.f()}return this._isPushed=!1,void this._applyPosition(hn.position,hn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ut.position,ut.originPoint);this._applyPosition(ut.position,ut.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ot(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ft),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var ne=this._lastPosition;if(ne){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ye=this._getOriginPoint(this._originRect,this._containerRect,ne);this._applyPosition(ne,ye)}else this.apply()}}},{key:"withScrollableContainers",value:function(ne){return this._scrollables=ne,this}},{key:"withPositions",value:function(ne){return this._preferredPositions=ne,-1===ne.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(ne){return this._viewportMargin=ne,this}},{key:"withFlexibleDimensions",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=ne,this}},{key:"withGrowAfterOpen",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=ne,this}},{key:"withPush",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=ne,this}},{key:"withLockedPosition",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=ne,this}},{key:"setOrigin",value:function(ne){return this._origin=ne,this}},{key:"withDefaultOffsetX",value:function(ne){return this._offsetX=ne,this}},{key:"withDefaultOffsetY",value:function(ne){return this._offsetY=ne,this}},{key:"withTransformOriginOn",value:function(ne){return this._transformOriginSelector=ne,this}},{key:"_getOriginPoint",value:function(ne,ye,he){var Le,Nt;if("center"==he.originX)Le=ne.left+ne.width/2;else{var lt=this._isRtl()?ne.right:ne.left,ut=this._isRtl()?ne.left:ne.right;Le="start"==he.originX?lt:ut}return ye.left<0&&(Le-=ye.left),Nt="center"==he.originY?ne.top+ne.height/2:"top"==he.originY?ne.top:ne.bottom,ye.top<0&&(Nt-=ye.top),{x:Le,y:Nt}}},{key:"_getOverlayPoint",value:function(ne,ye,he){var Le,lt;return Le="center"==he.overlayX?-ye.width/2:"start"===he.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,lt="center"==he.overlayY?-ye.height/2:"top"==he.overlayY?0:-ye.height,{x:ne.x+Le,y:ne.y+lt}}},{key:"_getOverlayFit",value:function(ne,ye,he,Le){var lt=Ct(ye),ut=ne.x,Nt=ne.y,jt=this._getOffset(Le,"x"),sn=this._getOffset(Le,"y");jt&&(ut+=jt),sn&&(Nt+=sn);var yn=0-ut,ln=ut+lt.width-he.width,Sn=0-Nt,hn=Nt+lt.height-he.height,mn=this._subtractOverflows(lt.width,yn,ln),At=this._subtractOverflows(lt.height,Sn,hn),xt=mn*At;return{visibleArea:xt,isCompletelyWithinViewport:lt.width*lt.height===xt,fitsInViewportVertically:At===lt.height,fitsInViewportHorizontally:mn==lt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(ne,ye,he){if(this._hasFlexibleDimensions){var Le=he.bottom-ye.y,lt=he.right-ye.x,ut=_t(this._overlayRef.getConfig().minHeight),Nt=_t(this._overlayRef.getConfig().minWidth),jt=ne.fitsInViewportVertically||null!=ut&&ut<=Le,sn=ne.fitsInViewportHorizontally||null!=Nt&&Nt<=lt;return jt&&sn}return!1}},{key:"_pushOverlayOnScreen",value:function(ne,ye,he){if(this._previousPushAmount&&this._positionLocked)return{x:ne.x+this._previousPushAmount.x,y:ne.y+this._previousPushAmount.y};var Le=Ct(ye),lt=this._viewportRect,ut=Math.max(ne.x+Le.width-lt.width,0),Nt=Math.max(ne.y+Le.height-lt.height,0),jt=Math.max(lt.top-he.top-ne.y,0),sn=Math.max(lt.left-he.left-ne.x,0),yn=0,ln=0;return yn=Le.width<=lt.width?sn||-ut:ne.x<this._viewportMargin?lt.left-he.left-ne.x:0,ln=Le.height<=lt.height?jt||-Nt:ne.y<this._viewportMargin?lt.top-he.top-ne.y:0,this._previousPushAmount={x:yn,y:ln},{x:ne.x+yn,y:ne.y+ln}}},{key:"_applyPosition",value:function(ne,ye){if(this._setTransformOrigin(ne),this._setOverlayElementStyles(ye,ne),this._setBoundingBoxStyles(ye,ne),ne.panelClass&&this._addPanelClasses(ne.panelClass),this._lastPosition=ne,this._positionChanges.observers.length){var he=this._getScrollVisibility(),Le=new Tt(ne,he);this._positionChanges.next(Le)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(ne){if(this._transformOriginSelector){var he,ye=this._boundingBox.querySelectorAll(this._transformOriginSelector),Le=ne.overlayY;he="center"===ne.overlayX?"center":this._isRtl()?"start"===ne.overlayX?"right":"left":"start"===ne.overlayX?"left":"right";for(var lt=0;lt<ye.length;lt++)ye[lt].style.transformOrigin="".concat(he," ").concat(Le)}}},{key:"_calculateBoundingBoxRect",value:function(ne,ye){var lt,ut,Nt,he=this._viewportRect,Le=this._isRtl();if("top"===ye.overlayY)ut=ne.y,lt=he.height-ut+this._viewportMargin;else if("bottom"===ye.overlayY)Nt=he.height-ne.y+2*this._viewportMargin,lt=he.height-Nt+this._viewportMargin;else{var jt=Math.min(he.bottom-ne.y+he.top,ne.y),sn=this._lastBoundingBoxSize.height;lt=2*jt,ut=ne.y-jt,lt>sn&&!this._isInitialRender&&!this._growAfterOpen&&(ut=ne.y-sn/2)}var Sn,hn,mn,yn="start"===ye.overlayX&&!Le||"end"===ye.overlayX&&Le;if("end"===ye.overlayX&&!Le||"start"===ye.overlayX&&Le)mn=he.width-ne.x+this._viewportMargin,Sn=ne.x-this._viewportMargin;else if(yn)hn=ne.x,Sn=he.right-ne.x;else{var At=Math.min(he.right-ne.x+he.left,ne.x),xt=this._lastBoundingBoxSize.width;Sn=2*At,hn=ne.x-At,Sn>xt&&!this._isInitialRender&&!this._growAfterOpen&&(hn=ne.x-xt/2)}return{top:ut,left:hn,bottom:Nt,right:mn,width:Sn,height:lt}}},{key:"_setBoundingBoxStyles",value:function(ne,ye){var he=this._calculateBoundingBoxRect(ne,ye);!this._isInitialRender&&!this._growAfterOpen&&(he.height=Math.min(he.height,this._lastBoundingBoxSize.height),he.width=Math.min(he.width,this._lastBoundingBoxSize.width));var Le={};if(this._hasExactPosition())Le.top=Le.left="0",Le.bottom=Le.right=Le.maxHeight=Le.maxWidth="",Le.width=Le.height="100%";else{var lt=this._overlayRef.getConfig().maxHeight,ut=this._overlayRef.getConfig().maxWidth;Le.height=(0,w.HM)(he.height),Le.top=(0,w.HM)(he.top),Le.bottom=(0,w.HM)(he.bottom),Le.width=(0,w.HM)(he.width),Le.left=(0,w.HM)(he.left),Le.right=(0,w.HM)(he.right),"center"===ye.overlayX?Le.alignItems="center":Le.alignItems="end"===ye.overlayX?"flex-end":"flex-start","center"===ye.overlayY?Le.justifyContent="center":Le.justifyContent="bottom"===ye.overlayY?"flex-end":"flex-start",lt&&(Le.maxHeight=(0,w.HM)(lt)),ut&&(Le.maxWidth=(0,w.HM)(ut))}this._lastBoundingBoxSize=he,Ot(this._boundingBox.style,Le)}},{key:"_resetBoundingBoxStyles",value:function(){Ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(ne,ye){var he={},Le=this._hasExactPosition(),lt=this._hasFlexibleDimensions,ut=this._overlayRef.getConfig();if(Le){var Nt=this._viewportRuler.getViewportScrollPosition();Ot(he,this._getExactOverlayY(ye,ne,Nt)),Ot(he,this._getExactOverlayX(ye,ne,Nt))}else he.position="static";var jt="",sn=this._getOffset(ye,"x"),yn=this._getOffset(ye,"y");sn&&(jt+="translateX(".concat(sn,"px) ")),yn&&(jt+="translateY(".concat(yn,"px)")),he.transform=jt.trim(),ut.maxHeight&&(Le?he.maxHeight=(0,w.HM)(ut.maxHeight):lt&&(he.maxHeight="")),ut.maxWidth&&(Le?he.maxWidth=(0,w.HM)(ut.maxWidth):lt&&(he.maxWidth="")),Ot(this._pane.style,he)}},{key:"_getExactOverlayY",value:function(ne,ye,he){var Le={top:"",bottom:""},lt=this._getOverlayPoint(ye,this._overlayRect,ne);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,he)),"bottom"===ne.overlayY){var ut=this._document.documentElement.clientHeight;Le.bottom="".concat(ut-(lt.y+this._overlayRect.height),"px")}else Le.top=(0,w.HM)(lt.y);return Le}},{key:"_getExactOverlayX",value:function(ne,ye,he){var Le={left:"",right:""},lt=this._getOverlayPoint(ye,this._overlayRect,ne);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,he)),"right"===(this._isRtl()?"end"===ne.overlayX?"left":"right":"end"===ne.overlayX?"right":"left")){var Nt=this._document.documentElement.clientWidth;Le.right="".concat(Nt-(lt.x+this._overlayRect.width),"px")}else Le.left=(0,w.HM)(lt.x);return Le}},{key:"_getScrollVisibility",value:function(){var ne=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),he=this._scrollables.map(function(Le){return Le.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:ue(ne,he),isOriginOutsideView:fe(ne,he),isOverlayClipped:ue(ye,he),isOverlayOutsideView:fe(ye,he)}}},{key:"_subtractOverflows",value:function(ne){for(var ye=arguments.length,he=new Array(ye>1?ye-1:0),Le=1;Le<ye;Le++)he[Le-1]=arguments[Le];return he.reduce(function(lt,ut){return lt-Math.max(ut,0)},ne)}},{key:"_getNarrowedViewportRect",value:function(){var ne=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,he=this._viewportRuler.getViewportScrollPosition();return{top:he.top+this._viewportMargin,left:he.left+this._viewportMargin,right:he.left+ne-this._viewportMargin,bottom:he.top+ye-this._viewportMargin,width:ne-2*this._viewportMargin,height:ye-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(ne,ye){return"x"===ye?null==ne.offsetX?this._offsetX:ne.offsetX:null==ne.offsetY?this._offsetY:ne.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(ne){var ye=this;this._pane&&(0,w.Eq)(ne).forEach(function(he){""!==he&&-1===ye._appliedPanelClasses.indexOf(he)&&(ye._appliedPanelClasses.push(he),ye._pane.classList.add(he))})}},{key:"_clearPanelClasses",value:function(){var ne=this;this._pane&&(this._appliedPanelClasses.forEach(function(ye){ne._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var ne=this._origin;if(ne instanceof x.SBq)return ne.nativeElement.getBoundingClientRect();if(ne instanceof Element)return ne.getBoundingClientRect();var ye=ne.width||0,he=ne.height||0;return{top:ne.y,bottom:ne.y+he,left:ne.x,right:ne.x+ye,height:he,width:ye}}}]),Qe}();function Ot(Qe,Fe){for(var ne in Fe)Fe.hasOwnProperty(ne)&&(Qe[ne]=Fe[ne]);return Qe}function _t(Qe){if("number"!=typeof Qe&&null!=Qe){var Fe=Qe.split(pn),ne=(0,P.Z)(Fe,2),ye=ne[0],he=ne[1];return he&&"px"!==he?null:parseFloat(ye)}return Qe||null}function Ct(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}var ht="cdk-global-overlay-wrapper",Ut=function(){function Qe(){(0,E.Z)(this,Qe),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}return(0,j.Z)(Qe,[{key:"attach",value:function(ne){var ye=ne.getConfig();this._overlayRef=ne,this._width&&!ye.width&&ne.updateSize({width:this._width}),this._height&&!ye.height&&ne.updateSize({height:this._height}),ne.hostElement.classList.add(ht),this._isDisposed=!1}},{key:"top",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=ne,this._alignItems="flex-start",this}},{key:"left",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="left",this}},{key:"bottom",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=ne,this._alignItems="flex-end",this}},{key:"right",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="right",this}},{key:"start",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="start",this}},{key:"end",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=ne,this._xPosition="end",this}},{key:"width",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:ne}):this._width=ne,this}},{key:"height",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:ne}):this._height=ne,this}},{key:"centerHorizontally",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(ne),this._xPosition="center",this}},{key:"centerVertically",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(ne),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,he=this._overlayRef.getConfig(),Le=he.width,lt=he.height,ut=he.maxWidth,Nt=he.maxHeight,jt=!("100%"!==Le&&"100vw"!==Le||ut&&"100%"!==ut&&"100vw"!==ut),sn=!("100%"!==lt&&"100vh"!==lt||Nt&&"100%"!==Nt&&"100vh"!==Nt),yn=this._xPosition,ln=this._xOffset,Sn="rtl"===this._overlayRef.getConfig().direction,hn="",mn="",At="";jt?At="flex-start":"center"===yn?(At="center",Sn?mn=ln:hn=ln):Sn?"left"===yn||"end"===yn?(At="flex-end",hn=ln):("right"===yn||"start"===yn)&&(At="flex-start",mn=ln):"left"===yn||"start"===yn?(At="flex-start",hn=ln):("right"===yn||"end"===yn)&&(At="flex-end",mn=ln),ne.position=this._cssPosition,ne.marginLeft=jt?"0":hn,ne.marginTop=sn?"0":this._topOffset,ne.marginBottom=this._bottomOffset,ne.marginRight=jt?"0":mn,ye.justifyContent=At,ye.alignItems=sn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,he=ye.style;ye.classList.remove(ht),he.justifyContent=he.alignItems=ne.marginTop=ne.marginBottom=ne.marginLeft=ne.marginRight=ne.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Qe}(),Wt=function(){function Qe(Fe,ne,ye,he){(0,E.Z)(this,Qe),this._viewportRuler=Fe,this._document=ne,this._platform=ye,this._overlayContainer=he}return(0,j.Z)(Qe,[{key:"global",value:function(){return new Ut}},{key:"flexibleConnectedTo",value:function(ne){return new rt(ne,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Qe}();Wt.\u0275fac=function(Fe){return new(Fe||Wt)(x.LFG(R.rL),x.LFG(v.K0),x.LFG(Z.t4),x.LFG($t))},Wt.\u0275prov=x.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"});var U=function(){function Qe(Fe){(0,E.Z)(this,Qe),this._attachedOverlays=[],this._document=Fe}return(0,j.Z)(Qe,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(ne){this.remove(ne),this._attachedOverlays.push(ne)}},{key:"remove",value:function(ne){var ye=this._attachedOverlays.indexOf(ne);ye>-1&&this._attachedOverlays.splice(ye,1),0===this._attachedOverlays.length&&this.detach()}}]),Qe}();U.\u0275fac=function(Fe){return new(Fe||U)(x.LFG(v.K0))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"});var B=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,H.Z)(ne);function ne(ye,he){var Le;return(0,E.Z)(this,ne),(Le=Fe.call(this,ye))._ngZone=he,Le._keydownListener=function(lt){for(var ut=Le._attachedOverlays,Nt=function(){if(ut[jt]._keydownEvents.observers.length>0){var ln=ut[jt]._keydownEvents;return Le._ngZone?Le._ngZone.run(function(){return ln.next(lt)}):ln.next(lt),"break"}},jt=ut.length-1;jt>-1;jt--){if("break"===Nt())break}},Le}return(0,j.Z)(ne,[{key:"add",value:function(he){var Le=this;(0,G.Z)((0,W.Z)(ne.prototype),"add",this).call(this,he),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return Le._document.body.addEventListener("keydown",Le._keydownListener)}):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)}}]),ne}(U);B.\u0275fac=function(Fe){return new(Fe||B)(x.LFG(v.K0),x.LFG(x.R0b,8))},B.\u0275prov=x.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"});var qe=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,H.Z)(ne);function ne(ye,he,Le){var lt;return(0,E.Z)(this,ne),(lt=Fe.call(this,ye))._platform=he,lt._ngZone=Le,lt._cursorStyleIsSet=!1,lt._pointerDownListener=function(ut){lt._pointerDownEventTarget=(0,Z.sA)(ut)},lt._clickListener=function(ut){var Nt=(0,Z.sA)(ut),jt="click"===ut.type&&lt._pointerDownEventTarget?lt._pointerDownEventTarget:Nt;lt._pointerDownEventTarget=null;for(var sn=lt._attachedOverlays.slice(),yn=function(){var mn=sn[ln];if(mn._outsidePointerEvents.observers.length<1||!mn.hasAttached())return"continue";if(mn.overlayElement.contains(Nt)||mn.overlayElement.contains(jt))return"break";var At=mn._outsidePointerEvents;lt._ngZone?lt._ngZone.run(function(){return At.next(ut)}):At.next(ut)},ln=sn.length-1;ln>-1;ln--){var Sn=yn();if("continue"!==Sn&&"break"===Sn)break}},lt}return(0,j.Z)(ne,[{key:"add",value:function(he){var Le=this;if((0,G.Z)((0,W.Z)(ne.prototype),"add",this).call(this,he),!this._isAttached){var lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return Le._addEventListeners(lt)}):this._addEventListeners(lt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=lt.style.cursor,lt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var he=this._document.body;he.removeEventListener("pointerdown",this._pointerDownListener,!0),he.removeEventListener("click",this._clickListener,!0),he.removeEventListener("auxclick",this._clickListener,!0),he.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(he.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(he){he.addEventListener("pointerdown",this._pointerDownListener,!0),he.addEventListener("click",this._clickListener,!0),he.addEventListener("auxclick",this._clickListener,!0),he.addEventListener("contextmenu",this._clickListener,!0)}}]),ne}(U);qe.\u0275fac=function(Fe){return new(Fe||qe)(x.LFG(v.K0),x.LFG(Z.t4),x.LFG(x.R0b,8))},qe.\u0275prov=x.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"});var Be=0,le=function(){function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,jt,sn,yn,ln){(0,E.Z)(this,Qe),this.scrollStrategies=Fe,this._overlayContainer=ne,this._componentFactoryResolver=ye,this._positionBuilder=he,this._keyboardDispatcher=Le,this._injector=lt,this._ngZone=ut,this._document=Nt,this._directionality=jt,this._location=sn,this._outsideClickDispatcher=yn,this._animationsModuleType=ln}return(0,j.Z)(Qe,[{key:"create",value:function(ne){var ye=this._createHostElement(),he=this._createPaneElement(ye),Le=this._createPortalOutlet(he),lt=new je(ne);return lt.direction=lt.direction||this._directionality.value,new Ze(Le,ye,he,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(ne){var ye=this._document.createElement("div");return ye.id="cdk-overlay-".concat(Be++),ye.classList.add("cdk-overlay-pane"),ne.appendChild(ye),ye}},{key:"_createHostElement",value:function(){var ne=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ne),ne}},{key:"_createPortalOutlet",value:function(ne){return this._appRef||(this._appRef=this._injector.get(x.z2F)),new b.u0(ne,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Qe}();le.\u0275fac=function(Fe){return new(Fe||le)(x.LFG(ge),x.LFG($t),x.LFG(x._Vd),x.LFG(Wt),x.LFG(B),x.LFG(x.zs3),x.LFG(x.R0b),x.LFG(v.K0),x.LFG(D.Is),x.LFG(v.Ye),x.LFG(qe),x.LFG(x.QbO,8))},le.\u0275prov=x.Yz7({token:le,factory:le.\u0275fac});var t=[{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"}],Lt=new x.OlP("cdk-connected-overlay-scroll-strategy"),zt=(0,j.Z)(function Qe(Fe){(0,E.Z)(this,Qe),this.elementRef=Fe});zt.\u0275fac=function(Fe){return new(Fe||zt)(x.Y36(x.SBq))},zt.\u0275dir=x.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var an=function(){function Qe(Fe,ne,ye,he,Le){(0,E.Z)(this,Qe),this._overlay=Fe,this._dir=Le,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new x.vpe,this.positionChange=new x.vpe,this.attach=new x.vpe,this.detach=new x.vpe,this.overlayKeydown=new x.vpe,this.overlayOutsideClick=new x.vpe,this._templatePortal=new b.UE(ne,ye),this._scrollStrategyFactory=he,this.scrollStrategy=this._scrollStrategyFactory()}return(0,j.Z)(Qe,[{key:"offsetX",get:function(){return this._offsetX},set:function(ne){this._offsetX=ne,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(ne){this._offsetY=ne,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(ne){this._hasBackdrop=(0,w.Ig)(ne)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ne){this._lockPosition=(0,w.Ig)(ne)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ne){this._flexibleDimensions=(0,w.Ig)(ne)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ne){this._growAfterOpen=(0,w.Ig)(ne)}},{key:"push",get:function(){return this._push},set:function(ne){this._push=(0,w.Ig)(ne)}},{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(ne){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ne.origin&&this.open&&this._position.apply()),ne.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var ne=this;(!this.positions||!this.positions.length)&&(this.positions=t);var ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(function(){return ne.attach.emit()}),this._detachSubscription=ye.detachments().subscribe(function(){return ne.detach.emit()}),ye.keydownEvents().subscribe(function(he){ne.overlayKeydown.next(he),he.keyCode===$.hY&&!ne.disableClose&&!(0,$.Vb)(he)&&(he.preventDefault(),ne._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(he){ne.overlayOutsideClick.next(he)})}},{key:"_buildConfig",value:function(){var ne=this._position=this.positionStrategy||this._createPositionStrategy(),ye=new je({direction:this._dir,positionStrategy:ne,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ye.width=this.width),(this.height||0===this.height)&&(ye.height=this.height),(this.minWidth||0===this.minWidth)&&(ye.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ye.minHeight=this.minHeight),this.backdropClass&&(ye.backdropClass=this.backdropClass),this.panelClass&&(ye.panelClass=this.panelClass),ye}},{key:"_updatePositionStrategy",value:function(ne){var ye=this,he=this.positions.map(function(Le){return{originX:Le.originX,originY:Le.originY,overlayX:Le.overlayX,overlayY:Le.overlayY,offsetX:Le.offsetX||ye.offsetX,offsetY:Le.offsetY||ye.offsetY,panelClass:Le.panelClass||void 0}});return ne.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(he).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var ne=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ne),ne}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof zt?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var ne=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(ye){ne.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,X.o)(function(){return ne.positionChange.observers.length>0})).subscribe(function(ye){ne.positionChange.emit(ye),0===ne.positionChange.observers.length&&ne._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Qe}();an.\u0275fac=function(Fe){return new(Fe||an)(x.Y36(le),x.Y36(x.Rgc),x.Y36(x.s_b),x.Y36(Lt),x.Y36(D.Is,8))},an.\u0275dir=x.lG2({type:an,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[x.TTD]});var vn={provide:Lt,deps:[le],useFactory:function Qt(Qe){return function(){return Qe.scrollStrategies.reposition()}}},Vt=(0,j.Z)(function Qe(){(0,E.Z)(this,Qe)});Vt.\u0275fac=function(Fe){return new(Fe||Vt)},Vt.\u0275mod=x.oAB({type:Vt}),Vt.\u0275inj=x.cJS({providers:[le,vn],imports:[D.vT,b.eL,R.Cl,R.Cl]});var Jt=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,H.Z)(ne);function ne(ye,he){return(0,E.Z)(this,ne),Fe.call(this,ye,he)}return(0,j.Z)(ne,[{key:"ngOnDestroy",value:function(){(0,G.Z)((0,W.Z)(ne.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var he=this;(0,G.Z)((0,W.Z)(ne.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return he._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(he){var Le=this._getEventName();Le&&(this._fullScreenListener&&this._document.removeEventListener(Le,this._fullScreenListener),this._document.addEventListener(Le,he),this._fullScreenListener=he)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var he=this._document;he.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":he.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":he.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":he.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var he=this._document;return he.fullscreenElement||he.webkitFullscreenElement||he.mozFullScreenElement||he.msFullscreenElement||null}}]),ne}($t);Jt.\u0275fac=function(Fe){return new(Fe||Jt)(x.LFG(v.K0),x.LFG(Z.t4))},Jt.\u0275prov=x.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})},925:function(Ae,K,m){"use strict";m.d(K,{Mq:function(){return b},Oy:function(){return $},_i:function(){return S},ht:function(){return F},i$:function(){return w},kV:function(){return N},qK:function(){return R},sA:function(){return X},t4:function(){return I}});var P,G=m(3144),W=m(5671),A=m(5e3),H=m(9808);try{P="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V){P=!1}var I=(0,G.Z)(function V(Q){(0,W.Z)(this,V),this._platformId=Q,this.isBrowser=this._platformId?(0,H.NF)(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&&!P)&&"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});I.\u0275fac=function(Q){return new(Q||I)(A.LFG(A.Lbi))},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"});var T=(0,G.Z)(function V(){(0,W.Z)(this,V)});T.\u0275fac=function(Q){return new(Q||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({});var E,v,Z,D,k,j=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(j);var V=document.createElement("input");return E=new Set(j.filter(function(Q){return V.setAttribute("type",Q),V.type===Q}))}function w(V){return function x(){if(null==v&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return v=!0}}))}finally{v=v||!1}return v}()?V:!!V.capture}function b(){if(null==D){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return D=!1;if("scrollBehavior"in document.documentElement.style)D=!0;else{var V=Element.prototype.scrollTo;D=!!V&&!/\{\s*\[native code\]\s*\}/.test(V.toString())}}return D}function S(){if("object"!=typeof document||!document)return 0;if(null==Z){var V=document.createElement("div"),Q=V.style;V.dir="rtl",Q.width="1px",Q.overflow="auto",Q.visibility="hidden",Q.pointerEvents="none",Q.position="absolute";var te=document.createElement("div"),be=te.style;be.width="2px",be.height="1px",V.appendChild(te),document.body.appendChild(V),Z=0,0===V.scrollLeft&&(V.scrollLeft=1,Z=0===V.scrollLeft?1:2),V.remove()}return Z}function N(V){if(function M(){if(null==k){var V="undefined"!=typeof document?document.head:null;k=!(!V||!V.createShadowRoot&&!V.attachShadow)}return k}()){var Q=V.getRootNode?V.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function F(){for(var V="undefined"!=typeof document&&document?document.activeElement:null;V&&V.shadowRoot;){var Q=V.shadowRoot.activeElement;if(Q===V)break;V=Q}return V}function X(V){return V.composedPath?V.composedPath()[0]:V.target}function $(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(Ae,K,m){"use strict";m.d(K,{C5:function(){return S},Pl:function(){return te},UE:function(){return k},eL:function(){return pe},en:function(){return N},ig:function(){return V},u0:function(){return X}});var G=m(7326),W=m(3237),A=m(1120),H=m(136),P=m(9388),I=m(5671),T=m(3144),E=m(5e3),j=m(9808);var b=function(){function ue(){(0,I.Z)(this,ue)}return(0,T.Z)(ue,[{key:"attach",value:function(ge){return this._attachedHost=ge,ge.attach(this)}},{key:"detach",value:function(){var ge=this._attachedHost;null!=ge&&(this._attachedHost=null,ge.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(ge){this._attachedHost=ge}}]),ue}(),S=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je,ot,St,Tt){var Dt;return(0,I.Z)(this,ge),(Dt=de.call(this)).component=je,Dt.viewContainerRef=ot,Dt.injector=St,Dt.componentFactoryResolver=Tt,Dt}return(0,T.Z)(ge)}(b),k=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je,ot,St,Tt){var Dt;return(0,I.Z)(this,ge),(Dt=de.call(this)).templateRef=je,Dt.viewContainerRef=ot,Dt.context=St,Dt.injector=Tt,Dt}return(0,T.Z)(ge,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(ot){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=St,(0,W.Z)((0,A.Z)(ge.prototype),"attach",this).call(this,ot)}},{key:"detach",value:function(){return this.context=void 0,(0,W.Z)((0,A.Z)(ge.prototype),"detach",this).call(this)}}]),ge}(b),M=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je){var ot;return(0,I.Z)(this,ge),(ot=de.call(this)).element=je instanceof E.SBq?je.nativeElement:je,ot}return(0,T.Z)(ge)}(b),N=function(){function ue(){(0,I.Z)(this,ue),this._isDisposed=!1,this.attachDomPortal=null}return(0,T.Z)(ue,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(ge){return ge instanceof S?(this._attachedPortal=ge,this.attachComponentPortal(ge)):ge instanceof k?(this._attachedPortal=ge,this.attachTemplatePortal(ge)):this.attachDomPortal&&ge instanceof M?(this._attachedPortal=ge,this.attachDomPortal(ge)):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(ge){this._disposeFn=ge}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),ue}(),X=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je,ot,St,Tt,Dt){var Rt,Ze;return(0,I.Z)(this,ge),(Ze=de.call(this)).outletElement=je,Ze._componentFactoryResolver=ot,Ze._appRef=St,Ze._defaultInjector=Tt,Ze.attachDomPortal=function($t){Ze._document;var Ft=$t.element;Ft.parentNode;var pn=Ze._document.createComment("dom-portal");Ft.parentNode.insertBefore(pn,Ft),Ze.outletElement.appendChild(Ft),Ze._attachedPortal=$t,(0,W.Z)((Rt=(0,G.Z)(Ze),(0,A.Z)(ge.prototype)),"setDisposeFn",Rt).call(Rt,function(){pn.parentNode&&pn.parentNode.replaceChild(Ft,pn)})},Ze._document=Dt,Ze}return(0,T.Z)(ge,[{key:"attachComponentPortal",value:function(ot){var Rt,St=this,Dt=(ot.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ot.component);return ot.viewContainerRef?(Rt=ot.viewContainerRef.createComponent(Dt,ot.viewContainerRef.length,ot.injector||ot.viewContainerRef.injector),this.setDisposeFn(function(){return Rt.destroy()})):(Rt=Dt.create(ot.injector||this._defaultInjector||E.zs3.NULL),this._appRef.attachView(Rt.hostView),this.setDisposeFn(function(){St._appRef.viewCount>0&&St._appRef.detachView(Rt.hostView),Rt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Rt)),this._attachedPortal=ot,Rt}},{key:"attachTemplatePortal",value:function(ot){var St=this,Tt=ot.viewContainerRef,Dt=Tt.createEmbeddedView(ot.templateRef,ot.context,{injector:ot.injector});return Dt.rootNodes.forEach(function(Rt){return St.outletElement.appendChild(Rt)}),Dt.detectChanges(),this.setDisposeFn(function(){var Rt=Tt.indexOf(Dt);-1!==Rt&&Tt.remove(Rt)}),this._attachedPortal=ot,Dt}},{key:"dispose",value:function(){(0,W.Z)((0,A.Z)(ge.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(ot){return ot.hostView.rootNodes[0]}}]),ge}(N),V=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je,ot){return(0,I.Z)(this,ge),de.call(this,je,ot)}return(0,T.Z)(ge)}(k);V.\u0275fac=function(de){return new(de||V)(E.Y36(E.Rgc),E.Y36(E.s_b))},V.\u0275dir=E.lG2({type:V,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[E.qOj]});var Q=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(){return(0,I.Z)(this,ge),de.apply(this,arguments)}return(0,T.Z)(ge)}(V);Q.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=E.n5z(Q)))(ge||Q)}}(),Q.\u0275dir=E.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[E._Bn([{provide:V,useExisting:Q}]),E.qOj]});var te=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(je,ot,St){var Tt,Dt;return(0,I.Z)(this,ge),(Dt=de.call(this))._componentFactoryResolver=je,Dt._viewContainerRef=ot,Dt._isInitialized=!1,Dt.attached=new E.vpe,Dt.attachDomPortal=function(Rt){Dt._document;var Ze=Rt.element;Ze.parentNode;var $t=Dt._document.createComment("dom-portal");Rt.setAttachedHost((0,G.Z)(Dt)),Ze.parentNode.insertBefore($t,Ze),Dt._getRootNode().appendChild(Ze),Dt._attachedPortal=Rt,(0,W.Z)((Tt=(0,G.Z)(Dt),(0,A.Z)(ge.prototype)),"setDisposeFn",Tt).call(Tt,function(){$t.parentNode&&$t.parentNode.replaceChild(Ze,$t)})},Dt._document=St,Dt}return(0,T.Z)(ge,[{key:"portal",get:function(){return this._attachedPortal},set:function(ot){this.hasAttached()&&!ot&&!this._isInitialized||(this.hasAttached()&&(0,W.Z)((0,A.Z)(ge.prototype),"detach",this).call(this),ot&&(0,W.Z)((0,A.Z)(ge.prototype),"attach",this).call(this,ot),this._attachedPortal=ot||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,W.Z)((0,A.Z)(ge.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(ot){ot.setAttachedHost(this);var St=null!=ot.viewContainerRef?ot.viewContainerRef:this._viewContainerRef,Dt=(ot.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ot.component),Rt=St.createComponent(Dt,St.length,ot.injector||St.injector);return St!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),(0,W.Z)((0,A.Z)(ge.prototype),"setDisposeFn",this).call(this,function(){return Rt.destroy()}),this._attachedPortal=ot,this._attachedRef=Rt,this.attached.emit(Rt),Rt}},{key:"attachTemplatePortal",value:function(ot){var St=this;ot.setAttachedHost(this);var Tt=this._viewContainerRef.createEmbeddedView(ot.templateRef,ot.context,{injector:ot.injector});return(0,W.Z)((0,A.Z)(ge.prototype),"setDisposeFn",this).call(this,function(){return St._viewContainerRef.clear()}),this._attachedPortal=ot,this._attachedRef=Tt,this.attached.emit(Tt),Tt}},{key:"_getRootNode",value:function(){var ot=this._viewContainerRef.element.nativeElement;return ot.nodeType===ot.ELEMENT_NODE?ot:ot.parentNode}}]),ge}(N);te.\u0275fac=function(de){return new(de||te)(E.Y36(E._Vd),E.Y36(E.s_b),E.Y36(j.K0))},te.\u0275dir=E.lG2({type:te,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[E.qOj]});var be=function(ue){(0,H.Z)(ge,ue);var de=(0,P.Z)(ge);function ge(){return(0,I.Z)(this,ge),de.apply(this,arguments)}return(0,T.Z)(ge)}(te);be.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=E.n5z(be)))(ge||be)}}(),be.\u0275dir=E.lG2({type:be,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[E._Bn([{provide:te,useExisting:be}]),E.qOj]});var pe=(0,T.Z)(function ue(){(0,I.Z)(this,ue)});pe.\u0275fac=function(de){return new(de||pe)},pe.\u0275mod=E.oAB({type:pe}),pe.\u0275inj=E.cJS({})},9071:function(Ae,K,m){"use strict";m.d(K,{Cl:function(){return B},PQ:function(){return $t},ZD:function(){return U},mF:function(){return Ze},rL:function(){return Ot}});var G=m(7685),W=m(7762),A=m(7326),H=m(3237),P=m(1120),I=m(136),T=m(9388),E=m(5671),j=m(3144),R=m(3191),v=m(5e3),x=m(8929),w=m(1086),Z=m(7451),D=m(3753),b=m(352),S=m(9931),k=m(4096),M=m(4715),N=m(5778),F=m(7568),X=m(9664),$=m(7625),V=m(1059),Q=m(519),te=m(7545),be=m(5154),pe=m(9808),fe=m(925),ue=m(226),de=m(449),ge=["contentWrapper"],ot=new v.OlP("VIRTUAL_SCROLL_STRATEGY"),St=function(){function qe(Be,le,t){(0,E.Z)(this,qe),this._scrolledIndexChange=new x.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,N.x)()),this._viewport=null,this._itemSize=Be,this._minBufferPx=le,this._maxBufferPx=t}return(0,j.Z)(qe,[{key:"attach",value:function(le){this._viewport=le,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(le,t,Lt){this._itemSize=le,this._minBufferPx=t,this._maxBufferPx=Lt,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(le,t){this._viewport&&this._viewport.scrollToOffset(le*this._itemSize,t)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var le=this._viewport.getRenderedRange(),t={start:le.start,end:le.end},Lt=this._viewport.getViewportSize(),zt=this._viewport.getDataLength(),an=this._viewport.measureScrollOffset(),Qt=this._itemSize>0?an/this._itemSize:0;if(t.end>zt){var vn=Math.ceil(Lt/this._itemSize),Vt=Math.max(0,Math.min(Qt,zt-vn));Qt!=Vt&&(Qt=Vt,an=Vt*this._itemSize,t.start=Math.floor(Qt)),t.end=Math.max(0,Math.min(zt,t.start+vn))}var Jt=an-t.start*this._itemSize;if(Jt<this._minBufferPx&&0!=t.start){var Qe=Math.ceil((this._maxBufferPx-Jt)/this._itemSize);t.start=Math.max(0,t.start-Qe),t.end=Math.min(zt,Math.ceil(Qt+(Lt+this._minBufferPx)/this._itemSize))}else{var Fe=t.end*this._itemSize-(an+Lt);if(Fe<this._minBufferPx&&t.end!=zt){var ne=Math.ceil((this._maxBufferPx-Fe)/this._itemSize);ne>0&&(t.end=Math.min(zt,t.end+ne),t.start=Math.max(0,Math.floor(Qt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(this._itemSize*t.start),this._scrolledIndexChange.next(Math.floor(Qt))}}}]),qe}();var Dt=function(){function qe(){(0,E.Z)(this,qe),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new St(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,j.Z)(qe,[{key:"itemSize",get:function(){return this._itemSize},set:function(le){this._itemSize=(0,R.su)(le)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(le){this._minBufferPx=(0,R.su)(le)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(le){this._maxBufferPx=(0,R.su)(le)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),qe}();Dt.\u0275fac=function(Be){return new(Be||Dt)},Dt.\u0275dir=v.lG2({type:Dt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[v._Bn([{provide:ot,useFactory:function Tt(qe){return qe._scrollStrategy},deps:[(0,v.Gpc)(function(){return Dt})]}]),v.TTD]});var Ze=function(){function qe(Be,le,t){(0,E.Z)(this,qe),this._ngZone=Be,this._platform=le,this._scrolled=new x.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=t}return(0,j.Z)(qe,[{key:"register",value:function(le){var t=this;this.scrollContainers.has(le)||this.scrollContainers.set(le,le.elementScrolled().subscribe(function(){return t._scrolled.next(le)}))}},{key:"deregister",value:function(le){var t=this.scrollContainers.get(le);t&&(t.unsubscribe(),this.scrollContainers.delete(le))}},{key:"scrolled",value:function(){var le=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Z.y(function(Lt){le._globalSubscription||le._addGlobalListener();var zt=t>0?le._scrolled.pipe((0,F.e)(t)).subscribe(Lt):le._scrolled.subscribe(Lt);return le._scrolledCount++,function(){zt.unsubscribe(),le._scrolledCount--,le._scrolledCount||le._removeGlobalListener()}}):(0,w.of)()}},{key:"ngOnDestroy",value:function(){var le=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,Lt){return le.deregister(Lt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(le,t){var Lt=this.getAncestorScrollContainers(le);return this.scrolled(t).pipe((0,X.h)(function(zt){return!zt||Lt.indexOf(zt)>-1}))}},{key:"getAncestorScrollContainers",value:function(le){var t=this,Lt=[];return this.scrollContainers.forEach(function(zt,an){t._scrollableContainsElement(an,le)&&Lt.push(an)}),Lt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(le,t){var Lt=(0,R.fI)(t),zt=le.getElementRef().nativeElement;do{if(Lt==zt)return!0}while(Lt=Lt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var le=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=le._getWindow();return(0,D.R)(t.document,"scroll").subscribe(function(){return le._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),qe}();Ze.\u0275fac=function(Be){return new(Be||Ze)(v.LFG(v.R0b),v.LFG(fe.t4),v.LFG(pe.K0,8))},Ze.\u0275prov=v.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"});var $t=function(){function qe(Be,le,t,Lt){var zt=this;(0,E.Z)(this,qe),this.elementRef=Be,this.scrollDispatcher=le,this.ngZone=t,this.dir=Lt,this._destroyed=new x.xQ,this._elementScrolled=new Z.y(function(an){return zt.ngZone.runOutsideAngular(function(){return(0,D.R)(zt.elementRef.nativeElement,"scroll").pipe((0,$.R)(zt._destroyed)).subscribe(an)})})}return(0,j.Z)(qe,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(le){var t=this.elementRef.nativeElement,Lt=this.dir&&"rtl"==this.dir.value;null==le.left&&(le.left=Lt?le.end:le.start),null==le.right&&(le.right=Lt?le.start:le.end),null!=le.bottom&&(le.top=t.scrollHeight-t.clientHeight-le.bottom),Lt&&0!=(0,fe._i)()?(null!=le.left&&(le.right=t.scrollWidth-t.clientWidth-le.left),2==(0,fe._i)()?le.left=le.right:1==(0,fe._i)()&&(le.left=le.right?-le.right:le.right)):null!=le.right&&(le.left=t.scrollWidth-t.clientWidth-le.right),this._applyScrollToOptions(le)}},{key:"_applyScrollToOptions",value:function(le){var t=this.elementRef.nativeElement;(0,fe.Mq)()?t.scrollTo(le):(null!=le.top&&(t.scrollTop=le.top),null!=le.left&&(t.scrollLeft=le.left))}},{key:"measureScrollOffset",value:function(le){var t="left",zt=this.elementRef.nativeElement;if("top"==le)return zt.scrollTop;if("bottom"==le)return zt.scrollHeight-zt.clientHeight-zt.scrollTop;var an=this.dir&&"rtl"==this.dir.value;return"start"==le?le=an?"right":t:"end"==le&&(le=an?t:"right"),an&&2==(0,fe._i)()?le==t?zt.scrollWidth-zt.clientWidth-zt.scrollLeft:zt.scrollLeft:an&&1==(0,fe._i)()?le==t?zt.scrollLeft+zt.scrollWidth-zt.clientWidth:-zt.scrollLeft:le==t?zt.scrollLeft:zt.scrollWidth-zt.clientWidth-zt.scrollLeft}}]),qe}();$t.\u0275fac=function(Be){return new(Be||$t)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},$t.\u0275dir=v.lG2({type:$t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var Ft=new v.OlP("VIRTUAL_SCROLLABLE"),pn=function(qe){(0,I.Z)(le,qe);var Be=(0,T.Z)(le);function le(t,Lt,zt,an){return(0,E.Z)(this,le),Be.call(this,t,Lt,zt,an)}return(0,j.Z)(le,[{key:"measureViewportSize",value:function(Lt){var zt=this.elementRef.nativeElement;return"horizontal"===Lt?zt.clientWidth:zt.clientHeight}}]),le}($t);pn.\u0275fac=function(Be){return new(Be||pn)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},pn.\u0275dir=v.lG2({type:pn,features:[v.qOj]});var Ot=function(){function qe(Be,le,t){var Lt=this;(0,E.Z)(this,qe),this._platform=Be,this._change=new x.xQ,this._changeListener=function(zt){Lt._change.next(zt)},this._document=t,le.runOutsideAngular(function(){if(Be.isBrowser){var zt=Lt._getWindow();zt.addEventListener("resize",Lt._changeListener),zt.addEventListener("orientationchange",Lt._changeListener)}Lt.change().subscribe(function(){return Lt._viewportSize=null})})}return(0,j.Z)(qe,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var le=this._getWindow();le.removeEventListener("resize",this._changeListener),le.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var le={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),le}},{key:"getViewportRect",value:function(){var le=this.getViewportScrollPosition(),t=this.getViewportSize(),Lt=t.width,zt=t.height;return{top:le.top,left:le.left,bottom:le.top+zt,right:le.left+Lt,height:zt,width:Lt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var le=this._document,t=this._getWindow(),Lt=le.documentElement,zt=Lt.getBoundingClientRect();return{top:-zt.top||le.body.scrollTop||t.scrollY||Lt.scrollTop||0,left:-zt.left||le.body.scrollLeft||t.scrollX||Lt.scrollLeft||0}}},{key:"change",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return le>0?this._change.pipe((0,F.e)(le)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var le=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:le.innerWidth,height:le.innerHeight}:{width:0,height:0}}}]),qe}();Ot.\u0275fac=function(Be){return new(Be||Ot)(v.LFG(fe.t4),v.LFG(v.R0b),v.LFG(pe.K0,8))},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"});var Ct="undefined"!=typeof requestAnimationFrame?b.Z:S.E,Ve=function(qe){(0,I.Z)(le,qe);var Be=(0,T.Z)(le);function le(t,Lt,zt,an,Qt,vn,Vt,Jt){var Qe;return(0,E.Z)(this,le),(Qe=Be.call(this,t,vn,zt,Qt)).elementRef=t,Qe._changeDetectorRef=Lt,Qe._scrollStrategy=an,Qe.scrollable=Jt,Qe._platform=(0,v.f3M)(fe.t4),Qe._detachedSubject=new x.xQ,Qe._renderedRangeSubject=new x.xQ,Qe._orientation="vertical",Qe._appendOnly=!1,Qe.scrolledIndexChange=new Z.y(function(Fe){return Qe._scrollStrategy.scrolledIndexChange.subscribe(function(ne){return Promise.resolve().then(function(){return Qe.ngZone.run(function(){return Fe.next(ne)})})})}),Qe.renderedRangeStream=Qe._renderedRangeSubject,Qe._totalContentSize=0,Qe._totalContentWidth="",Qe._totalContentHeight="",Qe._renderedRange={start:0,end:0},Qe._dataLength=0,Qe._viewportSize=0,Qe._renderedContentOffset=0,Qe._renderedContentOffsetNeedsRewrite=!1,Qe._isChangeDetectionPending=!1,Qe._runAfterChangeDetection=[],Qe._viewportChanges=k.w.EMPTY,Qe._viewportChanges=Vt.change().subscribe(function(){Qe.checkViewportSize()}),Qe.scrollable||(Qe.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),Qe.scrollable=(0,A.Z)(Qe)),Qe}return(0,j.Z)(le,[{key:"orientation",get:function(){return this._orientation},set:function(Lt){this._orientation!==Lt&&(this._orientation=Lt,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Lt){this._appendOnly=(0,R.Ig)(Lt)}},{key:"ngOnInit",value:function(){var Lt=this;!this._platform.isBrowser||(this.scrollable===this&&(0,H.Z)((0,P.Z)(le.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Lt._measureViewportSize(),Lt._scrollStrategy.attach(Lt),Lt.scrollable.elementScrolled().pipe((0,V.O)(null),(0,F.e)(0,Ct)).subscribe(function(){return Lt._scrollStrategy.onContentScrolled()}),Lt._markChangeDetectionNeeded()})}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,H.Z)((0,P.Z)(le.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Lt){var zt=this;this._forOf,this.ngZone.runOutsideAngular(function(){zt._forOf=Lt,zt._forOf.dataStream.pipe((0,$.R)(zt._detachedSubject)).subscribe(function(an){var Qt=an.length;Qt!==zt._dataLength&&(zt._dataLength=Qt,zt._scrollStrategy.onDataLengthChanged()),zt._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]}},{key:"setTotalContentSize",value:function(Lt){this._totalContentSize!==Lt&&(this._totalContentSize=Lt,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Lt){var zt=this;(function _t(qe,Be){return qe.start==Be.start&&qe.end==Be.end})(this._renderedRange,Lt)||(this.appendOnly&&(Lt={start:0,end:Math.max(this._renderedRange.end,Lt.end)}),this._renderedRangeSubject.next(this._renderedRange=Lt),this._markChangeDetectionNeeded(function(){return zt._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Lt){var zt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start";Lt=this.appendOnly&&"to-start"===an?0:Lt;var Qt=this.dir&&"rtl"==this.dir.value,vn="horizontal"==this.orientation,Vt=vn?"X":"Y",Jt=vn&&Qt?-1:1,Qe="translate".concat(Vt,"(").concat(Number(Jt*Lt),"px)");this._renderedContentOffset=Lt,"to-end"===an&&(Qe+=" translate".concat(Vt,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Qe&&(this._renderedContentTransform=Qe,this._markChangeDetectionNeeded(function(){zt._renderedContentOffsetNeedsRewrite?(zt._renderedContentOffset-=zt.measureRenderedContentSize(),zt._renderedContentOffsetNeedsRewrite=!1,zt.setRenderedContentOffset(zt._renderedContentOffset)):zt._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Lt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",an={behavior:zt};"horizontal"===this.orientation?an.start=Lt:an.top=Lt,this.scrollable.scrollTo(an)}},{key:"scrollToIndex",value:function(Lt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Lt,zt)}},{key:"measureScrollOffset",value:function(Lt){var an,zt=this;return an=this.scrollable==this?function(vn){return(0,H.Z)((0,P.Z)(le.prototype),"measureScrollOffset",zt).call(zt,vn)}:function(vn){return zt.scrollable.measureScrollOffset(vn)},Math.max(0,an(null!=Lt?Lt:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}},{key:"measureViewportOffset",value:function(Lt){var zt,an,Vt="rtl"==(null===(zt=this.dir)||void 0===zt?void 0:zt.value);an="start"==Lt?Vt?"right":"left":"end"==Lt?Vt?"left":"right":Lt||("horizontal"===this.orientation?"left":"top");var Jt=this.scrollable.measureBoundingClientRectWithScrollOffset(an);return this.elementRef.nativeElement.getBoundingClientRect()[an]-Jt}},{key:"measureRenderedContentSize",value:function(){var Lt=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Lt.offsetWidth:Lt.offsetHeight}},{key:"measureRangeSize",value:function(Lt){return this._forOf?this._forOf.measureRangeSize(Lt,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}},{key:"_markChangeDetectionNeeded",value:function(Lt){var zt=this;Lt&&this._runAfterChangeDetection.push(Lt),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){zt._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Lt=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Lt._changeDetectorRef.markForCheck()});var zt=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var Qt,an=(0,W.Z)(zt);try{for(an.s();!(Qt=an.n()).done;){(0,Qt.value)()}}catch(Vt){an.e(Vt)}finally{an.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),le}(pn);function at(qe,Be,le){var t=le;if(!t.getBoundingClientRect)return 0;var Lt=t.getBoundingClientRect();return"horizontal"===qe?"start"===Be?Lt.left:Lt.right:"start"===Be?Lt.top:Lt.bottom}Ve.\u0275fac=function(Be){return new(Be||Ve)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(ot,8),v.Y36(ue.Is,8),v.Y36(Ze),v.Y36(Ot),v.Y36(Ft,8))},Ve.\u0275cmp=v.Xpm({type:Ve,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Be,le){var t;(1&Be&&v.Gf(ge,7),2&Be)&&(v.iGM(t=v.CRH())&&(le._contentWrapper=t.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Be,le){2&Be&&v.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===le.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==le.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[v._Bn([{provide:$t,useFactory:function(Be,le){return Be||le},deps:[[new v.FiY,new v.tBr(Ft)],Ve]}]),v.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Be,le){1&Be&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA(),v._UZ(3,"div",2)),2&Be&&(v.xp6(3),v.Udp("width",le._totalContentWidth)("height",le._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});var ht=function(){function qe(Be,le,t,Lt,zt,an){var Qt=this;(0,E.Z)(this,qe),this._viewContainerRef=Be,this._template=le,this._differs=t,this._viewRepeater=Lt,this._viewport=zt,this.viewChange=new x.xQ,this._dataSourceChanges=new x.xQ,this.dataStream=this._dataSourceChanges.pipe((0,V.O)(null),(0,Q.G)(),(0,te.w)(function(vn){var Vt=(0,G.Z)(vn,2),Jt=Vt[0],Qe=Vt[1];return Qt._changeDataSource(Jt,Qe)}),(0,be.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new x.xQ,this.dataStream.subscribe(function(vn){Qt._data=vn,Qt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,$.R)(this._destroyed)).subscribe(function(vn){Qt._renderedRange=vn,Qt.viewChange.observers.length&&an.run(function(){return Qt.viewChange.next(Qt._renderedRange)}),Qt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,j.Z)(qe,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(le){this._cdkVirtualForOf=le,(0,de.Z9)(le)?this._dataSourceChanges.next(le):this._dataSourceChanges.next(new de.P3((0,M.b)(le)?le:Array.from(le||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(le){var t=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=le?function(Lt,zt){return le(Lt+(t._renderedRange?t._renderedRange.start:0),zt)}:void 0}},{key:"cdkVirtualForTemplate",set:function(le){le&&(this._needsUpdate=!0,this._template=le)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(le){this._viewRepeater.viewCacheSize=(0,R.su)(le)}},{key:"measureRangeSize",value:function(le,t){if(le.start>=le.end)return 0;le.start<this._renderedRange.start||(le.end,this._renderedRange.end);for(var an,Qt,Lt=le.start-this._renderedRange.start,zt=le.end-le.start,vn=0;vn<zt;vn++){var Vt=this._viewContainerRef.get(vn+Lt);if(Vt&&Vt.rootNodes.length){an=Qt=Vt.rootNodes[0];break}}for(var Jt=zt-1;Jt>-1;Jt--){var Qe=this._viewContainerRef.get(Jt+Lt);if(Qe&&Qe.rootNodes.length){Qt=Qe.rootNodes[Qe.rootNodes.length-1];break}}return an&&Qt?at(t,"end",Qt)-at(t,"start",an):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var le=this._differ.diff(this._renderedItems);le?this._applyChanges(le):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var le=this;!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(t,Lt){return le.cdkVirtualForTrackBy?le.cdkVirtualForTrackBy(t,Lt):Lt})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(le,t){return le&&le.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,w.of)()}},{key:"_updateContext",value:function(){for(var le=this._data.length,t=this._viewContainerRef.length;t--;){var Lt=this._viewContainerRef.get(t);Lt.context.index=this._renderedRange.start+t,Lt.context.count=le,this._updateComputedContextProperties(Lt.context),Lt.detectChanges()}}},{key:"_applyChanges",value:function(le){var t=this;this._viewRepeater.applyChanges(le,this._viewContainerRef,function(Qt,vn,Vt){return t._getEmbeddedViewArgs(Qt,Vt)},function(Qt){return Qt.item}),le.forEachIdentityChange(function(Qt){t._viewContainerRef.get(Qt.currentIndex).context.$implicit=Qt.item});for(var Lt=this._data.length,zt=this._viewContainerRef.length;zt--;){var an=this._viewContainerRef.get(zt);an.context.index=this._renderedRange.start+zt,an.context.count=Lt,this._updateComputedContextProperties(an.context)}}},{key:"_updateComputedContextProperties",value:function(le){le.first=0===le.index,le.last=le.index===le.count-1,le.even=le.index%2==0,le.odd=!le.even}},{key:"_getEmbeddedViewArgs",value:function(le,t){return{templateRef:this._template,context:{$implicit:le.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}]),qe}();ht.\u0275fac=function(Be){return new(Be||ht)(v.Y36(v.s_b),v.Y36(v.Rgc),v.Y36(v.ZZ4),v.Y36(de.k),v.Y36(Ve,4),v.Y36(v.R0b))},ht.\u0275dir=v.lG2({type:ht,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[v._Bn([{provide:de.k,useClass:de.eX}])]});var Ut=function(qe){(0,I.Z)(le,qe);var Be=(0,T.Z)(le);function le(t,Lt,zt,an){return(0,E.Z)(this,le),Be.call(this,t,Lt,zt,an)}return(0,j.Z)(le,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]-this.measureScrollOffset(Lt)}}]),le}(pn);Ut.\u0275fac=function(Be){return new(Be||Ut)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],features:[v._Bn([{provide:Ft,useExisting:Ut}]),v.qOj]});var Wt=function(qe){(0,I.Z)(le,qe);var Be=(0,T.Z)(le);function le(t,Lt,zt){var an;return(0,E.Z)(this,le),(an=Be.call(this,new v.SBq(document.documentElement),t,Lt,zt))._elementScrolled=new Z.y(function(Qt){return an.ngZone.runOutsideAngular(function(){return(0,D.R)(document,"scroll").pipe((0,$.R)(an._destroyed)).subscribe(Qt)})}),an}return(0,j.Z)(le,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]}}]),le}(pn);Wt.\u0275fac=function(Be){return new(Be||Wt)(v.Y36(Ze),v.Y36(v.R0b),v.Y36(ue.Is,8))},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],features:[v._Bn([{provide:Ft,useExisting:Wt}]),v.qOj]});var U=(0,j.Z)(function qe(){(0,E.Z)(this,qe)});U.\u0275fac=function(Be){return new(Be||U)},U.\u0275mod=v.oAB({type:U}),U.\u0275inj=v.cJS({});var B=(0,j.Z)(function qe(){(0,E.Z)(this,qe)});B.\u0275fac=function(Be){return new(Be||B)},B.\u0275mod=v.oAB({type:B}),B.\u0275inj=v.cJS({imports:[ue.vT,U,ue.vT,U]})},9808:function(Ae,K,m){"use strict";m.d(K,{Do:function(){return te},ED:function(){return Ks},EM:function(){return xc},HT:function(){return v},JF:function(){return _l},K0:function(){return w},Mx:function(){return ki},NF:function(){return qa},O5:function(){return ra},Ov:function(){return Ki},PC:function(){return to},RF:function(){return uo},S$:function(){return $},V_:function(){return b},Ye:function(){return be},b0:function(){return Q},bD:function(){return fo},ez:function(){return go},mk:function(){return Yo},n9:function(){return Ui},q:function(){return j},sg:function(){return Vi},tP:function(){return Ai},w_:function(){return x}});var G=m(7762),W=m(7685),A=m(136),H=m(9388),P=m(3144),I=m(5671),T=m(5e3),E=null;function j(){return E}function v(ie){E||(E=ie)}var x=(0,P.Z)(function ie(){(0,I.Z)(this,ie)}),w=new T.OlP("DocumentToken"),Z=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();Z.\u0275fac=function(ce){return new(ce||Z)},Z.\u0275prov=T.Yz7({token:Z,factory:function(){return function D(){return(0,T.LFG)(S)}()},providedIn:"platform"});var b=new T.OlP("Location Initialized"),S=function(ie){(0,A.Z)(me,ie);var ce=(0,H.Z)(me);function me(Ue){var Xe;return(0,I.Z)(this,me),(Xe=ce.call(this))._doc=Ue,Xe._init(),Xe}return(0,P.Z)(me,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return j().getBaseHref(this._doc)}},{key:"onPopState",value:function(Xe){var It=j().getGlobalEventTarget(this._doc,"window");return It.addEventListener("popstate",Xe,!1),function(){return It.removeEventListener("popstate",Xe)}}},{key:"onHashChange",value:function(Xe){var It=j().getGlobalEventTarget(this._doc,"window");return It.addEventListener("hashchange",Xe,!1),function(){return It.removeEventListener("hashchange",Xe)}}},{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(Xe){this.location.pathname=Xe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(Xe,It,rn){k()?this._history.pushState(Xe,It,rn):this.location.hash=rn}},{key:"replaceState",value:function(Xe,It,rn){k()?this._history.replaceState(Xe,It,rn):this.location.hash=rn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(Xe)}},{key:"getState",value:function(){return this._history.state}}]),me}(Z);function k(){return!!window.history.pushState}function N(ie,ce){if(0==ie.length)return ce;if(0==ce.length)return ie;var me=0;return ie.endsWith("/")&&me++,ce.startsWith("/")&&me++,2==me?ie+ce.substring(1):1==me?ie+ce:ie+"/"+ce}function F(ie){var ce=ie.match(/#|\?|$/),me=ce&&ce.index||ie.length,Ue=me-("/"===ie[me-1]?1:0);return ie.slice(0,Ue)+ie.slice(me)}function X(ie){return ie&&"?"!==ie[0]?"?"+ie:ie}S.\u0275fac=function(ce){return new(ce||S)(T.LFG(w))},S.\u0275prov=T.Yz7({token:S,factory:function(){return function M(){return new S((0,T.LFG)(w))}()},providedIn:"platform"});var $=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();$.\u0275fac=function(ce){return new(ce||$)},$.\u0275prov=T.Yz7({token:$,factory:function(){return(0,T.f3M)(Q)},providedIn:"root"});var V=new T.OlP("appBaseHref"),Q=function(ie){(0,A.Z)(me,ie);var ce=(0,H.Z)(me);function me(Ue,Xe){var It,rn,Bn,lr;return(0,I.Z)(this,me),(It=ce.call(this))._platformLocation=Ue,It._removeListenerFns=[],It._baseHref=null!==(lr=null!==(rn=null!=Xe?Xe:It._platformLocation.getBaseHrefFromDOM())&&void 0!==rn?rn:null===(Bn=(0,T.f3M)(w).location)||void 0===Bn?void 0:Bn.origin)&&void 0!==lr?lr:"",It}return(0,P.Z)(me,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Xe){this._removeListenerFns.push(this._platformLocation.onPopState(Xe),this._platformLocation.onHashChange(Xe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(Xe){return N(this._baseHref,Xe)}},{key:"path",value:function(){var Xe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],It=this._platformLocation.pathname+X(this._platformLocation.search),rn=this._platformLocation.hash;return rn&&Xe?"".concat(It).concat(rn):It}},{key:"pushState",value:function(Xe,It,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));this._platformLocation.pushState(Xe,It,lr)}},{key:"replaceState",value:function(Xe,It,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));this._platformLocation.replaceState(Xe,It,lr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var It,rn,Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(rn=(It=this._platformLocation).historyGo)||void 0===rn||rn.call(It,Xe)}}]),me}($);Q.\u0275fac=function(ce){return new(ce||Q)(T.LFG(Z),T.LFG(V,8))},Q.\u0275prov=T.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});var te=function(ie){(0,A.Z)(me,ie);var ce=(0,H.Z)(me);function me(Ue,Xe){var It;return(0,I.Z)(this,me),(It=ce.call(this))._platformLocation=Ue,It._baseHref="",It._removeListenerFns=[],null!=Xe&&(It._baseHref=Xe),It}return(0,P.Z)(me,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Xe){this._removeListenerFns.push(this._platformLocation.onPopState(Xe),this._platformLocation.onHashChange(Xe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var It=this._platformLocation.hash;return null==It&&(It="#"),It.length>0?It.substring(1):It}},{key:"prepareExternalUrl",value:function(Xe){var It=N(this._baseHref,Xe);return It.length>0?"#"+It:It}},{key:"pushState",value:function(Xe,It,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));0==lr.length&&(lr=this._platformLocation.pathname),this._platformLocation.pushState(Xe,It,lr)}},{key:"replaceState",value:function(Xe,It,rn,Bn){var lr=this.prepareExternalUrl(rn+X(Bn));0==lr.length&&(lr=this._platformLocation.pathname),this._platformLocation.replaceState(Xe,It,lr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var It,rn,Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(rn=(It=this._platformLocation).historyGo)||void 0===rn||rn.call(It,Xe)}}]),me}($);te.\u0275fac=function(ce){return new(ce||te)(T.LFG(Z),T.LFG(V,8))},te.\u0275prov=T.Yz7({token:te,factory:te.\u0275fac});var be=function(){function ie(ce){var me=this;(0,I.Z)(this,ie),this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ce;var Ue=this._locationStrategy.getBaseHref();this._baseHref=F(ue(Ue)),this._locationStrategy.onPopState(function(Xe){me._subject.emit({url:me.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}return(0,P.Z)(ie,[{key:"ngOnDestroy",value:function(){var me;null===(me=this._urlChangeSubscription)||void 0===me||me.unsubscribe(),this._urlChangeListeners=[]}},{key:"path",value:function(){var me=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._locationStrategy.path(me))}},{key:"getState",value:function(){return this._locationStrategy.getState()}},{key:"isCurrentPathEqualTo",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(me+X(Ue))}},{key:"normalize",value:function(me){return ie.stripTrailingSlash(function fe(ie,ce){return ie&&ce.startsWith(ie)?ce.substring(ie.length):ce}(this._baseHref,ue(me)))}},{key:"prepareExternalUrl",value:function(me){return me&&"/"!==me[0]&&(me="/"+me),this._locationStrategy.prepareExternalUrl(me)}},{key:"go",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.pushState(Xe,"",me,Ue),this._notifyUrlChangeListeners(this.prepareExternalUrl(me+X(Ue)),Xe)}},{key:"replaceState",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.replaceState(Xe,"",me,Ue),this._notifyUrlChangeListeners(this.prepareExternalUrl(me+X(Ue)),Xe)}},{key:"forward",value:function(){this._locationStrategy.forward()}},{key:"back",value:function(){this._locationStrategy.back()}},{key:"historyGo",value:function(){var Ue,Xe,me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Xe=(Ue=this._locationStrategy).historyGo)||void 0===Xe||Xe.call(Ue,me)}},{key:"onUrlChange",value:function(me){var Ue=this;return this._urlChangeListeners.push(me),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(Xe){Ue._notifyUrlChangeListeners(Xe.url,Xe.state)})),function(){var Xe,It=Ue._urlChangeListeners.indexOf(me);Ue._urlChangeListeners.splice(It,1),0===Ue._urlChangeListeners.length&&(null===(Xe=Ue._urlChangeSubscription)||void 0===Xe||Xe.unsubscribe(),Ue._urlChangeSubscription=null)}}},{key:"_notifyUrlChangeListeners",value:function(){var me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Ue=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(Xe){return Xe(me,Ue)})}},{key:"subscribe",value:function(me,Ue,Xe){return this._subject.subscribe({next:me,error:Ue,complete:Xe})}}]),ie}();function ue(ie){return ie.replace(/\/index.html$/,"")}be.normalizeQueryParams=X,be.joinWithSlash=N,be.stripTrailingSlash=F,be.\u0275fac=function(ce){return new(ce||be)(T.LFG($))},be.\u0275prov=T.Yz7({token:be,factory:function(){return function pe(){return new be((0,T.LFG)($))}()},providedIn:"root"});var ge,ie,je,ot,St,Tt,Dt,Rt,de={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};function Ct(ie,ce){return an((0,T.cg1)(ie)[T.wAp.DateFormat],ce)}function Ve(ie,ce){return an((0,T.cg1)(ie)[T.wAp.TimeFormat],ce)}function at(ie,ce){return an((0,T.cg1)(ie)[T.wAp.DateTimeFormat],ce)}function ht(ie,ce){var me=(0,T.cg1)(ie),Ue=me[T.wAp.NumberSymbols][ce];if(void 0===Ue){if(ce===Dt.CurrencyDecimal)return me[T.wAp.NumberSymbols][Dt.Decimal];if(ce===Dt.CurrencyGroup)return me[T.wAp.NumberSymbols][Dt.Group]}return Ue}function Ut(ie,ce){return(0,T.cg1)(ie)[T.wAp.NumberFormats][ce]}function qe(ie){return(0,T.cg1)(ie)[T.wAp.Currencies]}(ie=ge||(ge={}))[ie.Decimal=0]="Decimal",ie[ie.Percent=1]="Percent",ie[ie.Currency=2]="Currency",ie[ie.Scientific=3]="Scientific",function(ie){ie[ie.Zero=0]="Zero",ie[ie.One=1]="One",ie[ie.Two=2]="Two",ie[ie.Few=3]="Few",ie[ie.Many=4]="Many",ie[ie.Other=5]="Other"}(je||(je={})),function(ie){ie[ie.Format=0]="Format",ie[ie.Standalone=1]="Standalone"}(ot||(ot={})),function(ie){ie[ie.Narrow=0]="Narrow",ie[ie.Abbreviated=1]="Abbreviated",ie[ie.Wide=2]="Wide",ie[ie.Short=3]="Short"}(St||(St={})),function(ie){ie[ie.Short=0]="Short",ie[ie.Medium=1]="Medium",ie[ie.Long=2]="Long",ie[ie.Full=3]="Full"}(Tt||(Tt={})),function(ie){ie[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup"}(Dt||(Dt={})),function(ie){ie[ie.Sunday=0]="Sunday",ie[ie.Monday=1]="Monday",ie[ie.Tuesday=2]="Tuesday",ie[ie.Wednesday=3]="Wednesday",ie[ie.Thursday=4]="Thursday",ie[ie.Friday=5]="Friday",ie[ie.Saturday=6]="Saturday"}(Rt||(Rt={}));var Be=T.kL8;function le(ie){if(!ie[T.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ie[T.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function an(ie,ce){for(var me=ce;me>-1;me--)if(void 0!==ie[me])return ie[me];throw new Error("Locale data API: locale data undefined")}function Qt(ie){var ce=ie.split(":"),me=(0,W.Z)(ce,2);return{hours:+me[0],minutes:+me[1]}}function vn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",Ue=qe(me)[ie]||de[ie]||[],Xe=Ue[1];return"narrow"===ce&&"string"==typeof Xe?Xe:Ue[0]||ie}var ye,he,Le,Qe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fe={},ne=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function lt(ie,ce,me,Ue){var Xe=function yt(ie){if(gt(ie))return ie;if("number"==typeof ie&&!isNaN(ie))return new Date(ie);if("string"==typeof ie){if(ie=ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ie)){var ce=ie.split("-").map(function(Qr){return+Qr}),me=(0,W.Z)(ce,3),Ue=me[0],Xe=me[1],It=void 0===Xe?1:Xe,rn=me[2];return ut(Ue,It-1,void 0===rn?1:rn)}var wr,lr=parseFloat(ie);if(!isNaN(ie-lr))return new Date(lr);if(wr=ie.match(Qe))return function et(ie){var ce=new Date(0),me=0,Ue=0,Xe=ie[8]?ce.setUTCFullYear:ce.setFullYear,It=ie[8]?ce.setUTCHours:ce.setHours;ie[9]&&(me=Number(ie[9]+ie[10]),Ue=Number(ie[9]+ie[11])),Xe.call(ce,Number(ie[1]),Number(ie[2])-1,Number(ie[3]));var rn=Number(ie[4]||0)-me,Bn=Number(ie[5]||0)-Ue,lr=Number(ie[6]||0),wr=Math.floor(1e3*parseFloat("0."+(ie[7]||0)));return It.call(ce,rn,Bn,lr,wr),ce}(wr)}var li=new Date(ie);if(!gt(li))throw new Error('Unable to convert "'.concat(ie,'" into a date'));return li}(ie);ce=Nt(me,ce)||ce;for(var Bn,rn=[];ce;){if(!(Bn=ne.exec(ce))){rn.push(ce);break}var lr=(rn=rn.concat(Bn.slice(1))).pop();if(!lr)break;ce=lr}var wr=Xe.getTimezoneOffset();Ue&&(wr=dn(Ue,wr),Xe=function Kt(ie,ce,me){var Ue=me?-1:1,Xe=ie.getTimezoneOffset(),It=dn(ce,Xe);return function Un(ie,ce){return(ie=new Date(ie.getTime())).setMinutes(ie.getMinutes()+ce),ie}(ie,Ue*(It-Xe))}(Xe,Ue,!0));var li="";return rn.forEach(function(Qr){var Do=function vt(ie){if(Je[ie])return Je[ie];var ce;switch(ie){case"G":case"GG":case"GGG":ce=hn(Le.Eras,St.Abbreviated);break;case"GGGG":ce=hn(Le.Eras,St.Wide);break;case"GGGGG":ce=hn(Le.Eras,St.Narrow);break;case"y":ce=ln(he.FullYear,1,0,!1,!0);break;case"yy":ce=ln(he.FullYear,2,0,!0,!0);break;case"yyy":ce=ln(he.FullYear,3,0,!1,!0);break;case"yyyy":ce=ln(he.FullYear,4,0,!1,!0);break;case"Y":ce=Re(1);break;case"YY":ce=Re(2,!0);break;case"YYY":ce=Re(3);break;case"YYYY":ce=Re(4);break;case"M":case"L":ce=ln(he.Month,1,1);break;case"MM":case"LL":ce=ln(he.Month,2,1);break;case"MMM":ce=hn(Le.Months,St.Abbreviated);break;case"MMMM":ce=hn(Le.Months,St.Wide);break;case"MMMMM":ce=hn(Le.Months,St.Narrow);break;case"LLL":ce=hn(Le.Months,St.Abbreviated,ot.Standalone);break;case"LLLL":ce=hn(Le.Months,St.Wide,ot.Standalone);break;case"LLLLL":ce=hn(Le.Months,St.Narrow,ot.Standalone);break;case"w":ce=Ye(1);break;case"ww":ce=Ye(2);break;case"W":ce=Ye(1,!0);break;case"d":ce=ln(he.Date,1);break;case"dd":ce=ln(he.Date,2);break;case"c":case"cc":ce=ln(he.Day,1);break;case"ccc":ce=hn(Le.Days,St.Abbreviated,ot.Standalone);break;case"cccc":ce=hn(Le.Days,St.Wide,ot.Standalone);break;case"ccccc":ce=hn(Le.Days,St.Narrow,ot.Standalone);break;case"cccccc":ce=hn(Le.Days,St.Short,ot.Standalone);break;case"E":case"EE":case"EEE":ce=hn(Le.Days,St.Abbreviated);break;case"EEEE":ce=hn(Le.Days,St.Wide);break;case"EEEEE":ce=hn(Le.Days,St.Narrow);break;case"EEEEEE":ce=hn(Le.Days,St.Short);break;case"a":case"aa":case"aaa":ce=hn(Le.DayPeriods,St.Abbreviated);break;case"aaaa":ce=hn(Le.DayPeriods,St.Wide);break;case"aaaaa":ce=hn(Le.DayPeriods,St.Narrow);break;case"b":case"bb":case"bbb":ce=hn(Le.DayPeriods,St.Abbreviated,ot.Standalone,!0);break;case"bbbb":ce=hn(Le.DayPeriods,St.Wide,ot.Standalone,!0);break;case"bbbbb":ce=hn(Le.DayPeriods,St.Narrow,ot.Standalone,!0);break;case"B":case"BB":case"BBB":ce=hn(Le.DayPeriods,St.Abbreviated,ot.Format,!0);break;case"BBBB":ce=hn(Le.DayPeriods,St.Wide,ot.Format,!0);break;case"BBBBB":ce=hn(Le.DayPeriods,St.Narrow,ot.Format,!0);break;case"h":ce=ln(he.Hours,1,-12);break;case"hh":ce=ln(he.Hours,2,-12);break;case"H":ce=ln(he.Hours,1);break;case"HH":ce=ln(he.Hours,2);break;case"m":ce=ln(he.Minutes,1);break;case"mm":ce=ln(he.Minutes,2);break;case"s":ce=ln(he.Seconds,1);break;case"ss":ce=ln(he.Seconds,2);break;case"S":ce=ln(he.FractionalSeconds,1);break;case"SS":ce=ln(he.FractionalSeconds,2);break;case"SSS":ce=ln(he.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ce=At(ye.Short);break;case"ZZZZZ":ce=At(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ce=At(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ce=At(ye.Long);break;default:return null}return Je[ie]=ce,ce}(Qr);li+=Do?Do(Xe,me,wr):"''"===Qr?"'":Qr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),li}function ut(ie,ce,me){var Ue=new Date(0);return Ue.setFullYear(ie,ce,me),Ue.setHours(0,0,0),Ue}function Nt(ie,ce){var me=function Ze(ie){return(0,T.cg1)(ie)[T.wAp.LocaleId]}(ie);if(Fe[me]=Fe[me]||{},Fe[me][ce])return Fe[me][ce];var Ue="";switch(ce){case"shortDate":Ue=Ct(ie,Tt.Short);break;case"mediumDate":Ue=Ct(ie,Tt.Medium);break;case"longDate":Ue=Ct(ie,Tt.Long);break;case"fullDate":Ue=Ct(ie,Tt.Full);break;case"shortTime":Ue=Ve(ie,Tt.Short);break;case"mediumTime":Ue=Ve(ie,Tt.Medium);break;case"longTime":Ue=Ve(ie,Tt.Long);break;case"fullTime":Ue=Ve(ie,Tt.Full);break;case"short":var Xe=Nt(ie,"shortTime"),It=Nt(ie,"shortDate");Ue=jt(at(ie,Tt.Short),[Xe,It]);break;case"medium":var rn=Nt(ie,"mediumTime"),Bn=Nt(ie,"mediumDate");Ue=jt(at(ie,Tt.Medium),[rn,Bn]);break;case"long":var lr=Nt(ie,"longTime"),wr=Nt(ie,"longDate");Ue=jt(at(ie,Tt.Long),[lr,wr]);break;case"full":var li=Nt(ie,"fullTime"),Qr=Nt(ie,"fullDate");Ue=jt(at(ie,Tt.Full),[li,Qr])}return Ue&&(Fe[me][ce]=Ue),Ue}function jt(ie,ce){return ce&&(ie=ie.replace(/\{([^}]+)}/g,function(me,Ue){return null!=ce&&Ue in ce?ce[Ue]:me})),ie}function sn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",Ue=arguments.length>3?arguments[3]:void 0,Xe=arguments.length>4?arguments[4]:void 0,It="";(ie<0||Xe&&ie<=0)&&(Xe?ie=1-ie:(ie=-ie,It=me));for(var rn=String(ie);rn.length<ce;)rn="0"+rn;return Ue&&(rn=rn.slice(rn.length-ce)),It+rn}function yn(ie,ce){return sn(ie,3).substring(0,ce)}function ln(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Ue=arguments.length>3&&void 0!==arguments[3]&&arguments[3],Xe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(It,rn){var Bn=Sn(ie,It);if((me>0||Bn>-me)&&(Bn+=me),ie===he.Hours)0===Bn&&-12===me&&(Bn=12);else if(ie===he.FractionalSeconds)return yn(Bn,ce);var lr=ht(rn,Dt.MinusSign);return sn(Bn,ce,lr,Ue,Xe)}}function Sn(ie,ce){switch(ie){case he.FullYear:return ce.getFullYear();case he.Month:return ce.getMonth();case he.Date:return ce.getDate();case he.Hours:return ce.getHours();case he.Minutes:return ce.getMinutes();case he.Seconds:return ce.getSeconds();case he.FractionalSeconds:return ce.getMilliseconds();case he.Day:return ce.getDay();default:throw new Error('Unknown DateType value "'.concat(ie,'".'))}}function hn(ie,ce){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.Format,Ue=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(Xe,It){return mn(Xe,It,ie,ce,me,Ue)}}function mn(ie,ce,me,Ue,Xe,It){switch(me){case Le.Months:return function pn(ie,ce,me){var Ue=(0,T.cg1)(ie),It=an([Ue[T.wAp.MonthsFormat],Ue[T.wAp.MonthsStandalone]],ce);return an(It,me)}(ce,Xe,Ue)[ie.getMonth()];case Le.Days:return function Ft(ie,ce,me){var Ue=(0,T.cg1)(ie),It=an([Ue[T.wAp.DaysFormat],Ue[T.wAp.DaysStandalone]],ce);return an(It,me)}(ce,Xe,Ue)[ie.getDay()];case Le.DayPeriods:var rn=ie.getHours(),Bn=ie.getMinutes();if(It){var lr=function t(ie){var ce=(0,T.cg1)(ie);return le(ce),(ce[T.wAp.ExtraData][2]||[]).map(function(Ue){return"string"==typeof Ue?Qt(Ue):[Qt(Ue[0]),Qt(Ue[1])]})}(ce),wr=function Lt(ie,ce,me){var Ue=(0,T.cg1)(ie);le(Ue);var It=an([Ue[T.wAp.ExtraData][0],Ue[T.wAp.ExtraData][1]],ce)||[];return an(It,me)||[]}(ce,Xe,Ue),li=lr.findIndex(function(Do){if(Array.isArray(Do)){var Ra=(0,W.Z)(Do,2),ds=Ra[0],ha=Ra[1],fs=rn>=ds.hours&&Bn>=ds.minutes,Pi=rn<ha.hours||rn===ha.hours&&Bn<ha.minutes;if(ds.hours<ha.hours){if(fs&&Pi)return!0}else if(fs||Pi)return!0}else if(Do.hours===rn&&Do.minutes===Bn)return!0;return!1});if(-1!==li)return wr[li]}return function $t(ie,ce,me){var Ue=(0,T.cg1)(ie),It=an([Ue[T.wAp.DayPeriodsFormat],Ue[T.wAp.DayPeriodsStandalone]],ce);return an(It,me)}(ce,Xe,Ue)[rn<12?0:1];case Le.Eras:return function rt(ie,ce){return an((0,T.cg1)(ie)[T.wAp.Eras],ce)}(ce,Ue)[ie.getFullYear()<=0?0:1];default:var Qr=me;throw new Error("unexpected translation type ".concat(Qr))}}function At(ie){return function(ce,me,Ue){var Xe=-1*Ue,It=ht(me,Dt.MinusSign),rn=Xe>0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(ie){case ye.Short:return(Xe>=0?"+":"")+sn(rn,2,It)+sn(Math.abs(Xe%60),2,It);case ye.ShortGMT:return"GMT"+(Xe>=0?"+":"")+sn(rn,1,It);case ye.Long:return"GMT"+(Xe>=0?"+":"")+sn(rn,2,It)+":"+sn(Math.abs(Xe%60),2,It);case ye.Extended:return 0===Ue?"Z":(Xe>=0?"+":"")+sn(rn,2,It)+":"+sn(Math.abs(Xe%60),2,It);default:throw new Error('Unknown zone width "'.concat(ie,'"'))}}}!function(ie){ie[ie.Short=0]="Short",ie[ie.ShortGMT=1]="ShortGMT",ie[ie.Long=2]="Long",ie[ie.Extended=3]="Extended"}(ye||(ye={})),function(ie){ie[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day"}(he||(he={})),function(ie){ie[ie.DayPeriods=0]="DayPeriods",ie[ie.Days=1]="Days",ie[ie.Months=2]="Months",ie[ie.Eras=3]="Eras"}(Le||(Le={}));function Et(ie){var ce=ut(ie,0,1).getDay();return ut(ie,0,1+(ce<=4?4:11)-ce)}function We(ie){return ut(ie.getFullYear(),ie.getMonth(),ie.getDate()+(4-ie.getDay()))}function Ye(ie){var ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(me,Ue){var Xe;if(ce){var It=new Date(me.getFullYear(),me.getMonth(),1).getDay()-1,rn=me.getDate();Xe=1+Math.floor((rn+It)/7)}else{var Bn=We(me),lr=Et(Bn.getFullYear()),wr=Bn.getTime()-lr.getTime();Xe=1+Math.round(wr/6048e5)}return sn(Xe,ie,ht(Ue,Dt.MinusSign))}}function Re(ie){var ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(me,Ue){return sn(We(me).getFullYear(),ie,ht(Ue,Dt.MinusSign),ce)}}var Je={};function dn(ie,ce){ie=ie.replace(/:/g,"");var me=Date.parse("Jan 01, 1970 00:00:00 "+ie)/6e4;return isNaN(me)?ce:me}function gt(ie){return ie instanceof Date&&!isNaN(ie.valueOf())}var wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Wn="0";function Va(ie,ce,me,Ue,Xe,It){var rn=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Bn="",lr=!1;if(isFinite(ie)){var wr=na(ie);rn&&(wr=Di(wr));var li=ce.minInt,Qr=ce.minFrac,Do=ce.maxFrac;if(It){var Ra=It.match(wt);if(null===Ra)throw new Error("".concat(It," is not a valid digit info"));var ds=Ra[1],ha=Ra[3],fs=Ra[5];null!=ds&&(li=Gn(ds)),null!=ha&&(Qr=Gn(ha)),null!=fs?Do=Gn(fs):null!=ha&&Qr>Do&&(Do=Qr)}_o(wr,Qr,Do);var Pi=wr.digits,ic=wr.integerLen,bu=wr.exponent,ma=[];for(lr=Pi.every(function(Pv){return!Pv});ic<li;ic++)Pi.unshift(0);for(;ic<0;ic++)Pi.unshift(0);ic>0?ma=Pi.splice(ic,Pi.length):(ma=Pi,Pi=[0]);var Cu=[];for(Pi.length>=ce.lgSize&&Cu.unshift(Pi.splice(-ce.lgSize,Pi.length).join(""));Pi.length>ce.gSize;)Cu.unshift(Pi.splice(-ce.gSize,Pi.length).join(""));Pi.length&&Cu.unshift(Pi.join("")),Bn=Cu.join(ht(me,Ue)),ma.length&&(Bn+=ht(me,Xe)+ma.join("")),bu&&(Bn+=ht(me,Dt.Exponential)+"+"+bu)}else Bn=ht(me,Dt.Infinity);return Bn=ie<0&&!lr?ce.negPre+Bn+ce.negSuf:ce.posPre+Bn+ce.posSuf}function Ca(ie,ce,me,Ue,Xe){var rn=ta(Ut(ce,ge.Currency),ht(ce,Dt.MinusSign));return rn.minFrac=function Jt(ie){var ce,me=de[ie];return me&&(ce=me[2]),"number"==typeof ce?ce:2}(Ue),rn.maxFrac=rn.minFrac,Va(ie,rn,ce,Dt.CurrencyGroup,Dt.CurrencyDecimal,Xe).replace("\xa4",me).replace("\xa4","").trim()}function ta(ie){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",me={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ue=ie.split(";"),Xe=Ue[0],It=Ue[1],rn=-1!==Xe.indexOf(".")?Xe.split("."):[Xe.substring(0,Xe.lastIndexOf(Wn)+1),Xe.substring(Xe.lastIndexOf(Wn)+1)],Bn=rn[0],lr=rn[1]||"";me.posPre=Bn.substring(0,Bn.indexOf("#"));for(var wr=0;wr<lr.length;wr++){var li=lr.charAt(wr);li===Wn?me.minFrac=me.maxFrac=wr+1:"#"===li?me.maxFrac=wr+1:me.posSuf+=li}var Qr=Bn.split(",");if(me.gSize=Qr[1]?Qr[1].length:0,me.lgSize=Qr[2]||Qr[1]?(Qr[2]||Qr[1]).length:0,It){var Do=Xe.length-me.posPre.length-me.posSuf.length,Ra=It.indexOf("#");me.negPre=It.substring(0,Ra).replace(/'/g,""),me.negSuf=It.slice(Ra+Do).replace(/'/g,"")}else me.negPre=ce+me.posPre,me.negSuf=me.posSuf;return me}function Di(ie){if(0===ie.digits[0])return ie;var ce=ie.digits.length-ie.integerLen;return ie.exponent?ie.exponent+=2:(0===ce?ie.digits.push(0,0):1===ce&&ie.digits.push(0),ie.integerLen+=2),ie}function na(ie){var Ue,Xe,It,rn,Bn,ce=Math.abs(ie)+"",me=0;for((Xe=ce.indexOf("."))>-1&&(ce=ce.replace(".","")),(It=ce.search(/e/i))>0?(Xe<0&&(Xe=It),Xe+=+ce.slice(It+1),ce=ce.substring(0,It)):Xe<0&&(Xe=ce.length),It=0;ce.charAt(It)===Wn;It++);if(It===(Bn=ce.length))Ue=[0],Xe=1;else{for(Bn--;ce.charAt(Bn)===Wn;)Bn--;for(Xe-=It,Ue=[],rn=0;It<=Bn;It++,rn++)Ue[rn]=Number(ce.charAt(It))}return Xe>22&&(Ue=Ue.splice(0,21),me=Xe-1,Xe=1),{digits:Ue,exponent:me,integerLen:Xe}}function _o(ie,ce,me){if(ce>me)throw new Error("The minimum number of digits after fraction (".concat(ce,") is higher than the maximum (").concat(me,")."));var Ue=ie.digits,Xe=Ue.length-ie.integerLen,It=Math.min(Math.max(ce,Xe),me),rn=It+ie.integerLen,Bn=Ue[rn];if(rn>0){Ue.splice(Math.max(ie.integerLen,rn));for(var lr=rn;lr<Ue.length;lr++)Ue[lr]=0}else{Xe=Math.max(0,Xe),ie.integerLen=1,Ue.length=Math.max(1,rn=It+1),Ue[0]=0;for(var wr=1;wr<rn;wr++)Ue[wr]=0}if(Bn>=5)if(rn-1<0){for(var li=0;li>rn;li--)Ue.unshift(0),ie.integerLen++;Ue.unshift(1),ie.integerLen++}else Ue[rn-1]++;for(;Xe<Math.max(0,It);Xe++)Ue.push(0);var Qr=0!==It,Do=ce+ie.integerLen,Ra=Ue.reduceRight(function(ds,ha,fs,Pi){return ha+=ds,Pi[fs]=ha<10?ha:ha-10,Qr&&(0===Pi[fs]&&fs>=Do?Pi.pop():Qr=!1),ha>=10?1:0},0);Ra&&(Ue.unshift(Ra),ie.integerLen++)}function Gn(ie){var ce=parseInt(ie);if(isNaN(ce))throw new Error("Invalid integer literal when parsing "+ie);return ce}var vr=(0,P.Z)(function ie(){(0,I.Z)(this,ie)});function fi(ie,ce,me,Ue){var Xe="=".concat(ie);if(ce.indexOf(Xe)>-1||(Xe=me.getPluralCategory(ie,Ue),ce.indexOf(Xe)>-1))return Xe;if(ce.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ie,'"'))}vr.\u0275fac=function(ce){return new(ce||vr)},vr.\u0275prov=T.Yz7({token:vr,factory:function(ce){var Ue,me=null;return ce?me=new ce:(Ue=T.LFG(T.soG),me=new ni(Ue)),me},providedIn:"root"});var ni=function(ie){(0,A.Z)(me,ie);var ce=(0,H.Z)(me);function me(Ue){var Xe;return(0,I.Z)(this,me),(Xe=ce.call(this)).locale=Ue,Xe}return(0,P.Z)(me,[{key:"getPluralCategory",value:function(Xe,It){switch(Be(It||this.locale)(Xe)){case je.Zero:return"zero";case je.One:return"one";case je.Two:return"two";case je.Few:return"few";case je.Many:return"many";default:return"other"}}}]),me}(vr);function ki(ie,ce){ce=encodeURIComponent(ce);var Ue,me=(0,G.Z)(ie.split(";"));try{for(me.s();!(Ue=me.n()).done;){var Xe=Ue.value,It=Xe.indexOf("="),rn=-1==It?[Xe,""]:[Xe.slice(0,It),Xe.slice(It+1)],Bn=(0,W.Z)(rn,2),lr=Bn[0],wr=Bn[1];if(lr.trim()===ce)return decodeURIComponent(wr)}}catch(li){me.e(li)}finally{me.f()}return null}ni.\u0275fac=function(ce){return new(ce||ni)(T.LFG(T.soG))},ni.\u0275prov=T.Yz7({token:ni,factory:ni.\u0275fac});var Yo=function(){function ie(ce,me,Ue,Xe){(0,I.Z)(this,ie),this._iterableDiffers=ce,this._keyValueDiffers=me,this._ngEl=Ue,this._renderer=Xe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,P.Z)(ie,[{key:"klass",set:function(me){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof me?me.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(me){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof me?me.split(/\s+/):me,this._rawClass&&((0,T.sIi)(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 me=this._iterableDiffer.diff(this._rawClass);me&&this._applyIterableChanges(me)}else if(this._keyValueDiffer){var Ue=this._keyValueDiffer.diff(this._rawClass);Ue&&this._applyKeyValueChanges(Ue)}}},{key:"_applyKeyValueChanges",value:function(me){var Ue=this;me.forEachAddedItem(function(Xe){return Ue._toggleClass(Xe.key,Xe.currentValue)}),me.forEachChangedItem(function(Xe){return Ue._toggleClass(Xe.key,Xe.currentValue)}),me.forEachRemovedItem(function(Xe){Xe.previousValue&&Ue._toggleClass(Xe.key,!1)})}},{key:"_applyIterableChanges",value:function(me){var Ue=this;me.forEachAddedItem(function(Xe){if("string"!=typeof Xe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,T.AaK)(Xe.item)));Ue._toggleClass(Xe.item,!0)}),me.forEachRemovedItem(function(Xe){return Ue._toggleClass(Xe.item,!1)})}},{key:"_applyClasses",value:function(me){var Ue=this;me&&(Array.isArray(me)||me instanceof Set?me.forEach(function(Xe){return Ue._toggleClass(Xe,!0)}):Object.keys(me).forEach(function(Xe){return Ue._toggleClass(Xe,!!me[Xe])}))}},{key:"_removeClasses",value:function(me){var Ue=this;me&&(Array.isArray(me)||me instanceof Set?me.forEach(function(Xe){return Ue._toggleClass(Xe,!1)}):Object.keys(me).forEach(function(Xe){return Ue._toggleClass(Xe,!1)}))}},{key:"_toggleClass",value:function(me,Ue){var Xe=this;(me=me.trim())&&me.split(/\s+/g).forEach(function(It){Ue?Xe._renderer.addClass(Xe._ngEl.nativeElement,It):Xe._renderer.removeClass(Xe._ngEl.nativeElement,It)})}}]),ie}();Yo.\u0275fac=function(ce){return new(ce||Yo)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},Yo.\u0275dir=T.lG2({type:Yo,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var ri=function(){function ie(ce){(0,I.Z)(this,ie),this._viewContainerRef=ce,this.ngComponentOutlet=null}return(0,P.Z)(ie,[{key:"ngOnChanges",value:function(me){var Ue=this._viewContainerRef,Xe=this.ngComponentOutletNgModule,It=this.ngComponentOutletNgModuleFactory;if(Ue.clear(),this._componentRef=void 0,this.ngComponentOutlet){var rn=this.ngComponentOutletInjector||Ue.parentInjector;(me.ngComponentOutletNgModule||me.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Xe?(0,T.Lck)(Xe,So(rn)):It?It.create(So(rn)):void 0),this._componentRef=Ue.createComponent(this.ngComponentOutlet,{index:Ue.length,injector:rn,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ie}();function So(ie){return ie.get(T.h0i).injector}ri.\u0275fac=function(ce){return new(ce||ri)(T.Y36(T.s_b))},ri.\u0275dir=T.lG2({type:ri,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[T.TTD]});var xr=function(){function ie(ce,me,Ue,Xe){(0,I.Z)(this,ie),this.$implicit=ce,this.ngForOf=me,this.index=Ue,this.count=Xe}return(0,P.Z)(ie,[{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}}]),ie}(),Vi=function(){function ie(ce,me,Ue){(0,I.Z)(this,ie),this._viewContainer=ce,this._template=me,this._differs=Ue,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,P.Z)(ie,[{key:"ngForOf",set:function(me){this._ngForOf=me,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(me){this._trackByFn=me}},{key:"ngForTemplate",set:function(me){me&&(this._template=me)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var me=this._ngForOf;if(!this._differ&&me)this._differ=this._differs.find(me).create(this.ngForTrackBy)}if(this._differ){var Xe=this._differ.diff(this._ngForOf);Xe&&this._applyChanges(Xe)}}},{key:"_applyChanges",value:function(me){var Ue=this,Xe=this._viewContainer;me.forEachOperation(function(wr,li,Qr){if(null==wr.previousIndex)Xe.createEmbeddedView(Ue._template,new xr(wr.item,Ue._ngForOf,-1,-1),null===Qr?void 0:Qr);else if(null==Qr)Xe.remove(null===li?void 0:li);else if(null!==li){var Do=Xe.get(li);Xe.move(Do,Qr),Eo(Do,wr)}});for(var It=0,rn=Xe.length;It<rn;It++){var lr=Xe.get(It).context;lr.index=It,lr.count=rn,lr.ngForOf=this._ngForOf}me.forEachIdentityChange(function(wr){Eo(Xe.get(wr.currentIndex),wr)})}}],[{key:"ngTemplateContextGuard",value:function(me,Ue){return!0}}]),ie}();function Eo(ie,ce){ie.context.$implicit=ce.item}Vi.\u0275fac=function(ce){return new(ce||Vi)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},Vi.\u0275dir=T.lG2({type:Vi,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var ra=function(){function ie(ce,me){(0,I.Z)(this,ie),this._viewContainer=ce,this._context=new lo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=me}return(0,P.Z)(ie,[{key:"ngIf",set:function(me){this._context.$implicit=this._context.ngIf=me,this._updateView()}},{key:"ngIfThen",set:function(me){da("ngIfThen",me),this._thenTemplateRef=me,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(me){da("ngIfElse",me),this._elseTemplateRef=me,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(me,Ue){return!0}}]),ie}();ra.\u0275fac=function(ce){return new(ce||ra)(T.Y36(T.s_b),T.Y36(T.Rgc))},ra.\u0275dir=T.lG2({type:ra,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var lo=(0,P.Z)(function ie(){(0,I.Z)(this,ie),this.$implicit=null,this.ngIf=null});function da(ie,ce){if(!!(ce&&!ce.createEmbeddedView))throw new Error("".concat(ie," must be a TemplateRef, but received '").concat((0,T.AaK)(ce),"'."))}var Ya=function(){function ie(ce,me){(0,I.Z)(this,ie),this._viewContainerRef=ce,this._templateRef=me,this._created=!1}return(0,P.Z)(ie,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}]),ie}(),uo=function(){function ie(){(0,I.Z)(this,ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,P.Z)(ie,[{key:"ngSwitch",set:function(me){this._ngSwitch=me,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(me){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(me)}},{key:"_matchCase",value:function(me){var Ue=me==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ue,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ue}},{key:"_updateDefaultCases",value:function(me){if(this._defaultViews&&me!==this._defaultUsed){this._defaultUsed=me;for(var Ue=0;Ue<this._defaultViews.length;Ue++){this._defaultViews[Ue].enforceState(me)}}}}]),ie}();uo.\u0275fac=function(ce){return new(ce||uo)},uo.\u0275dir=T.lG2({type:uo,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var Ui=function(){function ie(ce,me,Ue){(0,I.Z)(this,ie),this.ngSwitch=Ue,Ue._addCase(),this._view=new Ya(ce,me)}return(0,P.Z)(ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ie}();Ui.\u0275fac=function(ce){return new(ce||Ui)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(uo,9))},Ui.\u0275dir=T.lG2({type:Ui,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});var Ks=(0,P.Z)(function ie(ce,me,Ue){(0,I.Z)(this,ie),Ue._addDefault(new Ya(ce,me))});Ks.\u0275fac=function(ce){return new(ce||Ks)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(uo,9))},Ks.\u0275dir=T.lG2({type:Ks,selectors:[["","ngSwitchDefault",""]],standalone:!0});var Ko=function(){function ie(ce){(0,I.Z)(this,ie),this._localization=ce,this._caseViews={}}return(0,P.Z)(ie,[{key:"ngPlural",set:function(me){this._switchValue=me,this._updateView()}},{key:"addCase",value:function(me,Ue){this._caseViews[me]=Ue}},{key:"_updateView",value:function(){this._clearViews();var me=Object.keys(this._caseViews),Ue=fi(this._switchValue,me,this._localization);this._activateView(this._caseViews[Ue])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(me){me&&(this._activeView=me,this._activeView.create())}}]),ie}();Ko.\u0275fac=function(ce){return new(ce||Ko)(T.Y36(vr))},Ko.\u0275dir=T.lG2({type:Ko,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});var $u=(0,P.Z)(function ie(ce,me,Ue,Xe){(0,I.Z)(this,ie),this.value=ce;var It=!isNaN(Number(ce));Xe.addCase(It?"=".concat(ce):ce,new Ya(Ue,me))});$u.\u0275fac=function(ce){return new(ce||$u)(T.$8M("ngPluralCase"),T.Y36(T.Rgc),T.Y36(T.s_b),T.Y36(Ko,1))},$u.\u0275dir=T.lG2({type:$u,selectors:[["","ngPluralCase",""]],standalone:!0});var to=function(){function ie(ce,me,Ue){(0,I.Z)(this,ie),this._ngEl=ce,this._differs=me,this._renderer=Ue,this._ngStyle=null,this._differ=null}return(0,P.Z)(ie,[{key:"ngStyle",set:function(me){this._ngStyle=me,!this._differ&&me&&(this._differ=this._differs.find(me).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var me=this._differ.diff(this._ngStyle);me&&this._applyChanges(me)}}},{key:"_setStyle",value:function(me,Ue){var Xe=me.split("."),It=(0,W.Z)(Xe,2),rn=It[0],Bn=It[1],lr=-1===rn.indexOf("-")?void 0:T.JOm.DashCase;null!=Ue?this._renderer.setStyle(this._ngEl.nativeElement,rn,Bn?"".concat(Ue).concat(Bn):Ue,lr):this._renderer.removeStyle(this._ngEl.nativeElement,rn,lr)}},{key:"_applyChanges",value:function(me){var Ue=this;me.forEachRemovedItem(function(Xe){return Ue._setStyle(Xe.key,null)}),me.forEachAddedItem(function(Xe){return Ue._setStyle(Xe.key,Xe.currentValue)}),me.forEachChangedItem(function(Xe){return Ue._setStyle(Xe.key,Xe.currentValue)})}}]),ie}();to.\u0275fac=function(ce){return new(ce||to)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},to.\u0275dir=T.lG2({type:to,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Ai=function(){function ie(ce){(0,I.Z)(this,ie),this._viewContainerRef=ce,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}return(0,P.Z)(ie,[{key:"ngOnChanges",value:function(me){if(me.ngTemplateOutlet||me.ngTemplateOutletInjector){var Ue=this._viewContainerRef;if(this._viewRef&&Ue.remove(Ue.indexOf(this._viewRef)),this.ngTemplateOutlet){var Xe=this.ngTemplateOutlet,It=this.ngTemplateOutletContext,rn=this.ngTemplateOutletInjector;this._viewRef=Ue.createEmbeddedView(Xe,It,rn?{injector:rn}:void 0)}else this._viewRef=null}else this._viewRef&&me.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ie}();Ai.\u0275fac=function(ce){return new(ce||Ai)(T.Y36(T.s_b))},Ai.\u0275dir=T.lG2({type:Ai,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[T.TTD]});function Yi(ie,ce){return new T.vHH(2100,!1)}var tn=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"createSubscription",value:function(me,Ue){return me.subscribe({next:Ue,error:function(It){throw It}})}},{key:"dispose",value:function(me){me.unsubscribe()}}]),ie}(),en=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"createSubscription",value:function(me,Ue){return me.then(Ue,function(Xe){throw Xe})}},{key:"dispose",value:function(me){}}]),ie}(),Dr=new en,no=new tn,Ki=function(){function ie(ce){(0,I.Z)(this,ie),this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ce}return(0,P.Z)(ie,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose(),this._ref=null}},{key:"transform",value:function(me){return this._obj?me!==this._obj?(this._dispose(),this.transform(me)):this._latestValue:(me&&this._subscribe(me),this._latestValue)}},{key:"_subscribe",value:function(me){var Ue=this;this._obj=me,this._strategy=this._selectStrategy(me),this._subscription=this._strategy.createSubscription(me,function(Xe){return Ue._updateLatestValue(me,Xe)})}},{key:"_selectStrategy",value:function(me){if((0,T.QGY)(me))return Dr;if((0,T.F4k)(me))return no;throw Yi()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(me,Ue){me===this._obj&&(this._latestValue=Ue,this._ref.markForCheck())}}]),ie}();Ki.\u0275fac=function(ce){return new(ce||Ki)(T.Y36(T.sBO,16))},Ki.\u0275pipe=T.Yjl({name:"async",type:Ki,pure:!1,standalone:!0});var qo=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Yi();return me.toLowerCase()}}]),ie}();qo.\u0275fac=function(ce){return new(ce||qo)},qo.\u0275pipe=T.Yjl({name:"lowercase",type:qo,pure:!0,standalone:!0});var Ti=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,ro=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Yi();return me.replace(Ti,function(Ue){return Ue[0].toUpperCase()+Ue.slice(1).toLowerCase()})}}]),ie}();ro.\u0275fac=function(ce){return new(ce||ro)},ro.\u0275pipe=T.Yjl({name:"titlecase",type:ro,pure:!0,standalone:!0});var Rn=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Yi();return me.toUpperCase()}}]),ie}();Rn.\u0275fac=function(ce){return new(ce||Rn)},Rn.\u0275pipe=T.Yjl({name:"uppercase",type:Rn,pure:!0,standalone:!0});var hu=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Jr=function(){function ie(ce,me){(0,I.Z)(this,ie),this.locale=ce,this.defaultTimezone=me}return(0,P.Z)(ie,[{key:"transform",value:function(me){var rn,Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",Xe=arguments.length>2?arguments[2]:void 0,It=arguments.length>3?arguments[3]:void 0;if(null==me||""===me||me!=me)return null;try{return lt(me,Ue,It||this.locale,null!==(rn=null!=Xe?Xe:this.defaultTimezone)&&void 0!==rn?rn:void 0)}catch(Bn){throw Yi(0,Bn.message)}}}]),ie}();Jr.\u0275fac=function(ce){return new(ce||Jr)(T.Y36(T.soG,16),T.Y36(hu,24))},Jr.\u0275pipe=T.Yjl({name:"date",type:Jr,pure:!0,standalone:!0});var Yn=/#/g,An=function(){function ie(ce){(0,I.Z)(this,ie),this._localization=ce}return(0,P.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return"";if("object"!=typeof Ue||null===Ue)throw Yi();return Ue[fi(me,Object.keys(Ue),this._localization,Xe)].replace(Yn,me.toString())}}]),ie}();An.\u0275fac=function(ce){return new(ce||An)(T.Y36(vr,16))},An.\u0275pipe=T.Yjl({name:"i18nPlural",type:An,pure:!0,standalone:!0});var cn=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me,Ue){if(null==me)return"";if("object"!=typeof Ue||"string"!=typeof me)throw Yi();return Ue.hasOwnProperty(me)?Ue[me]:Ue.hasOwnProperty("other")?Ue.other:""}}]),ie}();cn.\u0275fac=function(ce){return new(ce||cn)},cn.\u0275pipe=T.Yjl({name:"i18nSelect",type:cn,pure:!0,standalone:!0});var qi=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me){return JSON.stringify(me,null,2)}}]),ie}();function Oi(ie,ce){return{key:ie,value:ce}}qi.\u0275fac=function(ce){return new(ce||qi)},qi.\u0275pipe=T.Yjl({name:"json",type:qi,pure:!1,standalone:!0});var Ji=function(){function ie(ce){(0,I.Z)(this,ie),this.differs=ce,this.keyValues=[],this.compareFn=Ii}return(0,P.Z)(ie,[{key:"transform",value:function(me){var Ue=this,Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ii;if(!me||!(me instanceof Map)&&"object"!=typeof me)return null;this.differ||(this.differ=this.differs.find(me).create());var It=this.differ.diff(me),rn=Xe!==this.compareFn;return It&&(this.keyValues=[],It.forEachItem(function(Bn){Ue.keyValues.push(Oi(Bn.key,Bn.currentValue))})),(It||rn)&&(this.keyValues.sort(Xe),this.compareFn=Xe),this.keyValues}}]),ie}();function Ii(ie,ce){var me=ie.key,Ue=ce.key;if(me===Ue)return 0;if(void 0===me)return 1;if(void 0===Ue)return-1;if(null===me)return 1;if(null===Ue)return-1;if("string"==typeof me&&"string"==typeof Ue)return me<Ue?-1:1;if("number"==typeof me&&"number"==typeof Ue)return me-Ue;if("boolean"==typeof me&&"boolean"==typeof Ue)return me<Ue?-1:1;var Xe=String(me),It=String(Ue);return Xe==It?0:Xe<It?-1:1}Ji.\u0275fac=function(ce){return new(ce||Ji)(T.Y36(T.aQg,16))},Ji.\u0275pipe=T.Yjl({name:"keyvalue",type:Ji,pure:!1,standalone:!0});var oi=function(){function ie(ce){(0,I.Z)(this,ie),this._locale=ce}return(0,P.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(!hr(me))return null;Xe=Xe||this._locale;try{return function ls(ie,ce,me){return Va(ie,ta(Ut(ce,ge.Decimal),ht(ce,Dt.MinusSign)),ce,Dt.Group,Dt.Decimal,me)}(co(me),Xe,Ue)}catch(rn){throw Yi(0,rn.message)}}}]),ie}();oi.\u0275fac=function(ce){return new(ce||oi)(T.Y36(T.soG,16))},oi.\u0275pipe=T.Yjl({name:"number",type:oi,pure:!0,standalone:!0});var Mi=function(){function ie(ce){(0,I.Z)(this,ie),this._locale=ce}return(0,P.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(!hr(me))return null;Xe=Xe||this._locale;try{return function wa(ie,ce,me){return Va(ie,ta(Ut(ce,ge.Percent),ht(ce,Dt.MinusSign)),ce,Dt.Group,Dt.Decimal,me,!0).replace(new RegExp("%","g"),ht(ce,Dt.PercentSign))}(co(me),Xe,Ue)}catch(rn){throw Yi(0,rn.message)}}}]),ie}();Mi.\u0275fac=function(ce){return new(ce||Mi)(T.Y36(T.soG,16))},Mi.\u0275pipe=T.Yjl({name:"percent",type:Mi,pure:!0,standalone:!0});var Hi=function(){function ie(ce){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,I.Z)(this,ie),this._locale=ce,this._defaultCurrencyCode=me}return(0,P.Z)(ie,[{key:"transform",value:function(me){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,Xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",It=arguments.length>3?arguments[3]:void 0,rn=arguments.length>4?arguments[4]:void 0;if(!hr(me))return null;rn=rn||this._locale,"boolean"==typeof Xe&&(Xe=Xe?"symbol":"code");var Bn=Ue||this._defaultCurrencyCode;"code"!==Xe&&(Bn="symbol"===Xe||"symbol-narrow"===Xe?vn(Bn,"symbol"===Xe?"wide":"narrow",rn):Xe);try{var lr=co(me);return Ca(lr,rn,Bn,Ue,It)}catch(wr){throw Yi(0,wr.message)}}}]),ie}();function hr(ie){return!(null==ie||""===ie||ie!=ie)}function co(ie){if("string"==typeof ie&&!isNaN(Number(ie)-parseFloat(ie)))return Number(ie);if("number"!=typeof ie)throw new Error("".concat(ie," is not a number"));return ie}Hi.\u0275fac=function(ce){return new(ce||Hi)(T.Y36(T.soG,16),T.Y36(T.EJc,16))},Hi.\u0275pipe=T.Yjl({name:"currency",type:Hi,pure:!0,standalone:!0});var fa=function(){function ie(){(0,I.Z)(this,ie)}return(0,P.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return null;if(!this.supports(me))throw Yi();return me.slice(Ue,Xe)}},{key:"supports",value:function(me){return"string"==typeof me||Array.isArray(me)}}]),ie}();fa.\u0275fac=function(ce){return new(ce||fa)},fa.\u0275pipe=T.Yjl({name:"slice",type:fa,pure:!1,standalone:!0});var go=(0,P.Z)(function ie(){(0,I.Z)(this,ie)});go.\u0275fac=function(ce){return new(ce||go)},go.\u0275mod=T.oAB({type:go}),go.\u0275inj=T.cJS({});var fo="browser";function qa(ie){return ie===fo}new T.GfV("14.3.0");var xc=(0,P.Z)(function ie(){(0,I.Z)(this,ie)});xc.\u0275prov=(0,T.Yz7)({token:xc,providedIn:"root",factory:function(){return new Br((0,T.LFG)(w),window)}});var Br=function(){function ie(ce,me){(0,I.Z)(this,ie),this.document=ce,this.window=me,this.offset=function(){return[0,0]}}return(0,P.Z)(ie,[{key:"setOffset",value:function(me){Array.isArray(me)?this.offset=function(){return me}:this.offset=me}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}},{key:"scrollToAnchor",value:function(me){if(this.supportsScrolling()){var Ue=function ml(ie,ce){var me=ie.getElementById(ce)||ie.getElementsByName(ce)[0];if(me)return me;if("function"==typeof ie.createTreeWalker&&ie.body&&(ie.body.createShadowRoot||ie.body.attachShadow))for(var Ue=ie.createTreeWalker(ie.body,NodeFilter.SHOW_ELEMENT),Xe=Ue.currentNode;Xe;){var It=Xe.shadowRoot;if(It){var rn=It.getElementById(ce)||It.querySelector('[name="'.concat(ce,'"]'));if(rn)return rn}Xe=Ue.nextNode()}return null}(this.document,me);Ue&&(this.scrollToElement(Ue),Ue.focus())}}},{key:"setHistoryScrollRestoration",value:function(me){if(this.supportScrollRestoration()){var Ue=this.window.history;Ue&&Ue.scrollRestoration&&(Ue.scrollRestoration=me)}}},{key:"scrollToElement",value:function(me){var Ue=me.getBoundingClientRect(),Xe=Ue.left+this.window.pageXOffset,It=Ue.top+this.window.pageYOffset,rn=this.offset();this.window.scrollTo(Xe-rn[0],It-rn[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var me=_u(this.window.history)||_u(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch(Ue){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(me){return!1}}}]),ie}();function _u(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}var _l=(0,P.Z)(function ie(){(0,I.Z)(this,ie)});function gu(ie,ce){return po(ie)?new URL(ie):new URL(ie,ce.location.href)}function po(ie){return/^https?:\/\//.test(ie)}function ks(ie){return po(ie)?new URL(ie).hostname:ie}function xo(ie){return ie.startsWith("/")?ie.slice(1):ie}var vu=function(ce){return ce.src},qs=new T.OlP("ImageLoader",{providedIn:"root",factory:function(){return vu}});function pa(ie,ce){return function(Ue){(function Ul(ie){if("string"!=typeof ie||""===ie.trim())return!1;try{return new URL(ie),!0}catch(Ue){return!1}})(Ue)||function jo(ie,ce){throw new T.vHH(2959,!1)}(),Ue=function Dc(ie){return ie.endsWith("/")?ie.slice(0,-1):ie}(Ue);return[{provide:qs,useValue:function(Bn){return po(Bn.src)&&function bd(ie,ce){throw new T.vHH(2959,!1)}(0,Bn.src),ie(Ue,Object.assign(Object.assign({},Bn),{src:xo(Bn.src)}))}}]}}pa(function Xm(ie,ce){var me="format=auto";return ce.width&&(me+=",width=".concat(ce.width)),"".concat(ie,"/cdn-cgi/image/").concat(me,"/").concat(ce.src)});pa(function us(ie,ce){var me="f_auto,q_auto";return ce.width&&(me+=",w_".concat(ce.width)),"".concat(ie,"/image/upload/").concat(me,"/").concat(ce.src)});pa(function Js(ie,ce){var me="tr:q-auto";return ce.width&&(me+=",w-".concat(ce.width)),"".concat(ie,"/").concat(me,"/").concat(ce.src)});pa(function ke(ie,ce){var me=new URL("".concat(ie,"/").concat(ce.src));return me.searchParams.set("auto","format"),ce.width&&me.searchParams.set("w",ce.width.toString()),me.href});function se(ie){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],me=ce?'(activated on an <img> element with the `ngSrc="'.concat(ie,'"`) '):"";return"The NgOptimizedImage directive ".concat(me,"has detected that")}function Me(ie){throw new T.vHH(2958,"Unexpected invocation of the ".concat(ie," in the prod mode. ")+"Please make sure that the prod mode is enabled for production builds.")}var Oe=function(){function ie(){(0,I.Z)(this,ie),this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,Me("LCP checker");var ce=(0,T.f3M)(w).defaultView;void 0!==ce&&"undefined"!=typeof PerformanceObserver&&(this.window=ce,this.observer=this.initPerformanceObserver())}return(0,P.Z)(ie,[{key:"initPerformanceObserver",value:function(){var me=this,Ue=new PerformanceObserver(function(Xe){var It,rn,Bn=Xe.getEntries();if(0!==Bn.length){var wr=null!==(rn=null===(It=Bn[Bn.length-1].element)||void 0===It?void 0:It.src)&&void 0!==rn?rn:"";if(!wr.startsWith("data:")&&!wr.startsWith("blob:"))me.images.get(wr)&&!me.alreadyWarned.has(wr)&&(me.alreadyWarned.add(wr),function pt(ie){var ce=se(ie);console.warn((0,T.kuF)(2955,"".concat(ce," this image is the Largest Contentful Paint (LCP) ")+'element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.'))}(wr))}});return Ue.observe({type:"largest-contentful-paint",buffered:!0}),Ue}},{key:"registerImage",value:function(me,Ue){!this.observer||this.images.set(gu(me,this.window).href,Ue)}},{key:"unregisterImage",value:function(me){!this.observer||this.images.delete(gu(me,this.window).href)}},{key:"ngOnDestroy",value:function(){!this.observer||(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}]),ie}();Oe.\u0275fac=function(ce){return new(ce||Oe)},Oe.\u0275prov=T.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});var Yt=new Set(["localhost","127.0.0.1","0.0.0.0"]),Pn=new T.OlP("PRECONNECT_CHECK_BLOCKLIST"),Qn=function(){function ie(){(0,I.Z)(this,ie),this.document=(0,T.f3M)(w),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(Yt),Me("preconnect link checker");var ce=this.document.defaultView;void 0!==ce&&(this.window=ce);var me=(0,T.f3M)(Pn,{optional:!0});me&&this.populateBlocklist(me)}return(0,P.Z)(ie,[{key:"populateBlocklist",value:function(me){var Ue=this;Array.isArray(me)?Qs(me,function(Xe){Ue.blocklist.add(ks(Xe))}):this.blocklist.add(ks(me))}},{key:"assertPreconnect",value:function(me,Ue){if(this.window){var Xe=gu(me,this.window);this.blocklist.has(Xe.hostname)||this.alreadySeen.has(Xe.origin)||(this.alreadySeen.add(Xe.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(Xe.origin)||console.warn((0,T.kuF)(2956,"".concat(se(Ue)," there is no preconnect tag present for this ")+"image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n"+' <link rel="preconnect" href="'.concat(Xe.origin,'">'))))}}},{key:"queryPreconnectLinks",value:function(){for(var me=new Set,It=0,rn=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));It<rn.length;It++){var lr=gu(rn[It].href,this.window);me.add(lr.origin)}return me}},{key:"ngOnDestroy",value:function(){var me;null===(me=this.preconnectLinks)||void 0===me||me.clear(),this.alreadySeen.clear()}}]),ie}();function Qs(ie,ce){var Ue,me=(0,G.Z)(ie);try{for(me.s();!(Ue=me.n()).done;){var Xe=Ue.value;Array.isArray(Xe)?Qs(Xe,ce):ce(Xe)}}catch(It){me.e(It)}finally{me.f()}}Qn.\u0275fac=function(ce){return new(ce||Qn)},Qn.\u0275prov=T.Yz7({token:Qn,factory:Qn.\u0275fac,providedIn:"root"});var Go=new T.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}}),Xs=function(){function ie(){(0,I.Z)(this,ie),this.preloadedImages=(0,T.f3M)(Go),this.document=(0,T.f3M)(w)}return(0,P.Z)(ie,[{key:"createPreloadLinkTag",value:function(me,Ue,Xe,It){if(!this.preloadedImages.has(Ue)){this.preloadedImages.add(Ue);var rn=me.createElement("link");me.setAttribute(rn,"as","image"),me.setAttribute(rn,"href",Ue),me.setAttribute(rn,"rel","preload"),me.setAttribute(rn,"fetchpriority","high"),It&&me.setAttribute(rn,"imageSizes",It),Xe&&me.setAttribute(rn,"imageSrcset",Xe),me.appendChild(this.document.head,rn)}}}]),ie}();Xs.\u0275fac=function(ce){return new(ce||Xs)},Xs.\u0275prov=T.Yz7({token:Xs,factory:Xs.\u0275fac,providedIn:"root"});var Qa=/^((\s*\d+w\s*(,|$)){1,})$/,$m=[1,2],Es={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},gl=new T.OlP("ImageConfig",{providedIn:"root",factory:function(){return Es}}),Cd=function(){function ie(){(0,I.Z)(this,ie),this.imageLoader=(0,T.f3M)(qs),this.config=function Ma(ie){var ce={};return ie.breakpoints&&(ce.breakpoints=ie.breakpoints.sort(function(me,Ue){return me-Ue})),Object.assign({},Es,ie,ce)}((0,T.f3M)(gl)),this.renderer=(0,T.f3M)(T.Qsj),this.imgElement=(0,T.f3M)(T.SBq).nativeElement,this.injector=(0,T.f3M)(T.zs3),this.isServer=function Jo(ie){return"server"===ie}((0,T.f3M)(T.Lbi)),this.preloadLinkChecker=(0,T.f3M)(Xs),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}return(0,P.Z)(ie,[{key:"width",get:function(){return this._width},set:function(me){this._width=wd(me)}},{key:"height",get:function(){return this._height},set:function(me){this._height=wd(me)}},{key:"priority",get:function(){return this._priority},set:function(me){this._priority=vl(me)}},{key:"disableOptimizedSrcset",get:function(){return this._disableOptimizedSrcset},set:function(me){this._disableOptimizedSrcset=vl(me)}},{key:"fill",get:function(){return this._fill},set:function(me){this._fill=vl(me)}},{key:"ngOnInit",value:function(){this.setHostAttributes()}},{key:"setHostAttributes",value:function(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");var me=this.getRewrittenSrc();this.setHostAttribute("src",me);var Ue=void 0;this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?Ue=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(Ue=this.getAutomaticSrcset()),Ue&&this.setHostAttribute("srcset",Ue),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,me,Ue,this.sizes)}},{key:"ngOnChanges",value:function(me){}},{key:"callImageLoader",value:function(me){var Ue=me;return this.loaderParams&&(Ue.loaderParams=this.loaderParams),this.imageLoader(Ue)}},{key:"getLoadingBehavior",value:function(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}},{key:"getFetchPriority",value:function(){return this.priority?"high":"auto"}},{key:"getRewrittenSrc",value:function(){if(!this._renderedSrc){var me={src:this.ngSrc};this._renderedSrc=this.callImageLoader(me)}return this._renderedSrc}},{key:"getRewrittenSrcset",value:function(){var me=this,Ue=Qa.test(this.ngSrcset);return this.ngSrcset.split(",").filter(function(It){return""!==It}).map(function(It){It=It.trim();var rn=Ue?parseFloat(It):parseFloat(It)*me.width;return"".concat(me.callImageLoader({src:me.ngSrc,width:rn})," ").concat(It)}).join(", ")}},{key:"getAutomaticSrcset",value:function(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}},{key:"getResponsiveSrcset",value:function(){var Ue,me=this,Xe=this.config.breakpoints,It=Xe;return"100vw"===(null===(Ue=this.sizes)||void 0===Ue?void 0:Ue.trim())&&(It=Xe.filter(function(Bn){return Bn>=640})),It.map(function(Bn){return"".concat(me.callImageLoader({src:me.ngSrc,width:Bn})," ").concat(Bn,"w")}).join(", ")}},{key:"getFixedSrcset",value:function(){var me=this;return $m.map(function(Xe){var It=me.callImageLoader({src:me.ngSrc,width:me.width*Xe});return"".concat(It," ").concat(Xe,"x")}).join(", ")}},{key:"shouldGenerateAutomaticSrcset",value:function(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==vu&&!(this.width>1920||this.height>1080)}},{key:"ngOnDestroy",value:function(){}},{key:"setHostAttribute",value:function(me,Ue){this.renderer.setAttribute(this.imgElement,me,Ue)}}]),ie}();function wd(ie){return"string"==typeof ie?parseInt(ie,10):ie}function vl(ie){return null!=ie&&"false"!=="".concat(ie)}Cd.\u0275fac=function(ce){return new(ce||Cd)},Cd.\u0275dir=T.lG2({type:Cd,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(ce,me){2&ce&&T.Udp("position",me.fill?"absolute":null)("width",me.fill?"100%":null)("height",me.fill?"100%":null)("inset",me.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[T.TTD]})},520:function(Ae,K,m){"use strict";m.d(K,{JF:function(){return Jt},LE:function(){return V},TP:function(){return Ft},UA:function(){return Dt},WM:function(){return b},eN:function(){return Ze}});var G=m(136),W=m(9388),A=m(7685),H=m(4902),P=m(3144),I=m(5671),T=m(9808),E=m(5e3),j=m(1086),R=m(7451),v=m(1406),x=m(9664),w=m(4850),Z=(0,P.Z)(function ne(){(0,I.Z)(this,ne)}),D=(0,P.Z)(function ne(){(0,I.Z)(this,ne)}),b=function(){function ne(ye){var he=this;(0,I.Z)(this,ne),this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?function(){he.headers=new Map,ye.split("\n").forEach(function(Le){var lt=Le.indexOf(":");if(lt>0){var ut=Le.slice(0,lt),Nt=ut.toLowerCase(),jt=Le.slice(lt+1).trim();he.maybeSetNormalizedName(ut,Nt),he.headers.has(Nt)?he.headers.get(Nt).push(jt):he.headers.set(Nt,[jt])}})}:function(){he.headers=new Map,Object.keys(ye).forEach(function(Le){var lt=ye[Le],ut=Le.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(he.headers.set(ut,lt),he.maybeSetNormalizedName(Le,ut))})}:this.headers=new Map}return(0,P.Z)(ne,[{key:"has",value:function(he){return this.init(),this.headers.has(he.toLowerCase())}},{key:"get",value:function(he){this.init();var Le=this.headers.get(he.toLowerCase());return Le&&Le.length>0?Le[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(he){return this.init(),this.headers.get(he.toLowerCase())||null}},{key:"append",value:function(he,Le){return this.clone({name:he,value:Le,op:"a"})}},{key:"set",value:function(he,Le){return this.clone({name:he,value:Le,op:"s"})}},{key:"delete",value:function(he,Le){return this.clone({name:he,value:Le,op:"d"})}},{key:"maybeSetNormalizedName",value:function(he,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,he)}},{key:"init",value:function(){var he=this;this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Le){return he.applyUpdate(Le)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(he){var Le=this;he.init(),Array.from(he.headers.keys()).forEach(function(lt){Le.headers.set(lt,he.headers.get(lt)),Le.normalizedNames.set(lt,he.normalizedNames.get(lt))})}},{key:"clone",value:function(he){var Le=new ne;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([he]),Le}},{key:"applyUpdate",value:function(he){var Le=he.name.toLowerCase();switch(he.op){case"a":case"s":var lt=he.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(he.name,Le);var ut=("a"===he.op?this.headers.get(Le):void 0)||[];ut.push.apply(ut,(0,H.Z)(lt)),this.headers.set(Le,ut);break;case"d":var Nt=he.value;if(Nt){var jt=this.headers.get(Le);if(!jt)return;0===(jt=jt.filter(function(sn){return-1===Nt.indexOf(sn)})).length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,jt)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}},{key:"forEach",value:function(he){var Le=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(lt){return he(Le.normalizedNames.get(lt),Le.headers.get(lt))})}}]),ne}();var k=function(){function ne(){(0,I.Z)(this,ne)}return(0,P.Z)(ne,[{key:"encodeKey",value:function(he){return X(he)}},{key:"encodeValue",value:function(he){return X(he)}},{key:"decodeKey",value:function(he){return decodeURIComponent(he)}},{key:"decodeValue",value:function(he){return decodeURIComponent(he)}}]),ne}();function M(ne,ye){var he=new Map;ne.length>0&&ne.replace(/^\?/,"").split("&").forEach(function(lt){var ut=lt.indexOf("="),Nt=-1==ut?[ye.decodeKey(lt),""]:[ye.decodeKey(lt.slice(0,ut)),ye.decodeValue(lt.slice(ut+1))],jt=(0,A.Z)(Nt,2),sn=jt[0],yn=jt[1],ln=he.get(sn)||[];ln.push(yn),he.set(sn,ln)});return he}var N=/%(\d[a-f0-9])/gi,F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X(ne){return encodeURIComponent(ne).replace(N,function(ye,he){var Le;return null!==(Le=F[he])&&void 0!==Le?Le:ye})}function $(ne){return"".concat(ne)}var V=function(){function ne(){var ye=this,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,I.Z)(this,ne),this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new k,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=M(he.fromString,this.encoder)}else he.fromObject?(this.map=new Map,Object.keys(he.fromObject).forEach(function(Le){var lt=he.fromObject[Le],ut=Array.isArray(lt)?lt.map($):[$(lt)];ye.map.set(Le,ut)})):this.map=null}return(0,P.Z)(ne,[{key:"has",value:function(he){return this.init(),this.map.has(he)}},{key:"get",value:function(he){this.init();var Le=this.map.get(he);return Le?Le[0]:null}},{key:"getAll",value:function(he){return this.init(),this.map.get(he)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(he,Le){return this.clone({param:he,value:Le,op:"a"})}},{key:"appendAll",value:function(he){var Le=[];return Object.keys(he).forEach(function(lt){var ut=he[lt];Array.isArray(ut)?ut.forEach(function(Nt){Le.push({param:lt,value:Nt,op:"a"})}):Le.push({param:lt,value:ut,op:"a"})}),this.clone(Le)}},{key:"set",value:function(he,Le){return this.clone({param:he,value:Le,op:"s"})}},{key:"delete",value:function(he,Le){return this.clone({param:he,value:Le,op:"d"})}},{key:"toString",value:function(){var he=this;return this.init(),this.keys().map(function(Le){var lt=he.encoder.encodeKey(Le);return he.map.get(Le).map(function(ut){return lt+"="+he.encoder.encodeValue(ut)}).join("&")}).filter(function(Le){return""!==Le}).join("&")}},{key:"clone",value:function(he){var Le=new ne({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(he),Le}},{key:"init",value:function(){var he=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Le){return he.map.set(Le,he.cloneFrom.map.get(Le))}),this.updates.forEach(function(Le){switch(Le.op){case"a":case"s":var lt=("a"===Le.op?he.map.get(Le.param):void 0)||[];lt.push($(Le.value)),he.map.set(Le.param,lt);break;case"d":if(void 0===Le.value){he.map.delete(Le.param);break}var ut=he.map.get(Le.param)||[],Nt=ut.indexOf($(Le.value));-1!==Nt&&ut.splice(Nt,1),ut.length>0?he.map.set(Le.param,ut):he.map.delete(Le.param)}}),this.cloneFrom=this.updates=null)}}]),ne}(),te=function(){function ne(){(0,I.Z)(this,ne),this.map=new Map}return(0,P.Z)(ne,[{key:"set",value:function(he,Le){return this.map.set(he,Le),this}},{key:"get",value:function(he){return this.map.has(he)||this.map.set(he,he.defaultValue()),this.map.get(he)}},{key:"delete",value:function(he){return this.map.delete(he),this}},{key:"has",value:function(he){return this.map.has(he)}},{key:"keys",value:function(){return this.map.keys()}}]),ne}();function pe(ne){return"undefined"!=typeof ArrayBuffer&&ne instanceof ArrayBuffer}function fe(ne){return"undefined"!=typeof Blob&&ne instanceof Blob}function ue(ne){return"undefined"!=typeof FormData&&ne instanceof FormData}var je,ne,ge=function(){function ne(ye,he,Le,lt){var ut;if((0,I.Z)(this,ne),this.url=he,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function be(ne){switch(ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Le?Le:null,ut=lt):ut=Le,ut&&(this.reportProgress=!!ut.reportProgress,this.withCredentials=!!ut.withCredentials,ut.responseType&&(this.responseType=ut.responseType),ut.headers&&(this.headers=ut.headers),ut.context&&(this.context=ut.context),ut.params&&(this.params=ut.params)),this.headers||(this.headers=new b),this.context||(this.context=new te),this.params){var Nt=this.params.toString();if(0===Nt.length)this.urlWithParams=he;else{var jt=he.indexOf("?"),sn=-1===jt?"?":jt<he.length-1?"&":"";this.urlWithParams=he+sn+Nt}}else this.params=new V,this.urlWithParams=he}return(0,P.Z)(ne,[{key:"serializeBody",value:function(){return null===this.body?null:pe(this.body)||fe(this.body)||ue(this.body)||function de(ne){return"undefined"!=typeof URLSearchParams&&ne instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof V?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||ue(this.body)?null:fe(this.body)?this.body.type||null:pe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof V?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var Le,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},lt=he.method||this.method,ut=he.url||this.url,Nt=he.responseType||this.responseType,jt=void 0!==he.body?he.body:this.body,sn=void 0!==he.withCredentials?he.withCredentials:this.withCredentials,yn=void 0!==he.reportProgress?he.reportProgress:this.reportProgress,ln=he.headers||this.headers,Sn=he.params||this.params,hn=null!==(Le=he.context)&&void 0!==Le?Le:this.context;return void 0!==he.setHeaders&&(ln=Object.keys(he.setHeaders).reduce(function(mn,At){return mn.set(At,he.setHeaders[At])},ln)),he.setParams&&(Sn=Object.keys(he.setParams).reduce(function(mn,At){return mn.set(At,he.setParams[At])},Sn)),new ne(lt,ut,jt,{params:Sn,headers:ln,context:hn,reportProgress:yn,responseType:Nt,withCredentials:sn})}}]),ne}();(ne=je||(je={}))[ne.Sent=0]="Sent",ne[ne.UploadProgress=1]="UploadProgress",ne[ne.ResponseHeader=2]="ResponseHeader",ne[ne.DownloadProgress=3]="DownloadProgress",ne[ne.Response=4]="Response",ne[ne.User=5]="User";var ot=(0,P.Z)(function ne(ye){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,I.Z)(this,ne),this.headers=ye.headers||new b,this.status=void 0!==ye.status?ye.status:he,this.statusText=ye.statusText||Le,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}),St=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(){var Le,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,I.Z)(this,he),(Le=ye.call(this,lt)).type=je.ResponseHeader,Le}return(0,P.Z)(he,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new he({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),he}(ot),Tt=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(){var Le,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,I.Z)(this,he),(Le=ye.call(this,lt)).type=je.Response,Le.body=void 0!==lt.body?lt.body:null,Le}return(0,P.Z)(he,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new he({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),he}(ot),Dt=function(ne){(0,G.Z)(he,ne);var ye=(0,W.Z)(he);function he(Le){var lt;return(0,I.Z)(this,he),(lt=ye.call(this,Le,0,"Unknown Error")).name="HttpErrorResponse",lt.ok=!1,lt.status>=200&&lt.status<300?lt.message="Http failure during parsing for ".concat(Le.url||"(unknown url)"):lt.message="Http failure response for ".concat(Le.url||"(unknown url)",": ").concat(Le.status," ").concat(Le.statusText),lt.error=Le.error||null,lt}return(0,P.Z)(he)}(ot);function Rt(ne,ye){return{body:ye,headers:ne.headers,context:ne.context,observe:ne.observe,params:ne.params,reportProgress:ne.reportProgress,responseType:ne.responseType,withCredentials:ne.withCredentials}}var Ze=function(){function ne(ye){(0,I.Z)(this,ne),this.handler=ye}return(0,P.Z)(ne,[{key:"request",value:function(he,Le){var Nt,lt=this,ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(he instanceof ge)Nt=he;else{var jt=void 0;jt=ut.headers instanceof b?ut.headers:new b(ut.headers);var sn=void 0;ut.params&&(sn=ut.params instanceof V?ut.params:new V({fromObject:ut.params})),Nt=new ge(he,Le,void 0!==ut.body?ut.body:null,{headers:jt,context:ut.context,params:sn,reportProgress:ut.reportProgress,responseType:ut.responseType||"json",withCredentials:ut.withCredentials})}var yn=(0,j.of)(Nt).pipe((0,v.b)(function(Sn){return lt.handler.handle(Sn)}));if(he instanceof ge||"events"===ut.observe)return yn;var ln=yn.pipe((0,x.h)(function(Sn){return Sn instanceof Tt}));switch(ut.observe||"body"){case"body":switch(Nt.responseType){case"arraybuffer":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&!(Sn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Sn.body}));case"blob":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&!(Sn.body instanceof Blob))throw new Error("Response is not a Blob.");return Sn.body}));case"text":return ln.pipe((0,w.U)(function(Sn){if(null!==Sn.body&&"string"!=typeof Sn.body)throw new Error("Response is not a string.");return Sn.body}));default:return ln.pipe((0,w.U)(function(Sn){return Sn.body}))}case"response":return ln;default:throw new Error("Unreachable: unhandled observe type ".concat(ut.observe,"}"))}}},{key:"delete",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",he,Le)}},{key:"get",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",he,Le)}},{key:"head",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",he,Le)}},{key:"jsonp",value:function(he,Le){return this.request("JSONP",he,{params:(new V).append(Le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(he){var Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",he,Le)}},{key:"patch",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",he,Rt(lt,Le))}},{key:"post",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",he,Rt(lt,Le))}},{key:"put",value:function(he,Le){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",he,Rt(lt,Le))}}]),ne}();Ze.\u0275fac=function(ye){return new(ye||Ze)(E.LFG(Z))},Ze.\u0275prov=E.Yz7({token:Ze,factory:Ze.\u0275fac});var $t=function(){function ne(ye,he){(0,I.Z)(this,ne),this.next=ye,this.interceptor=he}return(0,P.Z)(ne,[{key:"handle",value:function(he){return this.interceptor.intercept(he,this.next)}}]),ne}(),Ft=new E.OlP("HTTP_INTERCEPTORS"),pn=function(){function ne(){(0,I.Z)(this,ne)}return(0,P.Z)(ne,[{key:"intercept",value:function(he,Le){return Le.handle(he)}}]),ne}();pn.\u0275fac=function(ye){return new(ye||pn)},pn.\u0275prov=E.Yz7({token:pn,factory:pn.\u0275fac});var Ot,rt=0,ht=(0,P.Z)(function ne(){(0,I.Z)(this,ne)}),Ut=function(){function ne(ye,he){(0,I.Z)(this,ne),this.callbackMap=ye,this.document=he,this.resolvedPromise=Promise.resolve()}return(0,P.Z)(ne,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(rt++)}},{key:"handle",value:function(he){var Le=this;if("JSONP"!==he.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==he.responseType)throw new Error("JSONP requests must use Json response type.");if(he.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new R.y(function(lt){var ut=Le.nextCallback(),Nt=he.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(ut,"$1")),jt=Le.document.createElement("script");jt.src=Nt;var sn=null,yn=!1;Le.callbackMap[ut]=function(mn){delete Le.callbackMap[ut],sn=mn,yn=!0};var ln=function(){jt.parentNode&&jt.parentNode.removeChild(jt),delete Le.callbackMap[ut]};return jt.addEventListener("load",function(At){Le.resolvedPromise.then(function(){ln(),yn?(lt.next(new Tt({body:sn,status:200,statusText:"OK",url:Nt})),lt.complete()):lt.error(new Dt({url:Nt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),jt.addEventListener("error",function(At){ln(),lt.error(new Dt({error:At,status:0,statusText:"JSONP Error",url:Nt}))}),Le.document.body.appendChild(jt),lt.next({type:je.Sent}),function(){yn||Le.removeListeners(jt),ln()}})}},{key:"removeListeners",value:function(he){Ot||(Ot=this.document.implementation.createHTMLDocument()),Ot.adoptNode(he)}}]),ne}();Ut.\u0275fac=function(ye){return new(ye||Ut)(E.LFG(ht),E.LFG(T.K0))},Ut.\u0275prov=E.Yz7({token:Ut,factory:Ut.\u0275fac});var Wt=function(){function ne(ye){(0,I.Z)(this,ne),this.jsonp=ye}return(0,P.Z)(ne,[{key:"intercept",value:function(he,Le){return"JSONP"===he.method?this.jsonp.handle(he):Le.handle(he)}}]),ne}();Wt.\u0275fac=function(ye){return new(ye||Wt)(E.LFG(Ut))},Wt.\u0275prov=E.Yz7({token:Wt,factory:Wt.\u0275fac});var U=/^\)\]\}',?\n/;var qe=function(){function ne(ye){(0,I.Z)(this,ne),this.xhrFactory=ye}return(0,P.Z)(ne,[{key:"handle",value:function(he){var Le=this;if("JSONP"===he.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new R.y(function(lt){var ut=Le.xhrFactory.build();if(ut.open(he.method,he.urlWithParams),he.withCredentials&&(ut.withCredentials=!0),he.headers.forEach(function(tt,Et){return ut.setRequestHeader(tt,Et.join(","))}),he.headers.has("Accept")||ut.setRequestHeader("Accept","application/json, text/plain, */*"),!he.headers.has("Content-Type")){var Nt=he.detectContentTypeHeader();null!==Nt&&ut.setRequestHeader("Content-Type",Nt)}if(he.responseType){var jt=he.responseType.toLowerCase();ut.responseType="json"!==jt?jt:"text"}var sn=he.serializeBody(),yn=null,ln=function(){if(null!==yn)return yn;var Et=ut.statusText||"OK",We=new b(ut.getAllResponseHeaders()),Ye=function B(ne){return"responseURL"in ne&&ne.responseURL?ne.responseURL:/^X-Request-URL:/m.test(ne.getAllResponseHeaders())?ne.getResponseHeader("X-Request-URL"):null}(ut)||he.url;return yn=new St({headers:We,status:ut.status,statusText:Et,url:Ye})},Sn=function(){var Et=ln(),We=Et.headers,Ye=Et.status,Re=Et.statusText,Je=Et.url,vt=null;204!==Ye&&(vt=void 0===ut.response?ut.responseText:ut.response),0===Ye&&(Ye=vt?200:0);var dn=Ye>=200&&Ye<300;if("json"===he.responseType&&"string"==typeof vt){var Un=vt;vt=vt.replace(U,"");try{vt=""!==vt?JSON.parse(vt):null}catch(Kt){vt=Un,dn&&(dn=!1,vt={error:Kt,text:vt})}}dn?(lt.next(new Tt({body:vt,headers:We,status:Ye,statusText:Re,url:Je||void 0})),lt.complete()):lt.error(new Dt({error:vt,headers:We,status:Ye,statusText:Re,url:Je||void 0}))},hn=function(Et){var Ye=ln().url,Re=new Dt({error:Et,status:ut.status||0,statusText:ut.statusText||"Unknown Error",url:Ye||void 0});lt.error(Re)},mn=!1,At=function(Et){mn||(lt.next(ln()),mn=!0);var We={type:je.DownloadProgress,loaded:Et.loaded};Et.lengthComputable&&(We.total=Et.total),"text"===he.responseType&&!!ut.responseText&&(We.partialText=ut.responseText),lt.next(We)},xt=function(Et){var We={type:je.UploadProgress,loaded:Et.loaded};Et.lengthComputable&&(We.total=Et.total),lt.next(We)};return ut.addEventListener("load",Sn),ut.addEventListener("error",hn),ut.addEventListener("timeout",hn),ut.addEventListener("abort",hn),he.reportProgress&&(ut.addEventListener("progress",At),null!==sn&&ut.upload&&ut.upload.addEventListener("progress",xt)),ut.send(sn),lt.next({type:je.Sent}),function(){ut.removeEventListener("error",hn),ut.removeEventListener("abort",hn),ut.removeEventListener("load",Sn),ut.removeEventListener("timeout",hn),he.reportProgress&&(ut.removeEventListener("progress",At),null!==sn&&ut.upload&&ut.upload.removeEventListener("progress",xt)),ut.readyState!==ut.DONE&&ut.abort()}})}}]),ne}();qe.\u0275fac=function(ye){return new(ye||qe)(E.LFG(T.JF))},qe.\u0275prov=E.Yz7({token:qe,factory:qe.\u0275fac});var Be=new E.OlP("XSRF_COOKIE_NAME"),le=new E.OlP("XSRF_HEADER_NAME"),t=(0,P.Z)(function ne(){(0,I.Z)(this,ne)}),Lt=function(){function ne(ye,he,Le){(0,I.Z)(this,ne),this.doc=ye,this.platform=he,this.cookieName=Le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,P.Z)(ne,[{key:"getToken",value:function(){if("server"===this.platform)return null;var he=this.doc.cookie||"";return he!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(he,this.cookieName),this.lastCookieString=he),this.lastToken}}]),ne}();Lt.\u0275fac=function(ye){return new(ye||Lt)(E.LFG(T.K0),E.LFG(E.Lbi),E.LFG(Be))},Lt.\u0275prov=E.Yz7({token:Lt,factory:Lt.\u0275fac});var zt=function(){function ne(ye,he){(0,I.Z)(this,ne),this.tokenService=ye,this.headerName=he}return(0,P.Z)(ne,[{key:"intercept",value:function(he,Le){var lt=he.url.toLowerCase();if("GET"===he.method||"HEAD"===he.method||lt.startsWith("http://")||lt.startsWith("https://"))return Le.handle(he);var ut=this.tokenService.getToken();return null!==ut&&!he.headers.has(this.headerName)&&(he=he.clone({headers:he.headers.set(this.headerName,ut)})),Le.handle(he)}}]),ne}();zt.\u0275fac=function(ye){return new(ye||zt)(E.LFG(t),E.LFG(le))},zt.\u0275prov=E.Yz7({token:zt,factory:zt.\u0275fac});var an=function(){function ne(ye,he){(0,I.Z)(this,ne),this.backend=ye,this.injector=he,this.chain=null}return(0,P.Z)(ne,[{key:"handle",value:function(he){if(null===this.chain){var Le=this.injector.get(Ft,[]);this.chain=Le.reduceRight(function(lt,ut){return new $t(lt,ut)},this.backend)}return this.chain.handle(he)}}]),ne}();an.\u0275fac=function(ye){return new(ye||an)(E.LFG(D),E.LFG(E.zs3))},an.\u0275prov=E.Yz7({token:an,factory:an.\u0275fac});var Vt=function(){function ne(){(0,I.Z)(this,ne)}return(0,P.Z)(ne,null,[{key:"disable",value:function(){return{ngModule:ne,providers:[{provide:zt,useClass:pn}]}}},{key:"withOptions",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ne,providers:[he.cookieName?{provide:Be,useValue:he.cookieName}:[],he.headerName?{provide:le,useValue:he.headerName}:[]]}}}]),ne}();Vt.\u0275fac=function(ye){return new(ye||Vt)},Vt.\u0275mod=E.oAB({type:Vt}),Vt.\u0275inj=E.cJS({providers:[zt,{provide:Ft,useExisting:zt,multi:!0},{provide:t,useClass:Lt},{provide:Be,useValue:"XSRF-TOKEN"},{provide:le,useValue:"X-XSRF-TOKEN"}]});var Jt=(0,P.Z)(function ne(){(0,I.Z)(this,ne)});Jt.\u0275fac=function(ye){return new(ye||Jt)},Jt.\u0275mod=E.oAB({type:Jt}),Jt.\u0275inj=E.cJS({providers:[Ze,{provide:Z,useClass:an},qe,{provide:D,useExisting:qe}],imports:[Vt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]});var Qe=(0,P.Z)(function ne(){(0,I.Z)(this,ne)});Qe.\u0275fac=function(ye){return new(ye||Qe)},Qe.\u0275mod=E.oAB({type:Qe}),Qe.\u0275inj=E.cJS({providers:[Ut,{provide:ht,useFactory:function vn(){return"object"==typeof window?window:{}}},{provide:Ft,useClass:Wt,multi:!0}]});T.JF},5e3:function(Ae,K,m){"use strict";m.d(K,{$8M:function(){return Ds},$Z:function(){return Y3},AA_:function(){return RP},AFp:function(){return $R},ALo:function(){return Wf},AaK:function(){return X},AcB:function(){return TP},Akn:function(){return Zs},AsE:function(){return X6},B6R:function(){return Kt},BQk:function(){return Cy},CHM:function(){return ke},CRH:function(){return fc},CZH:function(){return Nd},Ckj:function(){return m3},CqO:function(){return LS},D6c:function(){return u7},DdM:function(){return Ny},Dn7:function(){return Vf},DyG:function(){return Lv},E6H:function(){return ZU},EJc:function(){return ME},EiD:function(){return h3},EpF:function(){return Z6},F$t:function(){return US},F4k:function(){return N6},FYo:function(){return $M},FiY:function(){return u_},G48:function(){return j1},GSi:function(){return p4},Gf:function(){return CU},GfV:function(){return w3},GkF:function(){return RS},Gpc:function(){return Q},Gre:function(){return A8},HOy:function(){return eR},Hsn:function(){return H6},IIB:function(){return NU},Ikx:function(){return nR},JOm:function(){return CC},JVY:function(){return Rf},Jf7:function(){return Dh},KtG:function(){return se},L6J:function(){return UU},L6k:function(){return c3},LAX:function(){return d3},LFG:function(){return Ea},LSH:function(){return Mh},LVF:function(){return HU},Lbi:function(){return TE},Lck:function(){return lU},MAs:function(){return OS},MGl:function(){return h1},MMx:function(){return Ly},NdJ:function(){return ZS},O4$:function(){return wn},OlP:function(){return io},Oqu:function(){return $S},PXZ:function(){return aL},PiD:function(){return hh},Q6J:function(){return U_},QGY:function(){return p1},QP$:function(){return yi},QbO:function(){return eL},Qsj:function(){return C3},R0b:function(){return Wc},RDi:function(){return Qv},Rgc:function(){return Jl},SBq:function(){return E_},Sil:function(){return og},Suo:function(){return Qf},TTD:function(){return ia},TgZ:function(){return d1},Tol:function(){return QS},Udp:function(){return JS},VKq:function(){return Kn},W1O:function(){return x1},WFA:function(){return NS},WLB:function(){return OR},XFs:function(){return ye},Xek:function(){return QR},Xpm:function(){return Un},Xts:function(){return ey},Y36:function(){return A_},YKP:function(){return fE},YNc:function(){return L6},Yjl:function(){return Wn},Yz7:function(){return Be},Z0I:function(){return zt},ZZ4:function(){return Yy},_Bn:function(){return ER},_UZ:function(){return IS},_Vd:function(){return Bf},_c5:function(){return l7},_uU:function(){return Q6},a5r:function(){return XU},aQ5:function(){return MP},aQg:function(){return Ky},ahi:function(){return mC},c2e:function(){return np},cJS:function(){return t},cg1:function(){return iR},d8E:function(){return rR},dDg:function(){return Yh},dqk:function(){return hn},eBb:function(){return Rc},eFA:function(){return uL},ekj:function(){return g1},eoX:function(){return Kh},evT:function(){return ly},f3M:function(){return PP},g9A:function(){return R1},h0i:function(){return Uh},hGG:function(){return op},hYB:function(){return jS},hij:function(){return eE},i9L:function(){return SP},iGM:function(){return Wh},ifc:function(){return Sn},ip1:function(){return XR},jDz:function(){return Y_},kL8:function(){return H8},kYT:function(){return wt},kcU:function(){return ai},kuF:function(){return ue},lG2:function(){return Hn},lcZ:function(){return vE},lnq:function(){return $6},lqb:function(){return Is},lri:function(){return oL},mCW:function(){return y_},n4l:function(){return sn},n5z:function(){return kP},n_E:function(){return jc},oAB:function(){return gt},oJD:function(){return VM},oxw:function(){return FS},pB0:function(){return nV},pfw:function(){return FU},q3G:function(){return Ad},qLn:function(){return xh},qOj:function(){return MS},qZA:function(){return f1},qzn:function(){return wh},rWj:function(){return lg},r_U:function(){return BU},s9C:function(){return HS},sBO:function(){return G1},sIi:function(){return yy},s_b:function(){return Ou},soG:function(){return Uy},tBr:function(){return Uv},tb:function(){return L1},tp0:function(){return Sd},uIk:function(){return l1},vHH:function(){return fe},vR:function(){return uF},vpe:function(){return Hc},wA2:function(){return LU},wAp:function(){return j_},xi3:function(){return E1},xp6:function(){return O3},ynx:function(){return Bh},z2F:function(){return ip},z3N:function(){return Pc},zSh:function(){return T_},zWS:function(){return xS},zlt:function(){return Qi},zs3:function(){return bl}});var G=m(3237),W=m(1120),A=m(7685),I=(m(4942),m(4506),m(7326)),T=m(7762),E=m(4902),j=m(5647),R=m(3144),v=m(5671),x=m(136),w=m(9388),Z=m(5724),D=m(4096),b=m(8929),S=m(7451),k=m(6787),M=m(8117);function N(c){for(var f in c)if(c[f]===N)return f;throw Error("Could not find renamed property on target object.")}function F(c,f){for(var p in f)f.hasOwnProperty(p)&&!c.hasOwnProperty(p)&&(c[p]=f[p])}function X(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(X).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var f=c.toString();if(null==f)return""+f;var p=f.indexOf("\n");return-1===p?f:f.substring(0,p)}function $(c,f){return null==c||""===c?null===f?"":f:null==f||""===f?c:c+" "+f}var V=N({__forward_ref__:N});function Q(c){return c.__forward_ref__=Q,c.toString=function(){return X(this())},c}function te(c){return be(c)?c():c}function be(c){return"function"==typeof c&&c.hasOwnProperty(V)&&c.__forward_ref__===Q}var fe=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;return(0,v.Z)(this,p),(O=f.call(this,ue(_,C))).code=_,O}return(0,R.Z)(p)}((0,Z.Z)(Error));function ue(c,f){var p="NG0".concat(Math.abs(c));return"".concat(p).concat(f?": "+f.trim():"")}function de(c){return"string"==typeof c?c:null==c?"":String(c)}function ge(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():de(c)}function Tt(c,f){f&&" in ".concat(f);throw new fe(-201,!1)}function Ft(c,f,p){c!=f&&Wt(p,c,f,"==")}function Ut(c,f){null==c&&Wt(f,c,null,"!=")}function Wt(c,f,p,_){throw new Error("ASSERTION ERROR: ".concat(c)+(null==_?"":" [Expected=> ".concat(p," ").concat(_," ").concat(f," <=Actual]")))}function Be(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function t(c){return{providers:c.providers||[],imports:c.imports||[]}}function Lt(c){return an(c,Jt)||an(c,Fe)}function zt(c){return null!==Lt(c)}function an(c,f){return c.hasOwnProperty(f)?c[f]:null}function Vt(c){return c&&(c.hasOwnProperty(Qe)||c.hasOwnProperty(ne))?c[Qe]:null}var ye,c,he,sn,yn,Sn,Jt=N({"\u0275prov":N}),Qe=N({"\u0275inj":N}),Fe=N({ngInjectableDef:N}),ne=N({ngInjectorDef:N});function Le(){return he}function lt(c){var f=he;return he=c,f}function ut(c,f,p){var _=Lt(c);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:p&ye.Optional?null:void 0!==f?f:void Tt(X(c),"Injector")}function jt(c){return{toString:c}.toString()}(c=ye||(ye={}))[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",function(c){c[c.OnPush=0]="OnPush",c[c.Default=1]="Default"}(sn||(sn={})),function(c){c[c.CheckOnce=0]="CheckOnce",c[c.Checked=1]="Checked",c[c.CheckAlways=2]="CheckAlways",c[c.Detached=3]="Detached",c[c.Errored=4]="Errored",c[c.Destroyed=5]="Destroyed"}(yn||(yn={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(Sn||(Sn={}));var hn=function(){return"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var xt={},tt=[],Et=N({"\u0275cmp":N}),We=N({"\u0275dir":N}),Ye=N({"\u0275pipe":N}),Re=N({"\u0275mod":N}),Je=N({"\u0275fac":N}),vt=N({__NG_ELEMENT_ID__:N}),dn=0;function Un(c){return jt(function(){var f=c.type,p=!0===c.standalone,_={},C={type:f,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===sn.OnPush,directiveDefs:null,pipeDefs:null,standalone:p,dependencies:p&&c.dependencies||null,getStandaloneInjector:null,selectors:c.selectors||tt,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||Sn.Emulated,id:"c".concat(dn++),styles:c.styles||tt,_:null,setInput:null,schemas:c.schemas||null,tView:null},O=c.dependencies,Y=c.features;return C.inputs=nn(c.inputs,_),C.outputs=nn(c.outputs),Y&&Y.forEach(function(ee){return ee(C)}),C.directiveDefs=O?function(){return("function"==typeof O?O():O).map(yt).filter(et)}:null,C.pipeDefs=O?function(){return("function"==typeof O?O():O).map(Pr).filter(et)}:null,C})}function Kt(c,f,p){var _=c.\u0275cmp;_.directiveDefs=function(){return("function"==typeof f?f():f).map(yt)},_.pipeDefs=function(){return("function"==typeof p?p():p).map(Pr)}}function yt(c){return Vn(c)||ir(c)}function et(c){return null!==c}function gt(c){return jt(function(){return{type:c.type,bootstrap:c.bootstrap||tt,declarations:c.declarations||tt,imports:c.imports||tt,exports:c.exports||tt,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}})}function wt(c,f){return jt(function(){var p=zi(c,!0);p.declarations=f.declarations||tt,p.imports=f.imports||tt,p.exports=f.exports||tt})}function nn(c,f){if(null==c)return xt;var p={};for(var _ in c)if(c.hasOwnProperty(_)){var C=c[_],O=C;Array.isArray(C)&&(O=C[1],C=C[0]),p[C]=_,f&&(f[C]=O)}return p}var Hn=Un;function Wn(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Vn(c){return c[Et]||null}function ir(c){return c[We]||null}function Pr(c){return c[Ye]||null}function yi(c){var f=Vn(c)||ir(c)||Pr(c);return null!==f&&f.standalone}function zi(c,f){var p=c[Re]||null;if(!p&&!0===f)throw new Error("Type ".concat(X(c)," does not have '\u0275mod' property."));return p}function to(c){return Array.isArray(c)&&"object"==typeof c[1]}function Ai(c){return Array.isArray(c)&&!0===c[1]}function pu(c){return 0!=(8&c.flags)}function Yi(c){return 2==(2&c.flags)}function tn(c){return 1==(1&c.flags)}function en(c){return null!==c.template}function Dr(c){return 0!=(256&c[2])}function go(c,f){return c.hasOwnProperty(Je)?c[Je]:null}var fo=function(){function c(f,p,_){(0,v.Z)(this,c),this.previousValue=f,this.currentValue=p,this.firstChange=_}return(0,R.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function ia(){return hl}function hl(c){return c.type.prototype.ngOnChanges&&(c.setInput=qa),Ka}function Ka(){var c=Qo(this),f=null==c?void 0:c.current;if(f){var p=c.previous;if(p===xt)c.previous=f;else for(var _ in f)p[_]=f[_];c.current=null,this.ngOnChanges(f)}}function qa(c,f,p,_){var C=Qo(c)||function mu(c,f){return c[Jo]=f}(c,{previous:xt,current:null}),O=C.current||(C.current={}),Y=C.previous,ee=this.declaredInputs[p],oe=Y[ee];O[ee]=new fo(oe&&oe.currentValue,f,Y===xt),c[_]=f}ia.ngInherit=!0;var Jo="__ngSimpleChanges__";function Qo(c){return c[Jo]||null}var ec=null,Br=function(f,p,_){null!=ec&&ec(f,p,_)},mf="math";function po(c){for(;Array.isArray(c);)c=c[0];return c}function Dc(c,f){return po(f[c])}function xo(c,f){return po(f[c.index])}function qs(c,f){return c.data[f]}function pa(c,f){return c[f]}function jo(c,f){var p=f[c];return to(p)?p:p[0]}function Ts(c){return 64==(64&c[2])}function Ja(c,f){return null==f?null:c[f]}function nh(c){c[18]=0}function Ms(c,f){c[5]+=f;for(var p=c,_=c[3];null!==_&&(1===f&&1===p[5]||-1===f&&0===p[5]);)_[5]+=f,p=_,_=_[3]}var Cr={lFrame:Ma(null),bindingsEnabled:!0};function Js(){return Cr.bindingsEnabled}function yu(){Cr.bindingsEnabled=!0}function Hl(){Cr.bindingsEnabled=!1}function xn(){return Cr.lFrame.lView}function we(){return Cr.lFrame.tView}function ke(c){return Cr.lFrame.contextLView=c,c[8]}function se(c){return Cr.lFrame.contextLView=null,c}function Me(){for(var c=Oe();null!==c&&64===c.type;)c=c.parent;return c}function Oe(){return Cr.lFrame.currentTNode}function pt(){var c=Cr.lFrame,f=c.currentTNode;return c.isParent?f:f.parent}function Yt(c,f){var p=Cr.lFrame;p.currentTNode=c,p.isParent=f}function Pn(){return Cr.lFrame.isParent}function Qn(){Cr.lFrame.isParent=!1}function Xo(){var c=Cr.lFrame,f=c.bindingRootIndex;return-1===f&&(f=c.bindingRootIndex=c.tView.bindingStartIndex),f}function Qa(){return Cr.lFrame.bindingIndex}function nc(c){return Cr.lFrame.bindingIndex=c}function Ta(){return Cr.lFrame.bindingIndex++}function cs(c){var f=Cr.lFrame,p=f.bindingIndex;return f.bindingIndex=f.bindingIndex+c,p}function e_(c){Cr.lFrame.inI18n=c}function oh(c,f){var p=Cr.lFrame;p.bindingIndex=p.bindingRootIndex=c,Ac(f)}function Ac(c){Cr.lFrame.currentDirectiveIndex=c}function rc(c){var f=Cr.lFrame.currentDirectiveIndex;return-1===f?null:c[f]}function Ss(){return Cr.lFrame.currentQueryIndex}function Es(c){Cr.lFrame.currentQueryIndex=c}function gl(c){var f=c[1];return 2===f.type?f.declTNode:1===f.type?c[6]:null}function Cd(c,f,p){if(p&ye.SkipSelf){for(var _=f,C=c;null===(_=_.parent)&&!(p&ye.Host)&&!(null===(_=gl(C))||(C=C[15],10&_.type)););if(null===_)return!1;f=_,c=C}var O=Cr.lFrame=vl();return O.currentTNode=f,O.lView=c,!0}function wd(c){var f=vl(),p=c[1];Cr.lFrame=f,f.currentTNode=p.firstChild,f.lView=c,f.tView=p,f.contextLView=c,f.bindingIndex=p.bindingStartIndex,f.inI18n=!1}function vl(){var c=Cr.lFrame,f=null===c?null:c.child;return null===f?Ma(c):f}function Ma(c){var f={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:c,child:null,inI18n:!1};return null!==c&&(c.child=f),f}function Ie(){var c=Cr.lFrame;return Cr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Ge=Ie;function _e(){var c=Ie();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function xe(c){var f=Cr.lFrame.contextLView=function Te(c,f){for(;c>0;)f=f[15],c--;return f}(c,Cr.lFrame.contextLView);return f[8]}function ze(){return Cr.lFrame.selectedIndex}function mt(c){Cr.lFrame.selectedIndex=c}function Mt(){var c=Cr.lFrame;return qs(c.tView,c.selectedIndex)}function wn(){Cr.lFrame.currentNamespace="svg"}function Rr(){Cr.lFrame.currentNamespace=mf}function ai(){!function si(){Cr.lFrame.currentNamespace=null}()}function Ar(c,f){for(var p=f.directiveStart,_=f.directiveEnd;p<_;p++){var O=c.data[p].type.prototype,Y=O.ngAfterContentInit,ee=O.ngAfterContentChecked,oe=O.ngAfterViewInit,ve=O.ngAfterViewChecked,He=O.ngOnDestroy;Y&&(c.contentHooks||(c.contentHooks=[])).push(-p,Y),ee&&((c.contentHooks||(c.contentHooks=[])).push(p,ee),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(p,ee)),oe&&(c.viewHooks||(c.viewHooks=[])).push(-p,oe),ve&&((c.viewHooks||(c.viewHooks=[])).push(p,ve),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(p,ve)),null!=He&&(c.destroyHooks||(c.destroyHooks=[])).push(p,He)}}function vf(c,f,p){ah(c,f,3,p)}function n_(c,f,p,_){(3&c[2])===p&&ah(c,f,p,_)}function Iv(c,f){var p=c[2];(3&p)===f&&(p&=2047,p+=1,c[2]=p)}function ah(c,f,p,_){for(var C=void 0!==_?65535&c[18]:0,O=null!=_?_:-1,Y=f.length-1,ee=0,oe=C;oe<Y;oe++){if("number"==typeof f[oe+1]){if(ee=f[oe],null!=_&&ee>=_)break}else f[oe]<0&&(c[18]+=65536),(ee<O||-1==O)&&(ie(c,p,f,oe),c[18]=(4294901760&c[18])+oe+2),oe++}}function ie(c,f,p,_){var C=p[_]<0,O=p[_+1],ee=c[C?-p[_]:p[_]];if(C){if(c[2]>>11<c[18]>>16&&(3&c[2])===f){c[2]+=2048,Br(4,ee,O);try{O.call(ee)}finally{Br(5,ee,O)}}}else{Br(4,ee,O);try{O.call(ee)}finally{Br(5,ee,O)}}}var me=(0,R.Z)(function c(f,p,_){(0,v.Z)(this,c),this.factory=f,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=_});function Qr(c,f,p){for(var _=0;_<p.length;){var C=p[_];if("number"==typeof C){if(0!==C)break;_++;var O=p[_++],Y=p[_++],ee=p[_++];c.setAttribute(f,Y,ee,O)}else{var oe=C,ve=p[++_];Ra(oe)?c.setProperty(f,oe,ve):c.setAttribute(f,oe,ve),_++}}return _}function Do(c){return 3===c||4===c||6===c}function Ra(c){return 64===c.charCodeAt(0)}function ds(c,f){if(null!==f&&0!==f.length)if(null===c||0===c.length)c=f.slice();else for(var p=-1,_=0;_<f.length;_++){var C=f[_];"number"==typeof C?p=C:0===p||ha(c,p,C,null,-1===p||2===p?f[++_]:null)}return c}function ha(c,f,p,_,C){var O=0,Y=c.length;if(-1===f)Y=-1;else for(;O<c.length;){var ee=c[O++];if("number"==typeof ee){if(ee===f){Y=-1;break}if(ee>f){Y=O-1;break}}}for(;O<c.length;){var oe=c[O];if("number"==typeof oe)break;if(oe===p){if(null===_)return void(null!==C&&(c[O+1]=C));if(_===c[O+1])return void(c[O+2]=C)}O++,null!==_&&O++,null!==C&&O++}-1!==Y&&(c.splice(Y,0,f),O=Y+1),c.splice(O++,0,p),null!==_&&c.splice(O++,0,_),null!==C&&c.splice(O++,0,C)}function fs(c){return-1!==c}function Pi(c){return 32767&c}function bu(c,f){for(var p=function ic(c){return c>>16}(c),_=f;p>0;)_=_[15],p--;return _}var ma=!0;function Cu(c){var f=ma;return ma=c,f}var CP=0,jl={};function sh(c,f){var p=r_(c,f);if(-1!==p)return p;var _=f[1];_.firstCreatePass&&(c.injectorIndex=f.length,cM(_.data,c),cM(f,null),cM(_.blueprint,null));var C=yf(c,f),O=c.injectorIndex;if(fs(C))for(var Y=Pi(C),ee=bu(C,f),oe=ee[1].data,ve=0;ve<8;ve++)f[O+ve]=ee[Y+ve]|oe[Y+ve];return f[O+8]=C,O}function cM(c,f){c.push(0,0,0,0,0,0,0,0,f)}function r_(c,f){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===f[c.injectorIndex+8]?-1:c.injectorIndex}function yf(c,f){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var p=0,_=null,C=f;null!==C;){if(null===(_=pi(C)))return-1;if(p++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|p<<16}return-1}function xs(c,f,p){!function uM(c,f,p){var _;"string"==typeof p?_=p.charCodeAt(0)||0:p.hasOwnProperty(vt)&&(_=p[vt]),null==_&&(_=p[vt]=CP++);var C=255&_,O=1<<C;f.data[c+(C>>5)]|=O}(c,f,p)}function pC(c,f,p){if(p&ye.Optional||void 0!==c)return c;Tt(0,"NodeInjector")}function lh(c,f,p,_){if(p&ye.Optional&&void 0===_&&(_=null),0==(p&(ye.Self|ye.Host))){var C=c[9],O=lt(void 0);try{return C?C.get(f,_,p&ye.Optional):ut(f,_,p&ye.Optional)}finally{lt(O)}}return pC(_,0,p)}function bf(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye.Default,C=arguments.length>4?arguments[4]:void 0;if(null!==c){if(1024&f[2]){var O=hC(c,f,p,_,jl);if(O!==jl)return O}var Y=fM(c,f,p,_,jl);if(Y!==jl)return Y}return lh(f,p,_,C)}function fM(c,f,p,_,C){var O=function sF(c){if("string"==typeof c)return c.charCodeAt(0)||0;var f=c.hasOwnProperty(vt)?c[vt]:void 0;return"number"==typeof f?f>=0?255&f:Xn:f}(p);if("function"==typeof O){if(!Cd(f,c,_))return _&ye.Host?pC(C,0,_):lh(f,p,_,C);try{var Y=O(_);if(null!=Y||_&ye.Optional)return Y;Tt()}finally{Ge()}}else if("number"==typeof O){var ee=null,oe=r_(c,f),ve=-1,He=_&ye.Host?f[16][6]:null;for((-1===oe||_&ye.SkipSelf)&&(-1!==(ve=-1===oe?yf(c,f):f[oe+8])&&pM(_,!1)?(ee=f[1],oe=Pi(ve),f=bu(ve,f)):oe=-1);-1!==oe;){var nt=f[1];if(wP(O,oe,nt.data)){var dt=uh(oe,f,p,ee,_,He);if(dt!==jl)return dt}-1!==(ve=f[oe+8])&&pM(_,f[1].data[oe+8]===He)&&wP(O,oe,f)?(ee=nt,oe=Pi(ve),f=bu(ve,f)):oe=-1}}return C}function uh(c,f,p,_,C,O){var Y=f[1],ee=Y.data[c+8],He=Sa(ee,Y,p,null==_?Yi(ee)&&ma:_!=Y&&0!=(3&ee.type),C&ye.Host&&O===ee);return null!==He?i_(f,Y,He,ee):jl}function Sa(c,f,p,_,C){for(var O=c.providerIndexes,Y=f.data,ee=1048575&O,oe=c.directiveStart,ve=c.directiveEnd,He=O>>20,dt=C?ee+He:ve,kt=_?ee:ee+He;kt<dt;kt++){var Xt=Y[kt];if(kt<oe&&p===Xt||kt>=oe&&Xt.type===p)return kt}if(C){var _n=Y[oe];if(_n&&en(_n)&&_n.type===p)return oe}return null}function i_(c,f,p,_){var C=c[p],O=f.data;if(function Ue(c){return c instanceof me}(C)){var Y=C;Y.resolving&&function je(c,f){var p=f?". Dependency path: ".concat(f.join(" > ")," > ").concat(c):"";throw new fe(-200,"Circular dependency in DI detected for ".concat(c).concat(p))}(ge(O[p]));var ee=Cu(Y.canSeeViewProviders);Y.resolving=!0;var oe=Y.injectImpl?lt(Y.injectImpl):null;Cd(c,_,ye.Default);try{C=c[p]=Y.factory(void 0,O,c,_),f.firstCreatePass&&p>=_.directiveStart&&function gf(c,f,p){var _=f.type.prototype,C=_.ngOnChanges,O=_.ngOnInit,Y=_.ngDoCheck;if(C){var ee=hl(f);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,ee),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,ee)}O&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,O),Y&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,Y),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,Y))}(p,O[p],f)}finally{null!==oe&&lt(oe),Cu(ee),Y.resolving=!1,Ge()}}return C}function wP(c,f,p){var _=1<<c;return!!(p[f+(c>>5)]&_)}function pM(c,f){return!(c&ye.Self||c&ye.Host&&f)}var qr=function(){function c(f,p){(0,v.Z)(this,c),this._tNode=f,this._lView=p}return(0,R.Z)(c,[{key:"get",value:function(p,_,C){return bf(this._tNode,this._lView,p,C,_)}}]),c}();function Xn(){return new qr(Me(),xn())}function kP(c){return jt(function(){for(var f=c.prototype.constructor,p=f[Je]||ps(f),_=Object.prototype,C=Object.getPrototypeOf(c.prototype).constructor;C&&C!==_;){var O=C[Je]||ps(C);if(O&&O!==p)return O;C=Object.getPrototypeOf(C)}return function(Y){return new Y}})}function ps(c){return be(c)?function(){var f=ps(te(c));return f&&f()}:go(c)}function hC(c,f,p,_,C){for(var O=c,Y=f;null!==O&&null!==Y&&1024&Y[2]&&!(256&Y[2]);){var ee=fM(O,Y,p,_|ye.Self,jl);if(ee!==jl)return ee;var oe=O.parent;if(!oe){var ve=Y[21];if(ve){var He=ve.get(p,jl,_);if(He!==jl)return He}oe=pi(Y),Y=Y[15]}O=oe}return C}function pi(c){var f=c[1],p=f.type;return 2===p?f.declTNode:1===p?c[6]:null}function Ds(c){return function dM(c,f){if("class"===f)return c.classes;if("style"===f)return c.styles;var p=c.attrs;if(p)for(var _=p.length,C=0;C<_;){var O=p[C];if(Do(O))break;if(0===O)C+=2;else if("number"==typeof O)for(C++;C<_&&"string"==typeof p[C];)C++;else{if(O===f)return p[C+1];C+=2}}return null}(Me(),c)}var o_="__annotations__",ch="__parameters__",oa="__prop__metadata__";function Cf(c,f,p,_,C){return jt(function(){var O=Rv(f);function Y(){for(var ee=arguments.length,oe=new Array(ee),ve=0;ve<ee;ve++)oe[ve]=arguments[ve];if(this instanceof Y)return O.call.apply(O,[this].concat(oe)),this;var He=(0,j.Z)(Y,oe);return function(dt){return C&&C.apply(void 0,[dt].concat(oe)),(dt.hasOwnProperty(o_)?dt[o_]:Object.defineProperty(dt,o_,{value:[]})[o_]).push(He),_&&_(dt),dt}}return p&&(Y.prototype=Object.create(p.prototype)),Y.prototype.ngMetadataName=c,Y.annotationCls=Y,Y})}function Rv(c){return function(){if(c){var p=c.apply(void 0,arguments);for(var _ in p)this[_]=p[_]}}}function on(c,f,p){return jt(function(){var _=Rv(f);function C(){for(var O=arguments.length,Y=new Array(O),ee=0;ee<O;ee++)Y[ee]=arguments[ee];if(this instanceof C)return _.apply(this,Y),this;var oe=(0,j.Z)(C,Y);return ve.annotation=oe,ve;function ve(He,nt,dt){for(var kt=He.hasOwnProperty(ch)?He[ch]:Object.defineProperty(He,ch,{value:[]})[ch];kt.length<=dt;)kt.push(null);return(kt[dt]=kt[dt]||[]).push(oe),He}}return p&&(C.prototype=Object.create(p.prototype)),C.prototype.ngMetadataName=c,C.annotationCls=C,C})}function kd(c,f,p,_){return jt(function(){var C=Rv(f);function O(){for(var Y=arguments.length,ee=new Array(Y),oe=0;oe<Y;oe++)ee[oe]=arguments[oe];if(this instanceof O)return C.apply(this,ee),this;var ve=(0,j.Z)(O,ee);function He(nt,dt){var kt=nt.constructor,Xt=kt.hasOwnProperty(oa)?kt[oa]:Object.defineProperty(kt,oa,{value:{}})[oa];Xt[dt]=Xt.hasOwnProperty(dt)&&Xt[dt]||[],Xt[dt].unshift(ve),_&&_.apply(void 0,[nt,dt].concat(ee))}return He}return p&&(O.prototype=Object.create(p.prototype)),O.prototype.ngMetadataName=c,O.annotationCls=O,O})}var wf,EP,La,mC=on("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return Ds(c)}}}),io=function(){function c(f,p){(0,v.Z)(this,c),this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=Be({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}return(0,R.Z)(c,[{key:"multi",get:function(){return this}},{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),_C=(new io("AnalyzeForEntryComponents"),(0,R.Z)(function c(){(0,v.Z)(this,c)})),TP=kd("ContentChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},f)},_C),MP=kd("ContentChild",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},f)},_C),uF=kd("ViewChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},f)},_C),SP=kd("ViewChild",function(c,f){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},f)},_C);function Za(c){var f=hn.ng;if(f&&f.\u0275compilerFacade)return f.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(c){c[c.Directive=0]="Directive",c[c.Component=1]="Component",c[c.Injectable=2]="Injectable",c[c.Pipe=3]="Pipe",c[c.NgModule=4]="NgModule"}(wf||(wf={})),function(c){c[c.Directive=0]="Directive",c[c.Pipe=1]="Pipe",c[c.NgModule=2]="NgModule"}(EP||(EP={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(La||(La={}));var Lv=Function;function qt(c){return"function"==typeof c}function Gl(c,f){void 0===f&&(f=c);for(var p=0;p<c.length;p++){var _=c[p];Array.isArray(_)?(f===c&&(f=c.slice(0,p)),Gl(_,f)):f!==c&&f.push(_)}return f}function Td(c,f){c.forEach(function(p){return Array.isArray(p)?Td(p,f):f(p)})}function xP(c,f,p){f>=c.length?c.push(p):c.splice(f,0,p)}function dh(c,f){return f>=c.length-1?c.pop():c.splice(f,1)[0]}function Zv(c,f){for(var p=[],_=0;_<c;_++)p.push(f);return p}function zl(c,f,p){var _=fh(c,f);return _>=0?c[1|_]=p:function fF(c,f,p,_){var C=c.length;if(C==f)c.push(p,_);else if(1===C)c.push(_,c[0]),c[0]=p;else{for(C--,c.push(c[C-1],c[C]);C>f;){var O=C-2;c[C]=c[O],C--}c[f]=p,c[f+1]=_}}(c,_=~_,f,p),_}function Md(c,f){var p=fh(c,f);if(p>=0)return c[1|p]}function fh(c,f){return mM(c,f,1)}function mM(c,f,p){for(var _=0,C=c.length>>p;C!==_;){var O=_+(C-_>>1),Y=c[O<<p];if(f===Y)return O<<p;Y>f?C=O:_=O+1}return~(C<<p)}var OP=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,hF=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,mF=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,IP=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var gF=function(){function c(f){(0,v.Z)(this,c),this._reflect=f||hn.Reflect}return(0,R.Z)(c,[{key:"factory",value:function(p){return function(){for(var _=arguments.length,C=new Array(_),O=0;O<_;O++)C[O]=arguments[O];return(0,j.Z)(p,C)}}},{key:"_zipTypesAndAnnotations",value:function(p,_){var C;C=Zv(void 0===p?_.length:p.length);for(var O=0;O<C.length;O++)void 0===p?C[O]=[]:p[O]&&p[O]!=Object?C[O]=[p[O]]:C[O]=[],_&&null!=_[O]&&(C[O]=C[O].concat(_[O]));return C}},{key:"_ownParameters",value:function(p,_){if(function _F(c){return OP.test(c)||IP.test(c)||hF.test(c)&&!mF.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==_.parameters)return p.parameters;var O=p.ctorParameters;if(O&&O!==_.ctorParameters){var Y="function"==typeof O?O():O,ee=Y.map(function(nt){return nt&&nt.type}),oe=Y.map(function(nt){return nt&&gC(nt.decorators)});return this._zipTypesAndAnnotations(ee,oe)}var ve=p.hasOwnProperty(ch)&&p[ch],He=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return He||ve?this._zipTypesAndAnnotations(He,ve):Zv(p.length)}},{key:"parameters",value:function(p){if(!qt(p))return[];var _=Na(p),C=this._ownParameters(p,_);return!C&&_!==Object&&(C=this.parameters(_)),C||[]}},{key:"_ownAnnotations",value:function(p,_){if(p.annotations&&p.annotations!==_.annotations){var C=p.annotations;return"function"==typeof C&&C.annotations&&(C=C.annotations),C}return p.decorators&&p.decorators!==_.decorators?gC(p.decorators):p.hasOwnProperty(o_)?p[o_]:null}},{key:"annotations",value:function(p){if(!qt(p))return[];var _=Na(p),C=this._ownAnnotations(p,_)||[];return(_!==Object?this.annotations(_):[]).concat(C)}},{key:"_ownPropMetadata",value:function(p,_){if(p.propMetadata&&p.propMetadata!==_.propMetadata){var C=p.propMetadata;return"function"==typeof C&&C.propMetadata&&(C=C.propMetadata),C}if(p.propDecorators&&p.propDecorators!==_.propDecorators){var O=p.propDecorators,Y={};return Object.keys(O).forEach(function(ee){Y[ee]=gC(O[ee])}),Y}return p.hasOwnProperty(oa)?p[oa]:null}},{key:"propMetadata",value:function(p){if(!qt(p))return{};var _=Na(p),C={};if(_!==Object){var O=this.propMetadata(_);Object.keys(O).forEach(function(ee){C[ee]=O[ee]})}var Y=this._ownPropMetadata(p,_);return Y&&Object.keys(Y).forEach(function(ee){var oe=[];C.hasOwnProperty(ee)&&oe.push.apply(oe,(0,E.Z)(C[ee])),oe.push.apply(oe,(0,E.Z)(Y[ee])),C[ee]=oe}),C}},{key:"ownPropMetadata",value:function(p){return qt(p)&&this._ownPropMetadata(p,Na(p))||{}}},{key:"hasLifecycleHook",value:function(p,_){return p instanceof Lv&&_ in p.prototype}}]),c}();function gC(c){return c?c.map(function(f){var _=f.type.annotationCls,C=f.args?f.args:[];return(0,j.Z)(_,(0,E.Z)(C))}):[]}function Na(c){var f=c.prototype?Object.getPrototypeOf(c.prototype):null;return(f?f.constructor:null)||Object}var Oc={},kf="__NG_DI_FLAG__",Nv="ngTempTokenPath",ac=/\n/gm,_M="__source",s_=void 0;function l_(c){var f=s_;return s_=c,f}function vF(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;if(void 0===s_)throw new fe(-203,!1);return null===s_?ut(c,void 0,f):s_.get(c,f&ye.Optional?null:void 0,f)}function Ea(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return(Le()||vF)(te(c),f)}function gM(c){throw new fe(202,!1)}function PP(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return"number"!=typeof f&&(f=0|(f.optional&&8)|(f.host&&1)|(f.self&&2)|(f.skipSelf&&4)),Ea(c,f)}function vM(c){for(var f=[],p=0;p<c.length;p++){var _=te(c[p]);if(Array.isArray(_)){if(0===_.length)throw new fe(900,!1);for(var C=void 0,O=ye.Default,Y=0;Y<_.length;Y++){var ee=_[Y],oe=vC(ee);"number"==typeof oe?-1===oe?C=ee.token:O|=oe:C=ee}f.push(Ea(C,O))}else f.push(Ea(_))}return f}function Fv(c,f){return c[kf]=f,c.prototype[kf]=f,c}function vC(c){return c[kf]}function yM(c,f,p,_){var C=c[Nv];throw f[_M]&&C.unshift(f[_M]),c.message=function bM(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;var C=X(f);if(Array.isArray(f))C=f.map(X).join(" -> ");else if("object"==typeof f){var O=[];for(var Y in f)if(f.hasOwnProperty(Y)){var ee=f[Y];O.push(Y+":"+("string"==typeof ee?JSON.stringify(ee):X(ee)))}C="{".concat(O.join(", "),"}")}return"".concat(p).concat(_?"("+_+")":"","[").concat(C,"]: ").concat(c.replace(ac,"\n "))}("\n"+c.message,C,p,_),c.ngTokenPath=C,c[Nv]=null,c}var Uv=Fv(on("Inject",function(c){return{token:c}}),-1),u_=Fv(on("Optional"),8),hh=Fv(on("Self"),2),Sd=Fv(on("SkipSelf"),4),RP=Fv(on("Host"),1),CM=null;function Hv(){return CM=CM||new gF}function jv(c){return yF(Hv().parameters(c))}function yF(c){return c.map(function(f){return function VW(c){var f={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(c)&&c.length>0)for(var p=0;p<c.length;p++){var _=c[p];if(void 0!==_){var C=Object.getPrototypeOf(_);if(_ instanceof u_||"Optional"===C.ngMetadataName)f.optional=!0;else if(_ instanceof Sd||"SkipSelf"===C.ngMetadataName)f.skipSelf=!0;else if(_ instanceof hh||"Self"===C.ngMetadataName)f.self=!0;else if(_ instanceof RP||"Host"===C.ngMetadataName)f.host=!0;else if(_ instanceof Uv)f.token=_.token;else if(_ instanceof mC){if(void 0===_.attributeName)throw new fe(204,!1);f.attribute=_.attributeName}else f.token=_}}else void 0===c||Array.isArray(c)&&0===c.length?f.token=null:f.token=c;return f}(f)})}var mh=new Map,yC=new Set;function c_(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}var kM=new Map,NP=!0;function CF(c,f){(function bF(c,f,p){if(f&&f!==p&&NP)throw new Error("Duplicate module registered for ".concat(c," - ").concat(X(f)," vs ").concat(X(f.name)))})(f,kM.get(f)||null,c),kM.set(f,c)}var CC;!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(CC||(CC={}));var MF=/^>|^->|<!--|-->|--!>|<!-$/g,SF=/(<|>)/;function TM(c){return c.replace(MF,function(f){return f.replace(SF,"\u200b$1\u200b")})}var Gv=new Map,xF=0;var _h,d_="__ngContext__";function As(c,f){to(f)?(c[d_]=f[20],function GP(c){Gv.set(c[20],c)}(f)):c[d_]=f}function OM(c,f){return _h(c,f)}function Yv(c){var f=c[3];return Ai(f)?f[3]:f}function MC(c){return Wl(c[13])}function vh(c){return Wl(c[4])}function Wl(c){for(;null!==c&&!Ai(c);)c=c[4];return c}function f_(c,f,p,_,C){if(null!=_){var O,Y=!1;Ai(_)?O=_:to(_)&&(Y=!0,_=_[0]);var ee=po(_);0===c&&null!==p?null==C?LM(f,p,ee):Sf(f,p,ee,C||null,!0):1===c&&null!==p?Sf(f,p,ee,C||null,!0):2===c?p_(f,ee,Y):3===c&&f.destroyNode(ee),null!=O&&function h_(c,f,p,_,C){var O=p[7],Y=po(p);O!==Y&&f_(f,c,_,O,C);for(var ee=10;ee<p.length;ee++){var oe=p[ee];Yl(oe[1],oe,c,f,_,O)}}(f,c,O,p,C)}}function Kv(c,f){return c.createText(f)}function KP(c,f,p){c.setValue(f,p)}function Ba(c,f){return c.createComment(TM(f))}function qP(c,f,p){return c.createElement(f,p)}function XP(c,f,p,_){var C=10+_,O=p.length;_>0&&(p[C-1][4]=f),_<O-10?(f[4]=p[C],xP(p,10+_,f)):(p.push(f),f[4]=null),f[3]=p;var Y=f[17];null!==Y&&p!==Y&&function $P(c,f){var p=c[9],C=f[3][3][16];f[16]!==C&&(c[2]=!0),null===p?c[9]=[f]:p.push(f)}(Y,f);var ee=f[19];null!==ee&&ee.insertView(c),f[2]|=64}function e3(c,f){var p=c[9],_=p.indexOf(f),C=f[3];512&f[2]&&(f[2]&=-513,Ms(C,-1)),p.splice(_,1)}function PM(c,f){if(!(c.length<=10)){var p=10+f,_=c[p];if(_){var C=_[17];null!==C&&C!==c&&e3(C,_),f>0&&(c[p-1][4]=_[4]);var O=dh(c,10+f);!function yh(c,f){Yl(c,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);var Y=O[19];null!==Y&&Y.detachView(O[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}}function RM(c,f){if(!(128&f[2])){var p=f[11];p.destroyNode&&Yl(c,f,p,3,null,null),function QP(c){var f=c[13];if(!f)return Vl(c[1],c);for(;f;){var p=null;if(to(f))p=f[13];else{var _=f[10];_&&(p=_)}if(!p){for(;f&&!f[4]&&f!==c;)to(f)&&Vl(f[1],f),f=f[3];null===f&&(f=c),to(f)&&Vl(f[1],f),p=f&&f[4]}f=p}}(f)}}function Vl(c,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function PF(c,f){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var _=0;_<p.length;_+=2){var C=f[p[_]];if(!(C instanceof me)){var O=p[_+1];if(Array.isArray(O))for(var Y=0;Y<O.length;Y+=2){var ee=C[O[Y]],oe=O[Y+1];Br(4,ee,oe);try{oe.call(ee)}finally{Br(5,ee,oe)}}else{Br(4,C,O);try{O.call(C)}finally{Br(5,C,O)}}}}}(c,f),function yl(c,f){var p=c.cleanup,_=f[7],C=-1;if(null!==p)for(var O=0;O<p.length-1;O+=2)if("string"==typeof p[O]){var Y=p[O+1],ee="function"==typeof Y?Y(f):po(f[Y]),oe=_[C=p[O+2]],ve=p[O+3];"boolean"==typeof ve?ee.removeEventListener(p[O],oe,ve):ve>=0?_[C=ve]():_[C=-ve].unsubscribe(),O+=2}else{var He=_[C=p[O+1]];p[O].call(He)}if(null!==_){for(var nt=C+1;nt<_.length;nt++){(0,_[nt])()}f[7]=null}}(c,f),1===f[1].type&&f[11].destroy();var p=f[17];if(null!==p&&Ai(f[3])){p!==f[3]&&e3(p,f);var _=f[19];null!==_&&_.detachView(c)}!function zv(c){Gv.delete(c[20])}(f)}}function EC(c,f,p){return Mf(c,f.parent,p)}function Mf(c,f,p){for(var _=f;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return p[0];if(2&_.flags){var C=c.data[_.directiveStart].encapsulation;if(C===Sn.None||C===Sn.Emulated)return null}return xo(_,p)}function Sf(c,f,p,_,C){c.insertBefore(f,p,_,C)}function LM(c,f,p){c.appendChild(f,p)}function xC(c,f,p,_,C){null!==_?Sf(c,f,p,_,C):LM(c,f,p)}function Ef(c,f){return c.parentNode(f)}function ZM(c,f,p){return qv(c,f,p)}function i3(c,f,p){return 40&c.type?xo(c,p):null}var bh,__,qv=i3;function Jv(c,f){qv=c,bh=f}function xf(c,f,p,_){var C=EC(c,_,f),O=f[11],ee=ZM(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(p))for(var oe=0;oe<p.length;oe++)xC(O,C,p[oe],ee,!1);else xC(O,C,p,ee,!1);void 0!==bh&&bh(O,_,f,p,C)}function DC(c,f){if(null!==f){var p=f.type;if(3&p)return xo(f,c);if(4&p)return lc(-1,c[f.index]);if(8&p){var _=f.child;if(null!==_)return DC(c,_);var C=c[f.index];return Ai(C)?lc(-1,C):po(C)}if(32&p)return OM(f,c)()||po(c[f.index]);var ee=NM(c,f);return null!==ee?Array.isArray(ee)?ee[0]:DC(Yv(c[16]),ee):DC(c,f.next)}return null}function NM(c,f){if(null!==f){var _=c[16][6],C=f.projection;return _.projection[C]}return null}function lc(c,f){var p=10+c+1;if(p<f.length){var _=f[p],C=_[1].firstChild;if(null!==C)return DC(_,C)}return f[7]}function p_(c,f,p){var _=Ef(c,f);_&&function t3(c,f,p,_){c.removeChild(f,p,_)}(c,_,f,p)}function Df(c,f,p,_,C,O,Y){for(;null!=p;){var ee=_[p.index],oe=p.type;if(Y&&0===f&&(ee&&As(po(ee),_),p.flags|=4),64!=(64&p.flags))if(8&oe)Df(c,f,p.child,_,C,O,!1),f_(f,c,C,ee,O);else if(32&oe){for(var ve=OM(p,_),He=void 0;He=ve();)f_(f,c,C,He,O);f_(f,c,C,ee,O)}else 16&oe?Ic(c,f,_,p,C,O):f_(f,c,C,ee,O);p=Y?p.projectionNext:p.next}}function Yl(c,f,p,_,C,O){Df(p,_,c.firstChild,f,C,O,!1)}function Af(c,f,p){Ic(f[11],0,f,p,EC(c,p,f),ZM(p.parent||f[6],p,f))}function Ic(c,f,p,_,C,O){var Y=p[16],oe=Y[6].projection[_.projection];if(Array.isArray(oe))for(var ve=0;ve<oe.length;ve++){f_(f,c,C,oe[ve],O)}else Df(c,f,oe,Y[3],C,O,!0)}function Ed(c,f,p){c.setAttribute(f,"style",p)}function AC(c,f,p){""===p?c.removeAttribute(f,"class"):c.setAttribute(f,"class",p)}function BM(){if(void 0===__&&(__=null,hn.trustedTypes))try{__=hn.trustedTypes.createPolicy("angular",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return __}function Of(c){var f;return(null===(f=BM())||void 0===f?void 0:f.createHTML(c))||c}function LF(c,f,p){var _=xn(),C=Mt(),O=xo(C,_);if(2===C.type&&"iframe"===f.toLowerCase()){var Y=O;Y.src="",Y.srcdoc=Of(""),p_(_[11],Y);throw new fe(-910,!1)}return c}var If,v_=void 0;function Qv(c){v_=c}function OC(){return void 0!==v_?v_:"undefined"!=typeof document?document:void 0}function FM(){if(void 0===If&&(If=null,hn.trustedTypes))try{If=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return If}function IC(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createHTML(c))||c}function Pf(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createScript(c))||c}function o3(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createScriptURL(c))||c}var Ch=function(){function c(f){(0,v.Z)(this,c),this.changingThisBreaksApplicationSecurity=f}return(0,R.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),UM=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(Ch),a3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(Ch),s3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(Ch),l3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(Ch),u3=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),p}(Ch);function Pc(c){return c instanceof Ch?c.changingThisBreaksApplicationSecurity:c}function wh(c,f){var p=function Xv(c){return c instanceof Ch&&c.getTypeName()||null}(c);if(null!=p&&p!==f){if("ResourceURL"===p&&"URL"===f)return!0;throw new Error("Required a safe ".concat(f,", got a ").concat(p," (see https://g.co/ng/security#xss)"))}return p===f}function Rf(c){return new UM(c)}function c3(c){return new a3(c)}function Rc(c){return new s3(c)}function d3(c){return new l3(c)}function nV(c){return new u3(c)}function ZF(c){var f=new NF(c);return function HM(){try{return!!(new window.DOMParser).parseFromString(Of(""),"text/html")}catch(c){return!1}}()?new rV(f):f}var rV=function(){function c(f){(0,v.Z)(this,c),this.inertDocumentHelper=f}return(0,R.Z)(c,[{key:"getInertBodyElement",value:function(p){p="<body><remove></remove>"+p;try{var _=(new window.DOMParser).parseFromString(Of(p),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(p):(_.removeChild(_.firstChild),_)}catch(C){return null}}}]),c}(),NF=function(){function c(f){if((0,v.Z)(this,c),this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);var _=this.inertDocument.createElement("body");p.appendChild(_)}}return(0,R.Z)(c,[{key:"getInertBodyElement",value:function(p){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Of(p),_;var C=this.inertDocument.createElement("body");return C.innerHTML=Of(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(C),C}},{key:"stripCustomNsAttrs",value:function(p){for(var _=p.attributes,C=_.length-1;0<C;C--){var Y=_.item(C).name;("xmlns:ns1"===Y||0===Y.indexOf("ns1:"))&&p.removeAttribute(Y)}for(var ee=p.firstChild;ee;)ee.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(ee),ee=ee.nextSibling}}]),c}();var Lf=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function y_(c){return(c=String(c)).match(Lf)?c:"unsafe:"+c}function xd(c){var _,f={},p=(0,T.Z)(c.split(","));try{for(p.s();!(_=p.n()).done;){f[_.value]=!0}}catch(O){p.e(O)}finally{p.f()}return f}function b_(){for(var c={},f=arguments.length,p=new Array(f),_=0;_<f;_++)p[_]=arguments[_];for(var C=0,O=p;C<O.length;C++){var Y=O[C];for(var ee in Y)Y.hasOwnProperty(ee)&&(c[ee]=!0)}return c}var $v,Ad,jM=xd("area,br,col,hr,img,wbr"),PC=xd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C_=xd("rp,rt"),GM=b_(C_,PC),Xa=b_(PC,xd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dd=b_(C_,xd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),kh=b_(jM,Xa,Dd,GM),zM=xd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),BF=xd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),FF=xd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Th=b_(zM,BF,FF),f3=xd("script,style,template"),UF=function(){function c(){(0,v.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,R.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var _=p.firstChild,C=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?C=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,C&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var O=this.checkClobberedElement(_,_.nextSibling);if(O){_=O;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var _=p.nodeName.toLowerCase();if(!kh.hasOwnProperty(_))return this.sanitizedSomething=!0,!f3.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var C=p.attributes,O=0;O<C.length;O++){var Y=C.item(O),ee=Y.name,oe=ee.toLowerCase();if(Th.hasOwnProperty(oe)){var ve=Y.value;zM[oe]&&(ve=y_(ve)),this.buf.push(" ",ee,'="',p3(ve),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var _=p.nodeName.toLowerCase();kh.hasOwnProperty(_)&&!jM.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(p3(p))}},{key:"checkClobberedElement",value:function(p,_){if(_&&(p.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(p.outerHTML));return _}}]),c}(),RC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HF=/([^\#-~ |!])/g;function p3(c){return c.replace(/&/g,"&amp;").replace(RC,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(HF,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h3(c,f){var p=null;try{$v=$v||ZF(c);var _=f?String(f):"";p=$v.getInertBodyElement(_);var C=5,O=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=O,O=p.innerHTML,p=$v.getInertBodyElement(_)}while(_!==O);return Of((new UF).sanitizeChildren(WM(p)||p))}finally{if(p)for(var oe=WM(p)||p;oe.firstChild;)oe.removeChild(oe.firstChild)}}function WM(c){return"content"in c&&function jF(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function VM(c){var f=ku();return f?IC(f.sanitize(Ad.HTML,c)||""):wh(c,"HTML")?IC(Pc(c)):h3(OC(),de(c))}function m3(c){var f=ku();return f?f.sanitize(Ad.STYLE,c)||"":wh(c,"Style")?Pc(c):de(c)}function Mh(c){var f=ku();return f?f.sanitize(Ad.URL,c)||"":wh(c,"URL")?Pc(c):y_(de(c))}function _3(c){var f=ku();if(f)return o3(f.sanitize(Ad.RESOURCE_URL,c)||"");if(wh(c,"ResourceURL"))return o3(Pc(c));throw new fe(904,!1)}function GF(c){var f=ku();if(f)return Pf(f.sanitize(Ad.SCRIPT,c)||"");if(wh(c,"Script"))return Pf(Pc(c));throw new fe(905,!1)}function g3(c){return Of(c[0])}function zF(c){return function RF(c){var f;return(null===(f=BM())||void 0===f?void 0:f.createScriptURL(c))||c}(c[0])}function WF(c,f,p){return function YM(c,f){return"src"===f&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===f&&("base"===c||"link"===c)?_3:Mh}(f,p)(c)}function ku(){var c=xn();return c&&c[12]}!function(c){c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL"}(Ad||(Ad={}));var ey=new io("ENVIRONMENT_INITIALIZER"),w_=new io("INJECTOR",-1),Fa=new io("INJECTOR_DEF_TYPES"),ty=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc;if(_===Oc){var C=new Error("NullInjectorError: No provider for ".concat(X(p),"!"));throw C.name="NullInjectorError",C}return _}}]),c}();function Tu(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return{"\u0275providers":k_(!0,f)}}function k_(c){for(var _,f=[],p=new Set,C=arguments.length,O=new Array(C>1?C-1:0),Y=1;Y<C;Y++)O[Y-1]=arguments[Y];return Td(O,function(ee){var ve=ee;ny(ve,f,[],p)&&(_||(_=[]),_.push(ve))}),void 0!==_&&LC(_,f),f}function LC(c,f){for(var p=function(){var O=c[_];O.ngModule;Td(O.providers,function(oe){f.push(oe)})},_=0;_<c.length;_++)p()}function ny(c,f,p,_){if(!(c=te(c)))return!1;var C=null,O=Vt(c),Y=!O&&Vn(c);if(O||Y){if(Y&&!Y.standalone)return!1;C=c}else{var ee=c.ngModule;if(!(O=Vt(ee)))return!1;C=ee}var He=_.has(C);if(Y){if(He)return!1;if(_.add(C),Y.dependencies){var kt,nt="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies,dt=(0,T.Z)(nt);try{for(dt.s();!(kt=dt.n()).done;){ny(kt.value,f,p,_)}}catch(Cn){dt.e(Cn)}finally{dt.f()}}}else{if(!O)return!1;if(null!=O.imports&&!He){var _n;_.add(C);try{Td(O.imports,function(Cn){ny(Cn,f,p,_)&&(_n||(_n=[]),_n.push(Cn))})}finally{}void 0!==_n&&LC(_n,f)}if(!He){var Fn=go(C)||function(){return new C};f.push({provide:C,useFactory:Fn,deps:tt},{provide:Fa,useValue:C,multi:!0},{provide:ey,useValue:function(){return Ea(C)},multi:!0})}var Jn=O.providers;if(null!=Jn&&!He){Td(Jn,function(Cn){f.push(Cn)})}}return C!==c&&void 0!==c.providers}var Zf=N({provide:String,useValue:N});function ry(c){return null!==c&&"object"==typeof c&&Zf in c}function ZC(c){return!(!c||!c.useExisting)}function iy(c){return!(!c||!c.useFactory)}function Lc(c){return"function"==typeof c}var T_=new io("Set Injector scope."),Os={},NC={},oy=void 0;function $a(){return void 0===oy&&(oy=new ty),oy}var Is=(0,R.Z)(function c(){(0,v.Z)(this,c)}),Sh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O,Y){var ee;(0,v.Z)(this,p),(ee=f.call(this)).parent=C,ee.source=O,ee.scopes=Y,ee.records=new Map,ee._ngOnDestroyHooks=new Set,ee._onDestroyHooks=[],ee._destroyed=!1,QM(_,function(ve){return ee.processProvider(ve)}),ee.records.set(w_,Ps(void 0,(0,I.Z)(ee))),Y.has("environment")&&ee.records.set(Is,Ps(void 0,(0,I.Z)(ee)));var oe=ee.records.get(T_);return null!=oe&&"string"==typeof oe.value&&ee.scopes.add(oe.value),ee.injectorDefTypes=new Set(ee.get(Fa.multi,tt,ye.Self)),ee}return(0,R.Z)(p,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{var O,C=(0,T.Z)(this._ngOnDestroyHooks);try{for(C.s();!(O=C.n()).done;){O.value.ngOnDestroy()}}catch(He){C.e(He)}finally{C.f()}var oe,ee=(0,T.Z)(this._onDestroyHooks);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}},{key:"onDestroy",value:function(C){this._onDestroyHooks.push(C)}},{key:"runInContext",value:function(C){this.assertNotDestroyed();var O=l_(this),Y=lt(void 0);try{return C()}finally{l_(O),lt(Y)}}},{key:"get",value:function(C){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye.Default;this.assertNotDestroyed();var ee=l_(this),oe=lt(void 0);try{if(!(Y&ye.SkipSelf)){var ve=this.records.get(C);if(void 0===ve){var He=KF(C)&&Lt(C);ve=He&&this.injectableDefInScope(He)?Ps(ay(C),Os):null,this.records.set(C,ve)}if(null!=ve)return this.hydrate(C,ve)}var nt=Y&ye.Self?$a():this.parent;return O=Y&ye.Optional&&O===Oc?null:O,nt.get(C,O)}catch(kt){if("NullInjectorError"===kt.name){var dt=kt[Nv]=kt[Nv]||[];if(dt.unshift(X(C)),ee)throw kt;return yM(kt,C,"R3InjectorError",this.source)}throw kt}finally{lt(oe),l_(ee)}}},{key:"resolveInjectorInitializers",value:function(){var C=l_(this),O=lt(void 0);try{var oe,Y=this.get(ey.multi,tt,ye.Self),ee=(0,T.Z)(Y);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{l_(C),lt(O)}}},{key:"toString",value:function(){var ee,C=[],O=this.records,Y=(0,T.Z)(O.keys());try{for(Y.s();!(ee=Y.n()).done;){var oe=ee.value;C.push(X(oe))}}catch(ve){Y.e(ve)}finally{Y.f()}return"R3Injector[".concat(C.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new fe(205,!1)}},{key:"processProvider",value:function(C){var O=Lc(C=te(C))?C:te(C&&C.provide),Y=function M_(c){return ry(c)?Ps(void 0,c.useValue):Ps(sy(c),Os)}(C);if(Lc(C)||!0!==C.multi)this.records.get(O);else{var ee=this.records.get(O);ee||((ee=Ps(void 0,Os,!0)).factory=function(){return vM(ee.multi)},this.records.set(O,ee)),O=C,ee.multi.push(C)}this.records.set(O,Y)}},{key:"hydrate",value:function(C,O){return O.value===Os&&(O.value=NC,O.value=O.factory()),"object"==typeof O.value&&O.value&&function JM(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(O.value)&&this._ngOnDestroyHooks.add(O.value),O.value}},{key:"injectableDefInScope",value:function(C){if(!C.providedIn)return!1;var O=te(C.providedIn);return"string"==typeof O?"any"===O||this.scopes.has(O):this.injectorDefTypes.has(O)}}]),p}(Is);function ay(c){var f=Lt(c),p=null!==f?f.factory:go(c);if(null!==p)return p;if(c instanceof io)throw new fe(204,!1);if(c instanceof Function)return function qM(c){var f=c.length;if(f>0){Zv(f,"?");throw new fe(204,!1)}var _=function Qt(c){var f=c&&(c[Jt]||c[Fe]);if(f){var p=function vn(c){if(c.hasOwnProperty("name"))return c.name;var f=(""+c).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(c);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(p,'" 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(p,'" class.')),f}return null}(c);return null!==_?function(){return _.factory(c)}:function(){return new c}}(c);throw new fe(204,!1)}function sy(c,f,p){var _=void 0;if(Lc(c)){var C=te(c);return go(C)||ay(C)}if(ry(c))_=function(){return te(c.useValue)};else if(iy(c))_=function(){return c.useFactory.apply(c,(0,E.Z)(vM(c.deps||[])))};else if(ZC(c))_=function(){return Ea(te(c.useExisting))};else{var O=te(c&&(c.useClass||c.provide));if(!function Nf(c){return!!c.deps}(c))return go(O)||ay(O);_=function(){return(0,j.Z)(O,(0,E.Z)(vM(c.deps)))}}return _}function Ps(c,f){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:f,multi:p?[]:void 0}}function KF(c){return"function"==typeof c||"object"==typeof c&&c instanceof io}function qF(c){return!!c.\u0275providers}function QM(c,f){var _,p=(0,T.Z)(c);try{for(p.s();!(_=p.n()).done;){var C=_.value;Array.isArray(C)?QM(C,f):qF(C)?QM(C.\u0275providers,f):f(C)}}catch(O){p.e(O)}finally{p.f()}}var JF=(0,R.Z)(function c(){(0,v.Z)(this,c)}),BC=(0,R.Z)(function c(){(0,v.Z)(this,c)});var XM="ngComponent";var y3=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"resolveComponentFactory",value:function(p){throw function Eh(c){var f=Error("No component factory found for ".concat(X(c),". Did you add it to @NgModule.entryComponents?"));return f[XM]=c,f}(p)}}]),c}(),Bf=(0,R.Z)(function c(){(0,v.Z)(this,c)});function S_(c,f){return new E_(xo(c,f))}Bf.NULL=new y3;var E_=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.nativeElement=f});function b3(c){return c instanceof E_?c.nativeElement:c}E_.__NG_ELEMENT_ID__=function QF(){return S_(Me(),xn())};new io("Renderer2Interceptor");var $M=(0,R.Z)(function c(){(0,v.Z)(this,c)}),C3=(0,R.Z)(function c(){(0,v.Z)(this,c)});C3.__NG_ELEMENT_ID__=function(){return function eS(){var c=xn(),p=jo(Me().index,c);return(to(p)?p:c)[11]}()};var FC=(0,R.Z)(function c(){(0,v.Z)(this,c)});FC.\u0275prov=Be({token:FC,providedIn:"root",factory:function(){return null}});var w3=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}),ji=new w3("14.3.0"),tS={},UC="ngOriginalError";function nS(c){return c[UC]}var xh=function(){function c(){(0,v.Z)(this,c),this._console=console}return(0,R.Z)(c,[{key:"handleError",value:function(p){var _=this._findOriginalError(p);this._console.error("ERROR",p),_&&this._console.error("ORIGINAL ERROR",_)}},{key:"_findOriginalError",value:function(p){for(var _=p&&nS(p);_&&nS(_);)_=nS(_);return _||null}}]),c}();function Dh(c){return c.ownerDocument.defaultView}function ly(c){return c.ownerDocument}function M3(c){return c.ownerDocument.body}function Id(c){return c instanceof Function?c():c}function uy(c,f,p){for(var _=c.length;;){var C=c.indexOf(f,p);if(-1===C)return C;if(0===C||c.charCodeAt(C-1)<=32){var O=f.length;if(C+O===_||c.charCodeAt(C+O)<=32)return C}p=C+1}}var HC="ng-template";function t4(c,f,p){for(var _=0;_<c.length;){var C=c[_++];if(p&&"class"===C){if(-1!==uy((C=c[_]).toLowerCase(),f,0))return!0}else if(1===C){for(;_<c.length&&"string"==typeof(C=c[_++]);)if(C.toLowerCase()===f)return!0;return!1}}return!1}function D3(c){return 4===c.type&&c.value!==HC}function n4(c,f,p){return f===(4!==c.type||p?c.value:HC)}function Ah(c,f,p){for(var _=4,C=c.attrs||[],O=function x_(c){for(var f=0;f<c.length;f++){if(Do(c[f]))return f}return c.length}(C),Y=!1,ee=0;ee<f.length;ee++){var oe=f[ee];if("number"!=typeof oe){if(!Y)if(4&_){if(_=2|1&_,""!==oe&&!n4(c,oe,p)||""===oe&&1===f.length){if(Mu(_))return!1;Y=!0}}else{var ve=8&_?oe:f[++ee];if(8&_&&null!==c.attrs){if(!t4(c.attrs,ve,p)){if(Mu(_))return!1;Y=!0}continue}var nt=r4(8&_?"class":oe,C,D3(c),p);if(-1===nt){if(Mu(_))return!1;Y=!0;continue}if(""!==ve){var dt=void 0;dt=nt>O?"":C[nt+1].toLowerCase();var kt=8&_?dt:null;if(kt&&-1!==uy(kt,ve,0)||2&_&&ve!==dt){if(Mu(_))return!1;Y=!0}}}}else{if(!Y&&!Mu(_)&&!Mu(oe))return!1;if(Y&&Mu(oe))continue;Y=!1,_=oe|1&_}}return Mu(_)||Y}function Mu(c){return 0==(1&c)}function r4(c,f,p,_){if(null===f)return-1;var C=0;if(_||!p){for(var O=!1;C<f.length;){var Y=f[C];if(Y===c)return C;if(3===Y||6===Y)O=!0;else{if(1===Y||2===Y){for(var ee=f[++C];"string"==typeof ee;)ee=f[++C];continue}if(4===Y)break;if(0===Y){C+=4;continue}}C+=O?1:2}return-1}return function o4(c,f){var p=c.indexOf(4);if(p>-1)for(p++;p<c.length;){var _=c[p];if("number"==typeof _)return-1;if(_===f)return p;p++}return-1}(f,c)}function iS(c,f){for(var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=0;_<f.length;_++)if(Ah(c,f[_],p))return!0;return!1}function a4(c,f){e:for(var p=0;p<f.length;p++){var _=f[p];if(c.length===_.length){for(var C=0;C<c.length;C++)if(c[C]!==_[C])continue e;return!0}}return!1}function A3(c,f){return c?":not("+f.trim()+")":f}function s4(c){for(var f=c[0],p=1,_=2,C="",O=!1;p<c.length;){var Y=c[p];if("string"==typeof Y)if(2&_){var ee=c[++p];C+="["+Y+(ee.length>0?'="'+ee+'"':"")+"]"}else 8&_?C+="."+Y:4&_&&(C+=" "+Y);else""!==C&&!Mu(Y)&&(f+=A3(O,C),C=""),_=Y,O=O||!Mu(_);p++}return""!==C&&(f+=A3(O,C)),f}var jr={};function O3(c){I3(we(),xn(),ze()+c,!1)}function I3(c,f,p,_){if(!_)if(3==(3&f[2])){var O=c.preOrderCheckHooks;null!==O&&vf(f,O,p)}else{var Y=c.preOrderHooks;null!==Y&&n_(f,Y,0,p)}mt(p)}var P3={"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275inject":Ea,"\u0275\u0275invalidFactoryDep":gM,resolveForwardRef:te};function c4(c,f){var p=null,_=null;c.hasOwnProperty(Jt)||Object.defineProperty(c,Jt,{get:function(){if(null===p){var O=Za();p=O.compileInjectable(P3,"ng:///".concat(c.name,"/\u0275prov.js"),function f4(c,f){var p=f||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(jC(p)||L3(p))&&void 0!==p.deps&&(_.deps=yF(p.deps)),jC(p)?_.useClass=p.useClass:function R3(c){return d4 in c}(p)?_.useValue=p.useValue:L3(p)?_.useFactory=p.useFactory:function Z3(c){return void 0!==c.useExisting}(p)&&(_.useExisting=p.useExisting),_}(c,f))}return p}}),c.hasOwnProperty(Je)||Object.defineProperty(c,Je,{get:function(){if(null===_){var O=Za();_=O.compileFactory(P3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:jv(c),target:O.FactoryTarget.Injectable})}return _},configurable:!0})}var d4=N({provide:String,useValue:N});function jC(c){return void 0!==c.useClass}function L3(c){return void 0!==c.useFactory}var p4=Cf("Injectable",void 0,void 0,void 0,function(c,f){return c4(c,f)});function N3(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,C=oS(c,f,p,_);return C.resolveInjectorInitializers(),C}function oS(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,C=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,O=[p||tt,Tu(c)];return _=_||("object"==typeof c?void 0:X(c)),new Sh(O,f||$a(),_||null,C)}var bl=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,null,[{key:"create",value:function(p,_){var C;if(Array.isArray(p))return N3({name:""},_,p,"");var O=null!==(C=p.name)&&void 0!==C?C:"";return N3({name:O},p.parent,p.providers,O)}}]),c}();function D_(c){if(c.length>1){var f=function h4(c){for(var f=[],p=0;p<c.length;++p){if(f.indexOf(c[p])>-1)return f.push(c[p]),f;f.push(c[p])}return f}(c.slice().reverse());return" ("+f.map(function(_){return X(_.token)}).join(" -> ")+")"}return""}function GC(c,f,p,_){var C=[f],O=p(C),Y=_?function el(c,f){var p="".concat(c," caused by: ").concat(f instanceof Error?f.message:f),_=Error(p);return _[UC]=f,_}(O,_):Error(O);return Y.addKey=B3,Y.keys=C,Y.injectors=[c],Y.constructResolvingMessage=p,Y[UC]=_,Y}function B3(c,f){this.injectors.push(c),this.keys.push(f),this.message=this.constructResolvingMessage(this.keys)}function U3(c,f){for(var p=[],_=0,C=f.length;_<C;_++){var O=f[_];O&&0!=O.length?p.push(O.map(X).join(" ")):p.push("?")}return Error("Cannot resolve all parameters for '"+X(c)+"'("+p.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(c)+"' is decorated with Injectable.")}function Xr(c,f){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(f))}bl.THROW_IF_NOT_FOUND=Oc,bl.NULL=new ty,bl.\u0275prov=Be({token:bl,providedIn:"any",factory:function(){return Ea(w_)}}),bl.__NG_ELEMENT_ID__=-1;var Ff=function(){function c(f,p){if((0,v.Z)(this,c),this.token=f,this.id=p,!f)throw new fe(208,!1);this.displayName=X(this.token)}return(0,R.Z)(c,null,[{key:"get",value:function(p){return Zc.get(te(p))}},{key:"numberOfKeys",get:function(){return Zc.numberOfKeys}}]),c}(),j3=function(){function c(){(0,v.Z)(this,c),this._allKeys=new Map}return(0,R.Z)(c,[{key:"get",value:function(p){if(p instanceof Ff)return p;if(this._allKeys.has(p))return this._allKeys.get(p);var _=new Ff(p,Ff.numberOfKeys);return this._allKeys.set(p,_),_}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),Zc=new j3,aS=function(){function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.optional=p,this.visibility=_}return(0,R.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),v4=[],G3=(0,R.Z)(function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.resolvedFactories=p,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),y4=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.factory=f,this.dependencies=p});function sS(c){var f,p;if(c.useClass){var _=te(c.useClass);f=Hv().factory(_),p=WC(_)}else c.useExisting?(f=function(O){return O},p=[aS.fromKey(Ff.get(c.useExisting))]):c.useFactory?(f=c.useFactory,p=function z3(c,f){if(f){var p=f.map(function(_){return[_]});return f.map(function(_){return k4(c,_,p)})}return WC(c)}(c.useFactory,c.deps)):(f=function(){return c.useValue},p=v4);return new y4(f,p)}function b4(c){return new G3(Ff.get(c.provide),[sS(c)],c.multi||!1)}function C4(c){var _=function w4(c,f){for(var p=0;p<c.length;p++){var _=c[p],C=f.get(_.key.id);if(C){if(_.multiProvider!==C.multiProvider)throw Xr(C,_);if(_.multiProvider)for(var O=0;O<_.resolvedFactories.length;O++)C.resolvedFactories.push(_.resolvedFactories[O]);else f.set(_.key.id,_)}else{var Y=void 0;Y=_.multiProvider?new G3(_.key,_.resolvedFactories.slice(),_.multiProvider):_,f.set(_.key.id,Y)}}return f}(zC(c,[]).map(b4),new Map);return Array.from(_.values())}function zC(c,f){return c.forEach(function(p){if(p instanceof Lv)f.push({provide:p,useClass:p});else if(p&&"object"==typeof p&&void 0!==p.provide)f.push(p);else{if(!Array.isArray(p))throw function g4(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(p);zC(p,f)}}),f}function WC(c){var f=Hv().parameters(c);if(!f)return[];if(f.some(function(p){return null==p}))throw U3(c,f);return f.map(function(p){return k4(c,p,f)})}function k4(c,f,p){var _=null,C=!1;if(!Array.isArray(f))return cy(f instanceof Uv?f.token:f,C,null);for(var O=null,Y=0;Y<f.length;++Y){var ee=f[Y];ee instanceof Lv?_=ee:ee instanceof Uv?_=ee.token:ee instanceof u_?C=!0:ee instanceof hh||ee instanceof Sd?O=ee:ee instanceof io&&(_=ee)}if(null!=(_=te(_)))return cy(_,C,O);throw U3(c,p)}function cy(c,f,p){return new aS(Ff.get(c),f,p)}var dy={},W3=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,null,[{key:"resolve",value:function(p){return C4(p)}},{key:"resolveAndCreate",value:function(p,_){var C=c.resolve(p);return c.fromResolvedProviders(C,_)}},{key:"fromResolvedProviders",value:function(p,_){return new V3(p,_)}}]),c}(),V3=function(){function c(f,p){(0,v.Z)(this,c),this._constructionCounter=0,this._providers=f,this.parent=p||null;var _=f.length;this.keyIds=[],this.objs=[];for(var C=0;C<_;C++)this.keyIds[C]=f[C].key.id,this.objs[C]=dy}return(0,R.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc;return this._getByKey(Ff.get(p),null,_)}},{key:"resolveAndCreateChild",value:function(p){var _=W3.resolve(p);return this.createChildFromResolved(_)}},{key:"createChildFromResolved",value:function(p){var _=new c(p);return _.parent=this,_}},{key:"resolveAndInstantiate",value:function(p){return this.instantiateResolved(W3.resolve([p])[0])}},{key:"instantiateResolved",value:function(p){return this._instantiateProvider(p)}},{key:"getProviderAtIndex",value:function(p){if(p<0||p>=this._providers.length)throw function H3(c){return Error("Index ".concat(c," is out-of-bounds."))}(p);return this._providers[p]}},{key:"_new",value:function(p){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function m4(c,f){return GC(c,f,function(p){return"Cannot instantiate cyclic dependency!".concat(D_(p))})}(this,p.key);return this._instantiateProvider(p)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(p){if(p.multiProvider){for(var _=[],C=0;C<p.resolvedFactories.length;++C)_[C]=this._instantiate(p,p.resolvedFactories[C]);return _}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,_){var Y,ee,C=this,O=_.factory;try{Y=_.dependencies.map(function(oe){return C._getByReflectiveDependency(oe)})}catch(oe){throw oe.addKey&&oe.addKey(this,p.key),oe}try{ee=O.apply(void 0,(0,E.Z)(Y))}catch(oe){throw function _4(c,f,p,_){return GC(c,_,function(C){var O=X(C[0].token);return"".concat(f.message,": Error during instantiation of ").concat(O,"!").concat(D_(C),".")},f)}(this,oe,oe.stack,p.key)}return ee}},{key:"_getByReflectiveDependency",value:function(p){return this._getByKey(p.key,p.visibility,p.optional?null:Oc)}},{key:"_getByKey",value:function(p,_,C){return p===c.INJECTOR_KEY?this:_ instanceof hh?this._getByKeySelf(p,C):this._getByKeyDefault(p,C,_)}},{key:"_getObjByKeyId",value:function(p){for(var _=0;_<this.keyIds.length;_++)if(this.keyIds[_]===p)return this.objs[_]===dy&&(this.objs[_]=this._new(this._providers[_])),this.objs[_];return dy}},{key:"_throwOrNull",value:function(p,_){if(_!==Oc)return _;throw function F3(c,f){return GC(c,f,function(p){var _=X(p[0].token);return"No provider for ".concat(_,"!").concat(D_(p))})}(this,p)}},{key:"_getByKeySelf",value:function(p,_){var C=this._getObjByKeyId(p.id);return C!==dy?C:this._throwOrNull(p,_)}},{key:"_getByKeyDefault",value:function(p,_,C){var O;for(O=C instanceof Sd?this.parent:this;O instanceof c;){var Y=O,ee=Y._getObjByKeyId(p.id);if(ee!==dy)return ee;O=Y.parent}return null!==O?O.get(p.token,_):this._throwOrNull(p,_)}},{key:"displayName",get:function(){var p=function T4(c,f){for(var p=[],_=0;_<c._providers.length;++_)p[_]=f(c.getProviderAtIndex(_));return p}(this,function(_){return' "'+_.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(p,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function A_(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default,p=xn();if(null===p)return Ea(c,f);var _=Me();return bf(_,p,te(c),f)}function Y3(){throw new Error("invalid")}function Pd(c,f){return c<<17|f<<2}function tl(c){return c>>17&32767}function K3(c){return 2==(2&c)}function Oh(c){return 2|c}function Su(c){return(131068&c)>>2}function O_(c,f){return-131069&c|f<<2}function q3(c){return 1==(1&c)}function uS(c){return 1|c}V3.INJECTOR_KEY=Ff.get(bl);function l6(c,f){var p=c.contentQueries;if(null!==p)for(var _=0;_<p.length;_+=2){var C=p[_],O=p[_+1];if(-1!==O){var Y=c.data[O];Es(C),Y.contentQueries(2,f[O],O)}}}function JC(c,f,p,_,C,O,Y,ee,oe,ve,He){var nt=f.blueprint.slice();return nt[0]=C,nt[2]=76|_,(null!==He||c&&1024&c[2])&&(nt[2]|=1024),nh(nt),nt[3]=nt[15]=c,nt[8]=p,nt[10]=Y||c&&c[10],nt[11]=ee||c&&c[11],nt[12]=oe||c&&c[12]||null,nt[9]=ve||c&&c[9]||null,nt[6]=O,nt[20]=function DF(){return xF++}(),nt[21]=He,nt[16]=2==f.type?c[16]:nt,nt}function _y(c,f,p,_,C){var O=c.data[f];if(null===O)O=I_(c,f,p,_,C),function $m(){return Cr.lFrame.inI18n}()&&(O.flags|=64);else if(64&O.type){O.type=p,O.value=_,O.attrs=C;var Y=pt();O.injectorIndex=null===Y?-1:Y.injectorIndex}return Yt(O,!0),O}function I_(c,f,p,_,C){var O=Oe(),Y=Pn(),ee=Y?O:O&&O.parent,oe=c.data[f]=function m6(c,f,p,_,C,O){var Y=f?f.injectorIndex:-1;return{type:p,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:C,attrs:O,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ee,p,f,_,C);return null===c.firstChild&&(c.firstChild=oe),null!==O&&(Y?null==O.child&&null!==oe.parent&&(O.child=oe):null===O.next&&(O.next=oe)),oe}function P_(c,f,p,_){if(0===p)return-1;for(var C=f.length,O=0;O<p;O++)f.push(_),c.blueprint.push(_),c.data.push(null);return C}function c6(c,f,p){wd(f);try{var _=c.viewQuery;null!==_&&CS(1,_,p);var C=c.template;null!==C&&d6(c,f,C,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&l6(c,f),c.staticViewQueries&&CS(2,c.viewQuery,p);var O=c.components;null!==O&&function hV(c,f){for(var p=0;p<f.length;p++)z4(c,f[p])}(f,O)}catch(Y){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),Y}finally{f[2]&=-5,_e()}}function QC(c,f,p,_){var C=f[2];if(128!=(128&C)){wd(f);try{nh(f),nc(c.bindingStartIndex),null!==p&&d6(c,f,p,2,_);var Y=3==(3&C);if(Y){var ee=c.preOrderCheckHooks;null!==ee&&vf(f,ee,null)}else{var oe=c.preOrderHooks;null!==oe&&n_(f,oe,0,null),Iv(f,0)}if(function k6(c){for(var f=MC(c);null!==f;f=vh(f))if(f[2])for(var p=f[9],_=0;_<p.length;_++){var C=p[_],O=C[3];0==(512&C[2])&&Ms(O,1),C[2]|=512}}(f),function w6(c){for(var f=MC(c);null!==f;f=vh(f))for(var p=10;p<f.length;p++){var _=f[p],C=_[1];Ts(_)&&QC(C,_,C.template,_[8])}}(f),null!==c.contentQueries&&l6(c,f),Y){var ve=c.contentCheckHooks;null!==ve&&vf(f,ve)}else{var He=c.contentHooks;null!==He&&n_(f,He,1),Iv(f,1)}!function s6(c,f){var p=c.hostBindingOpCodes;if(null!==p)try{for(var _=0;_<p.length;_++){var C=p[_];if(C<0)mt(~C);else{var O=C,Y=p[++_],ee=p[++_];oh(Y,O),ee(2,f[O])}}}finally{mt(-1)}}(c,f);var nt=c.components;null!==nt&&function u6(c,f){for(var p=0;p<f.length;p++)T6(c,f[p])}(f,nt);var dt=c.viewQuery;if(null!==dt&&CS(2,dt,_),Y){var kt=c.viewCheckHooks;null!==kt&&vf(f,kt)}else{var Xt=c.viewHooks;null!==Xt&&n_(f,Xt,2),Iv(f,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),f[2]&=-41,512&f[2]&&(f[2]&=-513,Ms(f[3],-1))}finally{_e()}}}function d6(c,f,p,_,C){var O=ze(),Y=2&_;try{mt(-1),Y&&f.length>22&&I3(c,f,22,!1),Br(Y?2:0,C),p(_,C)}finally{mt(O),Br(Y?3:1,C)}}function f6(c,f,p){if(pu(f))for(var _=f.directiveStart,C=f.directiveEnd,O=_;O<C;O++){var Y=c.data[O];Y.contentQueries&&Y.contentQueries(1,p[O],O)}}function hS(c,f,p){!Js()||(function Z4(c,f,p,_){var C=p.directiveStart,O=p.directiveEnd;c.firstCreatePass||sh(p,f),As(_,f);for(var Y=p.initialInputs,ee=C;ee<O;ee++){var oe=c.data[ee],ve=en(oe);ve&&H4(f,p,oe);var He=i_(f,c,ee,p);if(As(He,f),null!==Y&&j4(f,ee-C,He,oe,p,Y),ve)jo(p.index,f)[8]=He}}(c,f,p,xo(p,f)),128==(128&p.flags)&&function N4(c,f,p){var _=p.directiveStart,C=p.directiveEnd,O=p.index,Y=function t_(){return Cr.lFrame.currentDirectiveIndex}();try{mt(O);for(var ee=_;ee<C;ee++){var oe=c.data[ee],ve=f[ee];Ac(ee),(null!==oe.hostBindings||0!==oe.hostVars||null!==oe.hostAttrs)&&v6(oe,ve)}}finally{mt(-1),Ac(Y)}}(c,f,p))}function mS(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xo,_=f.localNames;if(null!==_)for(var C=f.index+1,O=0;O<_.length;O+=2){var Y=_[O+1],ee=-1===Y?p(f,c):c[Y];c[C++]=ee}}function _S(c){var f=c.tView;if(null===f||f.incompleteFirstPass){return c.tView=gS(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return f}function gS(c,f,p,_,C,O,Y,ee,oe,ve){var He=22+_,nt=He+C,dt=function p6(c,f){for(var p=[],_=0;_<f;_++)p.push(_<c?null:jr);return p}(He,nt),kt="function"==typeof ve?ve():ve;return dt[1]={type:c,blueprint:dt,template:p,queries:null,viewQuery:ee,declTNode:f,data:dt.slice().fill(null,He),bindingStartIndex:He,expandoStartIndex:nt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof O?O():O,pipeRegistry:"function"==typeof Y?Y():Y,firstChild:null,schemas:oe,consts:kt,incompleteFirstPass:!1}}function vS(c,f,p,_){var C=wS(f);null===p?C.push(_):(C.push(p),c.firstCreatePass&&n1(c).push(_,C.length-1))}function _6(c,f,p){for(var _ in c)if(c.hasOwnProperty(_)){p=null===p?{}:p;var C=c[_];p.hasOwnProperty(_)?p[_].push(f,C):p[_]=[f,C]}return p}function g6(c,f){for(var p=f.directiveStart,_=f.directiveEnd,C=c.data,O=f.attrs,Y=[],ee=null,oe=null,ve=p;ve<_;ve++){var He=C[ve],nt=He.inputs,dt=null===O||D3(f)?null:G4(nt,O);Y.push(dt),ee=_6(nt,ve,ee),oe=_6(He.outputs,ve,oe)}null!==ee&&(ee.hasOwnProperty("class")&&(f.flags|=16),ee.hasOwnProperty("style")&&(f.flags|=32)),f.initialInputs=Y,f.inputs=ee,f.outputs=oe}function Kl(c,f,p,_,C,O,Y,ee){var He,oe=xo(f,p),ve=f.inputs;!ee&&null!=ve&&(He=ve[_])?(kS(c,p,He,_,C),Yi(f)&&XC(p,f.index)):3&f.type?(_=function P4(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),C=null!=Y?Y(C,f.value||"",_):C,O.setProperty(oe,_,C)):f.type}function XC(c,f){var p=jo(f,c);16&p[2]||(p[2]|=32)}function gy(c,f,p,_){var C=!1;if(Js()){var O=function B4(c,f,p){var _=c.directiveRegistry,C=null;if(_)for(var O=0;O<_.length;O++){var Y=_[O];iS(p,Y.selectors,!1)&&(C||(C=[]),xs(sh(p,f),c,Y.type),en(Y)?(y6(c,p),C.unshift(Y)):C.push(Y))}return C}(c,f,p),Y=null===_?null:{"":-1};if(null!==O){C=!0,b6(p,c.data.length,O.length);for(var ee=0;ee<O.length;ee++){var oe=O[ee];oe.providersResolver&&oe.providersResolver(oe)}for(var ve=!1,He=!1,nt=P_(c,f,O.length,null),dt=0;dt<O.length;dt++){var kt=O[dt];p.mergedAttrs=ds(p.mergedAttrs,kt.hostAttrs),C6(c,p,f,nt,kt),U4(nt,kt,Y),null!==kt.contentQueries&&(p.flags|=8),(null!==kt.hostBindings||null!==kt.hostAttrs||0!==kt.hostVars)&&(p.flags|=128);var Xt=kt.type.prototype;!ve&&(Xt.ngOnChanges||Xt.ngOnInit||Xt.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(p.index),ve=!0),!He&&(Xt.ngOnChanges||Xt.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(p.index),He=!0),nt++}g6(c,p)}Y&&function F4(c,f,p){if(f)for(var _=c.localNames=[],C=0;C<f.length;C+=2){var O=p[f[C+1]];if(null==O)throw new fe(-301,!1);_.push(f[C],O)}}(p,_,Y)}return p.mergedAttrs=ds(p.mergedAttrs,p.attrs),C}function Rd(c,f,p,_,C,O){var Y=O.hostBindings;if(Y){var ee=c.hostBindingOpCodes;null===ee&&(ee=c.hostBindingOpCodes=[]);var oe=~f.index;(function L4(c){for(var f=c.length;f>0;){var p=c[--f];if("number"==typeof p&&p<0)return p}return 0})(ee)!=oe&&ee.push(oe),ee.push(_,C,Y)}}function v6(c,f){null!==c.hostBindings&&c.hostBindings(1,f)}function y6(c,f){f.flags|=2,(c.components||(c.components=[])).push(f.index)}function U4(c,f,p){if(p){if(f.exportAs)for(var _=0;_<f.exportAs.length;_++)p[f.exportAs[_]]=c;en(f)&&(p[""]=c)}}function b6(c,f,p){c.flags|=1,c.directiveStart=f,c.directiveEnd=f+p,c.providerIndexes=f}function C6(c,f,p,_,C){c.data[_]=C;var O=C.factory||(C.factory=go(C.type)),Y=new me(O,en(C),A_);c.blueprint[_]=Y,p[_]=Y,Rd(c,f,0,_,P_(c,p,C.hostVars,jr),C)}function H4(c,f,p){var _=xo(f,c),C=_S(p),O=c[10],Y=cc(c,JC(c,C,null,p.onPush?32:16,_,f,O,O.createRenderer(_,p),null,null,null));c[f.index]=Y}function uc(c,f,p,_,C,O){var Y=xo(c,f);Rs(f[11],Y,O,c.value,p,_,C)}function Rs(c,f,p,_,C,O,Y){if(null==O)c.removeAttribute(f,C,p);else{var ee=null==Y?de(O):Y(O,_||"",C);c.setAttribute(f,C,ee,p)}}function j4(c,f,p,_,C,O){var Y=O[f];if(null!==Y)for(var ee=_.setInput,oe=0;oe<Y.length;){var ve=Y[oe++],He=Y[oe++],nt=Y[oe++];null!==ee?_.setInput(p,nt,ve,He):p[He]=nt}}function G4(c,f){for(var p=null,_=0;_<f.length;){var C=f[_];if(0!==C)if(5!==C){if("number"==typeof C)break;c.hasOwnProperty(C)&&(null===p&&(p=[]),p.push(C,c[C],f[_+1])),_+=2}else _+=2;else _+=4}return p}function bS(c,f,p,_){return new Array(c,!0,!1,f,null,0,_,p,null,null)}function T6(c,f){var p=jo(f,c);if(Ts(p)){var _=p[1];48&p[2]?QC(_,p,_.template,p[8]):p[5]>0&&$C(p)}}function $C(c){for(var f=MC(c);null!==f;f=vh(f))for(var p=10;p<f.length;p++){var _=f[p];if(Ts(_))if(512&_[2]){var C=_[1];QC(C,_,C.template,_[8])}else _[5]>0&&$C(_)}var Y=c[1].components;if(null!==Y)for(var ee=0;ee<Y.length;ee++){var oe=jo(Y[ee],c);Ts(oe)&&oe[5]>0&&$C(oe)}}function z4(c,f){var p=jo(f,c),_=p[1];(function vy(c,f){for(var p=f.length;p<c.blueprint.length;p++)f.push(c.blueprint[p])})(_,p),c6(_,p,p[8])}function cc(c,f){return c[13]?c[14][4]=f:c[13]=f,c[14]=f,f}function e1(c){for(;c;){c[2]|=32;var f=Yv(c);if(Dr(c)&&!f)return c;c=f}return null}function t1(c,f,p){var _=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],C=f[10],O=!1;!O&&C.begin&&C.begin();try{QC(c,f,c.template,p)}catch(Y){throw _&&S6(f,Y),Y}finally{!O&&C.end&&C.end()}}function CS(c,f,p){Es(0),f(c,p)}function wS(c){return c[7]||(c[7]=[])}function n1(c){return c.cleanup||(c.cleanup=[])}function M6(c,f,p){return(null===c||en(c))&&(p=function ks(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(p[f.index])),p[11]}function S6(c,f){var p=c[9],_=p?p.get(xh,null):null;_&&_.handleError(f)}function kS(c,f,p,_,C){for(var O=0;O<p.length;){var Y=p[O++],ee=p[O++],oe=f[Y],ve=c.data[Y];null!==ve.setInput?ve.setInput(oe,C,_,ee):oe[ee]=C}}function es(c,f,p){var _=Dc(f,c);KP(c[11],_,p)}function r1(c,f,p){var _=p?c.styles:null,C=p?c.classes:null,O=0;if(null!==f)for(var Y=0;Y<f.length;Y++){var ee=f[Y];if("number"==typeof ee)O=ee;else if(1==O)C=$(C,ee);else if(2==O){_=$(_,ee+": "+f[++Y]+";")}}p?c.styles=_:c.stylesWithoutHost=_,p?c.classes=C:c.classesWithoutHost=C}function i1(c,f,p,_){for(var C=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var O=f[p.index];if(null!==O&&_.push(po(O)),Ai(O))for(var Y=10;Y<O.length;Y++){var ee=O[Y],oe=ee[1].firstChild;null!==oe&&i1(ee[1],ee,oe,_)}var ve=p.type;if(8&ve)i1(c,f,p.child,_);else if(32&ve)for(var He=OM(p,f),nt=void 0;nt=He();)_.push(nt);else if(16&ve){var dt=NM(f,p);if(Array.isArray(dt))_.push.apply(_,(0,E.Z)(dt));else{var kt=Yv(f[16]);i1(kt[1],kt,dt,_,!0)}}p=C?p.projectionNext:p.next}return _}var Ph=function(){function c(f,p){(0,v.Z)(this,c),this._lView=f,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}return(0,R.Z)(c,[{key:"rootNodes",get:function(){var p=this._lView,_=p[1];return i1(_,p,_.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(p){this._lView[8]=p}},{key:"destroyed",get:function(){return 128==(128&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var p=this._lView[3];if(Ai(p)){var _=p[8],C=_?_.indexOf(this):-1;C>-1&&(PM(p,C),dh(_,C))}this._attachedToViewContainer=!1}RM(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){vS(this._lView[1],this._lView,null,p)}},{key:"markForCheck",value:function(){e1(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-65}},{key:"reattach",value:function(){this._lView[2]|=64}},{key:"detectChanges",value:function(){t1(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new fe(902,!1);this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function JP(c,f){Yl(c,f,f[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(p){if(this._attachedToViewContainer)throw new fe(902,!1);this._appRef=p}}]),c}(),TS=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this,_))._view=_,C}return(0,R.Z)(p,[{key:"detectChanges",value:function(){var C=this._view;t1(C[1],C,C[8],!1)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(Ph),o1=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this)).ngModule=_,C}return(0,R.Z)(p,[{key:"resolveComponentFactory",value:function(C){var O=Vn(C);return new R_(O,this.ngModule)}}]),p}(Bf);function E6(c){var f=[];for(var p in c)if(c.hasOwnProperty(p)){var _=c[p];f.push({propName:_,templateName:p})}return f}var V4=function(){function c(f,p){(0,v.Z)(this,c),this.injector=f,this.parentInjector=p}return(0,R.Z)(c,[{key:"get",value:function(p,_,C){var O=this.injector.get(p,tS,C);return O!==tS||_===tS?O:this.parentInjector.get(p,_,C)}}]),c}(),R_=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;return(0,v.Z)(this,p),(O=f.call(this)).componentDef=_,O.ngModule=C,O.componentType=_.type,O.selector=function l4(c){return c.map(s4).join(",")}(_.selectors),O.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],O.isBoundToModule=!!C,O}return(0,R.Z)(p,[{key:"inputs",get:function(){return E6(this.componentDef.inputs)}},{key:"outputs",get:function(){return E6(this.componentDef.outputs)}},{key:"create",value:function(C,O,Y,ee){var oe=(ee=ee||this.ngModule)instanceof Is?ee:null==ee?void 0:ee.injector;oe&&null!==this.componentDef.getStandaloneInjector&&(oe=this.componentDef.getStandaloneInjector(oe)||oe);var ve=oe?new V4(C,oe):C,He=ve.get($M,null);if(null===He)throw new fe(407,!1);var er,Cn,nt=ve.get(FC,null),dt=He.createRenderer(null,this.componentDef),kt=this.componentDef.selectors[0][0]||"div",Xt=Y?function h6(c,f,p){var _=p===Sn.ShadowDom;return c.selectRootElement(f,_)}(dt,Y,this.componentDef.encapsulation):qP(dt,kt,function W4(c){var f=c.toLowerCase();return"svg"===f?"svg":"math"===f?mf:null}(kt)),_n=this.componentDef.onPush?288:272,Fn=gS(0,null,null,1,0,null,null,null,null,null),Jn=JC(null,Fn,null,_n,null,null,He,dt,nt,ve,null);wd(Jn);try{var Or=function K4(c,f,p,_,C,O){var Y=p[1],ee=22;p[ee]=c;var oe=_y(Y,ee,2,"#host",null),ve=oe.mergedAttrs=f.hostAttrs;null!==ve&&(r1(oe,ve,!0),null!==c&&(Qr(C,c,ve),null!==oe.classes&&AC(C,c,oe.classes),null!==oe.styles&&Ed(C,c,oe.styles)));var He=_.createRenderer(c,f),nt=JC(p,_S(f),null,f.onPush?32:16,p[ee],oe,_,He,O||null,null,null);return Y.firstCreatePass&&(xs(sh(oe,p),Y,f.type),y6(Y,oe),b6(oe,p.length,1)),cc(p,nt),p[ee]=nt}(Xt,this.componentDef,Jn,He,dt);if(Xt)if(Y)Qr(dt,Xt,["ng-version",ji.full]);else{var ei=function u4(c){for(var f=[],p=[],_=1,C=2;_<c.length;){var O=c[_];if("string"==typeof O)2===C?""!==O&&f.push(O,c[++_]):8===C&&p.push(O);else{if(!Mu(C))break;C=O}_++}return{attrs:f,classes:p}}(this.componentDef.selectors[0]),Ei=ei.attrs,ms=ei.classes;Ei&&Qr(dt,Xt,Ei),ms&&ms.length>0&&AC(dt,Xt,ms.join(" "))}if(Cn=qs(Fn,22),void 0!==O)for(var Ns=Cn.projection=[],Bs=0;Bs<this.ngContentSelectors.length;Bs++){var Bd=O[Bs];Ns.push(null!=Bd?Array.from(Bd):null)}er=function q4(c,f,p,_){var C=p[1],O=function yS(c,f,p){var _=Me();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),C6(c,_,f,P_(c,f,1,null),p),g6(c,_));var O=i_(f,c,_.directiveStart,_);As(O,f);var Y=xo(_,f);return Y&&As(Y,f),O}(C,p,f);if(c[8]=p[8]=O,null!==_){var ee,Y=(0,T.Z)(_);try{for(Y.s();!(ee=Y.n()).done;){(0,ee.value)(O,f)}}catch(dt){Y.e(dt)}finally{Y.f()}}if(f.contentQueries){var ve=Me();f.contentQueries(1,O,ve.directiveStart)}var He=Me();if(C.firstCreatePass&&(null!==f.hostBindings||null!==f.hostAttrs)){mt(He.index),Rd(p[1],He,0,He.directiveStart,He.directiveEnd,f),v6(f,O)}return O}(Or,this.componentDef,Jn,[J4]),c6(Fn,Jn,null)}finally{_e()}return new Y4(this.componentType,er,S_(Cn,Jn),Jn,Cn)}}]),p}(BC);new o1;var Y4=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O,Y,ee){var oe;return(0,v.Z)(this,p),(oe=f.call(this)).location=O,oe._rootLView=Y,oe._tNode=ee,oe.instance=C,oe.hostView=oe.changeDetectorRef=new TS(Y),oe.componentType=_,oe}return(0,R.Z)(p,[{key:"setInput",value:function(C,O){var ee,Y=this._tNode.inputs;if(null!==Y&&(ee=Y[C])){var oe=this._rootLView;kS(oe[1],oe,ee,C,O),XC(oe,this._tNode.index)}else{}}},{key:"injector",get:function(){return new qr(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(C){this.hostView.onDestroy(C)}}]),p}(JF);function J4(){var c=Me();Ar(xn()[1],c)}function D6(c){return Object.getPrototypeOf(c.prototype).constructor}function MS(c){for(var f=D6(c.type),p=!0,_=[c];f;){var C=void 0;if(en(c))C=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new fe(903,!1);C=f.\u0275dir}if(C){if(p){_.push(C);var O=c;O.inputs=SS(c.inputs),O.declaredInputs=SS(c.declaredInputs),O.outputs=SS(c.outputs);var Y=C.hostBindings;Y&&A6(c,Y);var ee=C.viewQuery,oe=C.contentQueries;if(ee&&X4(c,ee),oe&&$4(c,oe),F(c.inputs,C.inputs),F(c.declaredInputs,C.declaredInputs),F(c.outputs,C.outputs),en(C)&&C.data.animation){var ve=c.data;ve.animation=(ve.animation||[]).concat(C.data.animation)}}var He=C.features;if(He)for(var nt=0;nt<He.length;nt++){var dt=He[nt];dt&&dt.ngInherit&&dt(c),dt===MS&&(p=!1)}}f=Object.getPrototypeOf(f)}!function Q4(c){for(var f=0,p=null,_=c.length-1;_>=0;_--){var C=c[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ds(C.hostAttrs,p=ds(p,C.hostAttrs))}}(_)}function SS(c){return c===xt?{}:c===tt?[]:c}function X4(c,f){var p=c.viewQuery;c.viewQuery=p?function(_,C){f(_,C),p(_,C)}:f}function $4(c,f){var p=c.contentQueries;c.contentQueries=p?function(_,C,O){f(_,C,O),p(_,C,O)}:f}function A6(c,f){var p=c.hostBindings;c.hostBindings=p?function(_,C){f(_,C),p(_,C)}:f}var e8=["providersResolver"],t8=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function n8(c){var f=D6(c.type),p=void 0;p=en(c)?f.\u0275cmp:f.\u0275dir;var O,_=c,C=(0,T.Z)(e8);try{for(C.s();!(O=C.n()).done;){var Y=O.value;_[Y]=p[Y]}}catch(He){C.e(He)}finally{C.f()}if(en(p)){var oe,ee=(0,T.Z)(t8);try{for(ee.s();!(oe=ee.n()).done;){var ve=oe.value;_[ve]=p[ve]}}catch(He){ee.e(He)}finally{ee.f()}}}var a1=null;function Rh(){if(!a1){var c=hn.Symbol;if(c&&c.iterator)a1=c.iterator;else for(var f=Object.getOwnPropertyNames(Map.prototype),p=0;p<f.length;++p){var _=f[p];"entries"!==_&&"size"!==_&&Map.prototype[_]===Map.prototype.entries&&(a1=_)}}return a1}function yy(c){return!!ES(c)&&(Array.isArray(c)||!(c instanceof Map)&&Rh()in c)}function ES(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function Bc(c,f,p){return c[f]=p}function by(c,f){return c[f]}function Ls(c,f,p){var _=c[f];return!Object.is(_,p)&&(c[f]=p,!0)}function Ld(c,f,p,_){var C=Ls(c,f,p);return Ls(c,f+1,_)||C}function s1(c,f,p,_,C){var O=Ld(c,f,p,_);return Ls(c,f+2,C)||O}function xu(c,f,p,_,C,O){var Y=Ld(c,f,p,_);return Ld(c,f+2,C,O)||Y}function l1(c,f,p,_){var C=xn();if(Ls(C,Ta(),f)){we();uc(Mt(),C,c,f,p,_)}return l1}function Gf(c,f){for(var p=!1,_=Qa(),C=1;C<f.length;C+=2)p=Ls(c,_++,f[C])||p;if(nc(_),!p)return jr;for(var O=f[0],Y=1;Y<f.length;Y+=2)O+=de(f[Y])+f[Y+1];return O}function L_(c,f,p,_){return Ls(c,Ta(),p)?f+de(p)+_:jr}function ql(c,f,p,_,C,O){var ee=Ld(c,Qa(),p,C);return cs(2),ee?f+de(p)+_+de(C)+O:jr}function Lh(c,f,p,_,C,O,Y,ee){var ve=s1(c,Qa(),p,C,Y);return cs(3),ve?f+de(p)+_+de(C)+O+de(Y)+ee:jr}function Z_(c,f,p,_,C,O,Y,ee,oe,ve){var nt=xu(c,Qa(),p,C,Y,oe);return cs(4),nt?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve:jr}function N_(c,f,p,_,C,O,Y,ee,oe,ve,He,nt){var dt=Qa(),kt=xu(c,dt,p,C,Y,oe);return kt=Ls(c,dt+4,He)||kt,cs(5),kt?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(He)+nt:jr}function Zh(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt){var Xt=Qa(),_n=xu(c,Xt,p,C,Y,oe);return _n=Ld(c,Xt+4,He,dt)||_n,cs(6),_n?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt:jr}function B_(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n){var Fn=Qa(),Jn=xu(c,Fn,p,C,Y,oe);return Jn=s1(c,Fn+4,He,dt,Xt)||Jn,cs(7),Jn?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt+de(Xt)+_n:jr}function F_(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn){var er=Qa(),Cn=xu(c,er,p,C,Y,oe);return Cn=xu(c,er+4,He,dt,Xt,Fn)||Cn,cs(8),Cn?f+de(p)+_+de(C)+O+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt+de(Xt)+_n+de(Fn)+Jn:jr}function O6(c,f,p,_,C,O){var Y=xn(),ee=L_(Y,f,p,_);ee!==jr&&uc(Mt(),Y,c,ee,C,O);return O6}function xS(c,f,p,_,C,O,Y,ee){var oe=xn(),ve=ql(oe,f,p,_,C,O);ve!==jr&&uc(Mt(),oe,c,ve,Y,ee);return xS}function u1(c,f,p,_,C,O,Y,ee,oe,ve){var He=xn(),nt=Lh(He,f,p,_,C,O,Y,ee);nt!==jr&&uc(Mt(),He,c,nt,oe,ve);return u1}function DS(c,f,p,_,C,O,Y,ee,oe,ve,He,nt){var dt=xn(),kt=Z_(dt,f,p,_,C,O,Y,ee,oe,ve);kt!==jr&&uc(Mt(),dt,c,kt,He,nt);return DS}function AS(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt){var Xt=xn(),_n=N_(Xt,f,p,_,C,O,Y,ee,oe,ve,He,nt);_n!==jr&&uc(Mt(),Xt,c,_n,dt,kt);return AS}function Nh(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n){var Fn=xn(),Jn=Zh(Fn,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt);Jn!==jr&&uc(Mt(),Fn,c,Jn,Xt,_n);return Nh}function I6(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn){var er=xn(),Cn=B_(er,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n);Cn!==jr&&uc(Mt(),er,c,Cn,Fn,Jn);return I6}function a8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er,Cn){var Or=xn(),ei=F_(Or,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn);ei!==jr&&uc(Mt(),Or,c,ei,er,Cn);return a8}function P6(c,f,p,_){var C=xn(),O=Gf(C,f);O!==jr&&uc(Mt(),C,c,O,p,_);return P6}function L6(c,f,p,_,C,O,Y,ee){var oe=xn(),ve=we(),He=c+22,nt=ve.firstCreatePass?function s8(c,f,p,_,C,O,Y,ee,oe){var ve=f.consts,He=_y(f,c,4,Y||null,Ja(ve,ee));gy(f,p,He,Ja(ve,oe)),Ar(f,He);var nt=He.tViews=gS(2,He,_,C,O,f.directiveRegistry,f.pipeRegistry,null,f.schemas,ve);return null!==f.queries&&(f.queries.template(f,He),nt.queries=f.queries.embeddedTView(He)),He}(He,ve,oe,f,p,_,C,O,Y):ve.data[He];Yt(nt,!1);var dt=oe[11].createComment("");xf(ve,oe,dt,nt),As(dt,oe),cc(oe,oe[He]=bS(dt,oe,dt,nt)),tn(nt)&&hS(ve,oe,nt),null!=Y&&mS(oe,nt,ee)}function OS(c){return pa(function tc(){return Cr.lFrame.contextLView}(),22+c)}function U_(c,f,p){var _=xn();Ls(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!1);return U_}function c1(c,f,p,_,C){var Y=C?"class":"style";kS(c,p,f.inputs[Y],Y,_)}function d1(c,f,p,_){var C=xn(),O=we(),Y=22+c,ee=C[11],oe=C[Y]=qP(ee,f,function $s(){return Cr.lFrame.currentNamespace}()),ve=O.firstCreatePass?function u8(c,f,p,_,C,O,Y){var ee=f.consts,ve=_y(f,c,2,C,Ja(ee,O));return gy(f,p,ve,Ja(ee,Y)),null!==ve.attrs&&r1(ve,ve.attrs,!1),null!==ve.mergedAttrs&&r1(ve,ve.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,ve),ve}(Y,O,C,0,f,p,_):O.data[Y];Yt(ve,!0);var He=ve.mergedAttrs;null!==He&&Qr(ee,oe,He);var nt=ve.classes;null!==nt&&AC(ee,oe,nt);var dt=ve.styles;return null!==dt&&Ed(ee,oe,dt),64!=(64&ve.flags)&&xf(O,C,oe,ve),0===function Ov(){return Cr.lFrame.elementDepthCount}()&&As(oe,C),function ih(){Cr.lFrame.elementDepthCount++}(),tn(ve)&&(hS(O,C,ve),f6(O,ve,C)),null!==_&&mS(C,ve),d1}function f1(){var c=Me();Pn()?Qn():Yt(c=c.parent,!1);var f=c;!function _f(){Cr.lFrame.elementDepthCount--}();var p=we();return p.firstCreatePass&&(Ar(p,c),pu(c)&&p.queries.elementEnd(c)),null!=f.classesWithoutHost&&function Bn(c){return 0!=(16&c.flags)}(f)&&c1(p,f,xn(),f.classesWithoutHost,!0),null!=f.stylesWithoutHost&&function lr(c){return 0!=(32&c.flags)}(f)&&c1(p,f,xn(),f.stylesWithoutHost,!1),f1}function IS(c,f,p,_){return d1(c,f,p,_),f1(),IS}function Bh(c,f,p){var _=xn(),C=we(),O=c+22,Y=C.firstCreatePass?function PS(c,f,p,_,C){var O=f.consts,Y=Ja(O,_),ee=_y(f,c,8,"ng-container",Y);return null!==Y&&r1(ee,Y,!0),gy(f,p,ee,Ja(O,C)),null!==f.queries&&f.queries.elementStart(f,ee),ee}(O,C,_,f,p):C.data[O];Yt(Y,!0);var ee=_[O]=_[11].createComment("");return xf(C,_,ee,Y),As(ee,_),tn(Y)&&(hS(C,_,Y),f6(C,Y,_)),null!=p&&mS(_,Y),Bh}function Cy(){var c=Me(),f=we();return Pn()?Qn():Yt(c=c.parent,!1),f.firstCreatePass&&(Ar(f,c),pu(c)&&f.queries.elementEnd(c)),Cy}function RS(c,f,p){return Bh(c,f,p),Cy(),RS}function Z6(){return xn()}function p1(c){return!!c&&"function"==typeof c.then}function N6(c){return!!c&&"function"==typeof c.subscribe}var LS=N6;function ZS(c,f,p,_){var C=xn(),O=we(),Y=Me();return BS(O,C,C[11],Y,c,f,!!p,_),ZS}function NS(c,f){var p=Me(),_=xn(),C=we();return BS(C,_,M6(rc(C.data),p,_),p,c,f,!1),NS}function BS(c,f,p,_,C,O,Y,ee){var oe=tn(_),He=c.firstCreatePass&&n1(c),nt=f[8],dt=wS(f),kt=!0;if(3&_.type||ee){var Xt=xo(_,f),_n=ee?ee(Xt):Xt,Fn=dt.length,Jn=ee?function(Jy){return ee(po(Jy[_.index]))}:_.index,er=null;if(!ee&&oe&&(er=function B6(c,f,p,_){var C=c.cleanup;if(null!=C)for(var O=0;O<C.length-1;O+=2){var Y=C[O];if(Y===p&&C[O+1]===_){var ee=f[7],oe=C[O+2];return ee.length>oe?ee[oe]:null}"string"==typeof Y&&(O+=2)}return null}(c,f,C,_.index)),null!==er){(er.__ngLastListenerFn__||er).__ngNextListenerFn__=O,er.__ngLastListenerFn__=O,kt=!1}else{O=U6(_,f,nt,O,!1);var Or=p.listen(_n,C,O);dt.push(O,Or),He&&He.push(C,Jn,Fn,Fn+1)}}else O=U6(_,f,nt,O,!1);var Ei,ei=_.outputs;if(kt&&null!==ei&&(Ei=ei[C])){var ms=Ei.length;if(ms)for(var Ns=0;Ns<ms;Ns+=2){var Bs=Ei[Ns],Bd=Ei[Ns+1],qy=f[Bs][Bd].subscribe(O),dg=dt.length;dt.push(O,qy),He&&He.push(C,_.index,dg,-(dg+1))}}}function F6(c,f,p,_){try{return Br(6,f,p),!1!==p(_)}catch(C){return S6(c,C),!1}finally{Br(7,f,p)}}function U6(c,f,p,_,C){return function O(Y){if(Y===Function)return _;e1(2&c.flags?jo(c.index,f):f);for(var oe=F6(f,p,_,Y),ve=O.__ngNextListenerFn__;ve;)oe=F6(f,p,ve,Y)&&oe,ve=ve.__ngNextListenerFn__;return C&&!1===oe&&(Y.preventDefault(),Y.returnValue=!1),oe}}function FS(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return xe(c)}function c8(c,f){for(var p=null,_=function i4(c){var f=c.attrs;if(null!=f){var p=f.indexOf(5);if(0==(1&p))return f[p+1]}return null}(c),C=0;C<f.length;C++){var O=f[C];if("*"!==O){if(null===_?iS(c,O,!0):a4(_,O))return C}else p=C}return p}function US(c){var f=xn()[16][6];if(!f.projection)for(var p=c?c.length:1,_=f.projection=Zv(p,null),C=_.slice(),O=f.child;null!==O;){var Y=c?c8(O,c):0;null!==Y&&(C[Y]?C[Y].projectionNext=O:_[Y]=O,C[Y]=O),O=O.next}}function H6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,_=xn(),C=we(),O=_y(C,22+c,16,null,p||null);null===O.projection&&(O.projection=f),Qn(),64!=(64&O.flags)&&Af(C,_,O)}function HS(c,f,p){return h1(c,"",f,"",p),HS}function h1(c,f,p,_,C){var O=xn(),Y=L_(O,f,p,_);Y!==jr&&Kl(we(),Mt(),O,c,Y,O[11],C,!1);return h1}function jS(c,f,p,_,C,O,Y){var ee=xn(),oe=ql(ee,f,p,_,C,O);oe!==jr&&Kl(we(),Mt(),ee,c,oe,ee[11],Y,!1);return jS}function GS(c,f,p,_,C,O,Y,ee,oe){var ve=xn(),He=Lh(ve,f,p,_,C,O,Y,ee);He!==jr&&Kl(we(),Mt(),ve,c,He,ve[11],oe,!1);return GS}function m1(c,f,p,_,C,O,Y,ee,oe,ve,He){var nt=xn(),dt=Z_(nt,f,p,_,C,O,Y,ee,oe,ve);dt!==jr&&Kl(we(),Mt(),nt,c,dt,nt[11],He,!1);return m1}function zS(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt){var kt=xn(),Xt=N_(kt,f,p,_,C,O,Y,ee,oe,ve,He,nt);Xt!==jr&&Kl(we(),Mt(),kt,c,Xt,kt[11],dt,!1);return zS}function WS(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt){var _n=xn(),Fn=Zh(_n,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt);Fn!==jr&&Kl(we(),Mt(),_n,c,Fn,_n[11],Xt,!1);return WS}function j6(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=B_(Jn,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n);er!==jr&&Kl(we(),Mt(),Jn,c,er,Jn[11],Fn,!1);return j6}function G6(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er){var Cn=xn(),Or=F_(Cn,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn);Or!==jr&&Kl(we(),Mt(),Cn,c,Or,Cn[11],er,!1);return G6}function VS(c,f,p){var _=xn(),C=Gf(_,f);C!==jr&&Kl(we(),Mt(),_,c,C,_[11],p,!1);return VS}function d8(c,f,p,_,C,O){var Y=O?f.classBindings:f.styleBindings,ee=tl(Y),oe=Su(Y);c[_]=p;var He,ve=!1;if(Array.isArray(p)){var nt=p;(null===(He=nt[1])||fh(nt,He)>0)&&(ve=!0)}else He=p;if(C)if(0!==oe){var kt=tl(c[ee+1]);c[_+1]=Pd(kt,ee),0!==kt&&(c[kt+1]=O_(c[kt+1],_)),c[ee+1]=function M4(c,f){return 131071&c|f<<17}(c[ee+1],_)}else c[_+1]=Pd(ee,0),0!==ee&&(c[ee+1]=O_(c[ee+1],_)),ee=_;else c[_+1]=Pd(oe,0),0===ee?ee=_:c[oe+1]=O_(c[oe+1],_),oe=_;ve&&(c[_+1]=Oh(c[_+1])),z6(c,He,_,!0,O),z6(c,He,_,!1,O),function f8(c,f,p,_,C){var O=C?c.residualClasses:c.residualStyles;null!=O&&"string"==typeof f&&fh(O,f)>=0&&(p[_+1]=uS(p[_+1]))}(f,He,c,_,O),Y=Pd(ee,oe),O?f.classBindings=Y:f.styleBindings=Y}function z6(c,f,p,_,C){for(var O=c[p+1],Y=null===f,ee=_?tl(O):Su(O),oe=!1;0!==ee&&(!1===oe||Y);){var ve=c[ee],He=c[ee+1];p8(ve,f)&&(oe=!0,c[ee+1]=_?uS(He):Oh(He)),ee=_?tl(He):Su(He)}oe&&(c[p+1]=_?Oh(O):uS(O))}function p8(c,f){return null===c||null==f||(Array.isArray(c)?c[1]:c)===f||!(!Array.isArray(c)||"string"!=typeof f)&&fh(c,f)>=0}var Ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function W6(c){return c.substring(Ua.key,Ua.keyEnd)}function h8(c){return c.substring(Ua.value,Ua.valueEnd)}function YS(c,f){var p=Ua.textEnd;return p===f?-1:(f=Ua.keyEnd=function _8(c,f,p){for(;f<p&&c.charCodeAt(f)>32;)f++;return f}(c,Ua.key=f,p),Fh(c,f,p))}function KS(c,f){var p=Ua.textEnd,_=Ua.key=Fh(c,f,p);return p===_?-1:(_=Ua.keyEnd=function g8(c,f,p){for(var _;f<p&&(45===(_=c.charCodeAt(f))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)f++;return f}(c,_,p),_=Y6(c,_,p,58),_=Ua.value=Fh(c,_,p),_=Ua.valueEnd=function v8(c,f,p){for(var _=-1,C=-1,O=-1,Y=f,ee=Y;Y<p;){var oe=c.charCodeAt(Y++);if(59===oe)return ee;34===oe||39===oe?ee=Y=_1(c,oe,Y,p):f===Y-4&&85===O&&82===C&&76===_&&40===oe?ee=Y=_1(c,41,Y,p):oe>32&&(ee=Y),O=C,C=_,_=-33&oe}return ee}(c,_,p),Y6(c,_,p,59))}function qS(c){Ua.key=0,Ua.keyEnd=0,Ua.value=0,Ua.valueEnd=0,Ua.textEnd=c.length}function Fh(c,f,p){for(;f<p&&c.charCodeAt(f)<=32;)f++;return f}function Y6(c,f,p,_){return(f=Fh(c,f,p))<p&&f++,f}function _1(c,f,p,_){for(var C=-1,O=p;O<_;){var Y=c.charCodeAt(O++);if(Y==f&&92!==C)return O;C=92==Y&&92===C?0:Y}throw new Error}function JS(c,f,p){return Du(c,f,p,!1),JS}function g1(c,f){return Du(c,f,null,!0),g1}function Zs(c){Au(J6,K6,c,!1)}function K6(c,f){for(var p=function V6(c){return qS(c),KS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=KS(f,p))J6(c,W6(f),h8(f))}function QS(c){Au(zl,Fc,c,!0)}function Fc(c,f){for(var p=function m8(c){return qS(c),YS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=YS(f,p))zl(c,W6(f),!0)}function Du(c,f,p,_){var C=xn(),O=we(),Y=cs(2);(O.firstUpdatePass&&q6(O,c,Y,_),f!==jr&&Ls(C,Y,f))&&T8(O,O.data[ze()],C,C[11],c,C[Y+1]=function MV(c,f){return null==c||("string"==typeof f?c+=f:"object"==typeof c&&(c=X(Pc(c)))),c}(f,p),_,Y)}function Au(c,f,p,_){var C=we(),O=cs(2);C.firstUpdatePass&&q6(C,null,O,_);var Y=xn();if(p!==jr&&Ls(Y,O,p)){var ee=C.data[ze()];if(S8(ee,_)&&!XS(C,O)){var ve=_?ee.classesWithoutHost:ee.stylesWithoutHost;null!==ve&&(p=$(ve,p||"")),c1(C,ee,Y,p,_)}else!function TV(c,f,p,_,C,O,Y,ee){C===jr&&(C=tt);for(var oe=0,ve=0,He=0<C.length?C[0]:null,nt=0<O.length?O[0]:null;null!==He||null!==nt;){var dt=oe<C.length?C[oe+1]:void 0,kt=ve<O.length?O[ve+1]:void 0,Xt=null,_n=void 0;He===nt?(oe+=2,ve+=2,dt!==kt&&(Xt=nt,_n=kt)):null===nt||null!==He&&He<nt?(oe+=2,Xt=He):(ve+=2,Xt=nt,_n=kt),null!==Xt&&T8(c,f,p,_,Xt,_n,Y,ee),He=oe<C.length?C[oe]:null,nt=ve<O.length?O[ve]:null}}(C,ee,Y,Y[11],Y[O+1],Y[O+1]=function k8(c,f,p){if(null==p||""===p)return tt;var _=[],C=Pc(p);if(Array.isArray(C))for(var O=0;O<C.length;O++)c(_,C[O],!0);else if("object"==typeof C)for(var Y in C)C.hasOwnProperty(Y)&&c(_,Y,C[Y]);else"string"==typeof C&&f(_,C);return _}(c,f,p),_,O)}}function XS(c,f){return f>=c.expandoStartIndex}function q6(c,f,p,_){var C=c.data;if(null===C[p+1]){var O=C[ze()],Y=XS(c,p);S8(O,_)&&null===f&&!Y&&(f=!1),f=function y8(c,f,p,_){var C=rc(c),O=_?f.residualClasses:f.residualStyles;if(null===C){0===(_?f.classBindings:f.styleBindings)&&(p=wy(p=v1(null,c,f,p,_),f.attrs,_),O=null)}else{var ee=f.directiveStylingLast;if(-1===ee||c[ee]!==C)if(p=v1(C,c,f,p,_),null===O){var ve=function b8(c,f,p){var _=p?f.classBindings:f.styleBindings;if(0!==Su(_))return c[tl(_)]}(c,f,_);void 0!==ve&&Array.isArray(ve)&&function C8(c,f,p,_){var C=p?f.classBindings:f.styleBindings;c[tl(C)]=_}(c,f,_,ve=wy(ve=v1(null,c,f,ve[1],_),f.attrs,_))}else O=function w8(c,f,p){for(var _=void 0,C=f.directiveEnd,O=1+f.directiveStylingLast;O<C;O++){_=wy(_,c[O].hostAttrs,p)}return wy(_,f.attrs,p)}(c,f,_)}return void 0!==O&&(_?f.residualClasses=O:f.residualStyles=O),p}(C,O,f,_),d8(C,O,f,p,Y,_)}}function v1(c,f,p,_,C){var O=null,Y=p.directiveEnd,ee=p.directiveStylingLast;for(-1===ee?ee=p.directiveStart:ee++;ee<Y&&(_=wy(_,(O=f[ee]).hostAttrs,C),O!==c);)ee++;return null!==c&&(p.directiveStylingLast=ee),_}function wy(c,f,p){var _=p?1:2,C=-1;if(null!==f)for(var O=0;O<f.length;O++){var Y=f[O];"number"==typeof Y?C=Y:C===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),zl(c,Y,!!p||f[++O]))}return void 0===c?null:c}function J6(c,f,p){zl(c,f,Pc(p))}function T8(c,f,p,_,C,O,Y,ee){if(3&f.type){var oe=c.data,ve=oe[ee+1];if(!y1(q3(ve)?M8(oe,f,p,C,Su(ve),Y):void 0))y1(O)||K3(ve)&&(O=M8(oe,null,p,C,ee,Y)),function m_(c,f,p,_,C){if(f)C?c.addClass(p,_):c.removeClass(p,_);else{var O=-1===_.indexOf("-")?void 0:CC.DashCase;null==C?c.removeStyle(p,_,O):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),O|=CC.Important),c.setStyle(p,_,C,O))}}(_,Y,Dc(ze(),p),C,O)}}function M8(c,f,p,_,C,O){for(var Y=null===f,ee=void 0;C>0;){var oe=c[C],ve=Array.isArray(oe),He=ve?oe[1]:oe,nt=null===He,dt=p[C+1];dt===jr&&(dt=nt?tt:void 0);var kt=nt?Md(dt,_):He===_?dt:void 0;if(ve&&!y1(kt)&&(kt=Md(oe,_)),y1(kt)&&(ee=kt,Y))return ee;var Xt=c[C+1];C=Y?tl(Xt):Su(Xt)}if(null!==f){var _n=O?f.residualClasses:f.residualStyles;null!=_n&&(ee=Md(_n,_))}return ee}function y1(c){return void 0!==c}function S8(c,f){return 0!=(c.flags&(f?16:32))}function Q6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=xn(),_=we(),C=c+22,O=_.firstCreatePass?_y(_,C,1,f,null):_.data[C],Y=p[C]=Kv(p[11],f);xf(_,p,Y,O),Yt(O,!1)}function $S(c){return eE("",c,""),$S}function eE(c,f,p){var _=xn(),C=L_(_,c,f,p);return C!==jr&&es(_,ze(),C),eE}function X6(c,f,p,_,C){var O=xn(),Y=ql(O,c,f,p,_,C);return Y!==jr&&es(O,ze(),Y),X6}function $6(c,f,p,_,C,O,Y){var ee=xn(),oe=Lh(ee,c,f,p,_,C,O,Y);return oe!==jr&&es(ee,ze(),oe),$6}function eR(c,f,p,_,C,O,Y,ee,oe){var ve=xn(),He=Z_(ve,c,f,p,_,C,O,Y,ee,oe);return He!==jr&&es(ve,ze(),He),eR}function tE(c,f,p,_,C,O,Y,ee,oe,ve,He){var nt=xn(),dt=N_(nt,c,f,p,_,C,O,Y,ee,oe,ve,He);return dt!==jr&&es(nt,ze(),dt),tE}function nE(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt){var kt=xn(),Xt=Zh(kt,c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt);return Xt!==jr&&es(kt,ze(),Xt),nE}function E8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt){var _n=xn(),Fn=B_(_n,c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt);return Fn!==jr&&es(_n,ze(),Fn),E8}function x8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=F_(Jn,c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn);return er!==jr&&es(Jn,ze(),er),x8}function D8(c){var f=xn(),p=Gf(f,c);return p!==jr&&es(f,ze(),p),D8}function A8(c,f,p){Au(zl,Fc,L_(xn(),c,f,p),!0)}function O8(c,f,p,_,C){Au(zl,Fc,ql(xn(),c,f,p,_,C),!0)}function I8(c,f,p,_,C,O,Y){Au(zl,Fc,Lh(xn(),c,f,p,_,C,O,Y),!0)}function SV(c,f,p,_,C,O,Y,ee,oe){Au(zl,Fc,Z_(xn(),c,f,p,_,C,O,Y,ee,oe),!0)}function EV(c,f,p,_,C,O,Y,ee,oe,ve,He){Au(zl,Fc,N_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He),!0)}function xV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt){Au(zl,Fc,Zh(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt),!0)}function DV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt){Au(zl,Fc,B_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt),!0)}function AV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){Au(zl,Fc,F_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn),!0)}function OV(c){Au(zl,Fc,Gf(xn(),c),!0)}function IV(c,f,p){Zs(L_(xn(),c,f,p))}function PV(c,f,p,_,C){Zs(ql(xn(),c,f,p,_,C))}function RV(c,f,p,_,C,O,Y){Zs(Lh(xn(),c,f,p,_,C,O,Y))}function LV(c,f,p,_,C,O,Y,ee,oe){Zs(Z_(xn(),c,f,p,_,C,O,Y,ee,oe))}function ZV(c,f,p,_,C,O,Y,ee,oe,ve,He){Zs(N_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He))}function NV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt){Zs(Zh(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt))}function BV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt){Zs(B_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt))}function FV(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){Zs(F_(xn(),c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn))}function UV(c){Zs(Gf(xn(),c))}function tR(c,f,p,_,C){return Du(c,L_(xn(),f,p,_),C,!1),tR}function P8(c,f,p,_,C,O,Y){return Du(c,ql(xn(),f,p,_,C,O),Y,!1),P8}function R8(c,f,p,_,C,O,Y,ee,oe){return Du(c,Lh(xn(),f,p,_,C,O,Y,ee),oe,!1),R8}function L8(c,f,p,_,C,O,Y,ee,oe,ve,He){return Du(c,Z_(xn(),f,p,_,C,O,Y,ee,oe,ve),He,!1),L8}function Z8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt){return Du(c,N_(xn(),f,p,_,C,O,Y,ee,oe,ve,He,nt),dt,!1),Z8}function N8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt){return Du(c,Zh(xn(),f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt),Xt,!1),N8}function B8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){return Du(c,B_(xn(),f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n),Fn,!1),B8}function F8(c,f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er){return Du(c,F_(xn(),f,p,_,C,O,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn),er,!1),F8}function U8(c,f,p){return Du(c,Gf(xn(),f),p,!1),U8}function nR(c,f,p){var _=xn();Ls(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!0);return nR}function rR(c,f,p){var _=xn();if(Ls(_,Ta(),f)){var O=we(),Y=Mt();Kl(O,Y,_,c,f,M6(rc(O.data),Y,_),p,!0)}return rR}var H_=void 0;var j_,jV=["en",[["a","p"],["AM","PM"],H_],[["AM","PM"],H_,H_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],H_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],H_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",H_,"{1} 'at' {0}",H_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function HV(c){var p=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===_?1:5}],ky={};function iR(c){var f=function zV(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=j8(f);if(p)return p;var _=f.split("-")[0];if(p=j8(_))return p;if("en"===_)return jV;throw new fe(701,!1)}function H8(c){return iR(c)[j_.PluralCase]}function j8(c){return c in ky||(ky[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),ky[c]}!function(c){c[c.LocaleId=0]="LocaleId",c[c.DayPeriodsFormat=1]="DayPeriodsFormat",c[c.DayPeriodsStandalone=2]="DayPeriodsStandalone",c[c.DaysFormat=3]="DaysFormat",c[c.DaysStandalone=4]="DaysStandalone",c[c.MonthsFormat=5]="MonthsFormat",c[c.MonthsStandalone=6]="MonthsStandalone",c[c.Eras=7]="Eras",c[c.FirstDayOfWeek=8]="FirstDayOfWeek",c[c.WeekendRange=9]="WeekendRange",c[c.DateFormat=10]="DateFormat",c[c.TimeFormat=11]="TimeFormat",c[c.DateTimeFormat=12]="DateTimeFormat",c[c.NumberSymbols=13]="NumberSymbols",c[c.NumberFormats=14]="NumberFormats",c[c.CurrencyCode=15]="CurrencyCode",c[c.CurrencySymbol=16]="CurrencySymbol",c[c.CurrencyName=17]="CurrencyName",c[c.Currencies=18]="Currencies",c[c.Directionality=19]="Directionality",c[c.PluralCase=20]="PluralCase",c[c.ExtraData=21]="ExtraData"}(j_||(j_={}));var G8=["zero","one","two","few","many"];var Cl,Ty="en-US",rE={marker:"element"},iE={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}(Cl||(Cl={}));var z8=Ty;function W8(c){Ut(c,"Expected localeId to be defined"),"string"==typeof c&&(z8=c.toLowerCase().replace(/_/g,"-"))}function V8(c,f,p){var _=f.insertBeforeIndex,C=Array.isArray(_)?_[0]:_;return null===C?i3(c,0,p):po(p[C])}function Y8(c,f,p,_,C){var O=f.insertBeforeIndex;if(Array.isArray(O)){var Y=_,ee=null;if(3&f.type||(ee=Y,Y=C),null!==Y&&0==(2&f.flags))for(var oe=1;oe<O.length;oe++){Sf(c,Y,p[O[oe]],ee,!1)}}}function K8(c,f){if(c.push(f),c.length>1)for(var p=c.length-2;p>=0;p--){var _=c[p];q8(_)||YV(_,f)&&null===KV(_)&&qV(_,f.index)}}function q8(c){return!(64&c.type)}function YV(c,f){return q8(f)||c.index>f.index}function KV(c){var f=c.insertBeforeIndex;return Array.isArray(f)?f[0]:f}function qV(c,f){var p=c.insertBeforeIndex;Array.isArray(p)?p[0]=f:(Jv(V8,Y8),c.insertBeforeIndex=f)}function My(c,f){var p=c.data[f];return null===p||"string"==typeof p?null:p.hasOwnProperty("currentCaseLViewIndex")?p:p.value}function oE(c,f,p){var _=I_(c,p,64,null,null);return K8(f,_),_}function b1(c,f){var p=f[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function aE(c){return c>>>17}function aR(c){return(131070&c)>>>1}var G_=0,Ey=0;function X8(c,f,p,_){for(var C=c[11],O=0;O<f.length;O++){var Y=f[O++],ee=f[O],oe=(Y&Cl.COMMENT)===Cl.COMMENT,ve=(Y&Cl.APPEND_EAGERLY)===Cl.APPEND_EAGERLY,He=Y>>>Cl.SHIFT,nt=c[He];null===nt&&(nt=c[He]=oe?C.createComment(ee):Kv(C,ee)),ve&&null!==p&&Sf(C,p,nt,_,!1)}}function lR(c,f,p,_){for(var Y,C=p[11],O=null,ee=0;ee<f.length;ee++){var oe=f[ee];if("string"==typeof oe){var ve=f[++ee];null===p[ve]&&(p[ve]=Kv(C,oe))}else if("number"==typeof oe)switch(1&oe){case 0:var He=aE(oe);null===O&&(O=He,Y=Ef(C,_));var nt=void 0,dt=void 0;if(He===O?(nt=_,dt=Y):(nt=null,dt=po(p[He])),null!==dt){var kt=aR(oe);Sf(C,dt,p[kt],nt,!1);var _n=My(c,kt);if(null!==_n&&"object"==typeof _n){var Fn=b1(_n,p);null!==Fn&&lR(c,_n.create[Fn],p,p[_n.anchorIdx])}}break;case 1:var Jn=oe>>>1,er=f[++ee],Cn=f[++ee];Rs(C,Dc(Jn,p),null,null,er,Cn,null)}else switch(oe){case iE:var Or=f[++ee],ei=f[++ee];if(null===p[ei])As(p[ei]=Ba(C,Or),p);break;case rE:var ms=f[++ee],Ns=f[++ee];if(null===p[Ns])As(p[Ns]=qP(C,ms,null),p)}}}function uR(c,f,p,_,C){for(var O=0;O<p.length;O++){var Y=p[O],ee=p[++O];if(Y&C)for(var oe="",ve=O+1;ve<=O+ee;ve++){var He=p[ve];if("string"==typeof He)oe+=He;else if("number"==typeof He)if(He<0)oe+=de(f[_-He]);else{var nt=He>>>2;switch(3&He){case 1:var dt=p[++ve],kt=p[++ve],Xt=c.data[nt];"string"==typeof Xt?Rs(f[11],f[nt],null,Xt,dt,oe,kt):Kl(c,Xt,f,dt,oe,f[11],kt,!1);break;case 0:var _n=f[nt];null!==_n&&KP(f[11],_n,oe);break;case 2:XV(c,My(c,nt),f,oe);break;case 3:cR(c,My(c,nt),_,f)}}}else{var Fn=p[O+1];if(Fn>0&&3==(3&Fn)){var er=My(c,Fn>>>2);f[er.currentCaseLViewIndex]<0&&cR(c,er,_,f)}}O+=ee}}function cR(c,f,p,_){var C=_[f.currentCaseLViewIndex];if(null!==C){var O=G_;C<0&&(C=_[f.currentCaseLViewIndex]=~C,O=-1),uR(c,_,f.update[C],p,O)}}function XV(c,f,p,_){var C=function $V(c,f){var p=c.cases.indexOf(f);if(-1===p)switch(c.type){case 1:var _=function WV(c,f){var p=H8(f)(parseInt(c,10)),_=G8[p];return void 0!==_?_:"other"}(f,function oR(){return z8}());-1===(p=c.cases.indexOf(_))&&"other"!==_&&(p=c.cases.indexOf("other"));break;case 0:p=c.cases.indexOf("other")}return-1===p?null:p}(f,_);if(b1(f,p)!==C&&(dR(c,f,p),p[f.currentCaseLViewIndex]=null===C?null:~C,null!==C)){var Y=p[f.anchorIdx];Y&&lR(c,f.create[C],p,Y)}}function dR(c,f,p){var _=b1(f,p);if(null!==_)for(var C=f.remove[_],O=0;O<C.length;O++){var Y=C[O];if(Y>0){var ee=Dc(Y,p);null!==ee&&p_(p[11],ee)}else dR(c,My(c,~Y),p)}}function $8(){var p,_,c=[],f=-1;function O(ee,oe){f=0;var ve=b1(ee,oe);_=null!==ve?ee.remove[ve]:tt}function Y(){if(f<_.length){var ee=_[f++];if(ee>0)return p[ee];c.push(f,_);var ve=~ee;return O(p[1].data[ve],p),Y()}return 0===c.length?null:(_=c.pop(),f=c.pop(),Y())}return function C(ee,oe){for(p=oe;c.length;)c.pop();return O(ee.value,oe),Y}}var C1=/\ufffd(\d+):?\d*\ufffd/gi,tU=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,rY=/\ufffd(\d+)\ufffd/,fR=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bi="\ufffd",En=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Yr=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,On=/\uE500/g;function nU(c,f,p,_,C,O){var Y=pt(),ee=[],oe=[],ve=[[]];C=function Io(c,f){if(function Ri(c){return-1===c}(f))return aa(c);var p=c.indexOf(":".concat(f).concat(bi))+2+f.toString().length,_=c.search(new RegExp("".concat(bi,"\\/\\*\\d+:").concat(f).concat(bi)));return aa(c.substring(p,_))}(C,O);for(var He=function xa(c){return c.replace(On," ")}(C).split(Yr),nt=0;nt<He.length;nt++){var dt=He[nt];if(0==(1&nt))for(var kt=xy(dt),Xt=0;Xt<kt.length;Xt++){var _n=kt[Xt];if(0==(1&Xt)){var Fn=_n;""!==Fn&&oo(c,Y,ve[0],ee,oe,p,Fn)}else{var Jn=_n;if("object"!=typeof Jn)throw new Error('Unable to parse ICU expression in "'.concat(C,'" message.'));sa(c,p,oe,f,Jn,pR(c,Y,ve[0],p,ee,"",!0).index)}}else{var Or=47===dt.charCodeAt(0),Ei=(dt.charCodeAt(Or?1:0),22+Number.parseInt(dt.substring(Or?2:1)));if(Or)ve.shift(),Yt(pt(),!1);else{var ms=oE(c,ve[0],Ei);ve.unshift([]),Yt(ms,!0)}}}c.data[_]={create:ee,update:oe}}function pR(c,f,p,_,C,O,Y){var ee=P_(c,_,1,null),oe=ee<<Cl.SHIFT,ve=pt();f===ve&&(ve=null),null===ve&&(oe|=Cl.APPEND_EAGERLY),Y&&(oe|=Cl.COMMENT,function OF(c){void 0===_h&&(_h=c())}($8)),C.push(oe,null===O?"":O);var He=I_(c,ee,Y?32:1,null===O?"":O,null);K8(p,He);var nt=He.index;return Yt(He,!1),null!==ve&&f!==ve&&function Sy(c,f){var p=c.insertBeforeIndex;null===p?(Jv(V8,Y8),p=c.insertBeforeIndex=[null,f]):(Ft(Array.isArray(p),!0,"Expecting array here"),p.push(f))}(ve,nt),He}function oo(c,f,p,_,C,O,Y){var ee=Y.match(C1),oe=pR(c,f,p,O,_,ee?null:Y,!1);ee&&Ir(C,Y,oe.index,null,0,null)}function Ir(c,f,p,_,C,O){var Y=c.length,ee=Y+1;c.push(null,null);for(var oe=Y+2,ve=f.split(C1),He=0,nt=0;nt<ve.length;nt++){var dt=ve[nt];if(1&nt){var kt=C+parseInt(dt,10);c.push(-1-kt),He|=$n(kt)}else""!==dt&&c.push(dt)}return c.push(p<<2|(_?1:0)),_&&c.push(_,O),c[Y]=He,c[ee]=c.length-oe,He}function Oo(c){for(var f=0,p=0;p<c.length;p++){var _=c[p];"number"==typeof _&&_<0&&f++}return f}function $n(c){return 1<<Math.min(c,31)}function aa(c){for(var f,O,p="",_=0,C=!1;null!==(f=En.exec(c));)C?f[0]==="".concat(bi,"/*").concat(O).concat(bi)&&(_=f.index,C=!1):(p+=c.substring(_,f.index+f[0].length),O=f[1],C=!0);return p+=c.slice(_)}function sa(c,f,p,_,C,O){var Y=0,ee={type:C.type,currentCaseLViewIndex:P_(c,f,1,null),anchorIdx:O,cases:[],create:[],remove:[],update:[]};(function rU(c,f,p){c.push($n(f.mainBinding),2,-1-f.mainBinding,p<<2|2)})(p,C,O),function JV(c,f,p){var _=c.data[f];null===_?c.data[f]=p:_.value=p}(c,O,ee);for(var oe=C.values,ve=0;ve<oe.length;ve++){for(var He=oe[ve],nt=[],dt=0;dt<He.length;dt++){var kt=He[dt];if("string"!=typeof kt){var Xt=nt.push(kt)-1;He[dt]="\x3c!--\ufffd".concat(Xt,"\ufffd--\x3e")}}Y=z_(c,ee,f,p,_,C.cases[ve],He.join(""),nt)|Y}Y&&function lE(c,f,p){c.push(f,1,p<<2|3)}(p,Y,O)}function nl(c){for(var f=[],p=[],_=1,C=0,O=xy(c=c.replace(fR,function(ve,He,nt){return _="select"===nt?0:1,C=parseInt(He.slice(1),10),""})),Y=0;Y<O.length;){var ee=O[Y++].trim();1===_&&(ee=ee.replace(/\s*(?:=)?(\w+)\s*/,"$1")),ee.length&&f.push(ee);var oe=xy(O[Y++]);f.length>p.length&&p.push(oe)}return{type:_,mainBinding:C,cases:f,values:p}}function xy(c){if(!c)return[];var O,f=0,p=[],_=[],C=/[{}]/g;for(C.lastIndex=0;O=C.exec(c);){var Y=O.index;if("}"==O[0]){if(p.pop(),0==p.length){var ee=c.substring(f,Y);fR.test(ee)?_.push(nl(ee)):_.push(ee),f=Y+1}}else{if(0==p.length){var oe=c.substring(f,Y);_.push(oe),f=Y+1}p.push("{")}}var ve=c.substring(f);return _.push(ve),_}function z_(c,f,p,_,C,O,Y,ee){var oe=[],ve=[],He=[];f.cases.push(O),f.create.push(oe),f.remove.push(ve),f.update.push(He);var dt=ZF(OC()).getInertBodyElement(Y),kt=WM(dt)||dt;return kt?sE(c,f,p,_,oe,ve,He,kt,C,ee,0):0}function sE(c,f,p,_,C,O,Y,ee,oe,ve,He){for(var nt=0,dt=ee.firstChild;dt;){var kt=P_(c,p,1,null);switch(dt.nodeType){case Node.ELEMENT_NODE:var Xt=dt,_n=Xt.tagName.toLowerCase();if(kh.hasOwnProperty(_n)){Ay(C,rE,_n,oe,kt),c.data[kt]=_n;for(var Fn=Xt.attributes,Jn=0;Jn<Fn.length;Jn++){var er=Fn.item(Jn),Cn=er.name.toLowerCase();!!er.value.match(C1)?Th.hasOwnProperty(Cn)&&(zM[Cn]?Ir(Y,er.value,kt,er.name,0,y_):Ir(Y,er.value,kt,er.name,0,null)):uE(C,kt,er)}nt=sE(c,f,p,_,C,O,Y,dt,kt,ve,He+1)|nt,Dy(O,kt,He)}break;case Node.TEXT_NODE:var ei=dt.textContent||"",Ei=ei.match(C1);Ay(C,null,Ei?"":ei,oe,kt),Dy(O,kt,He),Ei&&(nt=Ir(Y,ei,kt,null,0,null)|nt);break;case Node.COMMENT_NODE:var ms=rY.exec(dt.textContent||"");if(ms){var Bs=ve[parseInt(ms[1],10)];Ay(C,iE,"",oe,kt),sa(c,p,_,oe,Bs,kt),hR(O,kt,He)}}dt=dt.nextSibling}return nt}function Dy(c,f,p){0===p&&c.push(f)}function hR(c,f,p){0===p&&(c.push(~f),c.push(f))}function Ay(c,f,p,_,C){null!==f&&c.push(f),c.push(p,C,function sR(c,f,p){return c|f<<17|p<<1}(0,_,C))}function uE(c,f,p){c.push(f<<1|1,p.name,p.value)}var mR=/\[(\ufffd.+?\ufffd?)\]/,_R=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,gR=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,vR=/{([A-Z0-9_]+)}/g,iU=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,yR=/\/\*/,bR=/\d+\:(\d+)/;function CR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(mR.test(c)){var _={},C=[0];p=p.replace(_R,function(O,Y,ee){var oe=Y||ee,ve=_[oe]||[];if(ve.length||(oe.split("|").forEach(function(Jn){var er=Jn.match(bR),Cn=er?parseInt(er[1],10):0,Or=yR.test(Jn);ve.push([Cn,Or,Jn])}),_[oe]=ve),!ve.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(oe));for(var He=C[C.length-1],nt=0,dt=0;dt<ve.length;dt++)if(ve[dt][0]===He){nt=dt;break}var kt=(0,A.Z)(ve[nt],3),Xt=kt[0],_n=kt[1],Fn=kt[2];return _n?C.pop():He!==Xt&&C.push(Xt),ve.splice(nt,1),Fn})}return Object.keys(f).length&&(p=(p=(p=p.replace(gR,function(O,Y,ee,oe,ve,He){return f.hasOwnProperty(ee)?"".concat(Y).concat(f[ee]).concat(He):O})).replace(vR,function(O,Y){return f.hasOwnProperty(Y)?f[Y]:O})).replace(iU,function(O,Y){if(f.hasOwnProperty(Y)){var ee=f[Y];if(!ee.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(O," with key: ").concat(Y));return ee.shift()}return O})),p}function Oy(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=we(),C=xn(),O=22+c,Y=Ja(_.consts,f),ee=pt();_.firstCreatePass&&nU(_,null===ee?0:ee.index,C,O,Y,p);var oe=_.data[O],ve=ee===C[6]?null:ee,He=Mf(_,ve,C),nt=ee&&8&ee.type?C[ee.index]:null;X8(C,oe.create,He,nt),e_(!0)}function wR(){e_(!1)}function cE(c,f,p){Oy(c,f,p),wR()}function oU(c,f){var p=we();!function Gi(c,f,p){var C=Me().index,O=[];if(c.firstCreatePass&&null===c.data[f]){for(var Y=0;Y<p.length;Y+=2){var ee=p[Y],oe=p[Y+1];if(""!==oe){if(tU.test(oe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(oe,'".'));Ir(O,oe,C,ee,Oo(O),null)}}c.data[f]=O}}(p,c+22,Ja(p.consts,f))}function Iy(c){return function QV(c){c&&(G_|=1<<Math.min(Ey,31)),Ey++}(Ls(xn(),Ta(),c)),Iy}function kR(c){!function Q8(c,f,p){if(Ey>0){var _=c.data[p];uR(c,f,Array.isArray(_)?_:_.update,Qa()-Ey-1,G_)}G_=0,Ey=0}(we(),xn(),c+22)}function Py(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return CR(c,f)}function TR(c,f,p){var _=we();if(_.firstCreatePass){var C=en(c);w1(p,_.data,_.blueprint,C,!0),w1(f,_.data,_.blueprint,C,!1)}}function w1(c,f,p,_,C){if(c=te(c),Array.isArray(c))for(var O=0;O<c.length;O++)w1(c[O],f,p,_,C);else{var Y=we(),ee=xn(),oe=Lc(c)?c:te(c.provide),ve=sy(c),He=Me(),nt=1048575&He.providerIndexes,dt=He.directiveStart,kt=He.providerIndexes>>20;if(Lc(c)||!c.multi){var Xt=new me(ve,C,A_),_n=MR(oe,f,C?nt:nt+kt,dt);-1===_n?(xs(sh(He,ee),Y,oe),dE(Y,c,f.length),f.push(oe),He.directiveStart++,He.directiveEnd++,C&&(He.providerIndexes+=1048576),p.push(Xt),ee.push(Xt)):(p[_n]=Xt,ee[_n]=Xt)}else{var Fn=MR(oe,f,nt+kt,dt),Jn=MR(oe,f,nt,nt+kt),er=Fn>=0&&p[Fn],Cn=Jn>=0&&p[Jn];if(C&&!Cn||!C&&!er){xs(sh(He,ee),Y,oe);var Or=function SR(c,f,p,_,C){var O=new me(c,p,A_);return O.multi=[],O.index=f,O.componentProviders=0,aU(O,C,_&&!p),O}(C?sU:Ry,p.length,C,_,ve);!C&&Cn&&(p[Jn].providerFactory=Or),dE(Y,c,f.length,0),f.push(oe),He.directiveStart++,He.directiveEnd++,C&&(He.providerIndexes+=1048576),p.push(Or),ee.push(Or)}else{dE(Y,c,Fn>-1?Fn:Jn,aU(p[C?Jn:Fn],ve,!C&&_))}!C&&_&&Cn&&p[Jn].componentProviders++}}}function dE(c,f,p,_){var C=Lc(f),O=function KM(c){return!!c.useClass}(f);if(C||O){var oe=(O?te(f.useClass):f).prototype.ngOnDestroy;if(oe){var ve=c.destroyHooks||(c.destroyHooks=[]);if(!C&&f.multi){var He=ve.indexOf(p);-1===He?ve.push(p,[_,oe]):ve[He+1].push(_,oe)}else ve.push(p,oe)}}}function aU(c,f,p){return p&&c.componentProviders++,c.multi.push(f)-1}function MR(c,f,p,_){for(var C=p;C<_;C++)if(f[C]===c)return C;return-1}function Ry(c,f,p,_){return k1(this.multi,[])}function sU(c,f,p,_){var O,C=this.multi;if(this.providerFactory){var Y=this.providerFactory.componentProviders,ee=i_(p,p[1],this.providerFactory.index,_);k1(C,O=ee.slice(0,Y));for(var oe=Y;oe<ee.length;oe++)O.push(ee[oe])}else k1(C,O=[]);return O}function k1(c,f){for(var p=0;p<c.length;p++){var _=c[p];f.push(_())}return f}function ER(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(_,C){return TR(_,C?C(c):c,f)}}}var Uh=(0,R.Z)(function c(){(0,v.Z)(this,c)}),fE=(0,R.Z)(function c(){(0,v.Z)(this,c)});function lU(c,f){return new Hh(c,null!=f?f:null)}var Hh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C){var O;(0,v.Z)(this,p),(O=f.call(this))._parent=C,O._bootstrapComponents=[],O.destroyCbs=[],O.componentFactoryResolver=new o1((0,I.Z)(O));var Y=zi(_);return O._bootstrapComponents=Id(Y.bootstrap),O._r3Injector=oS(_,C,[{provide:Uh,useValue:(0,I.Z)(O)},{provide:Bf,useValue:O.componentFactoryResolver}],X(_),new Set(["environment"])),O._r3Injector.resolveInjectorInitializers(),O.instance=O._r3Injector.get(_),O}return(0,R.Z)(p,[{key:"injector",get:function(){return this._r3Injector}},{key:"destroy",value:function(){var C=this._r3Injector;!C.destroyed&&C.destroy(),this.destroyCbs.forEach(function(O){return O()}),this.destroyCbs=null}},{key:"onDestroy",value:function(C){this.destroyCbs.push(C)}}]),p}(Uh),hE=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_){var C;return(0,v.Z)(this,p),(C=f.call(this)).moduleType=_,C}return(0,R.Z)(p,[{key:"create",value:function(C){return new Hh(this.moduleType,C)}}]),p}(fE),zf=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;(0,v.Z)(this,p),(Y=f.call(this)).componentFactoryResolver=new o1((0,I.Z)(Y)),Y.instance=null;var ee=new Sh([].concat((0,E.Z)(_),[{provide:Uh,useValue:(0,I.Z)(Y)},{provide:Bf,useValue:Y.componentFactoryResolver}]),C||$a(),O,new Set(["environment"]));return Y.injector=ee,ee.resolveInjectorInitializers(),Y}return(0,R.Z)(p,[{key:"destroy",value:function(){this.injector.destroy()}},{key:"onDestroy",value:function(C){this.injector.onDestroy(C)}}]),p}(Uh);function Ly(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=new zf(c,f,p);return _.injector}var V_=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this.cachedInjectors=new Map}return(0,R.Z)(c,[{key:"getOrCreateStandaloneInjector",value:function(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){var _=k_(!1,p.type),C=_.length>0?Ly([_],this._injector,"Standalone[".concat(p.type.name,"]")):null;this.cachedInjectors.set(p.id,C)}return this.cachedInjectors.get(p.id)}},{key:"ngOnDestroy",value:function(){try{var _,p=(0,T.Z)(this.cachedInjectors.values());try{for(p.s();!(_=p.n()).done;){var C=_.value;null!==C&&C.destroy()}}catch(O){p.e(O)}finally{p.f()}}finally{this.cachedInjectors.clear()}}}]),c}();function Y_(c){c.getStandaloneInjector=function(f){return f.get(V_).getOrCreateStandaloneInjector(c)}}function Qi(c,f,p,_){return jt(function(){var C=c;if(null!==f)if(C.hasOwnProperty("decorators")&&void 0!==C.decorators){var O;(O=C.decorators).push.apply(O,(0,E.Z)(f))}else C.decorators=f;null!==p&&(C.ctorParameters=p),null!==_&&(C.hasOwnProperty("propDecorators")&&void 0!==C.propDecorators?C.propDecorators=Object.assign(Object.assign({},C.propDecorators),_):C.propDecorators=_)})}function Ny(c,f,p){var _=Xo()+c,C=xn();return C[_]===jr?Bc(C,_,p?f.call(p):f()):by(C,_)}function Kn(c,f,p,_){return Zd(xn(),Xo(),c,f,p,_)}function OR(c,f,p,_,C){return IR(xn(),Xo(),c,f,p,_,C)}function dU(c,f,p,_,C,O){return PR(xn(),Xo(),c,f,p,_,C,O)}function fU(c,f,p,_,C,O,Y){return rl(xn(),Xo(),c,f,p,_,C,O,Y)}function pU(c,f,p,_,C,O,Y,ee){var oe=Xo()+c,ve=xn(),He=xu(ve,oe,p,_,C,O);return Ls(ve,oe+4,Y)||He?Bc(ve,oe+5,ee?f.call(ee,p,_,C,O,Y):f(p,_,C,O,Y)):by(ve,oe+5)}function gE(c,f,p,_,C,O,Y,ee,oe){var ve=Xo()+c,He=xn(),nt=xu(He,ve,p,_,C,O);return Ld(He,ve+4,Y,ee)||nt?Bc(He,ve+6,oe?f.call(oe,p,_,C,O,Y,ee):f(p,_,C,O,Y,ee)):by(He,ve+6)}function Q_(c,f,p,_,C,O,Y,ee,oe,ve){var He=Xo()+c,nt=xn(),dt=xu(nt,He,p,_,C,O);return s1(nt,He+4,Y,ee,oe)||dt?Bc(nt,He+7,ve?f.call(ve,p,_,C,O,Y,ee,oe):f(p,_,C,O,Y,ee,oe)):by(nt,He+7)}function hU(c,f,p,_,C,O,Y,ee,oe,ve,He){var nt=Xo()+c,dt=xn(),kt=xu(dt,nt,p,_,C,O);return xu(dt,nt+4,Y,ee,oe,ve)||kt?Bc(dt,nt+8,He?f.call(He,p,_,C,O,Y,ee,oe,ve):f(p,_,C,O,Y,ee,oe,ve)):by(dt,nt+8)}function Uc(c,f,p,_){return S1(xn(),Xo(),c,f,p,_)}function wl(c,f){var p=c[f];return p===jr?void 0:p}function Zd(c,f,p,_,C,O){var Y=f+p;return Ls(c,Y,C)?Bc(c,Y+1,O?_.call(O,C):_(C)):wl(c,Y+1)}function IR(c,f,p,_,C,O,Y){var ee=f+p;return Ld(c,ee,C,O)?Bc(c,ee+2,Y?_.call(Y,C,O):_(C,O)):wl(c,ee+2)}function PR(c,f,p,_,C,O,Y,ee){var oe=f+p;return s1(c,oe,C,O,Y)?Bc(c,oe+3,ee?_.call(ee,C,O,Y):_(C,O,Y)):wl(c,oe+3)}function rl(c,f,p,_,C,O,Y,ee,oe){var ve=f+p;return xu(c,ve,C,O,Y,ee)?Bc(c,ve+4,oe?_.call(oe,C,O,Y,ee):_(C,O,Y,ee)):wl(c,ve+4)}function S1(c,f,p,_,C,O){for(var Y=f+p,ee=!1,oe=0;oe<C.length;oe++)Ls(c,Y++,C[oe])&&(ee=!0);return ee?Bc(c,Y,_.apply(O,C)):wl(c,Y)}function Wf(c,f){var _,p=we(),C=c+22;p.firstCreatePass?(_=function X_(c,f){if(f)for(var p=f.length-1;p>=0;p--){var _=f[p];if(c===_.name)return _}}(f,p.pipeRegistry),p.data[C]=_,_.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(C,_.onDestroy)):_=p.data[C];var O=_.factory||(_.factory=go(_.type)),Y=lt(A_);try{var ee=Cu(!1),oe=O();return Cu(ee),function l8(c,f,p,_){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),f[p]=_}(p,xn(),C,oe),oe}finally{lt(Y)}}function vE(c,f,p){var _=c+22,C=xn(),O=pa(C,_);return By(C,_)?Zd(C,Xo(),f,O.transform,p,O):O.transform(p)}function E1(c,f,p,_){var C=c+22,O=xn(),Y=pa(O,C);return By(O,C)?IR(O,Xo(),f,Y.transform,p,_,Y):Y.transform(p,_)}function Vf(c,f,p,_,C){var O=c+22,Y=xn(),ee=pa(Y,O);return By(Y,O)?PR(Y,Xo(),f,ee.transform,p,_,C,ee):ee.transform(p,_,C)}function oY(c,f,p,_,C,O){var Y=c+22,ee=xn(),oe=pa(ee,Y);return By(ee,Y)?rl(ee,Xo(),f,oe.transform,p,_,C,O,oe):oe.transform(p,_,C,O)}function jh(c,f,p){var _=c+22,C=xn(),O=pa(C,_);return By(C,_)?S1(C,Xo(),f,O.transform,p,O):O.transform.apply(O,p)}function By(c,f){return c[1].data[f].pure}V_.\u0275prov=Be({token:V_,providedIn:"environment",factory:function(){return new V_(Ea(Is))}});var mU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){var _,C=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,v.Z)(this,p),(_=f.call(this)).__isAsync=C,_}return(0,R.Z)(p,[{key:"emit",value:function(C){(0,G.Z)((0,W.Z)(p.prototype),"next",this).call(this,C)}},{key:"subscribe",value:function(C,O,Y){var ee,oe,ve,He=C,nt=O||function(){return null},dt=Y;if(C&&"object"==typeof C){var kt=C;He=null===(ee=kt.next)||void 0===ee?void 0:ee.bind(kt),nt=null===(oe=kt.error)||void 0===oe?void 0:oe.bind(kt),dt=null===(ve=kt.complete)||void 0===ve?void 0:ve.bind(kt)}this.__isAsync&&(nt=dc(nt),He&&(He=dc(He)),dt&&(dt=dc(dt)));var Xt=(0,G.Z)((0,W.Z)(p.prototype),"subscribe",this).call(this,{next:He,error:nt,complete:dt});return C instanceof D.w&&C.add(Xt),Xt}}]),p}(b.xQ);function dc(c){return function(f){setTimeout(c,void 0,f)}}var Hc=mU;function _U(){return this._results[Rh()]()}var jc=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,v.Z)(this,c),this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var p=Rh(),_=c.prototype;_[p]||(_[p]=_U)}return(0,R.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new Hc)}},{key:"get",value:function(p){return this._results[p]}},{key:"map",value:function(p){return this._results.map(p)}},{key:"filter",value:function(p){return this._results.filter(p)}},{key:"find",value:function(p){return this._results.find(p)}},{key:"reduce",value:function(p,_){return this._results.reduce(p,_)}},{key:"forEach",value:function(p){this._results.forEach(p)}},{key:"some",value:function(p){return this._results.some(p)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(p,_){var C=this;C.dirty=!1;var O=Gl(p);(this._changesDetected=!function cF(c,f,p){if(c.length!==f.length)return!1;for(var _=0;_<c.length;_++){var C=c[_],O=f[_];if(p&&(C=p(C),O=p(O)),O!==C)return!1}return!0}(C._results,O,_))&&(C._results=O,C.length=O.length,C.last=O[this.length-1],C.first=O[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),c}(),Jl=(0,R.Z)(function c(){(0,v.Z)(this,c)});Jl.__NG_ELEMENT_ID__=function zh(){return Gc(Me(),xn())};var Gh=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._declarationLView=_,Y._declarationTContainer=C,Y.elementRef=O,Y}return(0,R.Z)(p,[{key:"createEmbeddedView",value:function(C,O){var Y=this._declarationTContainer.tViews,ee=JC(this._declarationLView,Y,C,16,null,Y.declTNode,null,null,null,null,O||null),oe=this._declarationLView[this._declarationTContainer.index];ee[17]=oe;var ve=this._declarationLView[19];return null!==ve&&(ee[19]=ve.createEmbeddedView(Y)),c6(Y,ee,C),new Ph(ee)}}]),p}(Jl);function Gc(c,f){return 4&c.type?new Gh(f,c,S_(c,f)):null}var Ou=(0,R.Z)(function c(){(0,v.Z)(this,c)});Ou.__NG_ELEMENT_ID__=function RR(){return bU(Me(),xn())};var vU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(_,C,O){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._lContainer=_,Y._hostTNode=C,Y._hostLView=O,Y}return(0,R.Z)(p,[{key:"element",get:function(){return S_(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new qr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var C=yf(this._hostTNode,this._hostLView);if(fs(C)){var O=bu(C,this._hostLView),Y=Pi(C),ee=O[1].data[Y+8];return new qr(ee,O)}return new qr(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(C){var O=yU(this._lContainer);return null!==O&&O[C]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(C,O,Y){var ee,oe;"number"==typeof Y?ee=Y:null!=Y&&(ee=Y.index,oe=Y.injector);var ve=C.createEmbeddedView(O||{},oe);return this.insert(ve,ee),ve}},{key:"createComponent",value:function(C,O,Y,ee,oe){var He,ve=C&&!qt(C);if(ve)He=O;else{var nt=O||{};He=nt.index,Y=nt.injector,ee=nt.projectableNodes,oe=nt.environmentInjector||nt.ngModuleRef}var dt=ve?C:new R_(Vn(C)),kt=Y||this.parentInjector;if(!oe&&null==dt.ngModule){var _n=(ve?kt:this.parentInjector).get(Is,null);_n&&(oe=_n)}var Fn=dt.create(kt,ee,void 0,oe);return this.insert(Fn.hostView,He),Fn}},{key:"insert",value:function(C,O){var Y=C._lView,ee=Y[1];if(function Xm(c){return Ai(c[3])}(Y)){var oe=this.indexOf(C);if(-1!==oe)this.detach(oe);else{var ve=Y[3],He=new vU(ve,ve[6],ve[3]);He.detach(He.indexOf(C))}}var nt=this._adjustIndex(O),dt=this._lContainer;XP(ee,Y,dt,nt);var kt=lc(nt,dt),Xt=Y[11],_n=Ef(Xt,dt[7]);return null!==_n&&function SC(c,f,p,_,C,O){_[0]=C,_[6]=f,Yl(c,_,p,1,C,O)}(ee,dt[6],Xt,Y,_n,kt),C.attachToViewContainerRef(),xP(LR(dt),nt,C),C}},{key:"move",value:function(C,O){return this.insert(C,O)}},{key:"indexOf",value:function(C){var O=yU(this._lContainer);return null!==O?O.indexOf(C):-1}},{key:"remove",value:function(C){var O=this._adjustIndex(C,-1),Y=PM(this._lContainer,O);Y&&(dh(LR(this._lContainer),O),RM(Y[1],Y))}},{key:"detach",value:function(C){var O=this._adjustIndex(C,-1),Y=PM(this._lContainer,O);return Y&&null!=dh(LR(this._lContainer),O)?new Ph(Y):null}},{key:"_adjustIndex",value:function(C){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==C?this.length+O:C}}]),p}(Ou);function yU(c){return c[8]}function LR(c){return c[8]||(c[8]=[])}function bU(c,f){var p,_=f[c.index];if(Ai(_))p=_;else{var C;if(8&c.type)C=po(_);else{var O=f[11];C=O.createComment("");var Y=xo(c,f);Sf(O,Ef(O,Y),C,function r3(c,f){return c.nextSibling(f)}(O,Y),!1)}f[c.index]=p=bS(_,f,C,c),cc(f,p)}return new vU(p,c,f)}var lY=function(){function c(f){(0,v.Z)(this,c),this.queryList=f,this.matches=null}return(0,R.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),yE=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,R.Z)(c,[{key:"createEmbeddedView",value:function(p){var _=p.queries;if(null!==_){for(var C=null!==p.contentQueries?p.contentQueries[0]:_.length,O=[],Y=0;Y<C;Y++){var ee=_.getByIndex(Y),oe=this.queries[ee.indexInDeclarationView];O.push(oe.clone())}return new c(O)}return null}},{key:"insertView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"detachView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"dirtyQueriesWithMatches",value:function(p){for(var _=0;_<this.queries.length;_++)null!==$r(p,_).matches&&this.queries[_].setDirty()}}]),c}(),eg=(0,R.Z)(function c(f,p){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,v.Z)(this,c),this.predicate=f,this.flags=p,this.read=_}),Yf=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,R.Z)(c,[{key:"elementStart",value:function(p,_){for(var C=0;C<this.queries.length;C++)this.queries[C].elementStart(p,_)}},{key:"elementEnd",value:function(p){for(var _=0;_<this.queries.length;_++)this.queries[_].elementEnd(p)}},{key:"embeddedTView",value:function(p){for(var _=null,C=0;C<this.length;C++){var O=null!==_?_.length:0,Y=this.getByIndex(C).embeddedTView(p,O);Y&&(Y.indexInDeclarationView=C,null!==_?_.push(Y):_=[Y])}return null!==_?new c(_):null}},{key:"template",value:function(p,_){for(var C=0;C<this.queries.length;C++)this.queries[C].template(p,_)}},{key:"getByIndex",value:function(p){return this.queries[p]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(p){this.queries.push(p)}}]),c}(),Kf=function(){function c(f){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,v.Z)(this,c),this.metadata=f,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}return(0,R.Z)(c,[{key:"elementStart",value:function(p,_){this.isApplyingToNode(_)&&this.matchTNode(p,_)}},{key:"elementEnd",value:function(p){this._declarationNodeIndex===p.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(p,_){this.elementStart(p,_)}},{key:"embeddedTView",value:function(p,_){return this.isApplyingToNode(p)?(this.crossesNgTemplate=!0,this.addMatch(-p.index,_),new c(this.metadata)):null}},{key:"isApplyingToNode",value:function(p){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var _=this._declarationNodeIndex,C=p.parent;null!==C&&8&C.type&&C.index!==_;)C=C.parent;return _===(null!==C?C.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,_){var C=this.metadata.predicate;if(Array.isArray(C))for(var O=0;O<C.length;O++){var Y=C[O];this.matchTNodeWithReadOption(p,_,qf(_,Y)),this.matchTNodeWithReadOption(p,_,Sa(_,p,Y,!1,!1))}else C===Jl?4&_.type&&this.matchTNodeWithReadOption(p,_,-1):this.matchTNodeWithReadOption(p,_,Sa(_,p,C,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,_,C){if(null!==C){var O=this.metadata.read;if(null!==O)if(O===E_||O===Ou||O===Jl&&4&_.type)this.addMatch(_.index,-2);else{var Y=Sa(_,p,O,!1,!1);null!==Y&&this.addMatch(_.index,Y)}else this.addMatch(_.index,C)}}},{key:"addMatch",value:function(p,_){null===this.matches?this.matches=[p,_]:this.matches.push(p,_)}}]),c}();function qf(c,f){var p=c.localNames;if(null!==p)for(var _=0;_<p.length;_+=2)if(p[_]===f)return p[_+1];return null}function uY(c,f,p,_){return-1===p?function Jf(c,f){return 11&c.type?S_(c,f):4&c.type?Gc(c,f):null}(f,c):-2===p?function cY(c,f,p){if(p===E_)return S_(f,c);if(p===Jl)return Gc(f,c);if(p===Ou)return bU(f,c)}(c,f,_):i_(c,c[1],p,f)}function zc(c,f,p,_){var C=f[19].queries[_];if(null===C.matches){for(var O=c.data,Y=p.matches,ee=[],oe=0;oe<Y.length;oe+=2){var ve=Y[oe];if(ve<0)ee.push(null);else{var He=O[ve];ee.push(uY(f,He,Y[oe+1],p.metadata.read))}}C.matches=ee}return C.matches}function tg(c,f,p,_){var C=c.queries.getByIndex(p),O=C.matches;if(null!==O)for(var Y=zc(c,f,C,p),ee=0;ee<O.length;ee+=2){var oe=O[ee];if(oe>0)_.push(Y[ee/2]);else{for(var ve=O[ee+1],He=f[-oe],nt=10;nt<He.length;nt++){var dt=He[nt];dt[17]===dt[3]&&tg(dt[1],dt,ve,_)}if(null!==He[9])for(var kt=He[9],Xt=0;Xt<kt.length;Xt++){var _n=kt[Xt];tg(_n[1],_n,ve,_)}}}return _}function Wh(c){var f=xn(),p=we(),_=Ss();Es(_+1);var C=$r(p,_);if(c.dirty&&function bd(c){return 4==(4&c[2])}(f)===(2==(2&C.metadata.flags))){if(null===C.matches)c.reset([]);else{var O=C.crossesNgTemplate?tg(p,f,_,[]):zc(p,f,C,_);c.reset(O,b3),c.notifyOnChanges()}return!0}return!1}function CU(c,f,p){var _=we();_.firstCreatePass&&(Tr(_,new eg(c,f,p),-1),2==(2&f)&&(_.staticViewQueries=!0)),Gt(_,xn(),f)}function Qf(c,f,p,_){var C=we();if(C.firstCreatePass){var O=Me();Tr(C,new eg(f,p,_),O.index),function Xf(c,f){var p=c.contentQueries||(c.contentQueries=[]),_=p.length?p[p.length-1]:-1;f!==_&&p.push(c.queries.length-1,f)}(C,c),2==(2&p)&&(C.staticContentQueries=!0)}Gt(C,xn(),p)}function fc(){return function J(c,f){return c[19].queries[f].queryList}(xn(),Ss())}function Gt(c,f,p){var _=new jc(4==(4&p));vS(c,f,_,_.destroy),null===f[19]&&(f[19]=new yE),f[19].queries.push(new lY(_))}function Tr(c,f,p){null===c.queries&&(c.queries=new Yf),c.queries.track(new Kf(f,p))}function $r(c,f){return c.queries.getByIndex(f)}function x1(c,f){return Gc(c,f)}var ts={"\u0275\u0275attribute":l1,"\u0275\u0275attributeInterpolate1":O6,"\u0275\u0275attributeInterpolate2":xS,"\u0275\u0275attributeInterpolate3":u1,"\u0275\u0275attributeInterpolate4":DS,"\u0275\u0275attributeInterpolate5":AS,"\u0275\u0275attributeInterpolate6":Nh,"\u0275\u0275attributeInterpolate7":I6,"\u0275\u0275attributeInterpolate8":a8,"\u0275\u0275attributeInterpolateV":P6,"\u0275\u0275defineComponent":Un,"\u0275\u0275defineDirective":Hn,"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275defineNgModule":gt,"\u0275\u0275definePipe":Wn,"\u0275\u0275directiveInject":A_,"\u0275\u0275getInheritedFactory":kP,"\u0275\u0275inject":Ea,"\u0275\u0275injectAttribute":Ds,"\u0275\u0275invalidFactory":Y3,"\u0275\u0275invalidFactoryDep":gM,"\u0275\u0275templateRefExtractor":x1,"\u0275\u0275resetView":se,"\u0275\u0275NgOnChangesFeature":ia,"\u0275\u0275ProvidersFeature":ER,"\u0275\u0275CopyDefinitionFeature":n8,"\u0275\u0275InheritDefinitionFeature":MS,"\u0275\u0275StandaloneFeature":Y_,"\u0275\u0275nextContext":FS,"\u0275\u0275namespaceHTML":ai,"\u0275\u0275namespaceMathML":Rr,"\u0275\u0275namespaceSVG":wn,"\u0275\u0275enableBindings":yu,"\u0275\u0275disableBindings":Hl,"\u0275\u0275elementStart":d1,"\u0275\u0275elementEnd":f1,"\u0275\u0275element":IS,"\u0275\u0275elementContainerStart":Bh,"\u0275\u0275elementContainerEnd":Cy,"\u0275\u0275elementContainer":RS,"\u0275\u0275pureFunction0":Ny,"\u0275\u0275pureFunction1":Kn,"\u0275\u0275pureFunction2":OR,"\u0275\u0275pureFunction3":dU,"\u0275\u0275pureFunction4":fU,"\u0275\u0275pureFunction5":pU,"\u0275\u0275pureFunction6":gE,"\u0275\u0275pureFunction7":Q_,"\u0275\u0275pureFunction8":hU,"\u0275\u0275pureFunctionV":Uc,"\u0275\u0275getCurrentView":Z6,"\u0275\u0275restoreView":ke,"\u0275\u0275listener":ZS,"\u0275\u0275projection":H6,"\u0275\u0275syntheticHostProperty":rR,"\u0275\u0275syntheticHostListener":NS,"\u0275\u0275pipeBind1":vE,"\u0275\u0275pipeBind2":E1,"\u0275\u0275pipeBind3":Vf,"\u0275\u0275pipeBind4":oY,"\u0275\u0275pipeBindV":jh,"\u0275\u0275projectionDef":US,"\u0275\u0275hostProperty":nR,"\u0275\u0275property":U_,"\u0275\u0275propertyInterpolate":HS,"\u0275\u0275propertyInterpolate1":h1,"\u0275\u0275propertyInterpolate2":jS,"\u0275\u0275propertyInterpolate3":GS,"\u0275\u0275propertyInterpolate4":m1,"\u0275\u0275propertyInterpolate5":zS,"\u0275\u0275propertyInterpolate6":WS,"\u0275\u0275propertyInterpolate7":j6,"\u0275\u0275propertyInterpolate8":G6,"\u0275\u0275propertyInterpolateV":VS,"\u0275\u0275pipe":Wf,"\u0275\u0275queryRefresh":Wh,"\u0275\u0275viewQuery":CU,"\u0275\u0275loadQuery":fc,"\u0275\u0275contentQuery":Qf,"\u0275\u0275reference":OS,"\u0275\u0275classMap":QS,"\u0275\u0275classMapInterpolate1":A8,"\u0275\u0275classMapInterpolate2":O8,"\u0275\u0275classMapInterpolate3":I8,"\u0275\u0275classMapInterpolate4":SV,"\u0275\u0275classMapInterpolate5":EV,"\u0275\u0275classMapInterpolate6":xV,"\u0275\u0275classMapInterpolate7":DV,"\u0275\u0275classMapInterpolate8":AV,"\u0275\u0275classMapInterpolateV":OV,"\u0275\u0275styleMap":Zs,"\u0275\u0275styleMapInterpolate1":IV,"\u0275\u0275styleMapInterpolate2":PV,"\u0275\u0275styleMapInterpolate3":RV,"\u0275\u0275styleMapInterpolate4":LV,"\u0275\u0275styleMapInterpolate5":ZV,"\u0275\u0275styleMapInterpolate6":NV,"\u0275\u0275styleMapInterpolate7":BV,"\u0275\u0275styleMapInterpolate8":FV,"\u0275\u0275styleMapInterpolateV":UV,"\u0275\u0275styleProp":JS,"\u0275\u0275stylePropInterpolate1":tR,"\u0275\u0275stylePropInterpolate2":P8,"\u0275\u0275stylePropInterpolate3":R8,"\u0275\u0275stylePropInterpolate4":L8,"\u0275\u0275stylePropInterpolate5":Z8,"\u0275\u0275stylePropInterpolate6":N8,"\u0275\u0275stylePropInterpolate7":B8,"\u0275\u0275stylePropInterpolate8":F8,"\u0275\u0275stylePropInterpolateV":U8,"\u0275\u0275classProp":g1,"\u0275\u0275advance":O3,"\u0275\u0275template":L6,"\u0275\u0275text":Q6,"\u0275\u0275textInterpolate":$S,"\u0275\u0275textInterpolate1":eE,"\u0275\u0275textInterpolate2":X6,"\u0275\u0275textInterpolate3":$6,"\u0275\u0275textInterpolate4":eR,"\u0275\u0275textInterpolate5":tE,"\u0275\u0275textInterpolate6":nE,"\u0275\u0275textInterpolate7":E8,"\u0275\u0275textInterpolate8":x8,"\u0275\u0275textInterpolateV":D8,"\u0275\u0275i18n":cE,"\u0275\u0275i18nAttributes":oU,"\u0275\u0275i18nExp":Iy,"\u0275\u0275i18nStart":Oy,"\u0275\u0275i18nEnd":wR,"\u0275\u0275i18nApply":kR,"\u0275\u0275i18nPostprocess":Py,"\u0275\u0275resolveWindow":Dh,"\u0275\u0275resolveDocument":ly,"\u0275\u0275resolveBody":M3,"\u0275\u0275setComponentScope":Kt,"\u0275\u0275setNgModuleScope":wt,"\u0275\u0275registerNgModuleType":CF,"\u0275\u0275sanitizeHtml":VM,"\u0275\u0275sanitizeStyle":m3,"\u0275\u0275sanitizeResourceUrl":_3,"\u0275\u0275sanitizeScript":GF,"\u0275\u0275sanitizeUrl":Mh,"\u0275\u0275sanitizeUrlOrResourceUrl":WF,"\u0275\u0275trustConstantHtml":g3,"\u0275\u0275trustConstantResourceUrl":zF,"\u0275\u0275validateIframeAttribute":LF,forwardRef:Q,resolveForwardRef:te},ng=null;function ZR(c){return void 0!==c.ngModule}function NR(c){return!!zi(c)}var Fy=[];function wU(c,f){Fy.push({moduleType:c,ngModule:f})}var bE=!1;function BR(c){return Array.isArray(c)?c.every(BR):!!te(c)}function FR(c,f){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=Gl(f.declarations||tt),C=null;Object.defineProperty(c,Re,{configurable:!0,get:function(){if(null===C){var oe=Za();(C=oe.compileNgModule(ts,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:Gl(f.bootstrap||tt).map(te),declarations:_.map(te),imports:Gl(f.imports||tt).map(te).map(wE),exports:Gl(f.exports||tt).map(te).map(wE),schemas:f.schemas?Gl(f.schemas):null,id:f.id||null})).schemas||(C.schemas=[])}return C}});var O=null;Object.defineProperty(c,Je,{get:function(){if(null===O){var oe=Za();O=oe.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:jv(c),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return O},configurable:!1});var Y=null;Object.defineProperty(c,Qe,{get:function(){if(null===Y){var oe={name:c.name,type:c,providers:f.providers||tt,imports:[(f.imports||tt).map(te),(f.exports||tt).map(te)]},ve=Za();Y=ve.compileInjector(ts,"ng:///".concat(c.name,"/\u0275inj.js"),oe)}return Y},configurable:!1})}function ig(c,f){var p=Gl(f.declarations||tt),_=pc(c);p.forEach(function(C){(C=te(C)).hasOwnProperty(Et)?tp(Vn(C),_):!C.hasOwnProperty(We)&&!C.hasOwnProperty(Ye)&&(C.ngSelectorScope=c)})}function tp(c,f){c.directiveDefs=function(){return Array.from(f.compilation.directives).map(function(p){return p.hasOwnProperty(Et)?Vn(p):ir(p)}).filter(function(p){return!!p})},c.pipeDefs=function(){return Array.from(f.compilation.pipes).map(function(p){return Pr(p)})},c.schemas=f.schemas,c.tView=null}function pc(c){if(NR(c))return function hY(c){var f=zi(c,!0);if(null!==f.transitiveCompileScopes)return f.transitiveCompileScopes;var p={schemas:f.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Id(f.imports).forEach(function(_){var C=pc(_);C.exported.directives.forEach(function(O){return p.compilation.directives.add(O)}),C.exported.pipes.forEach(function(O){return p.compilation.pipes.add(O)})}),Id(f.declarations).forEach(function(_){Pr(_)?p.compilation.pipes.add(_):p.compilation.directives.add(_)}),Id(f.exports).forEach(function(_){var C=_;if(NR(C)){var O=pc(C);O.exported.directives.forEach(function(Y){p.compilation.directives.add(Y),p.exported.directives.add(Y)}),O.exported.pipes.forEach(function(Y){p.compilation.pipes.add(Y),p.exported.pipes.add(Y)})}else Pr(C)?p.exported.pipes.add(C):p.exported.directives.add(C)}),f.transitiveCompileScopes=p,p}(c);if(yi(c)){if(null!==(Vn(c)||ir(c)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([c]),pipes:new Set}};if(null!==Pr(c))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([c])}}}throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"))}function wE(c){return ZR(c)?c.ngModule:c}var kE=0;function MU(c,f){var p=null;(function Tf(c,f){c_(f)&&(mh.set(c,f),yC.add(c))})(c,f),GR(c,f),Object.defineProperty(c,Et,{get:function(){if(null===p){var C=Za();if(c_(f)){var O=["Component '".concat(c.name,"' is not resolved:")];throw f.templateUrl&&O.push(" - templateUrl: ".concat(f.templateUrl)),f.styleUrls&&f.styleUrls.length&&O.push(" - styleUrls: ".concat(JSON.stringify(f.styleUrls))),O.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(O.join("\n"))}var Y=function D1(){return ng}(),ee=f.preserveWhitespaces;void 0===ee&&(ee=null!==Y&&void 0!==Y.preserveWhitespaces&&Y.preserveWhitespaces);var oe=f.encapsulation;void 0===oe&&(oe=null!==Y&&void 0!==Y.defaultEncapsulation?Y.defaultEncapsulation:Sn.Emulated);var ve=f.templateUrl||"ng:///".concat(c.name,"/template.html"),He=Object.assign(Object.assign({},AU(c,f)),{typeSourceSpan:C.createParseSourceSpan("Component",c.name,ve),template:f.template||"",preserveWhitespaces:ee,styles:f.styles||tt,animations:f.animations,declarations:[],changeDetection:f.changeDetection,encapsulation:oe,interpolation:f.interpolation,viewProviders:f.viewProviders||null,isStandalone:!!f.standalone});kE++;try{if(He.usesInheritance&&zR(c),p=C.compileComponent(ts,ve,He),f.standalone){var nt=Gl(f.imports||tt),dt=function EU(c,f){var p=null,_=null,C=function(){if(null===p){p=[Vn(c)];var ve,ee=new Set,oe=(0,T.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var nt=te(ve.value);if(!ee.has(nt))if(ee.add(nt),zi(nt)){var Xt,dt=pc(nt),kt=(0,T.Z)(dt.exported.directives);try{for(kt.s();!(Xt=kt.n()).done;){var _n=Xt.value,Fn=Vn(_n)||ir(_n);Fn&&!ee.has(_n)&&(ee.add(_n),p.push(Fn))}}catch(er){kt.e(er)}finally{kt.f()}}else{var Jn=Vn(nt)||ir(nt);Jn&&p.push(Jn)}}}catch(er){oe.e(er)}finally{oe.f()}}return p},O=function(){if(null===_){_=[];var ve,ee=new Set,oe=(0,T.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var nt=te(ve.value);if(!ee.has(nt))if(ee.add(nt),zi(nt)){var Xt,dt=pc(nt),kt=(0,T.Z)(dt.exported.pipes);try{for(kt.s();!(Xt=kt.n()).done;){var _n=Xt.value,Fn=Pr(_n);Fn&&!ee.has(_n)&&(ee.add(_n),_.push(Fn))}}catch(er){kt.e(er)}finally{kt.f()}}else{var Jn=Pr(nt);Jn&&_.push(Jn)}}}catch(er){oe.e(er)}finally{oe.f()}}return _};return{directiveDefs:C,pipeDefs:O}}(c,nt),kt=dt.directiveDefs,Xt=dt.pipeDefs;p.directiveDefs=kt,p.pipeDefs=Xt,p.dependencies=function(){return nt.map(te)}}}finally{kE--}if(0===kE&&function kU(){if(!bE){bE=!0;try{for(var c=Fy.length-1;c>=0;c--){var f=Fy[c],p=f.moduleType,_=f.ngModule;_.declarations&&_.declarations.every(BR)&&(Fy.splice(c,1),ig(p,_))}}finally{bE=!1}}}(),function xU(c){return void 0!==c.ngSelectorScope}(c)){var _n=pc(c.ngSelectorScope);tp(p,_n)}if(f.schemas){if(!f.standalone)throw new Error("The 'schemas' was specified for the ".concat(ge(c)," but is only valid on a component that is standalone."));p.schemas=f.schemas}else f.standalone&&(p.schemas=[])}return p},configurable:!1})}function HR(c,f){var p=null;GR(c,f||{}),Object.defineProperty(c,We,{get:function(){if(null===p){var C=jR(c,f||{}),O=Za();p=O.compileDirective(ts,C.sourceMapUrl,C.metadata)}return p},configurable:!1})}function jR(c,f){var p=c&&c.name,_="ng:///".concat(p,"/\u0275dir.js"),C=Za(),O=AU(c,f);return O.typeSourceSpan=C.createParseSourceSpan("Directive",p,_),O.usesInheritance&&zR(c),{metadata:O,sourceMapUrl:_}}function GR(c,f){var p=null;Object.defineProperty(c,Je,{get:function(){if(null===p){var C=jR(c,f),O=Za();p=O.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:C.metadata.name,type:C.metadata.type,typeArgumentCount:0,deps:jv(c),target:O.FactoryTarget.Directive})}return p},configurable:!1})}function DU(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function AU(c,f){var p=Hv(),_=p.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==f.selector?f.selector:null,host:f.host||xt,propMetadata:_,inputs:f.inputs||tt,outputs:f.outputs||tt,queries:WR(c,_,VR),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!DU(c),exportAs:PU(f.exportAs),providers:f.providers||null,viewQueries:WR(c,_,YR),isStandalone:!!f.standalone}}function zR(c){for(var f=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==f;)!ir(p)&&!Vn(p)&&gY(p)&&HR(p,null),p=Object.getPrototypeOf(p)}function OU(c){return"string"==typeof c?qR(c):te(c)}function WR(c,f,p){var _=[],C=function(ee){if(f.hasOwnProperty(ee)){var oe=f[ee];oe.forEach(function(ve){if(p(ve)){if(!ve.selector)throw new Error("Can't construct a query for the property \"".concat(ee,'" of ')+'"'.concat(ge(c),"\" since the query selector wasn't defined."));if(oe.some(KR))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function IU(c,f){return{propertyName:c,predicate:OU(f.selector),descendants:f.descendants,first:f.first,read:f.read?f.read:null,static:!!f.static,emitDistinctChangesOnly:!!f.emitDistinctChangesOnly}}(ee,ve))}})}};for(var O in f)C(O);return _}function PU(c){return void 0===c?null:qR(c)}function VR(c){var f=c.ngMetadataName;return"ContentChild"===f||"ContentChildren"===f}function YR(c){var f=c.ngMetadataName;return"ViewChild"===f||"ViewChildren"===f}function KR(c){return"Input"===c.ngMetadataName}function qR(c){return c.split(",").map(function(f){return f.trim()})}var _Y=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function gY(c){var f=Hv();if(_Y.some(function(oe){return f.hasLifecycleHook(c,oe)}))return!0;var p=f.propMetadata(c);for(var _ in p)for(var C=p[_],O=0;O<C.length;O++){var Y=C[O],ee=Y.ngMetadataName;if(KR(Y)||VR(Y)||YR(Y)||"Output"===ee||"HostBinding"===ee||"HostListener"===ee)return!0}return!1}function JR(c,f){return{type:c,name:c.name,pipeName:f.name,pure:void 0===f.pure||f.pure,isStandalone:!!f.standalone}}var QR=Cf("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,f){return HR(c,f)}),LU=Cf("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:sn.Default},c)},QR,void 0,function(c,f){return MU(c,f)}),ZU=Cf("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,f){return function RU(c,f){var p=null,_=null;Object.defineProperty(c,Je,{get:function(){if(null===_){var O=JR(c,f),Y=Za(O.type);_=Y.compileFactory(ts,"ng:///".concat(O.name,"/\u0275fac.js"),{name:O.name,type:O.type,typeArgumentCount:0,deps:jv(c),target:Y.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Ye,{get:function(){if(null===p){var O=JR(c,f),Y=Za(O.type);p=Y.compilePipe(ts,"ng:///".concat(O.name,"/\u0275pipe.js"),O)}return p},configurable:!1})}(c,f)}),NU=kd("Input",function(c){return{bindingPropertyName:c}}),BU=kd("Output",function(c){return{bindingPropertyName:c}}),FU=kd("HostBinding",function(c){return{hostPropertyName:c}}),UU=kd("HostListener",function(c,f){return{eventName:c,args:f}}),HU=Cf("NgModule",function(c){return c},void 0,void 0,function(c,f){return function TU(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};FR(c,f),void 0!==f.id&&CF(c,f.id),wU(c,f)}(c,f)});function O1(){}var XR=new io("Application Initializer"),Nd=function(){function c(f){var p=this;(0,v.Z)(this,c),this.appInits=f,this.resolve=O1,this.reject=O1,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,C){p.resolve=_,p.reject=C})}return(0,R.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var _=[],C=function(){p.done=!0,p.resolve()};if(this.appInits)for(var O=function(){var oe=p.appInits[Y]();if(p1(oe))_.push(oe);else if(LS(oe)){var ve=new Promise(function(He,nt){oe.subscribe({complete:He,error:nt})});_.push(ve)}},Y=0;Y<this.appInits.length;Y++)O();Promise.all(_).then(function(){C()}).catch(function(ee){p.reject(ee)}),0===_.length&&C(),this.initialized=!0}}}]),c}();Nd.\u0275fac=function(f){return new(f||Nd)(Ea(XR,8))},Nd.\u0275prov=Be({token:Nd,factory:Nd.\u0275fac,providedIn:"root"});var $R=new io("AppId",{providedIn:"root",factory:I1});function I1(){return"".concat(P1()).concat(P1()).concat(P1())}function P1(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var R1=new io("Platform Initializer"),TE=new io("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),L1=new io("appBootstrapListener"),eL=(new io("Application Packages Root URL"),new io("AnimationModuleType")),np=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"log",value:function(p){console.log(p)}},{key:"warn",value:function(p){console.warn(p)}}]),c}();np.\u0275fac=function(f){return new(f||np)},np.\u0275prov=Be({token:np,factory:np.\u0275fac,providedIn:"platform"});var rp,Uy=new io("LocaleId",{providedIn:"root",factory:function(){return PP(Uy,ye.Optional|ye.SkipSelf)||function tL(){return"undefined"!=typeof $localize&&$localize.locale||Ty}()}}),ME=new io("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new io("Translations"),new io("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(rp||(rp={}));var nL=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.ngModuleFactory=f,this.componentFactories=p}),og=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"compileModuleSync",value:function(p){return new hE(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var _=this.compileModuleSync(p),O=Id(zi(p).declarations).reduce(function(Y,ee){var oe=Vn(ee);return oe&&Y.push(new R_(oe)),Y},[]);return new nL(_,O)}},{key:"compileModuleAndAllComponentsAsync",value:function(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(p){}},{key:"getModuleId",value:function(p){}}]),c}();og.\u0275fac=function(f){return new(f||og)},og.\u0275prov=Be({token:og,factory:og.\u0275fac,providedIn:"root"});new io("compilerOptions");var GU=Promise.resolve(0);function Z1(c){"undefined"==typeof Zone?GU.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var Wc=function(){function c(f){var p=f.enableLongStackTrace,_=void 0!==p&&p,C=f.shouldCoalesceEventChangeDetection,O=void 0!==C&&C,Y=f.shouldCoalesceRunChangeDetection,ee=void 0!==Y&&Y;if((0,v.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hc(!1),this.onMicrotaskEmpty=new Hc(!1),this.onStable=new Hc(!1),this.onError=new Hc(!1),"undefined"==typeof Zone)throw new fe(908,!1);Zone.assertZonePatched();var oe=this;if(oe._nesting=0,oe._outer=oe._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){var ve=Zone.AsyncStackTaggingZoneSpec;oe._inner=oe._inner.fork(new ve("Angular"))}Zone.TaskTrackingZoneSpec&&(oe._inner=oe._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(oe._inner=oe._inner.fork(Zone.longStackTraceZoneSpec)),oe.shouldCoalesceEventChangeDetection=!ee&&O,oe.shouldCoalesceRunChangeDetection=ee,oe.lastRequestAnimationFrameId=-1,oe.nativeRequestAnimationFrame=function zU(){var c=hn.requestAnimationFrame,f=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&f){var p=c[Zone.__symbol__("OriginalDelegate")];p&&(c=p);var _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function iL(c){var f=function(){!function N1(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,Hy(c),c.isCheckStableRunning=!0,sg(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),Hy(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(_,C,O,Y,ee,oe){try{return Vc(c),_.invokeTask(O,Y,ee,oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===Y.type||c.shouldCoalesceRunChangeDetection)&&f(),B1(c)}},onInvoke:function(_,C,O,Y,ee,oe,ve){try{return Vc(c),_.invoke(O,Y,ee,oe,ve)}finally{c.shouldCoalesceRunChangeDetection&&f(),B1(c)}},onHasTask:function(_,C,O,Y){_.hasTask(O,Y),C===O&&("microTask"==Y.change?(c._hasPendingMicrotasks=Y.microTask,Hy(c),sg(c)):"macroTask"==Y.change&&(c.hasPendingMacrotasks=Y.macroTask))},onHandleError:function(_,C,O,Y){return _.handleError(O,Y),c.runOutsideAngular(function(){return c.onError.emit(Y)}),!1}})}(oe)}return(0,R.Z)(c,[{key:"run",value:function(p,_,C){return this._inner.run(p,_,C)}},{key:"runTask",value:function(p,_,C,O){var Y=this._inner,ee=Y.scheduleEventTask("NgZoneEvent: "+O,p,EE,O1,O1);try{return Y.runTask(ee,_,C)}finally{Y.cancelTask(ee)}}},{key:"runGuarded",value:function(p,_,C){return this._inner.runGuarded(p,_,C)}},{key:"runOutsideAngular",value:function(p){return this._outer.run(p)}}],[{key:"isInAngularZone",value:function(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!c.isInAngularZone())throw new fe(909,!1)}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new fe(909,!1)}}]),c}(),EE={};function sg(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(function(){return c.onStable.emit(null)})}finally{c.isStable=!0}}}function Hy(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function Vc(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function B1(c){c._nesting--,sg(c)}var F1=function(){function c(){(0,v.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hc,this.onMicrotaskEmpty=new Hc,this.onStable=new Hc,this.onError=new Hc}return(0,R.Z)(c,[{key:"run",value:function(p,_,C){return p.apply(_,C)}},{key:"runGuarded",value:function(p,_,C){return p.apply(_,C)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,_,C,O){return p.apply(_,C)}}]),c}(),oL=new io(""),lg=new io(""),Yh=function(){function c(f,p,_){var C=this;(0,v.Z)(this,c),this._ngZone=f,this.registry=p,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ru||(function wY(c){Ru=c}(_),_.addToWindow(p)),this._watchAngularEvents(),f.run(function(){C.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,R.Z)(c,[{key:"_watchAngularEvents",value:function(){var p=this;this._ngZone.onUnstable.subscribe({next:function(){p._didWork=!0,p._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){p._ngZone.onStable.subscribe({next:function(){Wc.assertNotInAngularZone(),Z1(function(){p._isZoneStable=!0,p._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var p=this;if(this.isStable())Z1(function(){for(;0!==p._callbacks.length;){var C=p._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(p._didWork)}p._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(C){return!C.updateCb||!C.updateCb(_)||(clearTimeout(C.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(p){return{source:p.source,creationLocation:p.creationLocation,data:p.data}}):[]}},{key:"addCallback",value:function(p,_,C){var O=this,Y=-1;_&&_>0&&(Y=setTimeout(function(){O._callbacks=O._callbacks.filter(function(ee){return ee.timeoutId!==Y}),p(O._didWork,O.getPendingTasks())},_)),this._callbacks.push({doneCb:p,timeoutId:Y,updateCb:C})}},{key:"whenStable",value:function(p,_,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(p,_,C),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"registerApplication",value:function(p){this.registry.registerApplication(p,this)}},{key:"unregisterApplication",value:function(p){this.registry.unregisterApplication(p)}},{key:"findProviders",value:function(p,_,C){return[]}}]),c}();Yh.\u0275fac=function(f){return new(f||Yh)(Ea(Wc),Ea(Kh),Ea(lg))},Yh.\u0275prov=Be({token:Yh,factory:Yh.\u0275fac});var Ru,Kh=function(){function c(){(0,v.Z)(this,c),this._applications=new Map}return(0,R.Z)(c,[{key:"registerApplication",value:function(p,_){this._applications.set(p,_)}},{key:"unregisterApplication",value:function(p){this._applications.delete(p)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(p){return this._applications.get(p)||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(p){var C,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!==(C=null==Ru?void 0:Ru.findTestabilityInTree(this,p,_))&&void 0!==C?C:null}}]),c}();Kh.\u0275fac=function(f){return new(f||Kh)},Kh.\u0275prov=Be({token:Kh,factory:Kh.\u0275fac,providedIn:"platform"});var hc=null,xE=new io("AllowMultipleToken"),Lu=new io("PlatformDestroyListeners"),il=!1;function jy(c,f,p){var _=new hE(p);return Promise.resolve(_)}var aL=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.name=f,this.token=p});function Gy(c){if(hc&&!hc.get(xE,!1))throw new fe(400,!1);hc=c;var f=c.get(Yc);return sL(c),f}function sL(c){var f=c.get(R1,null);f&&f.forEach(function(p){return p()})}function uL(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(f),C=new io(_);return function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Y=H1();if(!Y||Y.injector.get(xE,!1)){var ee=[].concat((0,E.Z)(p),(0,E.Z)(O),[{provide:C,useValue:!0}]);c?c(ee):Gy(cL(ee,_))}return WU(C)}}function WU(c){var f=H1();if(!f)throw new fe(401,!1);return f}function cL(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;return bl.create({name:f,providers:[{provide:T_,useValue:"platform"},{provide:Lu,useValue:new Set([function(){return hc=null}])}].concat((0,E.Z)(c))})}function H1(){var c;return null!==(c=null==hc?void 0:hc.get(Yc))&&void 0!==c?c:null}var Yc=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,R.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,_){var C=this,O=VU(null==_?void 0:_.ngZone,zy(_)),Y=[{provide:Wc,useValue:O}];return O.run(function(){var ee=bl.create({providers:Y,parent:C.injector,name:p.moduleType.name}),oe=p.create(ee),ve=oe.injector.get(xh,null);if(!ve)throw new fe(402,!1);return O.runOutsideAngular(function(){var He=O.onError.subscribe({next:function(dt){ve.handleError(dt)}});oe.onDestroy(function(){AE(C._modules,oe),He.unsubscribe()})}),dL(ve,O,function(){var He=oe.injector.get(Nd);return He.runInitializers(),He.donePromise.then(function(){return W8(oe.injector.get(Uy,Ty)||Ty),C._moduleDoBootstrap(oe),oe})})})}},{key:"bootstrapModule",value:function(p){var _=this,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],O=fL({},C);return jy(this.injector,0,p).then(function(Y){return _.bootstrapModuleFactory(Y,O)})}},{key:"_moduleDoBootstrap",value:function(p){var _=p.injector.get(ip);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(C){return _.bootstrap(C)});else{if(!p.instance.ngDoBootstrap)throw new fe(403,!1);p.instance.ngDoBootstrap(_)}this._modules.push(p)}},{key:"onDestroy",value:function(p){this._destroyListeners.push(p)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new fe(404,!1);this._modules.slice().forEach(function(_){return _.destroy()}),this._destroyListeners.forEach(function(_){return _()});var p=this._injector.get(Lu,null);p&&(p.forEach(function(_){return _()}),p.clear()),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function zy(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}}function VU(c,f){return"noop"===c?new F1:("zone.js"===c?void 0:c)||new Wc(f)}function dL(c,f,p){try{var _=p();return p1(_)?_.catch(function(C){throw f.runOutsideAngular(function(){return c.handleError(C)}),C}):_}catch(C){throw f.runOutsideAngular(function(){return c.handleError(C)}),C}}function fL(c,f){return c=Array.isArray(f)?f.reduce(fL,c):Object.assign(Object.assign({},c),f)}Yc.\u0275fac=function(f){return new(f||Yc)(Ea(bl))},Yc.\u0275prov=Be({token:Yc,factory:Yc.\u0275fac,providedIn:"platform"});var ip=function(){function c(f,p,_){var C=this;(0,v.Z)(this,c),this._zone=f,this._injector=p,this._exceptionHandler=_,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){C._zone.run(function(){C.tick()})}});var O=new S.y(function(ee){C._stable=C._zone.isStable&&!C._zone.hasPendingMacrotasks&&!C._zone.hasPendingMicrotasks,C._zone.runOutsideAngular(function(){ee.next(C._stable),ee.complete()})}),Y=new S.y(function(ee){var oe;C._zone.runOutsideAngular(function(){oe=C._zone.onStable.subscribe(function(){Wc.assertNotInAngularZone(),Z1(function(){!C._stable&&!C._zone.hasPendingMacrotasks&&!C._zone.hasPendingMicrotasks&&(C._stable=!0,ee.next(!0))})})});var ve=C._zone.onUnstable.subscribe(function(){Wc.assertInAngularZone(),C._stable&&(C._stable=!1,C._zone.runOutsideAngular(function(){ee.next(!1)}))});return function(){oe.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,k.T)(O,Y.pipe((0,M.B)()))}return(0,R.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"injector",get:function(){return this._injector}},{key:"bootstrap",value:function(p,_){var ve,C=this,O=p instanceof BC;if(!this._injector.get(Nd).done){!O&&yi(p);throw new fe(405,il)}O?ve=p:ve=this._injector.get(Bf).resolveComponentFactory(p);this.componentTypes.push(ve.componentType);var nt=function DE(c){return c.isBoundToModule}(ve)?void 0:this._injector.get(Uh),dt=_||ve.selector,kt=ve.create(bl.NULL,[],dt,nt),Xt=kt.location.nativeElement,_n=kt.injector.get(oL,null);return null==_n||_n.registerApplication(Xt),kt.onDestroy(function(){C.detachView(kt.hostView),AE(C.components,kt),null==_n||_n.unregisterApplication(Xt)}),this._loadComponent(kt),kt}},{key:"tick",value:function(){var p=this;if(this._runningTick)throw new fe(101,!1);try{this._runningTick=!0;var C,_=(0,T.Z)(this._views);try{for(_.s();!(C=_.n()).done;){C.value.detectChanges()}}catch(ve){_.e(ve)}finally{_.f()}}catch(ve){this._zone.runOutsideAngular(function(){return p._exceptionHandler.handleError(ve)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(p){var _=p;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(p){var _=p;AE(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(L1,[]).concat(this._bootstrapListeners).forEach(function(C){return C(p)})}},{key:"ngOnDestroy",value:function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(p){return p()}),this._views.slice().forEach(function(p){return p.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}},{key:"onDestroy",value:function(p){var _=this;return this._destroyListeners.push(p),function(){return AE(_._destroyListeners,p)}}},{key:"destroy",value:function(){if(this._destroyed)throw new fe(406,!1);var p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}},{key:"viewCount",get:function(){return this._views.length}},{key:"warnIfDestroyed",value:function(){}}]),c}();function AE(c,f){var p=c.indexOf(f);p>-1&&c.splice(p,1)}ip.\u0275fac=function(f){return new(f||ip)(Ea(Wc),Ea(Is),Ea(xh))},ip.\u0275prov=Be({token:ip,factory:ip.\u0275fac,providedIn:"root"});var hL=!1;function j1(){if(hL)throw new Error("Cannot enable prod mode after platform setup.");!1}var G1=(0,R.Z)(function c(){(0,v.Z)(this,c)});G1.__NG_ELEMENT_ID__=function _L(c){return function JU(c,f,p){if(Yi(c)&&!p){var _=jo(c.index,f);return new Ph(_,_)}if(47&c.type){var C=f[16];return new Ph(C,f)}return null}(Me(),xn(),16==(16&c))};var QU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p)}(G1),XU=function(c){(0,x.Z)(p,c);var f=(0,w.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,R.Z)(p)}(QU);var n7=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"supports",value:function(p){return yy(p)}},{key:"create",value:function(p){return new AY(p)}}]),c}(),ZE=function(f,p){return p},AY=function(){function c(f){(0,v.Z)(this,c),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=f||ZE}return(0,R.Z)(c,[{key:"forEachItem",value:function(p){var _;for(_=this._itHead;null!==_;_=_._next)p(_)}},{key:"forEachOperation",value:function(p){for(var _=this._itHead,C=this._removalsHead,O=0,Y=null;_||C;){var ee=!C||_&&_.currentIndex<z1(C,O,Y)?_:C,oe=z1(ee,O,Y),ve=ee.currentIndex;if(ee===C)O--,C=C._nextRemoved;else if(_=_._next,null==ee.previousIndex)O++;else{Y||(Y=[]);var He=oe-O,nt=ve-O;if(He!=nt){for(var dt=0;dt<He;dt++){var kt=dt<Y.length?Y[dt]:Y[dt]=0,Xt=kt+dt;nt<=Xt&&Xt<He&&(Y[dt]=kt+1)}Y[ee.previousIndex]=nt-He}}oe!==ve&&p(ee,oe,ve)}}},{key:"forEachPreviousItem",value:function(p){var _;for(_=this._previousItHead;null!==_;_=_._nextPrevious)p(_)}},{key:"forEachAddedItem",value:function(p){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)p(_)}},{key:"forEachMovedItem",value:function(p){var _;for(_=this._movesHead;null!==_;_=_._nextMoved)p(_)}},{key:"forEachRemovedItem",value:function(p){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)p(_)}},{key:"forEachIdentityChange",value:function(p){var _;for(_=this._identityChangesHead;null!==_;_=_._nextIdentityChange)p(_)}},{key:"diff",value:function(p){if(null==p&&(p=[]),!yy(p))throw new fe(900,!1);return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var Y,ee,oe,C=this._itHead,O=!1;if(Array.isArray(p)){this.length=p.length;for(var ve=0;ve<this.length;ve++)ee=p[ve],oe=this._trackByFn(ve,ee),null!==C&&Object.is(C.trackById,oe)?(O&&(C=this._verifyReinsertion(C,ee,oe,ve)),Object.is(C.item,ee)||this._addIdentityChange(C,ee)):(C=this._mismatch(C,ee,oe,ve),O=!0),C=C._next}else Y=0,function i8(c,f){if(Array.isArray(c))for(var p=0;p<c.length;p++)f(c[p]);else for(var C,_=c[Rh()]();!(C=_.next()).done;)f(C.value)}(p,function(He){oe=_._trackByFn(Y,He),null!==C&&Object.is(C.trackById,oe)?(O&&(C=_._verifyReinsertion(C,He,oe,Y)),Object.is(C.item,He)||_._addIdentityChange(C,He)):(C=_._mismatch(C,He,oe,Y),O=!0),C=C._next,Y++}),this.length=Y;return this._truncate(C),this.collection=p,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(p,_,C,O){var Y;return null===p?Y=this._itTail:(Y=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._reinsertAfter(p,Y,O)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(C,O))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._moveAfter(p,Y,O)):p=this._addAfter(new r7(_,C),Y,O),p}},{key:"_verifyReinsertion",value:function(p,_,C,O){var Y=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==Y?p=this._reinsertAfter(Y,p._prev,O):p.currentIndex!=O&&(p.currentIndex=O,this._addToMoves(p,O)),p}},{key:"_truncate",value:function(p){for(;null!==p;){var _=p._next;this._addToRemovals(this._unlink(p)),p=_}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(p,_,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var O=p._prevRemoved,Y=p._nextRemoved;return null===O?this._removalsHead=Y:O._nextRemoved=Y,null===Y?this._removalsTail=O:Y._prevRemoved=O,this._insertAfter(p,_,C),this._addToMoves(p,C),p}},{key:"_moveAfter",value:function(p,_,C){return this._unlink(p),this._insertAfter(p,_,C),this._addToMoves(p,C),p}},{key:"_addAfter",value:function(p,_,C){return this._insertAfter(p,_,C),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,_,C){var O=null===_?this._itHead:_._next;return p._next=O,p._prev=_,null===O?this._itTail=p:O._prev=p,null===_?this._itHead=p:_._next=p,null===this._linkedRecords&&(this._linkedRecords=new NE),this._linkedRecords.put(p),p.currentIndex=C,p}},{key:"_remove",value:function(p){return this._addToRemovals(this._unlink(p))}},{key:"_unlink",value:function(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);var _=p._prev,C=p._next;return null===_?this._itHead=C:_._next=C,null===C?this._itTail=_:C._prev=_,p}},{key:"_addToMoves",value:function(p,_){return p.previousIndex===_||(null===this._movesTail?this._movesTail=this._movesHead=p:this._movesTail=this._movesTail._nextMoved=p),p}},{key:"_addToRemovals",value:function(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NE),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}},{key:"_addIdentityChange",value:function(p,_){return p.item=_,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=p:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=p,p}}]),c}(),r7=(0,R.Z)(function c(f,p){(0,v.Z)(this,c),this.item=f,this.trackById=p,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),i7=function(){function c(){(0,v.Z)(this,c),this._head=null,this._tail=null}return(0,R.Z)(c,[{key:"add",value:function(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}},{key:"get",value:function(p,_){var C;for(C=this._head;null!==C;C=C._nextDup)if((null===_||_<=C.currentIndex)&&Object.is(C.trackById,p))return C;return null}},{key:"remove",value:function(p){var _=p._prevDup,C=p._nextDup;return null===_?this._head=C:_._nextDup=C,null===C?this._tail=_:C._prevDup=_,null===this._head}}]),c}(),NE=function(){function c(){(0,v.Z)(this,c),this.map=new Map}return(0,R.Z)(c,[{key:"put",value:function(p){var _=p.trackById,C=this.map.get(_);C||(C=new i7,this.map.set(_,C)),C.add(p)}},{key:"get",value:function(p,_){var C=p,O=this.map.get(C);return O?O.get(p,_):null}},{key:"remove",value:function(p){var _=p.trackById;return this.map.get(_).remove(p)&&this.map.delete(_),p}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),c}();function z1(c,f,p){var _=c.previousIndex;if(null===_)return _;var C=0;return p&&_<p.length&&(C=p[_]),_+f+C}var BE=function(){function c(){(0,v.Z)(this,c)}return(0,R.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||ES(p)}},{key:"create",value:function(){return new OY}}]),c}(),OY=function(){function c(){(0,v.Z)(this,c),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,R.Z)(c,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(p){var _;for(_=this._mapHead;null!==_;_=_._next)p(_)}},{key:"forEachPreviousItem",value:function(p){var _;for(_=this._previousMapHead;null!==_;_=_._nextPrevious)p(_)}},{key:"forEachChangedItem",value:function(p){var _;for(_=this._changesHead;null!==_;_=_._nextChanged)p(_)}},{key:"forEachAddedItem",value:function(p){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)p(_)}},{key:"forEachRemovedItem",value:function(p){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)p(_)}},{key:"diff",value:function(p){if(p){if(!(p instanceof Map||ES(p)))throw new fe(900,!1)}else p=new Map;return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var C=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(Y,ee){if(C&&C.key===ee)_._maybeAddToChanges(C,Y),_._appendAfter=C,C=C._next;else{var oe=_._getOrCreateRecordForKey(ee,Y);C=_._insertBeforeOrAppend(C,oe)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(var O=C;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(p,_){if(p){var C=p._prev;return _._next=p,_._prev=C,p._prev=_,C&&(C._next=_),p===this._mapHead&&(this._mapHead=_),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=_,_._prev=this._appendAfter):this._mapHead=_,this._appendAfter=_,null}},{key:"_getOrCreateRecordForKey",value:function(p,_){if(this._records.has(p)){var C=this._records.get(p);this._maybeAddToChanges(C,_);var O=C._prev,Y=C._next;return O&&(O._next=Y),Y&&(Y._prev=O),C._next=null,C._prev=null,C}var ee=new o7(p);return this._records.set(p,ee),ee.currentValue=_,this._addToAdditions(ee),ee}},{key:"_reset",value:function(){if(this.isDirty){var p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(p,_){Object.is(_,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=_,this._addToChanges(p))}},{key:"_addToAdditions",value:function(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}},{key:"_addToChanges",value:function(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}},{key:"_forEach",value:function(p,_){p instanceof Map?p.forEach(_):Object.keys(p).forEach(function(C){return _(p[C],C)})}}]),c}(),o7=(0,R.Z)(function c(f){(0,v.Z)(this,c),this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function bL(){return new Yy([new n7])}var Yy=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,R.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(C){return C.supports(p)});if(null!=_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(null!=_){var C=_.factories.slice();p=p.concat(C)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(C){return c.create(p,C||bL())},deps:[[c,new Sd,new u_]]}}}]),c}();function CL(){return new Ky([new BE])}Yy.\u0275prov=Be({token:Yy,providedIn:"root",factory:bL});var Ky=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,R.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(C){return C.supports(p)});if(_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(_){var C=_.factories.slice();p=p.concat(C)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(C){return c.create(p,C||CL())},deps:[[c,new Sd,new u_]]}}}]),c}();Ky.\u0275prov=Be({token:Ky,providedIn:"root",factory:CL});var wL=[new BE],a7=[new n7],l7=(new Yy(a7),new Ky(wL),uL(null,"core",[])),op=(0,R.Z)(function c(f){(0,v.Z)(this,c)});function u7(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}op.\u0275fac=function(f){return new(f||op)(Ea(ip))},op.\u0275mod=gt({type:op}),op.\u0275inj=t({})},3075:function(Ae,K,m){"use strict";m.d(K,{Cf:function(){return pe},F:function(){return ca},Fd:function(){return ml},Fj:function(){return V},JJ:function(){return Jt},JL:function(){return Qe},JU:function(){return k},NI:function(){return da},On:function(){return tn},Q7:function(){return ks},QS:function(){return Hl},UX:function(){return us},Zs:function(){return Ul},_Y:function(){return en},a5:function(){return zt},kI:function(){return de},nJ:function(){return nn},oH:function(){return cn},p4:function(){return Ya},qQ:function(){return _l},sg:function(){return Oi},u:function(){return co},u5:function(){return Cr},wV:function(){return no}});var G=m(3237),W=m(1120),A=m(7762),H=m(7326),P=m(7685),I=m(4902),T=m(136),E=m(9388),j=m(5671),R=m(3144),v=m(5e3),x=m(9808),w=m(3527),Z=m(567),D=m(4850),b=function(){function we(ke,se){(0,j.Z)(this,we),this._renderer=ke,this._elementRef=se,this.onChange=function(Me){},this.onTouched=function(){}}return(0,R.Z)(we,[{key:"setProperty",value:function(se,Me){this._renderer.setProperty(this._elementRef.nativeElement,se,Me)}},{key:"registerOnTouched",value:function(se){this.onTouched=se}},{key:"registerOnChange",value:function(se){this.onChange=se}},{key:"setDisabledState",value:function(se){this.setProperty("disabled",se)}}]),we}();b.\u0275fac=function(ke){return new(ke||b)(v.Y36(v.Qsj),v.Y36(v.SBq))},b.\u0275dir=v.lG2({type:b});var S=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se)}(b);S.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(S)))(se||S)}}(),S.\u0275dir=v.lG2({type:S,features:[v.qOj]});var k=new v.OlP("NgValueAccessor"),M={provide:k,useExisting:(0,v.Gpc)(function(){return N}),multi:!0},N=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("checked",Oe)}}]),se}(S);N.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(N)))(se||N)}}(),N.\u0275dir=v.lG2({type:N,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.checked)})("blur",function(){return se.onTouched()})},features:[v._Bn([M]),v.qOj]});var F={provide:k,useExisting:(0,v.Gpc)(function(){return V}),multi:!0};var $=new v.OlP("CompositionEventMode"),V=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this,Me,Oe))._compositionMode=pt,Yt._composing=!1,null==Yt._compositionMode&&(Yt._compositionMode=!function X(){var we=(0,x.q)()?(0,x.q)().getUserAgent():"";return/android (\d+)/.test(we.toLowerCase())}()),Yt}return(0,R.Z)(se,[{key:"writeValue",value:function(Oe){var pt=null==Oe?"":Oe;this.setProperty("value",pt)}},{key:"_handleInput",value:function(Oe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Oe)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Oe){this._composing=!1,this._compositionMode&&this.onChange(Oe)}}]),se}(b);V.\u0275fac=function(ke){return new(ke||V)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36($,8))},V.\u0275dir=v.lG2({type:V,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("input",function(Oe){return se._handleInput(Oe.target.value)})("blur",function(){return se.onTouched()})("compositionstart",function(){return se._compositionStart()})("compositionend",function(Oe){return se._compositionEnd(Oe.target.value)})},features:[v._Bn([F]),v.qOj]});function te(we){return null==we||("string"==typeof we||Array.isArray(we))&&0===we.length}function be(we){return null!=we&&"number"==typeof we.length}var pe=new v.OlP("NgValidators"),fe=new v.OlP("NgAsyncValidators"),ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,de=function(){function we(){(0,j.Z)(this,we)}return(0,R.Z)(we,null,[{key:"min",value:function(se){return ge(se)}},{key:"max",value:function(se){return je(se)}},{key:"required",value:function(se){return ot(se)}},{key:"requiredTrue",value:function(se){return St(se)}},{key:"email",value:function(se){return Tt(se)}},{key:"minLength",value:function(se){return Dt(se)}},{key:"maxLength",value:function(se){return Rt(se)}},{key:"pattern",value:function(se){return Ze(se)}},{key:"nullValidator",value:function(se){return null}},{key:"compose",value:function(se){return Ve(se)}},{key:"composeAsync",value:function(se){return ht(se)}}]),we}();function ge(we){return function(ke){if(te(ke.value)||te(we))return null;var se=parseFloat(ke.value);return!isNaN(se)&&se<we?{min:{min:we,actual:ke.value}}:null}}function je(we){return function(ke){if(te(ke.value)||te(we))return null;var se=parseFloat(ke.value);return!isNaN(se)&&se>we?{max:{max:we,actual:ke.value}}:null}}function ot(we){return te(we.value)?{required:!0}:null}function St(we){return!0===we.value?null:{required:!0}}function Tt(we){return te(we.value)||ue.test(we.value)?null:{email:!0}}function Dt(we){return function(ke){return te(ke.value)||!be(ke.value)?null:ke.value.length<we?{minlength:{requiredLength:we,actualLength:ke.value.length}}:null}}function Rt(we){return function(ke){return be(ke.value)&&ke.value.length>we?{maxlength:{requiredLength:we,actualLength:ke.value.length}}:null}}function Ze(we){return we?("string"==typeof we?(se="","^"!==we.charAt(0)&&(se+="^"),se+=we,"$"!==we.charAt(we.length-1)&&(se+="$"),ke=new RegExp(se)):(se=we.toString(),ke=we),function(Me){if(te(Me.value))return null;var Oe=Me.value;return ke.test(Oe)?null:{pattern:{requiredPattern:se,actualValue:Oe}}}):$t;var ke,se}function $t(we){return null}function Ft(we){return null!=we}function pn(we){var ke=(0,v.QGY)(we)?(0,w.D)(we):we;return ke}function rt(we){var ke={};return we.forEach(function(se){ke=null!=se?Object.assign(Object.assign({},ke),se):ke}),0===Object.keys(ke).length?null:ke}function Ot(we,ke){return ke.map(function(se){return se(we)})}function Ct(we){return we.map(function(ke){return function _t(we){return!we.validate}(ke)?ke:function(se){return ke.validate(se)}})}function Ve(we){if(!we)return null;var ke=we.filter(Ft);return 0==ke.length?null:function(se){return rt(Ot(se,ke))}}function at(we){return null!=we?Ve(Ct(we)):null}function ht(we){if(!we)return null;var ke=we.filter(Ft);return 0==ke.length?null:function(se){var Me=Ot(se,ke).map(pn);return(0,Z.D)(Me).pipe((0,D.U)(rt))}}function Ut(we){return null!=we?ht(Ct(we)):null}function Wt(we,ke){return null===we?[ke]:Array.isArray(we)?[].concat((0,I.Z)(we),[ke]):[we,ke]}function U(we){return we._rawValidators}function B(we){return we._rawAsyncValidators}function qe(we){return we?Array.isArray(we)?we:[we]:[]}function Be(we,ke){return Array.isArray(we)?we.includes(ke):we===ke}function le(we,ke){var se=qe(ke);return qe(we).forEach(function(Oe){Be(se,Oe)||se.push(Oe)}),se}function t(we,ke){return qe(ke).filter(function(se){return!Be(we,se)})}var Lt=function(){function we(){(0,j.Z)(this,we),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,R.Z)(we,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(se){this._rawValidators=se||[],this._composedValidatorFn=at(this._rawValidators)}},{key:"_setAsyncValidators",value:function(se){this._rawAsyncValidators=se||[],this._composedAsyncValidatorFn=Ut(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(se){this._onDestroyCallbacks.push(se)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(se){return se()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(se)}},{key:"hasError",value:function(se,Me){return!!this.control&&this.control.hasError(se,Me)}},{key:"getError",value:function(se,Me){return this.control?this.control.getError(se,Me):null}}]),we}(),zt=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return(0,R.Z)(se)}(Lt),an=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),se}(Lt),Qt=function(){function we(ke){(0,j.Z)(this,we),this._cd=ke}return(0,R.Z)(we,[{key:"isTouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.touched)}},{key:"isUntouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.untouched)}},{key:"isPristine",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pristine)}},{key:"isDirty",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.dirty)}},{key:"isValid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.valid)}},{key:"isInvalid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.invalid)}},{key:"isPending",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pending)}},{key:"isSubmitted",get:function(){var se;return!(null===(se=this._cd)||void 0===se||!se.submitted)}}]),we}(),Jt=(Object.assign(Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"}),{"[class.ng-submitted]":"isSubmitted"}),function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me){return(0,j.Z)(this,se),ke.call(this,Me)}return(0,R.Z)(se)}(Qt));Jt.\u0275fac=function(ke){return new(ke||Jt)(v.Y36(zt,2))},Jt.\u0275dir=v.lG2({type:Jt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ke,se){2&ke&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)},features:[v.qOj]});var Qe=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me){return(0,j.Z)(this,se),ke.call(this,Me)}return(0,R.Z)(se)}(Qt);Qe.\u0275fac=function(ke){return new(ke||Qe)(v.Y36(an,10))},Qe.\u0275dir=v.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ke,se){2&ke&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)("ng-submitted",se.isSubmitted)},features:[v.qOj]});var Et="VALID",We="INVALID",Ye="PENDING",Re="DISABLED";function Je(we){return(Kt(we)?we.validators:we)||null}function vt(we){return Array.isArray(we)?at(we):we||null}function dn(we,ke){return(Kt(ke)?ke.asyncValidators:we)||null}function Un(we){return Array.isArray(we)?Ut(we):we||null}function Kt(we){return null!=we&&!Array.isArray(we)&&"object"==typeof we}function yt(we,ke,se){var Me=we.controls;if(!(ke?Object.keys(Me):Me).length)throw new v.vHH(1e3,"");if(!Me[se])throw new v.vHH(1001,"")}function et(we,ke,se){we._forEachChild(function(Me,Oe){if(void 0===se[Oe])throw new v.vHH(1002,"")})}var gt=function(){function we(ke,se){(0,j.Z)(this,we),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ke,this._rawAsyncValidators=se,this._composedValidatorFn=vt(this._rawValidators),this._composedAsyncValidatorFn=Un(this._rawAsyncValidators)}return(0,R.Z)(we,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(se){this._rawValidators=this._composedValidatorFn=se}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(se){this._rawAsyncValidators=this._composedAsyncValidatorFn=se}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Et}},{key:"invalid",get:function(){return this.status===We}},{key:"pending",get:function(){return this.status==Ye}},{key:"disabled",get:function(){return this.status===Re}},{key:"enabled",get:function(){return this.status!==Re}},{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(se){this._rawValidators=se,this._composedValidatorFn=vt(se)}},{key:"setAsyncValidators",value:function(se){this._rawAsyncValidators=se,this._composedAsyncValidatorFn=Un(se)}},{key:"addValidators",value:function(se){this.setValidators(le(se,this._rawValidators))}},{key:"addAsyncValidators",value:function(se){this.setAsyncValidators(le(se,this._rawAsyncValidators))}},{key:"removeValidators",value:function(se){this.setValidators(t(se,this._rawValidators))}},{key:"removeAsyncValidators",value:function(se){this.setAsyncValidators(t(se,this._rawAsyncValidators))}},{key:"hasValidator",value:function(se){return Be(this._rawValidators,se)}},{key:"hasAsyncValidator",value:function(se){return Be(this._rawAsyncValidators,se)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!se.onlySelf&&this._parent.markAsTouched(se)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(se){return se.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"markAsDirty",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!se.onlySelf&&this._parent.markAsDirty(se)}},{key:"markAsPristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"markAsPending",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ye,!1!==se.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!se.onlySelf&&this._parent.markAsPending(se)}},{key:"disable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=Re,this.errors=null,this._forEachChild(function(Oe){Oe.disable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this._updateValue(),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!0)})}},{key:"enable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=Et,this._forEachChild(function(Oe){Oe.enable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!1)})}},{key:"_updateAncestors",value:function(se){this._parent&&!se.onlySelf&&(this._parent.updateValueAndValidity(se),se.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(se){this._parent=se}},{key:"getRawValue",value:function(){return this.value}},{key:"updateValueAndValidity",value:function(){var se=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===Et||this.status===Ye)&&this._runAsyncValidator(se.emitEvent)),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!se.onlySelf&&this._parent.updateValueAndValidity(se)}},{key:"_updateTreeValidity",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(se)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Re:Et}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(se){var Me=this;if(this.asyncValidator){this.status=Ye,this._hasOwnPendingAsyncValidator=!0;var Oe=pn(this.asyncValidator(this));this._asyncValidationSubscription=Oe.subscribe(function(pt){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(pt,{emitEvent:se})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=se,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(se){var Me=se;return null==Me||(Array.isArray(Me)||(Me=Me.split(".")),0===Me.length)?null:Me.reduce(function(Oe,pt){return Oe&&Oe._find(pt)},this)}},{key:"getError",value:function(se,Me){var Oe=Me?this.get(Me):this;return Oe&&Oe.errors?Oe.errors[se]:null}},{key:"hasError",value:function(se,Me){return!!this.getError(se,Me)}},{key:"root",get:function(){for(var se=this;se._parent;)se=se._parent;return se}},{key:"_updateControlsErrors",value:function(se){this.status=this._calculateStatus(),se&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(se)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Re:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ye)?Ye:this._anyControlsHaveStatus(We)?We:Et}},{key:"_anyControlsHaveStatus",value:function(se){return this._anyControls(function(Me){return Me.status===se})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(se){return se.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(se){return se.touched})}},{key:"_updatePristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"_updateTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"_registerOnCollectionChange",value:function(se){this._onCollectionChange=se}},{key:"_setUpdateStrategy",value:function(se){Kt(se)&&null!=se.updateOn&&(this._updateOn=se.updateOn)}},{key:"_parentMarkedDirty",value:function(se){var Me=this._parent&&this._parent.dirty;return!se&&!!Me&&!this._parent._anyControlsDirty()}},{key:"_find",value:function(se){return null}}]),we}(),wt=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this,Je(Oe),dn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,R.Z)(se,[{key:"registerControl",value:function(Oe,pt){return this.controls[Oe]?this.controls[Oe]:(this.controls[Oe]=pt,pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange),pt)}},{key:"addControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Oe,pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],pt&&this.registerControl(Oe,pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Oe){return this.controls.hasOwnProperty(Oe)&&this.controls[Oe].enabled}},{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et(this,0,Oe),Object.keys(Oe).forEach(function(Pn){yt(pt,!0,Pn),pt.controls[Pn].setValue(Oe[Pn],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Object.keys(Oe).forEach(function(Pn){var Qn=pt.controls[Pn];Qn&&Qn.patchValue(Oe[Pn],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Yt,Pn){Yt.reset(Oe[Pn],{onlySelf:!0,emitEvent:pt.emitEvent})}),this._updatePristine(pt),this._updateTouched(pt),this.updateValueAndValidity(pt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Oe,pt,Yt){return Oe[Yt]=pt.getRawValue(),Oe})}},{key:"_syncPendingControls",value:function(){var Oe=this._reduceChildren(!1,function(pt,Yt){return!!Yt._syncPendingControls()||pt});return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){var pt=this;Object.keys(this.controls).forEach(function(Yt){var Pn=pt.controls[Yt];Pn&&Oe(Pn,Yt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(pt){pt.setParent(Oe),pt._registerOnCollectionChange(Oe._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Oe){for(var pt=0,Yt=Object.entries(this.controls);pt<Yt.length;pt++){var Pn=(0,P.Z)(Yt[pt],2),Qn=Pn[0],Qs=Pn[1];if(this.contains(Qn)&&Oe(Qs))return!0}return!1}},{key:"_reduceValue",value:function(){var Oe=this;return this._reduceChildren({},function(Yt,Pn,Qn){return(Pn.enabled||Oe.disabled)&&(Yt[Qn]=Pn.value),Yt})}},{key:"_reduceChildren",value:function(Oe,pt){var Yt=Oe;return this._forEachChild(function(Pn,Qn){Yt=pt(Yt,Pn,Qn)}),Yt}},{key:"_allControlsDisabled",value:function(){for(var Oe=0,pt=Object.keys(this.controls);Oe<pt.length;Oe++){var Yt=pt[Oe];if(this.controls[Yt].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_find",value:function(Oe){return this.controls.hasOwnProperty(Oe)?this.controls[Oe]:null}}]),se}(gt),nn=wt,Wn=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se)}(wt);function ir(we,ke){return[].concat((0,I.Z)(ke.path),[we])}function Pr(we,ke){var se,Me;Ca(we,ke),ke.valueAccessor.writeValue(we.value),we.disabled&&(null===(Me=(se=ke.valueAccessor).setDisabledState)||void 0===Me||Me.call(se,!0)),function ls(we,ke){ke.valueAccessor.registerOnChange(function(se){we._pendingValue=se,we._pendingChange=!0,we._pendingDirty=!0,"change"===we.updateOn&&Di(we,ke)})}(we,ke),function na(we,ke){var se=function(Oe,pt){ke.valueAccessor.writeValue(Oe),pt&&ke.viewToModelUpdate(Oe)};we.registerOnChange(se),ke._registerOnDestroy(function(){we._unregisterOnChange(se)})}(we,ke),function ta(we,ke){ke.valueAccessor.registerOnTouched(function(){we._pendingTouched=!0,"blur"===we.updateOn&&we._pendingChange&&Di(we,ke),"submit"!==we.updateOn&&we.markAsTouched()})}(we,ke),function Va(we,ke){if(ke.valueAccessor.setDisabledState){var se=function(Oe){ke.valueAccessor.setDisabledState(Oe)};we.registerOnDisabledChange(se),ke._registerOnDestroy(function(){we._unregisterOnDisabledChange(se)})}}(we,ke)}function yi(we,ke){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Me=function(){};ke.valueAccessor&&(ke.valueAccessor.registerOnChange(Me),ke.valueAccessor.registerOnTouched(Me)),wa(we,ke),we&&(ke._invokeOnDestroyCallbacks(),we._registerOnCollectionChange(function(){}))}function zi(we,ke){we.forEach(function(se){se.registerOnValidatorChange&&se.registerOnValidatorChange(ke)})}function Ca(we,ke){var se=U(we);null!==ke.validator?we.setValidators(Wt(se,ke.validator)):"function"==typeof se&&we.setValidators([se]);var Me=B(we);null!==ke.asyncValidator?we.setAsyncValidators(Wt(Me,ke.asyncValidator)):"function"==typeof Me&&we.setAsyncValidators([Me]);var Oe=function(){return we.updateValueAndValidity()};zi(ke._rawValidators,Oe),zi(ke._rawAsyncValidators,Oe)}function wa(we,ke){var se=!1;if(null!==we){if(null!==ke.validator){var Me=U(we);if(Array.isArray(Me)&&Me.length>0){var Oe=Me.filter(function(Qn){return Qn!==ke.validator});Oe.length!==Me.length&&(se=!0,we.setValidators(Oe))}}if(null!==ke.asyncValidator){var pt=B(we);if(Array.isArray(pt)&&pt.length>0){var Yt=pt.filter(function(Qn){return Qn!==ke.asyncValidator});Yt.length!==pt.length&&(se=!0,we.setAsyncValidators(Yt))}}}var Pn=function(){};return zi(ke._rawValidators,Pn),zi(ke._rawAsyncValidators,Pn),se}function Di(we,ke){we._pendingDirty&&we.markAsDirty(),we.setValue(we._pendingValue,{emitModelToViewChange:!1}),ke.viewToModelUpdate(we._pendingValue),we._pendingChange=!1}function _o(we,ke){Ca(we,ke)}function ki(we,ke){if(!we.hasOwnProperty("model"))return!1;var se=we.model;return!!se.isFirstChange()||!Object.is(ke,se.currentValue)}function ri(we,ke){we._syncPendingControls(),ke.forEach(function(se){var Me=se.control;"submit"===Me.updateOn&&Me._pendingChange&&(se.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function So(we,ke){if(!ke)return null;Array.isArray(ke);var se=void 0,Me=void 0,Oe=void 0;return ke.forEach(function(pt){pt.constructor===V?se=pt:function Yo(we){return Object.getPrototypeOf(we.constructor)===S}(pt)?Me=pt:Oe=pt}),Oe||Me||se||null}var Vi={provide:an,useExisting:(0,v.Gpc)(function(){return ca})},Eo=Promise.resolve(),ca=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe){var pt;return(0,j.Z)(this,se),(pt=ke.call(this)).submitted=!1,pt._directives=new Set,pt.ngSubmit=new v.vpe,pt.form=new wt({},at(Me),Ut(Oe)),pt}return(0,R.Z)(se,[{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(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Oe.control=Yt.registerControl(Oe.name,Oe.control),Pr(Oe.control,Oe),Oe.control.updateValueAndValidity({emitEvent:!1}),pt._directives.add(Oe)})}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Yt&&Yt.removeControl(Oe.name),pt._directives.delete(Oe)})}},{key:"addFormGroup",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path),Pn=new wt({});_o(Pn,Oe),Yt.registerControl(Oe.name,Pn),Pn.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Oe){var pt=this;Eo.then(function(){var Yt=pt._findContainer(Oe.path);Yt&&Yt.removeControl(Oe.name)})}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,pt){var Yt=this;Eo.then(function(){Yt.form.get(Oe.path).setValue(pt)})}},{key:"setValue",value:function(Oe){this.control.setValue(Oe)}},{key:"onSubmit",value:function(Oe){var pt;return this.submitted=!0,ri(this.form,this._directives),this.ngSubmit.emit(Oe),"dialog"===(null===(pt=null==Oe?void 0:Oe.target)||void 0===pt?void 0:pt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Oe){return Oe.pop(),Oe.length?this.form.get(Oe):this.form}}]),se}(an);function ra(we,ke){var se=we.indexOf(ke);se>-1&&we.splice(se,1)}function lo(we){return"object"==typeof we&&null!==we&&2===Object.keys(we).length&&"value"in we&&"disabled"in we}ca.\u0275fac=function(ke){return new(ke||ca)(v.Y36(pe,10),v.Y36(fe,10))},ca.\u0275dir=v.lG2({type:ca,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Vi]),v.qOj]});var da=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,pt=arguments.length>1?arguments[1]:void 0,Yt=arguments.length>2?arguments[2]:void 0;return(0,j.Z)(this,se),(Me=ke.call(this,Je(pt),dn(Yt,pt))).defaultValue=null,Me._onChange=[],Me._pendingChange=!1,Me._applyFormState(Oe),Me._setUpdateStrategy(pt),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Kt(pt)&&(pt.nonNullable||pt.initialValueIsDefault)&&(lo(Oe)?Me.defaultValue=Oe.value:Me.defaultValue=Oe),Me}return(0,R.Z)(se,[{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Oe,this._onChange.length&&!1!==Yt.emitModelToViewChange&&this._onChange.forEach(function(Pn){return Pn(pt.value,!1!==Yt.emitViewToModelChange)}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Oe,pt)}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Oe),this.markAsPristine(pt),this.markAsUntouched(pt),this.setValue(this.value,pt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Oe){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Oe){this._onChange.push(Oe)}},{key:"_unregisterOnChange",value:function(Oe){ra(this._onChange,Oe)}},{key:"registerOnDisabledChange",value:function(Oe){this._onDisabledChange.push(Oe)}},{key:"_unregisterOnDisabledChange",value:function(Oe){ra(this._onDisabledChange,Oe)}},{key:"_forEachChild",value:function(Oe){}},{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(Oe){lo(Oe)?(this.value=this._pendingValue=Oe.value,Oe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Oe}}]),se}(gt),Ya=da,Ui=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}}]),se}(an);Ui.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ui)))(se||Ui)}}(),Ui.\u0275dir=v.lG2({type:Ui,features:[v.qOj]});var to={provide:an,useExisting:(0,v.Gpc)(function(){return Ai})},Ai=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(se,[{key:"_checkParentType",value:function(){!(this._parent instanceof se)&&this._parent}}]),se}(Ui);Ai.\u0275fac=function(ke){return new(ke||Ai)(v.Y36(an,5),v.Y36(pe,10),v.Y36(fe,10))},Ai.\u0275dir=v.lG2({type:Ai,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[v._Bn([to]),v.qOj]});var pu={provide:zt,useExisting:(0,v.Gpc)(function(){return tn})},Yi=Promise.resolve(),tn=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt,Yt,Pn){var Qn;return(0,j.Z)(this,se),(Qn=ke.call(this))._changeDetectorRef=Pn,Qn.control=new da,Qn._registered=!1,Qn.update=new v.vpe,Qn._parent=Me,Qn._setValidators(Oe),Qn._setAsyncValidators(pt),Qn.valueAccessor=So((0,H.Z)(Qn),Yt),Qn}return(0,R.Z)(se,[{key:"ngOnChanges",value:function(Oe){if(this._checkForErrors(),!this._registered||"name"in Oe){if(this._registered&&(this._checkName(),this.formDirective)){var pt=Oe.name.previousValue;this.formDirective.removeControl({name:pt,path:this._getPath(pt)})}this._setUpControl()}"isDisabled"in Oe&&this._updateDisabled(Oe),ki(Oe,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._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{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(){Pr(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()&&this.name}},{key:"_updateValue",value:function(Oe){var pt=this;Yi.then(function(){var Yt;pt.control.setValue(Oe,{emitViewToModelChange:!1}),null===(Yt=pt._changeDetectorRef)||void 0===Yt||Yt.markForCheck()})}},{key:"_updateDisabled",value:function(Oe){var pt=this,Yt=Oe.isDisabled.currentValue,Pn=0!==Yt&&(0,v.D6c)(Yt);Yi.then(function(){var Qn;Pn&&!pt.control.disabled?pt.control.disable():!Pn&&pt.control.disabled&&pt.control.enable(),null===(Qn=pt._changeDetectorRef)||void 0===Qn||Qn.markForCheck()})}},{key:"_getPath",value:function(Oe){return this._parent?ir(Oe,this._parent):[Oe]}}]),se}(zt);tn.\u0275fac=function(ke){return new(ke||tn)(v.Y36(an,9),v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(v.sBO,8))},tn.\u0275dir=v.lG2({type:tn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([pu]),v.qOj,v.TTD]});var en=(0,R.Z)(function we(){(0,j.Z)(this,we)});en.\u0275fac=function(ke){return new(ke||en)},en.\u0275dir=v.lG2({type:en,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var Dr={provide:k,useExisting:(0,v.Gpc)(function(){return no}),multi:!0},no=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"writeValue",value:function(Oe){var pt=null==Oe?"":Oe;this.setProperty("value",pt)}},{key:"registerOnChange",value:function(Oe){this.onChange=function(pt){Oe(""==pt?null:parseFloat(pt))}}}]),se}(S);no.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(no)))(se||no)}}(),no.\u0275dir=v.lG2({type:no,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([Dr]),v.qOj]});var Ki={provide:k,useExisting:(0,v.Gpc)(function(){return Rn}),multi:!0};var Ti=(0,R.Z)(function we(){(0,j.Z)(this,we)});Ti.\u0275fac=function(ke){return new(ke||Ti)},Ti.\u0275mod=v.oAB({type:Ti}),Ti.\u0275inj=v.cJS({});var ro=function(){function we(){(0,j.Z)(this,we),this._accessors=[]}return(0,R.Z)(we,[{key:"add",value:function(se,Me){this._accessors.push([se,Me])}},{key:"remove",value:function(se){for(var Me=this._accessors.length-1;Me>=0;--Me)if(this._accessors[Me][1]===se)return void this._accessors.splice(Me,1)}},{key:"select",value:function(se){var Me=this;this._accessors.forEach(function(Oe){Me._isSameGroup(Oe,se)&&Oe[1]!==se&&Oe[1].fireUncheck(se.value)})}},{key:"_isSameGroup",value:function(se,Me){return!!se[0].control&&(se[0]._parent===Me._control._parent&&se[1].name===Me.name)}}]),we}();ro.\u0275fac=function(ke){return new(ke||ro)},ro.\u0275prov=v.Yz7({token:ro,factory:ro.\u0275fac,providedIn:Ti});var Rn=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt,Yt){var Pn;return(0,j.Z)(this,se),(Pn=ke.call(this,Me,Oe))._registry=pt,Pn._injector=Yt,Pn.onChange=function(){},Pn}return(0,R.Z)(se,[{key:"ngOnInit",value:function(){this._control=this._injector.get(zt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Oe){this._state=Oe===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Oe){var pt=this;this._fn=Oe,this.onChange=function(){Oe(pt.value),pt._registry.select(pt)}}},{key:"fireUncheck",value:function(Oe){this.writeValue(Oe)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),se}(S);Rn.\u0275fac=function(ke){return new(ke||Rn)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(ro),v.Y36(v.zs3))},Rn.\u0275dir=v.lG2({type:Rn,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("change",function(){return se.onChange()})("blur",function(){return se.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[v._Bn([Ki]),v.qOj]});var hu={provide:k,useExisting:(0,v.Gpc)(function(){return Jr}),multi:!0},Jr=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("value",parseFloat(Oe))}},{key:"registerOnChange",value:function(Oe){this.onChange=function(pt){Oe(""==pt?null:parseFloat(pt))}}}]),se}(S);Jr.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Jr)))(se||Jr)}}(),Jr.\u0275dir=v.lG2({type:Jr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([hu]),v.qOj]});var Yn=new v.OlP("NgModelWithFormControlWarning"),An={provide:zt,useExisting:(0,v.Gpc)(function(){return cn})},cn=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt,Yt){var Pn;return(0,j.Z)(this,se),(Pn=ke.call(this))._ngModelWarningConfig=Yt,Pn.update=new v.vpe,Pn._ngModelWarningSent=!1,Pn._setValidators(Me),Pn._setAsyncValidators(Oe),Pn.valueAccessor=So((0,H.Z)(Pn),pt),Pn}return(0,R.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){if(this._isControlChanged(Oe)){var pt=Oe.form.previousValue;pt&&yi(pt,this,!1),Pr(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ki(Oe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&yi(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_isControlChanged",value:function(Oe){return Oe.hasOwnProperty("form")}}]),se}(zt);cn._ngModelWarningSentOnce=!1,cn.\u0275fac=function(ke){return new(ke||cn)(v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(Yn,8))},cn.\u0275dir=v.lG2({type:cn,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[v._Bn([An]),v.qOj,v.TTD]});var qi={provide:an,useExisting:(0,v.Gpc)(function(){return Oi})},Oi=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe){var pt;return(0,j.Z)(this,se),(pt=ke.call(this)).submitted=!1,pt._onCollectionChange=function(){return pt._updateDomValue()},pt.directives=[],pt.form=null,pt.ngSubmit=new v.vpe,pt._setValidators(Me),pt._setAsyncValidators(Oe),pt}return(0,R.Z)(se,[{key:"ngOnChanges",value:function(Oe){this._checkFormPresent(),Oe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(wa(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(Oe){var pt=this.form.get(Oe.path);return Pr(pt,Oe),pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Oe),pt}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){yi(Oe.control||null,Oe,!1),function so(we,ke){var se=we.indexOf(ke);se>-1&&we.splice(se,1)}(this.directives,Oe)}},{key:"addFormGroup",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormGroup",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"addFormArray",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormArray",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormArray",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,pt){this.form.get(Oe.path).setValue(pt)}},{key:"onSubmit",value:function(Oe){var pt;return this.submitted=!0,ri(this.form,this.directives),this.ngSubmit.emit(Oe),"dialog"===(null===(pt=null==Oe?void 0:Oe.target)||void 0===pt?void 0:pt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Oe=this;this.directives.forEach(function(pt){var Yt=pt.control,Pn=Oe.form.get(pt.path);Yt!==Pn&&(yi(Yt||null,pt),function(ke){return ke instanceof da}(Pn)&&(Pr(Pn,pt),pt.control=Pn))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Oe){var pt=this.form.get(Oe.path);_o(pt,Oe),pt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Oe){if(this.form){var pt=this.form.get(Oe.path);if(pt){var Yt=function Gn(we,ke){return wa(we,ke)}(pt,Oe);Yt&&pt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ca(this.form,this),this._oldForm&&wa(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),se}(an);Oi.\u0275fac=function(ke){return new(ke||Oi)(v.Y36(pe,10),v.Y36(fe,10))},Oi.\u0275dir=v.lG2({type:Oi,selectors:[["","formGroup",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([qi]),v.qOj,v.TTD]});var Ji={provide:an,useExisting:(0,v.Gpc)(function(){return Ii})},Ii=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(se,[{key:"_checkParentType",value:function(){Hi(this._parent)}}]),se}(Ui);Ii.\u0275fac=function(ke){return new(ke||Ii)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10))},Ii.\u0275dir=v.lG2({type:Ii,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[v._Bn([Ji]),v.qOj]});var oi={provide:an,useExisting:(0,v.Gpc)(function(){return Mi})},Mi=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,R.Z)(se,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){Hi(this._parent)}}]),se}(an);function Hi(we){return!(we instanceof Ii||we instanceof Oi||we instanceof Mi)}Mi.\u0275fac=function(ke){return new(ke||Mi)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10))},Mi.\u0275dir=v.lG2({type:Mi,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[v._Bn([oi]),v.qOj]});var hr={provide:zt,useExisting:(0,v.Gpc)(function(){return co})},co=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt,Yt,Pn){var Qn;return(0,j.Z)(this,se),(Qn=ke.call(this))._ngModelWarningConfig=Pn,Qn._added=!1,Qn.update=new v.vpe,Qn._ngModelWarningSent=!1,Qn._parent=Me,Qn._setValidators(Oe),Qn._setAsyncValidators(pt),Qn.valueAccessor=So((0,H.Z)(Qn),Yt),Qn}return(0,R.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){this._added||this._setUpControl(),ki(Oe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"path",get:function(){return ir(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}]),se}(zt);co._ngModelWarningSentOnce=!1,co.\u0275fac=function(ke){return new(ke||co)(v.Y36(an,13),v.Y36(pe,10),v.Y36(fe,10),v.Y36(k,10),v.Y36(Yn,8))},co.\u0275dir=v.lG2({type:co,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([hr]),v.qOj,v.TTD]});var fa={provide:k,useExisting:(0,v.Gpc)(function(){return fo}),multi:!0};function ka(we,ke){return null==we?"".concat(ke):(ke&&"object"==typeof ke&&(ke="Object"),"".concat(we,": ").concat(ke).slice(0,50))}var fo=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,R.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){this.value=Oe;var Yt=ka(this._getOptionId(Oe),Oe);this.setProperty("value",Yt)}},{key:"registerOnChange",value:function(Oe){var pt=this;this.onChange=function(Yt){pt.value=pt._getOptionValue(Yt),Oe(pt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Oe){for(var pt=0,Yt=Array.from(this._optionMap.keys());pt<Yt.length;pt++){var Pn=Yt[pt];if(this._compareWith(this._optionMap.get(Pn),Oe))return Pn}return null}},{key:"_getOptionValue",value:function(Oe){var pt=function go(we){return we.split(":")[0]}(Oe);return this._optionMap.has(pt)?this._optionMap.get(pt):Oe}}]),se}(S);fo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(fo)))(se||fo)}}(),fo.\u0275dir=v.lG2({type:fo,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([fa]),v.qOj]});var ia=function(){function we(ke,se,Me){(0,j.Z)(this,we),this._element=ke,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption())}return(0,R.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._select._optionMap.set(this.id,se),this._setElementValue(ka(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._setElementValue(se),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();ia.\u0275fac=function(ke){return new(ke||ia)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(fo,9))},ia.\u0275dir=v.lG2({type:ia,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var hl={provide:k,useExisting:(0,v.Gpc)(function(){return Qo}),multi:!0};function Ka(we,ke){return null==we?"".concat(ke):("string"==typeof ke&&(ke="'".concat(ke,"'")),ke&&"object"==typeof ke&&(ke="Object"),"".concat(we,": ").concat(ke).slice(0,50))}var Qo=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,R.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){var Yt,pt=this;if(this.value=Oe,Array.isArray(Oe)){var Pn=Oe.map(function(Qn){return pt._getOptionId(Qn)});Yt=function(Qs,tc){Qs._setSelected(Pn.indexOf(tc.toString())>-1)}}else Yt=function(Qs,tc){Qs._setSelected(!1)};this._optionMap.forEach(Yt)}},{key:"registerOnChange",value:function(Oe){var pt=this;this.onChange=function(Yt){var Pn=[],Qn=Yt.selectedOptions;if(void 0!==Qn)for(var Qs=Qn,tc=0;tc<Qs.length;tc++){var Go=Qs[tc],Xs=pt._getOptionValue(Go.value);Pn.push(Xs)}else for(var Xo=Yt.options,Qa=0;Qa<Xo.length;Qa++){var nc=Xo[Qa];if(nc.selected){var Ta=pt._getOptionValue(nc.value);Pn.push(Ta)}}pt.value=Pn,Oe(Pn)}}},{key:"_registerOption",value:function(Oe){var pt=(this._idCounter++).toString();return this._optionMap.set(pt,Oe),pt}},{key:"_getOptionId",value:function(Oe){for(var pt=0,Yt=Array.from(this._optionMap.keys());pt<Yt.length;pt++){var Pn=Yt[pt];if(this._compareWith(this._optionMap.get(Pn)._value,Oe))return Pn}return null}},{key:"_getOptionValue",value:function(Oe){var pt=function qa(we){return we.split(":")[0]}(Oe);return this._optionMap.has(pt)?this._optionMap.get(pt)._value:Oe}}]),se}(S);Qo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Qo)))(se||Qo)}}(),Qo.\u0275dir=v.lG2({type:Qo,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(ke,se){1&ke&&v.NdJ("change",function(Oe){return se.onChange(Oe.target)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([hl]),v.qOj]});var mu=function(){function we(ke,se,Me){(0,j.Z)(this,we),this._element=ke,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption(this))}return(0,R.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._value=se,this._setElementValue(Ka(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._select?(this._value=se,this._setElementValue(Ka(this.id,se)),this._select.writeValue(this._select.value)):this._setElementValue(se)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"_setSelected",value:function(se){this._renderer.setProperty(this._element.nativeElement,"selected",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();function ec(we){return"number"==typeof we?we:parseInt(we,10)}function xc(we){return"number"==typeof we?we:parseFloat(we)}mu.\u0275fac=function(ke){return new(ke||mu)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(Qo,9))},mu.\u0275dir=v.lG2({type:mu,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Br=function(){function we(){(0,j.Z)(this,we),this._validator=$t}return(0,R.Z)(we,[{key:"ngOnChanges",value:function(se){if(this.inputName in se){var Me=this.normalizeInput(se[this.inputName].currentValue);this._enabled=this.enabled(Me),this._validator=this._enabled?this.createValidator(Me):$t,this._onChange&&this._onChange()}}},{key:"validate",value:function(se){return this._validator(se)}},{key:"registerOnValidatorChange",value:function(se){this._onChange=se}},{key:"enabled",value:function(se){return null!=se}}]),we}();Br.\u0275fac=function(ke){return new(ke||Br)},Br.\u0275dir=v.lG2({type:Br,features:[v.TTD]});var _u={provide:pe,useExisting:(0,v.Gpc)(function(){return ml}),multi:!0},ml=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="max",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return je(Oe)},Me}return(0,R.Z)(se)}(Br);ml.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(ml)))(se||ml)}}(),ml.\u0275dir=v.lG2({type:ml,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("max",se._enabled?se.max:null)},inputs:{max:"max"},features:[v._Bn([_u]),v.qOj]});var mf={provide:pe,useExisting:(0,v.Gpc)(function(){return _l}),multi:!0},_l=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="min",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return ge(Oe)},Me}return(0,R.Z)(se)}(Br);_l.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(_l)))(se||_l)}}(),_l.\u0275dir=v.lG2({type:_l,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("min",se._enabled?se.min:null)},inputs:{min:"min"},features:[v._Bn([mf]),v.qOj]});var gu={provide:pe,useExisting:(0,v.Gpc)(function(){return ks}),multi:!0},po={provide:pe,useExisting:(0,v.Gpc)(function(){return Ul}),multi:!0},ks=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="required",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return ot},Me}return(0,R.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Br);ks.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(ks)))(se||ks)}}(),ks.\u0275dir=v.lG2({type:ks,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("required",se._enabled?"":null)},inputs:{required:"required"},features:[v._Bn([gu]),v.qOj]});var Ul=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).createValidator=function(Oe){return St},Me}return(0,R.Z)(se)}(ks);Ul.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ul)))(se||Ul)}}(),Ul.\u0275dir=v.lG2({type:Ul,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("required",se._enabled?"":null)},features:[v._Bn([po]),v.qOj]});var Dc={provide:pe,useExisting:(0,v.Gpc)(function(){return xo}),multi:!0},xo=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="email",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return Tt},Me}return(0,R.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Br);xo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(xo)))(se||xo)}}(),xo.\u0275dir=v.lG2({type:xo,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[v._Bn([Dc]),v.qOj]});var vu={provide:pe,useExisting:(0,v.Gpc)(function(){return qs}),multi:!0},qs=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="minlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Dt(Oe)},Me}return(0,R.Z)(se)}(Br);qs.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(qs)))(se||qs)}}(),qs.\u0275dir=v.lG2({type:qs,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("minlength",se._enabled?se.minlength:null)},inputs:{minlength:"minlength"},features:[v._Bn([vu]),v.qOj]});var pa={provide:pe,useExisting:(0,v.Gpc)(function(){return jo}),multi:!0},jo=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="maxlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Rt(Oe)},Me}return(0,R.Z)(se)}(Br);jo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(jo)))(se||jo)}}(),jo.\u0275dir=v.lG2({type:jo,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("maxlength",se._enabled?se.maxlength:null)},inputs:{maxlength:"maxlength"},features:[v._Bn([pa]),v.qOj]});var bd={provide:pe,useExisting:(0,v.Gpc)(function(){return Ts}),multi:!0},Ts=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=ke.apply(this,arguments)).inputName="pattern",Me.normalizeInput=function(Oe){return Oe},Me.createValidator=function(Oe){return Ze(Oe)},Me}return(0,R.Z)(se)}(Br);Ts.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ts)))(se||Ts)}}(),Ts.\u0275dir=v.lG2({type:Ts,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(ke,se){2&ke&&v.uIk("pattern",se._enabled?se.pattern:null)},inputs:{pattern:"pattern"},features:[v._Bn([bd]),v.qOj]});var Ms=(0,R.Z)(function we(){(0,j.Z)(this,we)});Ms.\u0275fac=function(ke){return new(ke||Ms)},Ms.\u0275mod=v.oAB({type:Ms}),Ms.\u0275inj=v.cJS({imports:[Ti]});var Cr=(0,R.Z)(function we(){(0,j.Z)(this,we)});Cr.\u0275fac=function(ke){return new(ke||Cr)},Cr.\u0275mod=v.oAB({type:Cr}),Cr.\u0275inj=v.cJS({imports:[Ms]});var us=function(){function we(){(0,j.Z)(this,we)}return(0,R.Z)(we,null,[{key:"withConfig",value:function(se){return{ngModule:we,providers:[{provide:Yn,useValue:se.warnOnNgModelWithFormControl}]}}}]),we}();us.\u0275fac=function(ke){return new(ke||us)},us.\u0275mod=v.oAB({type:us}),us.\u0275inj=v.cJS({imports:[Ms]});var rh=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(Me,Oe,pt){var Yt;return(0,j.Z)(this,se),(Yt=ke.call(this,Je(Oe),dn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,R.Z)(se,[{key:"at",value:function(Oe){return this.controls[this._adjustIndex(Oe)]}},{key:"push",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Oe),this._registerControl(Oe),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Oe,0,pt),this._registerControl(pt),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}},{key:"removeAt",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Yt=this._adjustIndex(Oe);Yt<0&&(Yt=0),this.controls[Yt]&&this.controls[Yt]._registerOnCollectionChange(function(){}),this.controls.splice(Yt,1),this.updateValueAndValidity({emitEvent:pt.emitEvent})}},{key:"setControl",value:function(Oe,pt){var Yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Pn=this._adjustIndex(Oe);Pn<0&&(Pn=0),this.controls[Pn]&&this.controls[Pn]._registerOnCollectionChange(function(){}),this.controls.splice(Pn,1),pt&&(this.controls.splice(Pn,0,pt),this._registerControl(pt)),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et(this,0,Oe),Oe.forEach(function(Pn,Qn){yt(pt,!1,Qn),pt.at(Qn).setValue(Pn,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}},{key:"patchValue",value:function(Oe){var pt=this,Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Oe.forEach(function(Pn,Qn){pt.at(Qn)&&pt.at(Qn).patchValue(Pn,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Yt,Pn){Yt.reset(Oe[Pn],{onlySelf:!0,emitEvent:pt.emitEvent})}),this._updatePristine(pt),this._updateTouched(pt),this.updateValueAndValidity(pt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Oe){return Oe.getRawValue()})}},{key:"clear",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(pt){return pt._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Oe.emitEvent}))}},{key:"_adjustIndex",value:function(Oe){return Oe<0?Oe+this.length:Oe}},{key:"_syncPendingControls",value:function(){var Oe=this.controls.reduce(function(pt,Yt){return!!Yt._syncPendingControls()||pt},!1);return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){this.controls.forEach(function(pt,Yt){Oe(pt,Yt)})}},{key:"_updateValue",value:function(){var Oe=this;this.value=this.controls.filter(function(pt){return pt.enabled||Oe.disabled}).map(function(pt){return pt.value})}},{key:"_anyControls",value:function(Oe){return this.controls.some(function(pt){return pt.enabled&&Oe(pt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(pt){return Oe._registerControl(pt)})}},{key:"_allControlsDisabled",value:function(){var pt,Oe=(0,A.Z)(this.controls);try{for(Oe.s();!(pt=Oe.n()).done;){if(pt.value.enabled)return!1}}catch(Pn){Oe.e(Pn)}finally{Oe.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Oe){Oe.setParent(this),Oe._registerOnCollectionChange(this._onCollectionChange)}},{key:"_find",value:function(Oe){var pt;return null!==(pt=this.at(Oe))&&void 0!==pt?pt:null}}]),se}(gt);function _f(we){return!!we&&(void 0!==we.asyncValidators||void 0!==we.validators||void 0!==we.updateOn)}var Js=function(){function we(){(0,j.Z)(this,we),this.useNonNullable=!1}return(0,R.Z)(we,[{key:"nonNullable",get:function(){var se=new we;return se.useNonNullable=!0,se}},{key:"group",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se),pt={};return _f(Me)?pt=Me:null!==Me&&(pt.validators=Me.validator,pt.asyncValidators=Me.asyncValidator),new wt(Oe,pt)}},{key:"record",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se);return new Wn(Oe,Me)}},{key:"control",value:function(se,Me,Oe){var pt={};return this.useNonNullable?(_f(Me)?pt=Me:(pt.validators=Me,pt.asyncValidators=Oe),new da(se,Object.assign(Object.assign({},pt),{nonNullable:!0}))):new da(se,Me,Oe)}},{key:"array",value:function(se,Me,Oe){var pt=this,Yt=se.map(function(Pn){return pt._createControl(Pn)});return new rh(Yt,Me,Oe)}},{key:"_reduceControls",value:function(se){var Me=this,Oe={};return Object.keys(se).forEach(function(pt){Oe[pt]=Me._createControl(se[pt])}),Oe}},{key:"_createControl",value:function(se){if(se instanceof da)return se;if(se instanceof gt)return se;if(Array.isArray(se)){var Me=se[0],Oe=se.length>1?se[1]:null,pt=se.length>2?se[2]:null;return this.control(Me,Oe,pt)}return this.control(se)}}]),we}();Js.\u0275fac=function(ke){return new(ke||Js)},Js.\u0275prov=v.Yz7({token:Js,factory:Js.\u0275fac,providedIn:us});var yu=(0,R.Z)(function we(){(0,j.Z)(this,we)});yu.\u0275fac=function(ke){return new(ke||yu)},yu.\u0275prov=v.Yz7({token:yu,factory:function(){return(0,v.f3M)(Js).nonNullable},providedIn:us});var Hl=function(we){(0,T.Z)(se,we);var ke=(0,E.Z)(se);function se(){return(0,j.Z)(this,se),ke.apply(this,arguments)}return(0,R.Z)(se,[{key:"group",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,G.Z)((0,W.Z)(se.prototype),"group",this).call(this,Oe,pt)}},{key:"control",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(se.prototype),"control",this).call(this,Oe,pt,Yt)}},{key:"array",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(se.prototype),"array",this).call(this,Oe,pt,Yt)}}]),se}(Js);Hl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Hl)))(se||Hl)}}(),Hl.\u0275prov=v.Yz7({token:Hl,factory:Hl.\u0275fac,providedIn:us});new v.GfV("14.3.0")},508:function(Ae,K,m){"use strict";m.d(K,{yN:function(){return Q},mZ:function(){return te},rD:function(){return Ut},K7:function(){return ut},HF:function(){return ye},Y2:function(){return Vt},BQ:function(){return fe},X2:function(){return Wt},uc:function(){return qe},Nv:function(){return Nt},ey:function(){return ln},Ng:function(){return mn},rN:function(){return sn},nP:function(){return Fe},us:function(){return ne},wG:function(){return Jt},si:function(){return Qe},IR:function(){return Qt},CB:function(){return Sn},jH:function(){return hn},pj:function(){return ot},Kr:function(){return St},Id:function(){return je},FD:function(){return Dt},dB:function(){return Rt},sb:function(){return Tt},E0:function(){return U}});var G=m(7326),W=m(3237),A=m(1120),H=m(136),P=m(9388),I=m(3144),T=m(5671),E=m(5e3),j=m(226),v=(new E.GfV("14.2.7"),m(9808)),x=m(925),w=m(5664),Z=m(3191),D=m(7451),b=m(8929),S=m(1059),k=m(1159),M=["*",[["mat-option"],["ng-container"]]];function F(At,xt){if(1&At&&E._UZ(0,"mat-pseudo-checkbox",4),2&At){var tt=E.oxw();E.Q6J("state",tt.selected?"checked":"unchecked")("disabled",tt.disabled)}}function X(At,xt){if(1&At&&(E.TgZ(0,"span",5),E._uU(1),E.qZA()),2&At){var tt=E.oxw();E.xp6(1),E.hij("(",tt.group.label,")")}}new E.GfV("14.2.7");var Q=(0,I.Z)(function At(){(0,T.Z)(this,At)});Q.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Q.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Q.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Q.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var te=(0,I.Z)(function At(){(0,T.Z)(this,At)});te.COMPLEX="375ms",te.ENTERING="225ms",te.EXITING="195ms";var pe=new E.OlP("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}}),fe=function(){function At(xt,tt,Et){(0,T.Z)(this,At),this._sanityChecks=tt,this._document=Et,this._hasDoneGlobalChecks=!1,xt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,I.Z)(At,[{key:"_checkIsEnabled",value:function(tt){return!(0,x.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tt])}}]),At}();function je(At){return function(xt){(0,H.Z)(Et,xt);var tt=(0,P.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._disabled=!1,We}return(0,I.Z)(Et,[{key:"disabled",get:function(){return this._disabled},set:function(Ye){this._disabled=(0,Z.Ig)(Ye)}}]),Et}(At)}function ot(At,xt){return function(tt){(0,H.Z)(We,tt);var Et=(0,P.Z)(We);function We(){var Ye;(0,T.Z)(this,We);for(var Re=arguments.length,Je=new Array(Re),vt=0;vt<Re;vt++)Je[vt]=arguments[vt];return(Ye=Et.call.apply(Et,[this].concat(Je))).defaultColor=xt,Ye.color=xt,Ye}return(0,I.Z)(We,[{key:"color",get:function(){return this._color},set:function(Re){var Je=Re||this.defaultColor;Je!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),Je&&this._elementRef.nativeElement.classList.add("mat-".concat(Je)),this._color=Je)}}]),We}(At)}function St(At){return function(xt){(0,H.Z)(Et,xt);var tt=(0,P.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._disableRipple=!1,We}return(0,I.Z)(Et,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Ye){this._disableRipple=(0,Z.Ig)(Ye)}}]),Et}(At)}function Tt(At){var xt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(tt){(0,H.Z)(We,tt);var Et=(0,P.Z)(We);function We(){var Ye;(0,T.Z)(this,We);for(var Re=arguments.length,Je=new Array(Re),vt=0;vt<Re;vt++)Je[vt]=arguments[vt];return(Ye=Et.call.apply(Et,[this].concat(Je)))._tabIndex=xt,Ye.defaultTabIndex=xt,Ye}return(0,I.Z)(We,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Re){this._tabIndex=null!=Re?(0,Z.su)(Re):this.defaultTabIndex}}]),We}(At)}function Dt(At){return function(xt){(0,H.Z)(Et,xt);var tt=(0,P.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re))).errorState=!1,We}return(0,I.Z)(Et,[{key:"updateErrorState",value:function(){var Ye=this.errorState,Re=this._parentFormGroup||this._parentForm,Je=this.errorStateMatcher||this._defaultErrorStateMatcher,vt=this.ngControl?this.ngControl.control:null,dn=Je.isErrorState(vt,Re);dn!==Ye&&(this.errorState=dn,this.stateChanges.next())}}]),Et}(At)}function Rt(At){return function(xt){(0,H.Z)(Et,xt);var tt=(0,P.Z)(Et);function Et(){var We;(0,T.Z)(this,Et);for(var Ye=arguments.length,Re=new Array(Ye),Je=0;Je<Ye;Je++)Re[Je]=arguments[Je];return(We=tt.call.apply(tt,[this].concat(Re)))._isInitialized=!1,We._pendingSubscribers=[],We.initialized=new D.y(function(vt){We._isInitialized?We._notifySubscriber(vt):We._pendingSubscribers.push(vt)}),We}return(0,I.Z)(Et,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Ye){Ye.next(),Ye.complete()}}]),Et}(At)}fe.\u0275fac=function(xt){return new(xt||fe)(E.LFG(w.qm),E.LFG(pe,8),E.LFG(v.K0))},fe.\u0275mod=E.oAB({type:fe}),fe.\u0275inj=E.cJS({imports:[j.vT,j.vT]});var Ze=new E.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function $t(){return(0,E.f3M)(E.soG)}});var Ft=function(){function At(){(0,T.Z)(this,At),this._localeChanges=new b.xQ,this.localeChanges=this._localeChanges}return(0,I.Z)(At,[{key:"getValidDateOrNull",value:function(tt){return this.isDateInstance(tt)&&this.isValid(tt)?tt:null}},{key:"deserialize",value:function(tt){return null==tt||this.isDateInstance(tt)&&this.isValid(tt)?tt:this.invalid()}},{key:"setLocale",value:function(tt){this.locale=tt,this._localeChanges.next()}},{key:"compareDate",value:function(tt,Et){return this.getYear(tt)-this.getYear(Et)||this.getMonth(tt)-this.getMonth(Et)||this.getDate(tt)-this.getDate(Et)}},{key:"sameDate",value:function(tt,Et){if(tt&&Et){var We=this.isValid(tt),Ye=this.isValid(Et);return We&&Ye?!this.compareDate(tt,Et):We==Ye}return tt==Et}},{key:"clampDate",value:function(tt,Et,We){return Et&&this.compareDate(tt,Et)<0?Et:We&&this.compareDate(tt,We)>0?We:tt}}]),At}(),pn=new E.OlP("mat-date-formats"),rt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ot(At,xt){for(var tt=Array(At),Et=0;Et<At;Et++)tt[Et]=xt(Et);return tt}var _t=function(At){(0,H.Z)(tt,At);var xt=(0,P.Z)(tt);function tt(Et,We){var Ye,Re;return(0,T.Z)(this,tt),(Re=xt.call(this)).useUtcForDisplay=!1,(0,W.Z)((Ye=(0,G.Z)(Re),(0,A.Z)(tt.prototype)),"setLocale",Ye).call(Ye,Et),Re}return(0,I.Z)(tt,[{key:"getYear",value:function(We){return We.getFullYear()}},{key:"getMonth",value:function(We){return We.getMonth()}},{key:"getDate",value:function(We){return We.getDate()}},{key:"getDayOfWeek",value:function(We){return We.getDay()}},{key:"getMonthNames",value:function(We){var Ye=this,Re=new Intl.DateTimeFormat(this.locale,{month:We,timeZone:"utc"});return Ot(12,function(Je){return Ye._format(Re,new Date(2017,Je,1))})}},{key:"getDateNames",value:function(){var We=this,Ye=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ot(31,function(Re){return We._format(Ye,new Date(2017,0,Re+1))})}},{key:"getDayOfWeekNames",value:function(We){var Ye=this,Re=new Intl.DateTimeFormat(this.locale,{weekday:We,timeZone:"utc"});return Ot(7,function(Je){return Ye._format(Re,new Date(2017,0,Je+1))})}},{key:"getYearName",value:function(We){var Ye=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ye,We)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(We){return this.getDate(this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+1,0))}},{key:"clone",value:function(We){return new Date(We.getTime())}},{key:"createDate",value:function(We,Ye,Re){var Je=this._createDateWithOverflow(We,Ye,Re);return Je.getMonth(),Je}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(We,Ye){return"number"==typeof We?new Date(We):We?new Date(Date.parse(We)):null}},{key:"format",value:function(We,Ye){if(!this.isValid(We))throw Error("NativeDateAdapter: Cannot format invalid date.");var Re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Ye),{timeZone:"utc"}));return this._format(Re,We)}},{key:"addCalendarYears",value:function(We,Ye){return this.addCalendarMonths(We,12*Ye)}},{key:"addCalendarMonths",value:function(We,Ye){var Re=this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+Ye,this.getDate(We));return this.getMonth(Re)!=((this.getMonth(We)+Ye)%12+12)%12&&(Re=this._createDateWithOverflow(this.getYear(Re),this.getMonth(Re),0)),Re}},{key:"addCalendarDays",value:function(We,Ye){return this._createDateWithOverflow(this.getYear(We),this.getMonth(We),this.getDate(We)+Ye)}},{key:"toIso8601",value:function(We){return[We.getUTCFullYear(),this._2digit(We.getUTCMonth()+1),this._2digit(We.getUTCDate())].join("-")}},{key:"deserialize",value:function(We){if("string"==typeof We){if(!We)return null;if(rt.test(We)){var Ye=new Date(We);if(this.isValid(Ye))return Ye}}return(0,W.Z)((0,A.Z)(tt.prototype),"deserialize",this).call(this,We)}},{key:"isDateInstance",value:function(We){return We instanceof Date}},{key:"isValid",value:function(We){return!isNaN(We.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(We,Ye,Re){var Je=new Date;return Je.setFullYear(We,Ye,Re),Je.setHours(0,0,0,0),Je}},{key:"_2digit",value:function(We){return("00"+We).slice(-2)}},{key:"_format",value:function(We,Ye){var Re=new Date;return Re.setUTCFullYear(Ye.getFullYear(),Ye.getMonth(),Ye.getDate()),Re.setUTCHours(Ye.getHours(),Ye.getMinutes(),Ye.getSeconds(),Ye.getMilliseconds()),We.format(Re)}}]),tt}(Ft);_t.\u0275fac=function(xt){return new(xt||_t)(E.LFG(Ze,8),E.LFG(x.t4))},_t.\u0275prov=E.Yz7({token:_t,factory:_t.\u0275fac});var Ve=(0,I.Z)(function At(){(0,T.Z)(this,At)});Ve.\u0275fac=function(xt){return new(xt||Ve)},Ve.\u0275mod=E.oAB({type:Ve}),Ve.\u0275inj=E.cJS({providers:[{provide:Ft,useClass:_t}]});var at=(0,I.Z)(function At(){(0,T.Z)(this,At)});at.\u0275fac=function(xt){return new(xt||at)},at.\u0275mod=E.oAB({type:at}),at.\u0275inj=E.cJS({providers:[{provide:pn,useValue:{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"}}}}],imports:[Ve]});var ht=function(){function At(){(0,T.Z)(this,At)}return(0,I.Z)(At,[{key:"isErrorState",value:function(tt,Et){return!!(tt&&tt.invalid&&(tt.dirty||Et&&Et.submitted))}}]),At}();ht.\u0275fac=function(xt){return new(xt||ht)},ht.\u0275prov=E.Yz7({token:ht,factory:ht.\u0275fac});var Ut=function(){function At(){(0,T.Z)(this,At)}return(0,I.Z)(At,[{key:"isErrorState",value:function(tt,Et){return!!(tt&&tt.invalid&&(tt.touched||Et&&Et.submitted))}}]),At}();Ut.\u0275fac=function(xt){return new(xt||Ut)},Ut.\u0275prov=E.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var Wt=(0,I.Z)(function At(){(0,T.Z)(this,At)});function U(At,xt){var tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";At.changes.pipe((0,S.O)(At)).subscribe(function(Et){var We=Et.length;B(xt,"".concat(tt,"-2-line"),!1),B(xt,"".concat(tt,"-3-line"),!1),B(xt,"".concat(tt,"-multi-line"),!1),2===We||3===We?B(xt,"".concat(tt,"-").concat(We,"-line"),!0):We>3&&B(xt,"".concat(tt,"-multi-line"),!0)})}function B(At,xt,tt){At.nativeElement.classList.toggle(xt,tt)}Wt.\u0275fac=function(xt){return new(xt||Wt)},Wt.\u0275dir=E.lG2({type:Wt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var qe=(0,I.Z)(function At(){(0,T.Z)(this,At)});qe.\u0275fac=function(xt){return new(xt||qe)},qe.\u0275mod=E.oAB({type:qe}),qe.\u0275inj=E.cJS({imports:[fe,fe]});var Be=function(){function At(xt,tt,Et){var We=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,T.Z)(this,At),this._renderer=xt,this.element=tt,this.config=Et,this._animationForciblyDisabledThroughCss=We,this.state=3}return(0,I.Z)(At,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),At}(),le={enterDuration:225,exitDuration:150},Lt=(0,x.i$)({passive:!0}),zt=["mousedown","touchstart"],an=["mouseup","mouseleave","touchend","touchcancel"],Qt=function(){function At(xt,tt,Et,We){(0,T.Z)(this,At),this._target=xt,this._ngZone=tt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,Z.fI)(Et))}return(0,I.Z)(At,[{key:"fadeInRipple",value:function(tt,Et){var We=this,Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Je=Object.assign(Object.assign({},le),Ye.animation);Ye.centered&&(tt=Re.left+Re.width/2,Et=Re.top+Re.height/2);var vt=Ye.radius||vn(tt,Et,Re),dn=tt-Re.left,Un=Et-Re.top,Kt=Je.enterDuration,yt=document.createElement("div");yt.classList.add("mat-ripple-element"),yt.style.left="".concat(dn-vt,"px"),yt.style.top="".concat(Un-vt,"px"),yt.style.height="".concat(2*vt,"px"),yt.style.width="".concat(2*vt,"px"),null!=Ye.color&&(yt.style.backgroundColor=Ye.color),yt.style.transitionDuration="".concat(Kt,"ms"),this._containerElement.appendChild(yt);var et=window.getComputedStyle(yt),gt=et.transitionProperty,wt=et.transitionDuration,nn="none"===gt||"0s"===wt||"0s, 0s"===wt,Hn=new Be(this,yt,Ye,nn);yt.style.transform="scale3d(1, 1, 1)",Hn.state=0,Ye.persistent||(this._mostRecentTransientRipple=Hn);var Wn=null;return!nn&&(Kt||Je.exitDuration)&&this._ngZone.runOutsideAngular(function(){var Vn=function(){return We._finishRippleTransition(Hn)},ir=function(){return We._destroyRipple(Hn)};yt.addEventListener("transitionend",Vn),yt.addEventListener("transitioncancel",ir),Wn={onTransitionEnd:Vn,onTransitionCancel:ir}}),this._activeRipples.set(Hn,Wn),(nn||!Kt)&&this._finishRippleTransition(Hn),Hn}},{key:"fadeOutRipple",value:function(tt){if(2!==tt.state&&3!==tt.state){var Et=tt.element,We=Object.assign(Object.assign({},le),tt.config.animation);Et.style.transitionDuration="".concat(We.exitDuration,"ms"),Et.style.opacity="0",tt.state=2,(tt._animationForciblyDisabledThroughCss||!We.exitDuration)&&this._finishRippleTransition(tt)}}},{key:"fadeOutAll",value:function(){this._getActiveRipples().forEach(function(tt){return tt.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._getActiveRipples().forEach(function(tt){tt.config.persistent||tt.fadeOut()})}},{key:"setupTriggerEvents",value:function(tt){var Et=(0,Z.fI)(tt);!Et||Et===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Et,this._registerEvents(zt))}},{key:"handleEvent",value:function(tt){"mousedown"===tt.type?this._onMousedown(tt):"touchstart"===tt.type?this._onTouchStart(tt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(an),this._pointerUpEventsRegistered=!0)}},{key:"_finishRippleTransition",value:function(tt){0===tt.state?this._startFadeOutTransition(tt):2===tt.state&&this._destroyRipple(tt)}},{key:"_startFadeOutTransition",value:function(tt){var Et=tt===this._mostRecentTransientRipple,We=tt.config.persistent;tt.state=1,!We&&(!Et||!this._isPointerDown)&&tt.fadeOut()}},{key:"_destroyRipple",value:function(tt){var Et,We=null!==(Et=this._activeRipples.get(tt))&&void 0!==Et?Et:null;this._activeRipples.delete(tt),this._activeRipples.size||(this._containerRect=null),tt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),tt.state=3,null!==We&&(tt.element.removeEventListener("transitionend",We.onTransitionEnd),tt.element.removeEventListener("transitioncancel",We.onTransitionCancel)),tt.element.remove()}},{key:"_onMousedown",value:function(tt){var Et=(0,w.X6)(tt),We=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Et&&!We&&(this._isPointerDown=!0,this.fadeInRipple(tt.clientX,tt.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(tt){if(!this._target.rippleDisabled&&!(0,w.yG)(tt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Et=tt.changedTouches,We=0;We<Et.length;We++)this.fadeInRipple(Et[We].clientX,Et[We].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(function(tt){var Et=1===tt.state||tt.config.terminateOnPointerUp&&0===tt.state;!tt.config.persistent&&Et&&tt.fadeOut()}))}},{key:"_registerEvents",value:function(tt){var Et=this;this._ngZone.runOutsideAngular(function(){tt.forEach(function(We){Et._triggerElement.addEventListener(We,Et,Lt)})})}},{key:"_getActiveRipples",value:function(){return Array.from(this._activeRipples.keys())}},{key:"_removeTriggerEvents",value:function(){var tt=this;this._triggerElement&&(zt.forEach(function(Et){tt._triggerElement.removeEventListener(Et,tt,Lt)}),this._pointerUpEventsRegistered&&an.forEach(function(Et){tt._triggerElement.removeEventListener(Et,tt,Lt)}))}}]),At}();function vn(At,xt,tt){var Et=Math.max(Math.abs(At-tt.left),Math.abs(At-tt.right)),We=Math.max(Math.abs(xt-tt.top),Math.abs(xt-tt.bottom));return Math.sqrt(Et*Et+We*We)}var Vt=new E.OlP("mat-ripple-global-options"),Jt=function(){function At(xt,tt,Et,We,Ye){(0,T.Z)(this,At),this._elementRef=xt,this._animationMode=Ye,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=We||{},this._rippleRenderer=new Qt(this,tt,xt,Et)}return(0,I.Z)(At,[{key:"disabled",get:function(){return this._disabled},set:function(tt){tt&&this.fadeOutAllNonPersistent(),this._disabled=tt,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(tt){this._trigger=tt,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(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,We=arguments.length>2?arguments[2]:void 0;return"number"==typeof tt?this._rippleRenderer.fadeInRipple(tt,Et,Object.assign(Object.assign({},this.rippleConfig),We)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),tt))}}]),At}();Jt.\u0275fac=function(xt){return new(xt||Jt)(E.Y36(E.SBq),E.Y36(E.R0b),E.Y36(x.t4),E.Y36(Vt,8),E.Y36(E.QbO,8))},Jt.\u0275dir=E.lG2({type:Jt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(xt,tt){2&xt&&E.ekj("mat-ripple-unbounded",tt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});var Qe=(0,I.Z)(function At(){(0,T.Z)(this,At)});Qe.\u0275fac=function(xt){return new(xt||Qe)},Qe.\u0275mod=E.oAB({type:Qe}),Qe.\u0275inj=E.cJS({imports:[fe,fe]});var Fe=(0,I.Z)(function At(xt){(0,T.Z)(this,At),this._animationMode=xt,this.state="unchecked",this.disabled=!1});Fe.\u0275fac=function(xt){return new(xt||Fe)(E.Y36(E.QbO,8))},Fe.\u0275cmp=E.Xpm({type:Fe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(xt,tt){2&xt&&E.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===tt.state)("mat-pseudo-checkbox-checked","checked"===tt.state)("mat-pseudo-checkbox-disabled",tt.disabled)("_mat-animation-noopable","NoopAnimations"===tt._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(xt,tt){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0});var ne=(0,I.Z)(function At(){(0,T.Z)(this,At)});ne.\u0275fac=function(xt){return new(xt||ne)},ne.\u0275mod=E.oAB({type:ne}),ne.\u0275inj=E.cJS({imports:[fe]});var ye=new E.OlP("MAT_OPTION_PARENT_COMPONENT"),he=je(function(){return(0,I.Z)(function At(){(0,T.Z)(this,At)})}()),Le=0,lt=function(At){(0,H.Z)(tt,At);var xt=(0,P.Z)(tt);function tt(Et){var We,Ye;return(0,T.Z)(this,tt),(We=xt.call(this))._labelId="mat-optgroup-label-".concat(Le++),We._inert=null!==(Ye=null==Et?void 0:Et.inertGroups)&&void 0!==Ye&&Ye,We}return(0,I.Z)(tt)}(he);lt.\u0275fac=function(xt){return new(xt||lt)(E.Y36(ye,8))},lt.\u0275dir=E.lG2({type:lt,inputs:{label:"label"},features:[E.qOj]});var ut=new E.OlP("MatOptgroup"),Nt=function(At){(0,H.Z)(tt,At);var xt=(0,P.Z)(tt);function tt(){return(0,T.Z)(this,tt),xt.apply(this,arguments)}return(0,I.Z)(tt)}(lt);Nt.\u0275fac=function(){var At;return function(tt){return(At||(At=E.n5z(Nt)))(tt||Nt)}}(),Nt.\u0275cmp=E.Xpm({type:Nt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(xt,tt){2&xt&&(E.uIk("role",tt._inert?null:"group")("aria-disabled",tt._inert?null:tt.disabled.toString())("aria-labelledby",tt._inert?null:tt._labelId),E.ekj("mat-optgroup-disabled",tt.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[E._Bn([{provide:ut,useExisting:Nt}]),E.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(xt,tt){1&xt&&(E.F$t(M),E.TgZ(0,"span",0),E._uU(1),E.Hsn(2),E.qZA(),E.Hsn(3,1)),2&xt&&(E.Q6J("id",tt._labelId),E.xp6(1),E.hij("",tt.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0});var jt=0,sn=(0,I.Z)(function At(xt){var tt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,T.Z)(this,At),this.source=xt,this.isUserInput=tt}),yn=function(){function At(xt,tt,Et,We){(0,T.Z)(this,At),this._element=xt,this._changeDetectorRef=tt,this._parent=Et,this.group=We,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(jt++),this.onSelectionChange=new E.vpe,this._stateChanges=new b.xQ}return(0,I.Z)(At,[{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(tt){this._disabled=(0,Z.Ig)(tt)}},{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(tt,Et){var We=this._getHostElement();"function"==typeof We.focus&&We.focus(Et)}},{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(tt){(tt.keyCode===k.K5||tt.keyCode===k.L_)&&!(0,k.Vb)(tt)&&(this._selectViaInteraction(),tt.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 tt=this.viewValue;tt!==this._mostRecentViewValue&&(this._mostRecentViewValue=tt,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var tt=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new sn(this,tt))}}]),At}();yn.\u0275fac=function(xt){E.$Z()},yn.\u0275dir=E.lG2({type:yn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var ln=function(At){(0,H.Z)(tt,At);var xt=(0,P.Z)(tt);function tt(Et,We,Ye,Re){return(0,T.Z)(this,tt),xt.call(this,Et,We,Ye,Re)}return(0,I.Z)(tt)}(yn);function Sn(At,xt,tt){if(tt.length){for(var Et=xt.toArray(),We=tt.toArray(),Ye=0,Re=0;Re<At+1;Re++)Et[Re].group&&Et[Re].group===We[Ye]&&Ye++;return Ye}return 0}function hn(At,xt,tt,Et){return At<tt?At:At+xt>tt+Et?Math.max(0,At-Et+xt):tt}ln.\u0275fac=function(xt){return new(xt||ln)(E.Y36(E.SBq),E.Y36(E.sBO),E.Y36(ye,8),E.Y36(ut,8))},ln.\u0275cmp=E.Xpm({type:ln,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(xt,tt){1&xt&&E.NdJ("click",function(){return tt._selectViaInteraction()})("keydown",function(We){return tt._handleKeydown(We)}),2&xt&&(E.Ikx("id",tt.id),E.uIk("tabindex",tt._getTabIndex())("aria-selected",tt._getAriaSelected())("aria-disabled",tt.disabled.toString()),E.ekj("mat-selected",tt.selected)("mat-option-multiple",tt.multiple)("mat-active",tt.active)("mat-option-disabled",tt.disabled))},exportAs:["matOption"],features:[E.qOj],ngContentSelectors:["*"],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(xt,tt){1&xt&&(E.F$t(),E.YNc(0,F,1,2,"mat-pseudo-checkbox",0),E.TgZ(1,"span",1),E.Hsn(2),E.qZA(),E.YNc(3,X,2,1,"span",2),E._UZ(4,"div",3)),2&xt&&(E.Q6J("ngIf",tt.multiple),E.xp6(3),E.Q6J("ngIf",tt.group&&tt.group._inert),E.xp6(1),E.Q6J("matRippleTrigger",tt._getHostElement())("matRippleDisabled",tt.disabled||tt.disableRipple))},dependencies:[Jt,v.O5,Fe],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}'],encapsulation:2,changeDetection:0});var mn=(0,I.Z)(function At(){(0,T.Z)(this,At)});mn.\u0275fac=function(xt){return new(xt||mn)},mn.\u0275mod=E.oAB({type:mn}),mn.\u0275inj=E.cJS({imports:[Qe,v.ez,fe,ne]})},4834:function(Ae,K,m){"use strict";m.d(K,{d:function(){return I},t:function(){return T}});var G=m(5671),W=m(3144),A=m(5e3),H=m(3191),P=m(508),I=function(){function E(){(0,G.Z)(this,E),this._vertical=!1,this._inset=!1}return(0,W.Z)(E,[{key:"vertical",get:function(){return this._vertical},set:function(R){this._vertical=(0,H.Ig)(R)}},{key:"inset",get:function(){return this._inset},set:function(R){this._inset=(0,H.Ig)(R)}}]),E}();I.\u0275fac=function(j){return new(j||I)},I.\u0275cmp=A.Xpm({type:I,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(j,R){2&j&&(A.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),A.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(j,R){},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}"],encapsulation:2,changeDetection:0});var T=(0,W.Z)(function E(){(0,G.Z)(this,E)});T.\u0275fac=function(j){return new(j||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({imports:[P.BQ,P.BQ]})},7322:function(Ae,K,m){"use strict";m.d(K,{Eo:function(){return $t},G_:function(){return Lt},KE:function(){return zt},R9:function(){return U},TO:function(){return Rt},hX:function(){return Ve},lN:function(){return an}});var G=m(4902),W=m(136),A=m(9388),H=m(3144),P=m(5671),I=m(7144),T=m(9808),E=m(5e3),j=m(508),R=m(3191),v=m(8929),x=m(6787),w=m(3753),Z=m(1059),D=m(7625),b=m(2986),S=m(1777),k=m(226),M=m(925),N=["connectionContainer"],F=["inputContainer"],X=["label"];function $(Qt,vn){1&Qt&&(E.ynx(0),E.TgZ(1,"div",14),E._UZ(2,"div",15)(3,"div",16)(4,"div",17),E.qZA(),E.TgZ(5,"div",18),E._UZ(6,"div",15)(7,"div",16)(8,"div",17),E.qZA(),E.BQk())}function V(Qt,vn){if(1&Qt){var Vt=E.EpF();E.TgZ(0,"div",19),E.NdJ("cdkObserveContent",function(){E.CHM(Vt);var Fe=E.oxw();return E.KtG(Fe.updateOutlineGap())}),E.Hsn(1,1),E.qZA()}if(2&Qt){var Jt=E.oxw();E.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)}}function Q(Qt,vn){if(1&Qt&&(E.ynx(0),E.Hsn(1,2),E.TgZ(2,"span"),E._uU(3),E.qZA(),E.BQk()),2&Qt){var Vt=E.oxw(2);E.xp6(3),E.Oqu(Vt._control.placeholder)}}function te(Qt,vn){1&Qt&&E.Hsn(0,3,["*ngSwitchCase","true"])}function be(Qt,vn){1&Qt&&(E.TgZ(0,"span",23),E._uU(1," *"),E.qZA())}function pe(Qt,vn){if(1&Qt){var Vt=E.EpF();E.TgZ(0,"label",20,21),E.NdJ("cdkObserveContent",function(){E.CHM(Vt);var Fe=E.oxw();return E.KtG(Fe.updateOutlineGap())}),E.YNc(2,Q,4,1,"ng-container",12),E.YNc(3,te,1,0,"ng-content",12),E.YNc(4,be,2,0,"span",22),E.qZA()}if(2&Qt){var Jt=E.oxw();E.ekj("mat-empty",Jt._control.empty&&!Jt._shouldAlwaysFloat())("mat-form-field-empty",Jt._control.empty&&!Jt._shouldAlwaysFloat())("mat-accent","accent"==Jt.color)("mat-warn","warn"==Jt.color),E.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)("id",Jt._labelId)("ngSwitch",Jt._hasLabel()),E.uIk("for",Jt._control.id)("aria-owns",Jt._control.id),E.xp6(2),E.Q6J("ngSwitchCase",!1),E.xp6(1),E.Q6J("ngSwitchCase",!0),E.xp6(1),E.Q6J("ngIf",!Jt.hideRequiredMarker&&Jt._control.required&&!Jt._control.disabled)}}function fe(Qt,vn){1&Qt&&(E.TgZ(0,"div",24),E.Hsn(1,4),E.qZA())}function ue(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",25),E._UZ(1,"span",26),E.qZA()),2&Qt){var Vt=E.oxw();E.xp6(1),E.ekj("mat-accent","accent"==Vt.color)("mat-warn","warn"==Vt.color)}}function de(Qt,vn){if(1&Qt&&(E.TgZ(0,"div"),E.Hsn(1,5),E.qZA()),2&Qt){var Vt=E.oxw();E.Q6J("@transitionMessages",Vt._subscriptAnimationState)}}function ge(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",30),E._uU(1),E.qZA()),2&Qt){var Vt=E.oxw(2);E.Q6J("id",Vt._hintLabelId),E.xp6(1),E.Oqu(Vt.hintLabel)}}function je(Qt,vn){if(1&Qt&&(E.TgZ(0,"div",27),E.YNc(1,ge,2,2,"div",28),E.Hsn(2,6),E._UZ(3,"div",29),E.Hsn(4,7),E.qZA()),2&Qt){var Vt=E.oxw();E.Q6J("@transitionMessages",Vt._subscriptAnimationState),E.xp6(1),E.Q6J("ngIf",Vt.hintLabel)}}var ot=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Tt=0,Dt=new E.OlP("MatError"),Rt=(0,H.Z)(function Qt(vn,Vt){(0,P.Z)(this,Qt),this.id="mat-error-".concat(Tt++),vn||Vt.nativeElement.setAttribute("aria-live","polite")});Rt.\u0275fac=function(vn){return new(vn||Rt)(E.$8M("aria-live"),E.Y36(E.SBq))},Rt.\u0275dir=E.lG2({type:Rt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(vn,Vt){2&vn&&E.uIk("id",Vt.id)},inputs:{id:"id"},features:[E._Bn([{provide:Dt,useExisting:Rt}])]});var Ze={transitionMessages:(0,S.X$)("transitionMessages",[(0,S.SB)("enter",(0,S.oB)({opacity:1,transform:"translateY(0%)"})),(0,S.eR)("void => enter",[(0,S.oB)({opacity:0,transform:"translateY(-5px)"}),(0,S.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$t=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});$t.\u0275fac=function(vn){return new(vn||$t)},$t.\u0275dir=E.lG2({type:$t});var Ot=0,_t=new E.OlP("MatHint"),Ct=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt),this.align="start",this.id="mat-hint-".concat(Ot++)});Ct.\u0275fac=function(vn){return new(vn||Ct)},Ct.\u0275dir=E.lG2({type:Ct,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(vn,Vt){2&vn&&(E.uIk("id",Vt.id)("align",null),E.ekj("mat-form-field-hint-end","end"===Vt.align))},inputs:{align:"align",id:"id"},features:[E._Bn([{provide:_t,useExisting:Ct}])]});var Ve=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});Ve.\u0275fac=function(vn){return new(vn||Ve)},Ve.\u0275dir=E.lG2({type:Ve,selectors:[["mat-label"]]});var at=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});at.\u0275fac=function(vn){return new(vn||at)},at.\u0275dir=E.lG2({type:at,selectors:[["mat-placeholder"]]});var ht=new E.OlP("MatPrefix"),Ut=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});Ut.\u0275fac=function(vn){return new(vn||Ut)},Ut.\u0275dir=E.lG2({type:Ut,selectors:[["","matPrefix",""]],features:[E._Bn([{provide:ht,useExisting:Ut}])]});var Wt=new E.OlP("MatSuffix"),U=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});U.\u0275fac=function(vn){return new(vn||U)},U.\u0275dir=E.lG2({type:U,selectors:[["","matSuffix",""]],features:[E._Bn([{provide:Wt,useExisting:U}])]});var B=0,le=(0,j.pj)(function(){return(0,H.Z)(function Qt(vn){(0,P.Z)(this,Qt),this._elementRef=vn})}(),"primary"),t=new E.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Lt=new E.OlP("MatFormField"),zt=function(Qt){(0,W.Z)(Vt,Qt);var vn=(0,A.Z)(Vt);function Vt(Jt,Qe,Fe,ne,ye,he,Le){var lt;return(0,P.Z)(this,Vt),(lt=vn.call(this,Jt))._changeDetectorRef=Qe,lt._dir=Fe,lt._defaults=ne,lt._platform=ye,lt._ngZone=he,lt._outlineGapCalculationNeededImmediately=!1,lt._outlineGapCalculationNeededOnStable=!1,lt._destroyed=new v.xQ,lt._hideRequiredMarker=!1,lt._showAlwaysAnimate=!1,lt._subscriptAnimationState="",lt._hintLabel="",lt._hintLabelId="mat-hint-".concat(B++),lt._labelId="mat-form-field-label-".concat(B++),lt.floatLabel=lt._getDefaultFloatLabelState(),lt._animationsEnabled="NoopAnimations"!==Le,lt.appearance=(null==ne?void 0:ne.appearance)||"legacy",ne&&(lt._hideRequiredMarker=Boolean(ne.hideRequiredMarker),ne.color&&(lt.color=lt.defaultColor=ne.color)),lt}return(0,H.Z)(Vt,[{key:"appearance",get:function(){return this._appearance},set:function(Qe){var Fe,ne=this._appearance;this._appearance=Qe||(null===(Fe=this._defaults)||void 0===Fe?void 0:Fe.appearance)||"legacy","outline"===this._appearance&&ne!==Qe&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Qe){this._hideRequiredMarker=(0,R.Ig)(Qe)}},{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(Qe){this._hintLabel=Qe,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Qe){Qe!==this._floatLabel&&(this._floatLabel=Qe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Qe){this._explicitFormFieldControl=Qe}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._validateControlChild();var Fe=this._control;Fe.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Fe.controlType)),Fe.stateChanges.pipe((0,Z.O)(null)).subscribe(function(){Qe._validatePlaceholders(),Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),Fe.ngControl&&Fe.ngControl.valueChanges&&Fe.ngControl.valueChanges.pipe((0,D.R)(this._destroyed)).subscribe(function(){return Qe._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Qe._ngZone.onStable.pipe((0,D.R)(Qe._destroyed)).subscribe(function(){Qe._outlineGapCalculationNeededOnStable&&Qe.updateOutlineGap()})}),(0,x.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Qe._outlineGapCalculationNeededOnStable=!0,Qe._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,Z.O)(null)).subscribe(function(){Qe._processHints(),Qe._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,Z.O)(null)).subscribe(function(){Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,D.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Qe._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Qe.updateOutlineGap()})}):Qe.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(Qe){var Fe=this._control?this._control.ngControl:null;return Fe&&Fe[Qe]}},{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 Qe=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,w.R)(this._label.nativeElement,"transitionend").pipe((0,b.q)(1)).subscribe(function(){Qe._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){this._control.placeholder&&this._placeholderChild}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){this._hintChildren}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var Qe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Qe.push.apply(Qe,(0,G.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Fe=this._hintChildren?this._hintChildren.find(function(ye){return"start"===ye.align}):null,ne=this._hintChildren?this._hintChildren.find(function(ye){return"end"===ye.align}):null;Fe?Qe.push(Fe.id):this._hintLabel&&Qe.push(this._hintLabelId),ne&&Qe.push(ne.id)}else this._errorChildren&&Qe.push.apply(Qe,(0,G.Z)(this._errorChildren.map(function(ye){return ye.id})));this._control.setDescribedByIds(Qe)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Qe=this._label?this._label.nativeElement:null,Fe=this._connectionContainerRef.nativeElement,ne=".mat-form-field-outline-start",ye=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Qe||!Qe.children.length||!Qe.textContent.trim()){for(var he=Fe.querySelectorAll("".concat(ne,", ").concat(ye)),Le=0;Le<he.length;Le++)he[Le].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var lt=0,ut=0,Nt=Fe.querySelectorAll(ne),jt=Fe.querySelectorAll(ye);if(this._label&&this._label.nativeElement.children.length){var sn=Fe.getBoundingClientRect();if(0===sn.width&&0===sn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var yn=this._getStartEnd(sn),ln=Qe.children,Sn=this._getStartEnd(ln[0].getBoundingClientRect()),hn=0,mn=0;mn<ln.length;mn++)hn+=ln[mn].offsetWidth;lt=Math.abs(Sn-yn)-5,ut=hn>0?.75*hn+10:0}for(var At=0;At<Nt.length;At++)Nt[At].style.width="".concat(lt,"px");for(var xt=0;xt<jt.length;xt++)jt[xt].style.width="".concat(ut,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Qe){return this._dir&&"rtl"===this._dir.value?Qe.right:Qe.left}},{key:"_isAttachedToDOM",value:function(){var Qe=this._elementRef.nativeElement;if(Qe.getRootNode){var Fe=Qe.getRootNode();return Fe&&Fe!==Qe}return document.documentElement.contains(Qe)}}]),Vt}(le);zt.\u0275fac=function(vn){return new(vn||zt)(E.Y36(E.SBq),E.Y36(E.sBO),E.Y36(k.Is,8),E.Y36(t,8),E.Y36(M.t4),E.Y36(E.R0b),E.Y36(E.QbO,8))},zt.\u0275cmp=E.Xpm({type:zt,selectors:[["mat-form-field"]],contentQueries:function(vn,Vt,Jt){var Qe;(1&vn&&(E.Suo(Jt,$t,5),E.Suo(Jt,$t,7),E.Suo(Jt,Ve,5),E.Suo(Jt,Ve,7),E.Suo(Jt,at,5),E.Suo(Jt,Dt,5),E.Suo(Jt,_t,5),E.Suo(Jt,ht,5),E.Suo(Jt,Wt,5)),2&vn)&&(E.iGM(Qe=E.CRH())&&(Vt._controlNonStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._controlStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._labelChildNonStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._labelChildStatic=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._placeholderChild=Qe.first),E.iGM(Qe=E.CRH())&&(Vt._errorChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._hintChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._prefixChildren=Qe),E.iGM(Qe=E.CRH())&&(Vt._suffixChildren=Qe))},viewQuery:function(vn,Vt){var Jt;(1&vn&&(E.Gf(N,7),E.Gf(F,5),E.Gf(X,5)),2&vn)&&(E.iGM(Jt=E.CRH())&&(Vt._connectionContainerRef=Jt.first),E.iGM(Jt=E.CRH())&&(Vt._inputContainerRef=Jt.first),E.iGM(Jt=E.CRH())&&(Vt._label=Jt.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(vn,Vt){2&vn&&E.ekj("mat-form-field-appearance-standard","standard"==Vt.appearance)("mat-form-field-appearance-fill","fill"==Vt.appearance)("mat-form-field-appearance-outline","outline"==Vt.appearance)("mat-form-field-appearance-legacy","legacy"==Vt.appearance)("mat-form-field-invalid",Vt._control.errorState)("mat-form-field-can-float",Vt._canLabelFloat())("mat-form-field-should-float",Vt._shouldLabelFloat())("mat-form-field-has-label",Vt._hasFloatingLabel())("mat-form-field-hide-placeholder",Vt._hideControlPlaceholder())("mat-form-field-disabled",Vt._control.disabled)("mat-form-field-autofilled",Vt._control.autofilled)("mat-focused",Vt._control.focused)("ng-untouched",Vt._shouldForward("untouched"))("ng-touched",Vt._shouldForward("touched"))("ng-pristine",Vt._shouldForward("pristine"))("ng-dirty",Vt._shouldForward("dirty"))("ng-valid",Vt._shouldForward("valid"))("ng-invalid",Vt._shouldForward("invalid"))("ng-pending",Vt._shouldForward("pending"))("_mat-animation-noopable",!Vt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[E._Bn([{provide:Lt,useExisting:zt}]),E.qOj],ngContentSelectors:["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(vn,Vt){1&vn&&(E.F$t(ot),E.TgZ(0,"div",0)(1,"div",1,2),E.NdJ("click",function(Qe){return Vt._control.onContainerClick&&Vt._control.onContainerClick(Qe)}),E.YNc(3,$,9,0,"ng-container",3),E.YNc(4,V,2,1,"div",4),E.TgZ(5,"div",5,6),E.Hsn(7),E.TgZ(8,"span",7),E.YNc(9,pe,5,16,"label",8),E.qZA()(),E.YNc(10,fe,2,0,"div",9),E.qZA(),E.YNc(11,ue,2,4,"div",10),E.TgZ(12,"div",11),E.YNc(13,de,2,1,"div",12),E.YNc(14,je,5,2,"div",13),E.qZA()()),2&vn&&(E.xp6(3),E.Q6J("ngIf","outline"==Vt.appearance),E.xp6(1),E.Q6J("ngIf",Vt._prefixChildren.length),E.xp6(5),E.Q6J("ngIf",Vt._hasFloatingLabel()),E.xp6(1),E.Q6J("ngIf",Vt._suffixChildren.length),E.xp6(1),E.Q6J("ngIf","outline"!=Vt.appearance),E.xp6(1),E.Q6J("ngSwitch",Vt._getDisplayedMessages()),E.xp6(1),E.Q6J("ngSwitchCase","error"),E.xp6(1),E.Q6J("ngSwitchCase","hint"))},dependencies:[T.O5,T.RF,T.n9,I.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Ze.transitionMessages]},changeDetection:0});var an=(0,H.Z)(function Qt(){(0,P.Z)(this,Qt)});an.\u0275fac=function(vn){return new(vn||an)},an.\u0275mod=E.oAB({type:an}),an.\u0275inj=E.cJS({imports:[T.ez,j.BQ,I.Q8,j.BQ]})},4107:function(Ae,K,m){"use strict";m.d(K,{LD:function(){return vn},gD:function(){return Qt}});var G=m(3237),W=m(1120),A=m(4902),H=m(7326),P=m(136),I=m(9388),T=m(3144),E=m(5671),j=m(1314),R=m(9808),v=m(5e3),x=m(508),w=m(7322),Z=m(9071),D=m(5664),b=m(3191),S=m(449),k=m(1159),M=m(3075),N=m(8929),F=m(8514),X=m(6787),$=m(1059),V=m(7545),Q=m(2986),te=m(9664),be=m(4850),pe=m(5778),fe=m(7625),ue=m(1777),de=m(226),ge=["trigger"],je=["panel"];function ot(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Vt){var Qe=v.oxw();v.xp6(1),v.Oqu(Qe.placeholder)}}function St(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Vt){var Qe=v.oxw(2);v.xp6(1),v.Oqu(Qe.triggerValue)}}function Tt(Vt,Jt){1&Vt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function Dt(Vt,Jt){if(1&Vt&&(v.TgZ(0,"span",9),v.YNc(1,St,2,1,"span",10),v.YNc(2,Tt,1,0,"ng-content",11),v.qZA()),2&Vt){var Qe=v.oxw();v.Q6J("ngSwitch",!!Qe.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function Rt(Vt,Jt){if(1&Vt){var Qe=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(ye){v.CHM(Qe);var he=v.oxw();return v.KtG(he._panelDoneAnimatingStream.next(ye.toState))})("keydown",function(ye){v.CHM(Qe);var he=v.oxw();return v.KtG(he._handleKeydown(ye))}),v.Hsn(3,1),v.qZA()()}if(2&Vt){var Fe=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",Fe._getPanelTheme(),""),v.Udp("transform-origin",Fe._transformOrigin)("font-size",Fe._triggerFontSize,"px"),v.Q6J("ngClass",Fe.panelClass)("@transformPanel",Fe.multiple?"showing-multiple":"showing"),v.uIk("id",Fe.id+"-panel")("aria-multiselectable",Fe.multiple)("aria-label",Fe.ariaLabel||null)("aria-labelledby",Fe._getPanelAriaLabelledby())}}var Ze=[[["mat-select-trigger"]],"*"],Ft={transformPanelWrap:(0,ue.X$)("transformPanelWrap",[(0,ue.eR)("* => void",(0,ue.IO)("@transformPanel",[(0,ue.pV)()],{optional:!0}))]),transformPanel:(0,ue.X$)("transformPanel",[(0,ue.SB)("void",(0,ue.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ue.SB)("showing",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ue.SB)("showing-multiple",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ue.eR)("void => *",(0,ue.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ue.eR)("* => void",(0,ue.jt)("100ms 25ms linear",(0,ue.oB)({opacity:0})))])};var _t=0,U=new v.OlP("mat-select-scroll-strategy");var qe=new v.OlP("MAT_SELECT_CONFIG"),Be={provide:U,deps:[j.aV],useFactory:function B(Vt){return function(){return Vt.scrollStrategies.reposition()}}},le=(0,T.Z)(function Vt(Jt,Qe){(0,E.Z)(this,Vt),this.source=Jt,this.value=Qe}),t=(0,x.Kr)((0,x.sb)((0,x.Id)((0,x.FD)(function(){return(0,T.Z)(function Vt(Jt,Qe,Fe,ne,ye){(0,E.Z)(this,Vt),this._elementRef=Jt,this._defaultErrorStateMatcher=Qe,this._parentForm=Fe,this._parentFormGroup=ne,this.ngControl=ye,this.stateChanges=new N.xQ})}())))),Lt=new v.OlP("MatSelectTrigger"),zt=(0,T.Z)(function Vt(){(0,E.Z)(this,Vt)});zt.\u0275fac=function(Jt){return new(Jt||zt)},zt.\u0275dir=v.lG2({type:zt,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:Lt,useExisting:zt}])]});var an=function(Vt){(0,P.Z)(Qe,Vt);var Jt=(0,I.Z)(Qe);function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,jt,sn,yn,ln,Sn,hn){var mn,At,xt,tt;return(0,E.Z)(this,Qe),(mn=Jt.call(this,Le,he,ut,Nt,sn))._viewportRuler=Fe,mn._changeDetectorRef=ne,mn._ngZone=ye,mn._dir=lt,mn._parentFormField=jt,mn._liveAnnouncer=Sn,mn._defaultOptions=hn,mn._panelOpen=!1,mn._compareWith=function(Et,We){return Et===We},mn._uid="mat-select-".concat(_t++),mn._triggerAriaLabelledBy=null,mn._destroy=new N.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(_t++),mn._panelDoneAnimatingStream=new N.xQ,mn._overlayPanelClass=(null===(At=mn._defaultOptions)||void 0===At?void 0:At.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(tt=null===(xt=mn._defaultOptions)||void 0===xt?void 0:xt.disableOptionCentering)&&void 0!==tt&&tt,mn.ariaLabel="",mn.optionSelectionChanges=(0,F.P)(function(){var Et=mn.options;return Et?Et.changes.pipe((0,$.O)(Et),(0,V.w)(function(){return X.T.apply(void 0,(0,A.Z)(Et.map(function(We){return We.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,Q.q)(1),(0,V.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new v.vpe,mn._openedStream=mn.openedChange.pipe((0,te.h)(function(Et){return Et}),(0,be.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,te.h)(function(Et){return!Et}),(0,be.U)(function(){})),mn.selectionChange=new v.vpe,mn.valueChange=new v.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,H.Z)(mn)),null!=(null==hn?void 0:hn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=hn.typeaheadDebounceInterval),mn._scrollStrategyFactory=ln,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(yn)||0,mn.id=mn.id,mn}return(0,T.Z)(Qe,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(ne){this._placeholder=ne,this.stateChanges.next()}},{key:"required",get:function(){var ne,ye,he,Le;return null!==(Le=null!==(ne=this._required)&&void 0!==ne?ne:null===(he=null===(ye=this.ngControl)||void 0===ye?void 0:ye.control)||void 0===he?void 0:he.hasValidator(M.kI.required))&&void 0!==Le&&Le},set:function(ne){this._required=(0,b.Ig)(ne),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ne){this._selectionModel,this._multiple=(0,b.Ig)(ne)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ne){this._disableOptionCentering=(0,b.Ig)(ne)}},{key:"compareWith",get:function(){return this._compareWith},set:function(ne){this._compareWith=ne,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(ne){this._assignValue(ne)&&this._onChange(ne)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(ne){this._typeaheadDebounceInterval=(0,b.su)(ne)}},{key:"id",get:function(){return this._id},set:function(ne){this._id=ne||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var ne=this;this._selectionModel=new S.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,pe.x)(),(0,fe.R)(this._destroy)).subscribe(function(){return ne._panelDoneAnimating(ne.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var ne=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,fe.R)(this._destroy)).subscribe(function(ye){ye.added.forEach(function(he){return he.select()}),ye.removed.forEach(function(he){return he.deselect()})}),this.options.changes.pipe((0,$.O)(null),(0,fe.R)(this._destroy)).subscribe(function(){ne._resetOptions(),ne._initializeSelection()})}},{key:"ngDoCheck",value:function(){var ne=this._getTriggerAriaLabelledby(),ye=this.ngControl;if(ne!==this._triggerAriaLabelledBy){var he=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ne,ne?he.setAttribute("aria-labelledby",ne):he.removeAttribute("aria-labelledby")}ye&&(this._previousControl!==ye.control&&(void 0!==this._previousControl&&null!==ye.disabled&&ye.disabled!==this.disabled&&(this.disabled=ye.disabled),this._previousControl=ye.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(ne){(ne.disabled||ne.userAriaDescribedBy)&&this.stateChanges.next(),ne.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(ne){this._assignValue(ne)}},{key:"registerOnChange",value:function(ne){this._onChange=ne}},{key:"registerOnTouched",value:function(ne){this._onTouched=ne}},{key:"setDisabledState",value:function(ne){this.disabled=ne,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var ne,ye;return this.multiple?(null===(ne=this._selectionModel)||void 0===ne?void 0:ne.selected)||[]:null===(ye=this._selectionModel)||void 0===ye?void 0:ye.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var ne=this._selectionModel.selected.map(function(ye){return ye.viewValue});return this._isRtl()&&ne.reverse(),ne.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(ne){this.disabled||(this.panelOpen?this._handleOpenKeydown(ne):this._handleClosedKeydown(ne))}},{key:"_handleClosedKeydown",value:function(ne){var ye=ne.keyCode,he=ye===k.JH||ye===k.LH||ye===k.oh||ye===k.SV,Le=ye===k.K5||ye===k.L_,lt=this._keyManager;if(!lt.isTyping()&&Le&&!(0,k.Vb)(ne)||(this.multiple||ne.altKey)&&he)ne.preventDefault(),this.open();else if(!this.multiple){var ut=this.selected;lt.onKeydown(ne);var Nt=this.selected;Nt&&ut!==Nt&&this._liveAnnouncer.announce(Nt.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(ne){var ye=this._keyManager,he=ne.keyCode,Le=he===k.JH||he===k.LH,lt=ye.isTyping();if(Le&&ne.altKey)ne.preventDefault(),this.close();else if(lt||he!==k.K5&&he!==k.L_||!ye.activeItem||(0,k.Vb)(ne))if(!lt&&this._multiple&&he===k.A&&ne.ctrlKey){ne.preventDefault();var ut=this.options.some(function(jt){return!jt.disabled&&!jt.selected});this.options.forEach(function(jt){jt.disabled||(ut?jt.select():jt.deselect())})}else{var Nt=ye.activeItemIndex;ye.onKeydown(ne),this._multiple&&Le&&ne.shiftKey&&ye.activeItem&&ye.activeItemIndex!==Nt&&ye.activeItem._selectViaInteraction()}else ne.preventDefault(),ye.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 ne=this;this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(function(){ne._changeDetectorRef.detectChanges(),ne._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 ne=this;Promise.resolve().then(function(){ne.ngControl&&(ne._value=ne.ngControl.value),ne._setSelectionByValue(ne._value),ne.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(ne){var ye=this;if(this._selectionModel.selected.forEach(function(Le){return Le.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&ne)Array.isArray(ne),ne.forEach(function(Le){return ye._selectOptionByValue(Le)}),this._sortValues();else{var he=this._selectOptionByValue(ne);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(ne){var ye=this,he=this.options.find(function(Le){if(ye._selectionModel.isSelected(Le))return!1;try{return null!=Le.value&&ye._compareWith(Le.value,ne)}catch(lt){return!1}});return he&&this._selectionModel.select(he),he}},{key:"_assignValue",value:function(ne){return!!(ne!==this._value||this._multiple&&Array.isArray(ne))&&(this.options&&this._setSelectionByValue(ne),this._value=ne,!0)}},{key:"_initKeyManager",value:function(){var ne=this;this._keyManager=new D.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,fe.R)(this._destroy)).subscribe(function(){ne.panelOpen&&(!ne.multiple&&ne._keyManager.activeItem&&ne._keyManager.activeItem._selectViaInteraction(),ne.focus(),ne.close())}),this._keyManager.change.pipe((0,fe.R)(this._destroy)).subscribe(function(){ne._panelOpen&&ne.panel?ne._scrollOptionIntoView(ne._keyManager.activeItemIndex||0):!ne._panelOpen&&!ne.multiple&&ne._keyManager.activeItem&&ne._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var ne=this,ye=(0,X.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,fe.R)(ye)).subscribe(function(he){ne._onSelect(he.source,he.isUserInput),he.isUserInput&&!ne.multiple&&ne._panelOpen&&(ne.close(),ne.focus())}),X.T.apply(void 0,(0,A.Z)(this.options.map(function(he){return he._stateChanges}))).pipe((0,fe.R)(ye)).subscribe(function(){ne._changeDetectorRef.markForCheck(),ne.stateChanges.next()})}},{key:"_onSelect",value:function(ne,ye){var he=this._selectionModel.isSelected(ne);null!=ne.value||this._multiple?(he!==ne.selected&&(ne.selected?this._selectionModel.select(ne):this._selectionModel.deselect(ne)),ye&&this._keyManager.setActiveItem(ne),this.multiple&&(this._sortValues(),ye&&this.focus())):(ne.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ne.value)),he!==this._selectionModel.isSelected(ne)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var ne=this;if(this.multiple){var ye=this.options.toArray();this._selectionModel.sort(function(he,Le){return ne.sortComparator?ne.sortComparator(he,Le,ye):ye.indexOf(he)-ye.indexOf(Le)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(ne){var ye=null;ye=this.multiple?this.selected.map(function(he){return he.value}):this.selected?this.selected.value:ne,this._value=ye,this.valueChange.emit(ye),this._onChange(ye),this.selectionChange.emit(this._getChangeEvent(ye)),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 ne;return!this._panelOpen&&!this.disabled&&(null===(ne=this.options)||void 0===ne?void 0:ne.length)>0}},{key:"focus",value:function(ne){this._elementRef.nativeElement.focus(ne)}},{key:"_getPanelAriaLabelledby",value:function(){var ne;if(this.ariaLabel)return null;var ye=null===(ne=this._parentFormField)||void 0===ne?void 0:ne.getLabelId(),he=ye?ye+" ":"";return this.ariaLabelledby?he+this.ariaLabelledby:ye}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var ne;if(this.ariaLabel)return null;var ye=null===(ne=this._parentFormField)||void 0===ne?void 0:ne.getLabelId(),he=(ye?ye+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}},{key:"_panelDoneAnimating",value:function(ne){this.openedChange.emit(ne)}},{key:"setDescribedByIds",value:function(ne){ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),Qe}(t);an.\u0275fac=function(Jt){return new(Jt||an)(v.Y36(Z.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(x.rD),v.Y36(v.SBq),v.Y36(de.Is,8),v.Y36(M.F,8),v.Y36(M.sg,8),v.Y36(w.G_,8),v.Y36(M.a5,10),v.$8M("tabindex"),v.Y36(U),v.Y36(D.Kd),v.Y36(qe,8))},an.\u0275dir=v.lG2({type:an,viewQuery:function(Jt,Qe){var Fe;(1&Jt&&(v.Gf(ge,5),v.Gf(je,5),v.Gf(j.pI,5)),2&Jt)&&(v.iGM(Fe=v.CRH())&&(Qe.trigger=Fe.first),v.iGM(Fe=v.CRH())&&(Qe.panel=Fe.first),v.iGM(Fe=v.CRH())&&(Qe._overlayDir=Fe.first))},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]});var Qt=function(Vt){(0,P.Z)(Qe,Vt);var Jt=(0,I.Z)(Qe);function Qe(){var Fe;return(0,E.Z)(this,Qe),(Fe=Jt.apply(this,arguments))._scrollTop=0,Fe._triggerFontSize=0,Fe._transformOrigin="top",Fe._offsetY=0,Fe._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Fe}return(0,T.Z)(Qe,[{key:"_calculateOverlayScroll",value:function(ne,ye,he){var Le=this._getItemHeight(),Nt=Le*ne-ye+Le/2;return Math.min(Math.max(0,Nt),he)}},{key:"ngOnInit",value:function(){var ne=this;(0,G.Z)((0,W.Z)(Qe.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,fe.R)(this._destroy)).subscribe(function(){ne.panelOpen&&(ne._triggerRect=ne.trigger.nativeElement.getBoundingClientRect(),ne._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var ne=this;(0,G.Z)((0,W.Z)(Qe.prototype),"_canOpen",this).call(this)&&((0,G.Z)((0,W.Z)(Qe.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((0,Q.q)(1)).subscribe(function(){ne._triggerFontSize&&ne._overlayDir.overlayRef&&ne._overlayDir.overlayRef.overlayElement&&(ne._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(ne._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(ne){var ye=(0,x.CB)(ne,this.options,this.optionGroups),he=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ne&&1===ye?0:(0,x.jH)((ne+ye)*he,he,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(ne){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,G.Z)((0,W.Z)(Qe.prototype),"_panelDoneAnimating",this).call(this,ne)}},{key:"_getChangeEvent",value:function(ne){return new le(this,ne)}},{key:"_calculateOverlayOffsetX",value:function(){var lt,ne=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ye=this._viewportRuler.getViewportSize(),he=this._isRtl(),Le=this.multiple?56:32;if(this.multiple)lt=40;else if(this.disableOptionCentering)lt=16;else{var ut=this._selectionModel.selected[0]||this.options.first;lt=ut&&ut.group?32:16}he||(lt*=-1);var Nt=0-(ne.left+lt-(he?Le:0)),jt=ne.right+lt-ye.width+(he?0:Le);Nt>0?lt+=Nt+8:jt>0&&(lt-=jt+8),this._overlayDir.offsetX=Math.round(lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(ne,ye,he){var Nt,Le=this._getItemHeight(),lt=(Le-this._triggerRect.height)/2,ut=Math.floor(256/Le);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)Nt=ne*Le;else if(this._scrollTop===he){Nt=(ne-(this._getItemCount()-ut))*Le+(Le-(this._getItemCount()*Le-256)%Le)}else Nt=ye-Le/2;return Math.round(-1*Nt-lt)}},{key:"_checkOverlayWithinViewport",value:function(ne){var ye=this._getItemHeight(),he=this._viewportRuler.getViewportSize(),Le=this._triggerRect.top-8,lt=he.height-this._triggerRect.bottom-8,ut=Math.abs(this._offsetY),jt=Math.min(this._getItemCount()*ye,256)-ut-this._triggerRect.height;jt>lt?this._adjustPanelUp(jt,lt):ut>Le?this._adjustPanelDown(ut,Le,ne):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(ne,ye){var he=Math.round(ne-ye);this._scrollTop-=he,this._offsetY-=he,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(ne,ye,he){var Le=Math.round(ne-ye);if(this._scrollTop+=Le,this._offsetY+=Le,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=he)return this._scrollTop=he,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var ut,ne=this._getItemHeight(),ye=this._getItemCount(),he=Math.min(ye*ne,256),lt=ye*ne-he;ut=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ut+=(0,x.CB)(ut,this.options,this.optionGroups);var Nt=he/2;this._scrollTop=this._calculateOverlayScroll(ut,Nt,lt),this._offsetY=this._calculateOverlayOffsetY(ut,Nt,lt),this._checkOverlayWithinViewport(lt)}},{key:"_getOriginBasedOnOption",value:function(){var ne=this._getItemHeight(),ye=(ne-this._triggerRect.height)/2,he=Math.abs(this._offsetY)-ye+ne/2;return"50% ".concat(he,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),Qe}(an);Qt.\u0275fac=function(){var Vt;return function(Qe){return(Vt||(Vt=v.n5z(Qt)))(Qe||Qt)}}(),Qt.\u0275cmp=v.Xpm({type:Qt,selectors:[["mat-select"]],contentQueries:function(Jt,Qe,Fe){var ne;(1&Jt&&(v.Suo(Fe,Lt,5),v.Suo(Fe,x.ey,5),v.Suo(Fe,x.K7,5)),2&Jt)&&(v.iGM(ne=v.CRH())&&(Qe.customTrigger=ne.first),v.iGM(ne=v.CRH())&&(Qe.options=ne),v.iGM(ne=v.CRH())&&(Qe.optionGroups=ne))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(Jt,Qe){1&Jt&&v.NdJ("keydown",function(ne){return Qe._handleKeydown(ne)})("focus",function(){return Qe._onFocus()})("blur",function(){return Qe._onBlur()}),2&Jt&&(v.uIk("id",Qe.id)("tabindex",Qe.tabIndex)("aria-controls",Qe.panelOpen?Qe.id+"-panel":null)("aria-expanded",Qe.panelOpen)("aria-label",Qe.ariaLabel||null)("aria-required",Qe.required.toString())("aria-disabled",Qe.disabled.toString())("aria-invalid",Qe.errorState)("aria-activedescendant",Qe._getAriaActiveDescendant()),v.ekj("mat-select-disabled",Qe.disabled)("mat-select-invalid",Qe.errorState)("mat-select-required",Qe.required)("mat-select-empty",Qe.empty)("mat-select-multiple",Qe.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:w.Eo,useExisting:Qt},{provide:x.HF,useExisting:Qt}]),v.qOj],ngContentSelectors:["mat-select-trigger","*"],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(Jt,Qe){if(1&Jt&&(v.F$t(Ze),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return Qe.toggle()}),v.TgZ(3,"div",2),v.YNc(4,ot,2,1,"span",3),v.YNc(5,Dt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,Rt,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return Qe.close()})("attach",function(){return Qe._onAttached()})("detach",function(){return Qe.close()})),2&Jt){var Fe=v.MAs(1);v.uIk("aria-owns",Qe.panelOpen?Qe.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",Qe.empty),v.uIk("id",Qe._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",Qe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Qe._scrollStrategy)("cdkConnectedOverlayOrigin",Fe)("cdkConnectedOverlayOpen",Qe.panelOpen)("cdkConnectedOverlayPositions",Qe._positions)("cdkConnectedOverlayMinWidth",null==Qe._triggerRect?null:Qe._triggerRect.width)("cdkConnectedOverlayOffsetY",Qe._offsetY)}},dependencies:[R.mk,R.RF,R.n9,R.ED,j.pI,j.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ft.transformPanelWrap,Ft.transformPanel]},changeDetection:0});var vn=(0,T.Z)(function Vt(){(0,E.Z)(this,Vt)});vn.\u0275fac=function(Jt){return new(Jt||vn)},vn.\u0275mod=v.oAB({type:vn}),vn.\u0275inj=v.cJS({providers:[Be],imports:[R.ez,j.U8,x.Ng,x.BQ,Z.ZD,w.lN,x.Ng,x.BQ]})},3251:function(Ae,K,m){"use strict";m.d(K,{BU:function(){return Ye},Nh:function(){return Un},Nj:function(){return vt},SP:function(){return tt},uD:function(){return Qt},uX:function(){return Jt}});var G=m(7326),W=m(4902),A=m(3237),H=m(1120),P=m(136),I=m(9388),T=m(5671),E=m(3144),j=m(5664),R=m(7144),v=m(7429),x=m(9808),w=m(5e3),Z=m(508),D=m(2986),b=m(1059),S=m(5778),k=m(7625),M=m(7545),N=m(1307),F=m(9664),X=m(8929),$=m(4096),V=m(3753),Q=m(1086),te=m(6787),be=m(8896),pe=m(7451),fe=m(8723),ue=m(1777),de=m(226),ge=m(3191),je=m(1159),ot=m(925),St=m(9071);function Tt(Kt,yt){1&Kt&&w.Hsn(0)}var Dt=["*"];function Rt(Kt,yt){}var Ze=function(yt){return{animationDuration:yt}},$t=function(yt,et){return{value:yt,params:et}},Ft=["tabListContainer"],pn=["tabList"],rt=["tabListInner"],Ot=["nextPaginator"],_t=["previousPaginator"],Ct=["tabBodyWrapper"],Ve=["tabHeader"];function at(Kt,yt){}function ht(Kt,yt){if(1&Kt&&w.YNc(0,at,0,0,"ng-template",10),2&Kt){var et=w.oxw().$implicit;w.Q6J("cdkPortalOutlet",et.templateLabel)}}function Ut(Kt,yt){if(1&Kt&&w._uU(0),2&Kt){var et=w.oxw().$implicit;w.Oqu(et.textLabel)}}function Wt(Kt,yt){if(1&Kt){var et=w.EpF();w.TgZ(0,"div",6),w.NdJ("click",function(){var Vn=w.CHM(et),ir=Vn.$implicit,Pr=Vn.index,yi=w.oxw(),zi=w.MAs(1);return w.KtG(yi._handleClick(ir,zi,Pr))})("cdkFocusChange",function(Vn){var Pr=w.CHM(et).index,yi=w.oxw();return w.KtG(yi._tabFocusChanged(Vn,Pr))}),w.TgZ(1,"div",7),w.YNc(2,ht,1,1,"ng-template",8),w.YNc(3,Ut,1,1,"ng-template",null,9,w.W1O),w.qZA()()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=w.MAs(4),Hn=w.oxw();w.ekj("mat-tab-label-active",Hn.selectedIndex===wt),w.Q6J("id",Hn._getTabLabelId(wt))("ngClass",gt.labelClass)("disabled",gt.disabled)("matRippleDisabled",gt.disabled||Hn.disableRipple),w.uIk("tabIndex",Hn._getTabIndex(gt,wt))("aria-posinset",wt+1)("aria-setsize",Hn._tabs.length)("aria-controls",Hn._getTabContentId(wt))("aria-selected",Hn.selectedIndex===wt)("aria-label",gt.ariaLabel||null)("aria-labelledby",!gt.ariaLabel&&gt.ariaLabelledby?gt.ariaLabelledby:null),w.xp6(2),w.Q6J("ngIf",gt.templateLabel)("ngIfElse",nn)}}function U(Kt,yt){if(1&Kt){var et=w.EpF();w.TgZ(0,"mat-tab-body",11),w.NdJ("_onCentered",function(){w.CHM(et);var Wn=w.oxw();return w.KtG(Wn._removeTabBodyWrapperHeight())})("_onCentering",function(Wn){w.CHM(et);var Vn=w.oxw();return w.KtG(Vn._setTabBodyWrapperHeight(Wn))}),w.qZA()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=w.oxw();w.ekj("mat-tab-body-active",nn.selectedIndex===wt),w.Q6J("id",nn._getTabContentId(wt))("ngClass",gt.bodyClass)("content",gt.content)("position",gt.position)("origin",gt.origin)("animationDuration",nn.animationDuration)("preserveContent",nn.preserveContent),w.uIk("tabindex",null!=nn.contentTabIndex&&nn.selectedIndex===wt?nn.contentTabIndex:null)("aria-labelledby",nn._getTabLabelId(wt))}}var qe=new w.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Be(){return function(et){return{left:et?(et.offsetLeft||0)+"px":"0",width:et?(et.offsetWidth||0)+"px":"0"}}}});var le=function(){function Kt(yt,et,gt,wt){(0,T.Z)(this,Kt),this._elementRef=yt,this._ngZone=et,this._inkBarPositioner=gt,this._animationMode=wt}return(0,E.Z)(Kt,[{key:"alignToElement",value:function(et){var gt=this;this.show(),this._ngZone.run(function(){gt._ngZone.onStable.pipe((0,D.q)(1)).subscribe(function(){var wt=gt._inkBarPositioner(et),nn=gt._elementRef.nativeElement;nn.style.left=wt.left,nn.style.width=wt.width})})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),Kt}();le.\u0275fac=function(yt){return new(yt||le)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(qe),w.Y36(w.QbO,8))},le.\u0275dir=w.lG2({type:le,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(yt,et){2&yt&&w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)}});var t=new w.OlP("MatTabContent"),Lt=(0,E.Z)(function Kt(yt){(0,T.Z)(this,Kt),this.template=yt});Lt.\u0275fac=function(yt){return new(yt||Lt)(w.Y36(w.Rgc))},Lt.\u0275dir=w.lG2({type:Lt,selectors:[["","matTabContent",""]],features:[w._Bn([{provide:t,useExisting:Lt}])]});var zt=new w.OlP("MatTabLabel"),an=new w.OlP("MAT_TAB"),Qt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn){var Hn;return(0,T.Z)(this,et),(Hn=yt.call(this,gt,wt))._closestTab=nn,Hn}return(0,E.Z)(et)}(v.ig);Qt.\u0275fac=function(yt){return new(yt||Qt)(w.Y36(w.Rgc),w.Y36(w.s_b),w.Y36(an,8))},Qt.\u0275dir=w.lG2({type:Qt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[w._Bn([{provide:zt,useExisting:Qt}]),w.qOj]});var vn=(0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()),Vt=new w.OlP("MAT_TAB_GROUP"),Jt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt){var nn;return(0,T.Z)(this,et),(nn=yt.call(this))._viewContainerRef=gt,nn._closestTabGroup=wt,nn.textLabel="",nn._contentPortal=null,nn._stateChanges=new X.xQ,nn.position=null,nn.origin=null,nn.isActive=!1,nn}return(0,E.Z)(et,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(wt){this._setTemplateLabelInput(wt)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(wt){(wt.hasOwnProperty("textLabel")||wt.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(wt){wt&&wt._closestTab===this&&(this._templateLabel=wt)}}]),et}(vn);Jt.\u0275fac=function(yt){return new(yt||Jt)(w.Y36(w.s_b),w.Y36(Vt,8))},Jt.\u0275cmp=w.Xpm({type:Jt,selectors:[["mat-tab"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&(w.Suo(gt,zt,5),w.Suo(gt,t,7,w.Rgc)),2&yt)&&(w.iGM(wt=w.CRH())&&(et.templateLabel=wt.first),w.iGM(wt=w.CRH())&&(et._explicitContent=wt.first))},viewQuery:function(yt,et){var gt;(1&yt&&w.Gf(w.Rgc,7),2&yt)&&(w.iGM(gt=w.CRH())&&(et._implicitContent=gt.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[w._Bn([{provide:an,useExisting:Jt}]),w.qOj,w.TTD],ngContentSelectors:Dt,decls:1,vars:0,template:function(yt,et){1&yt&&(w.F$t(),w.YNc(0,Tt,1,0,"ng-template"))},encapsulation:2});var Qe={translateTab:(0,ue.X$)("translateTab",[(0,ue.SB)("center, void, left-origin-center, right-origin-center",(0,ue.oB)({transform:"none"})),(0,ue.SB)("left",(0,ue.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ue.SB)("right",(0,ue.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ue.eR)("* => left, * => right, left => center, right => center",(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ue.eR)("void => left-origin-center",[(0,ue.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ue.eR)("void => right-origin-center",[(0,ue.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Fe=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn){var Wn;return(0,T.Z)(this,et),(Wn=yt.call(this,gt,wt,Hn))._host=nn,Wn._centeringSub=$.w.EMPTY,Wn._leavingSub=$.w.EMPTY,Wn}return(0,E.Z)(et,[{key:"ngOnInit",value:function(){var wt=this;(0,A.Z)((0,H.Z)(et.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(nn){nn&&!wt.hasAttached()&&wt.attach(wt._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){wt._host.preserveContent||wt.detach()})}},{key:"ngOnDestroy",value:function(){(0,A.Z)((0,H.Z)(et.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),et}(v.Pl);Fe.\u0275fac=function(yt){return new(yt||Fe)(w.Y36(w._Vd),w.Y36(w.s_b),w.Y36((0,w.Gpc)(function(){return ye})),w.Y36(x.K0))},Fe.\u0275dir=w.lG2({type:Fe,selectors:[["","matTabBodyHost",""]],features:[w.qOj]});var ne=function(){function Kt(yt,et,gt){var wt=this;(0,T.Z)(this,Kt),this._elementRef=yt,this._dir=et,this._dirChangeSubscription=$.w.EMPTY,this._translateTabComplete=new X.xQ,this._onCentering=new w.vpe,this._beforeCentering=new w.vpe,this._afterLeavingCenter=new w.vpe,this._onCentered=new w.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,et&&(this._dirChangeSubscription=et.change.subscribe(function(nn){wt._computePositionAnimationState(nn),gt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)(function(nn,Hn){return nn.fromState===Hn.fromState&&nn.toState===Hn.toState})).subscribe(function(nn){wt._isCenterPosition(nn.toState)&&wt._isCenterPosition(wt._position)&&wt._onCentered.emit(),wt._isCenterPosition(nn.fromState)&&!wt._isCenterPosition(wt._position)&&wt._afterLeavingCenter.emit()})}return(0,E.Z)(Kt,[{key:"position",set:function(et){this._positionIndex=et,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(et){var gt=this._isCenterPosition(et.toState);this._beforeCentering.emit(gt),gt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(et){return"center"==et||"left-origin-center"==et||"right-origin-center"==et}},{key:"_computePositionAnimationState",value:function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==et?"left":"right":this._positionIndex>0?this._position="ltr"==et?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function(et){var gt=this._getLayoutDirection();return"ltr"==gt&&et<=0||"rtl"==gt&&et>0?"left-origin-center":"right-origin-center"}}]),Kt}();ne.\u0275fac=function(yt){return new(yt||ne)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.sBO))},ne.\u0275dir=w.lG2({type:ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var ye=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn)}return(0,E.Z)(et)}(ne);ye.\u0275fac=function(yt){return new(yt||ye)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.sBO))},ye.\u0275cmp=w.Xpm({type:ye,selectors:[["mat-tab-body"]],viewQuery:function(yt,et){var gt;(1&yt&&w.Gf(v.Pl,5),2&yt)&&(w.iGM(gt=w.CRH())&&(et._portalHost=gt.first))},hostAttrs:[1,"mat-tab-body"],features:[w.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(yt,et){1&yt&&(w.TgZ(0,"div",0,1),w.NdJ("@translateTab.start",function(wt){return et._onTranslateTabStarted(wt)})("@translateTab.done",function(wt){return et._translateTabComplete.next(wt)}),w.YNc(2,Rt,0,0,"ng-template",2),w.qZA()),2&yt&&w.Q6J("@translateTab",w.WLB(3,$t,et._position,w.VKq(1,Ze,et.animationDuration)))},dependencies:[Fe],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Qe.translateTab]}});var he=new w.OlP("MAT_TABS_CONFIG"),lt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt){var wt;return(0,T.Z)(this,et),(wt=yt.call(this)).elementRef=gt,wt}return(0,E.Z)(et,[{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}}]),et}((0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()));lt.\u0275fac=function(yt){return new(yt||lt)(w.Y36(w.SBq))},lt.\u0275dir=w.lG2({type:lt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(yt,et){2&yt&&(w.uIk("aria-disabled",!!et.disabled),w.ekj("mat-tab-disabled",et.disabled))},inputs:{disabled:"disabled"},features:[w.qOj]});var ut=(0,ot.i$)({passive:!0}),yn=function(){function Kt(yt,et,gt,wt,nn,Hn,Wn){var Vn=this;(0,T.Z)(this,Kt),this._elementRef=yt,this._changeDetectorRef=et,this._viewportRuler=gt,this._dir=wt,this._ngZone=nn,this._platform=Hn,this._animationMode=Wn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new X.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new X.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new w.vpe,this.indexFocused=new w.vpe,nn.runOutsideAngular(function(){(0,V.R)(yt.nativeElement,"mouseleave").pipe((0,k.R)(Vn._destroyed)).subscribe(function(){Vn._stopInterval()})})}return(0,E.Z)(Kt,[{key:"disablePagination",get:function(){return this._disablePagination},set:function(et){this._disablePagination=(0,ge.Ig)(et)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(et){et=(0,ge.su)(et),this._selectedIndex!=et&&(this._selectedIndexChanged=!0,this._selectedIndex=et,this._keyManager&&this._keyManager.updateActiveItem(et))}},{key:"ngAfterViewInit",value:function(){var et=this;(0,V.R)(this._previousPaginator.nativeElement,"touchstart",ut).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._handlePaginatorPress("before")}),(0,V.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var et=this,gt=this._dir?this._dir.change:(0,Q.of)("ltr"),wt=this._viewportRuler.change(150),nn=function(){et.updatePagination(),et._alignInkBarToSelectedTab()};this._keyManager=new j.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(nn),(0,te.T)(gt,wt,this._items.changes,this._itemsResized()).pipe((0,k.R)(this._destroyed)).subscribe(function(){et._ngZone.run(function(){Promise.resolve().then(function(){et._scrollDistance=Math.max(0,Math.min(et._getMaxScrollDistance(),et._scrollDistance)),nn()})}),et._keyManager.withHorizontalOrientation(et._getLayoutDirection())}),this._keyManager.change.pipe((0,k.R)(this._destroyed)).subscribe(function(Hn){et.indexFocused.emit(Hn),et._setTabFocus(Hn)})}},{key:"_itemsResized",value:function(){var et=this;return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,b.O)(this._items),(0,M.w)(function(gt){return new pe.y(function(wt){return et._ngZone.runOutsideAngular(function(){var nn=new ResizeObserver(function(Hn){return wt.next(Hn)});return gt.forEach(function(Hn){return nn.observe(Hn.elementRef.nativeElement)}),function(){nn.disconnect()}})})}),(0,N.T)(1),(0,F.h)(function(gt){return gt.some(function(wt){return wt.contentRect.width>0&&wt.contentRect.height>0})}))}},{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(et){if(!(0,je.Vb)(et))switch(et.keyCode){case je.K5:case je.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(et));break;default:this._keyManager.onKeydown(et)}}},{key:"_onContentChanges",value:function(){var et=this,gt=this._elementRef.nativeElement.textContent;gt!==this._currentTextContent&&(this._currentTextContent=gt||"",this._ngZone.run(function(){et.updatePagination(),et._alignInkBarToSelectedTab(),et._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(et){!this._isValidIndex(et)||this.focusIndex===et||!this._keyManager||this._keyManager.setActiveItem(et)}},{key:"_isValidIndex",value:function(et){if(!this._items)return!0;var gt=this._items?this._items.toArray()[et]:null;return!!gt&&!gt.disabled}},{key:"_setTabFocus",value:function(et){if(this._showPaginationControls&&this._scrollToLabel(et),this._items&&this._items.length){this._items.toArray()[et].focus();var gt=this._tabListContainer.nativeElement,wt=this._getLayoutDirection();gt.scrollLeft="ltr"==wt?0:gt.scrollWidth-gt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var et=this.scrollDistance,gt="ltr"===this._getLayoutDirection()?-et:et;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(gt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(et){this._scrollTo(et)}},{key:"_scrollHeader",value:function(et){var wt=("before"==et?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+wt)}},{key:"_handlePaginatorClick",value:function(et){this._stopInterval(),this._scrollHeader(et)}},{key:"_scrollToLabel",value:function(et){if(!this.disablePagination){var gt=this._items?this._items.toArray()[et]:null;if(gt){var Vn,ir,wt=this._tabListContainer.nativeElement.offsetWidth,nn=gt.elementRef.nativeElement,Hn=nn.offsetLeft,Wn=nn.offsetWidth;"ltr"==this._getLayoutDirection()?ir=(Vn=Hn)+Wn:Vn=(ir=this._tabListInner.nativeElement.offsetWidth-Hn)-Wn;var Pr=this.scrollDistance,yi=this.scrollDistance+wt;Vn<Pr?this.scrollDistance-=Pr-Vn+60:ir>yi&&(this.scrollDistance+=ir-yi+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var et=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;et||(this.scrollDistance=0),et!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=et}}},{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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var et=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,gt=et?et.elementRef.nativeElement:null;gt?this._inkBar.alignToElement(gt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(et,gt){var wt=this;gt&&null!=gt.button&&0!==gt.button||(this._stopInterval(),(0,fe.H)(650,100).pipe((0,k.R)((0,te.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var nn=wt._scrollHeader(et),Hn=nn.maxScrollDistance,Wn=nn.distance;(0===Wn||Wn>=Hn)&&wt._stopInterval()}))}},{key:"_scrollTo",value:function(et){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var gt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(gt,et)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:gt,distance:this._scrollDistance}}}]),Kt}();yn.\u0275fac=function(yt){return new(yt||yn)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},yn.\u0275dir=w.lG2({type:yn,inputs:{disablePagination:"disablePagination"}});var ln=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){var Pr;return(0,T.Z)(this,et),(Pr=yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir))._disableRipple=!1,Pr}return(0,E.Z)(et,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(wt){this._disableRipple=(0,ge.Ig)(wt)}},{key:"_itemSelected",value:function(wt){wt.preventDefault()}}]),et}(yn);ln.\u0275fac=function(yt){return new(yt||ln)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},ln.\u0275dir=w.lG2({type:ln,inputs:{disableRipple:"disableRipple"},features:[w.qOj]});var Sn=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir)}return(0,E.Z)(et)}(ln);Sn.\u0275fac=function(yt){return new(yt||Sn)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(w.QbO,8))},Sn.\u0275cmp=w.Xpm({type:Sn,selectors:[["mat-tab-header"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,lt,4),2&yt)&&(w.iGM(wt=w.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(le,7),w.Gf(Ft,7),w.Gf(pn,7),w.Gf(rt,7),w.Gf(Ot,5),w.Gf(_t,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._inkBar=gt.first),w.iGM(gt=w.CRH())&&(et._tabListContainer=gt.first),w.iGM(gt=w.CRH())&&(et._tabList=gt.first),w.iGM(gt=w.CRH())&&(et._tabListInner=gt.first),w.iGM(gt=w.CRH())&&(et._nextPaginator=gt.first),w.iGM(gt=w.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(yt,et){2&yt&&w.ekj("mat-tab-header-pagination-controls-enabled",et._showPaginationControls)("mat-tab-header-rtl","rtl"==et._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[w.qOj],ngContentSelectors:Dt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(yt,et){1&yt&&(w.F$t(),w.TgZ(0,"button",0,1),w.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),w._UZ(2,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),w.TgZ(5,"div",5,6),w.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),w.TgZ(7,"div",7,8),w.Hsn(9),w.qZA(),w._UZ(10,"mat-ink-bar"),w.qZA()(),w.TgZ(11,"button",9,10),w.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),w._UZ(13,"div",2),w.qZA()),2&yt&&(w.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),w.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),w.xp6(5),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(6),w.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),w.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[Z.wG,R.wD,le],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.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}.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}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2});var hn=0,mn=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)}),xt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn){var Wn,Vn;return(0,T.Z)(this,et),(Wn=yt.call(this,gt))._changeDetectorRef=wt,Wn._animationMode=Hn,Wn._tabs=new w.n_E,Wn._indexToSelect=0,Wn._lastFocusedTabIndex=null,Wn._tabBodyWrapperHeight=0,Wn._tabsSubscription=$.w.EMPTY,Wn._tabLabelSubscription=$.w.EMPTY,Wn._dynamicHeight=!1,Wn._selectedIndex=null,Wn.headerPosition="above",Wn._disablePagination=!1,Wn._preserveContent=!1,Wn.selectedIndexChange=new w.vpe,Wn.focusChange=new w.vpe,Wn.animationDone=new w.vpe,Wn.selectedTabChange=new w.vpe(!0),Wn._groupId=hn++,Wn.animationDuration=nn&&nn.animationDuration?nn.animationDuration:"500ms",Wn.disablePagination=!(!nn||null==nn.disablePagination)&&nn.disablePagination,Wn.dynamicHeight=!(!nn||null==nn.dynamicHeight)&&nn.dynamicHeight,Wn.contentTabIndex=null!==(Vn=null==nn?void 0:nn.contentTabIndex)&&void 0!==Vn?Vn:null,Wn.preserveContent=!(null==nn||!nn.preserveContent),Wn}return(0,E.Z)(et,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(wt){this._dynamicHeight=(0,ge.Ig)(wt)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(wt){this._indexToSelect=(0,ge.su)(wt,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(wt){this._animationDuration=/^\d+$/.test(wt+"")?wt+"ms":wt}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(wt){this._contentTabIndex=(0,ge.su)(wt,null)}},{key:"disablePagination",get:function(){return this._disablePagination},set:function(wt){this._disablePagination=(0,ge.Ig)(wt)}},{key:"preserveContent",get:function(){return this._preserveContent},set:function(wt){this._preserveContent=(0,ge.Ig)(wt)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(wt){var nn=this._elementRef.nativeElement;nn.classList.remove("mat-background-".concat(this.backgroundColor)),wt&&nn.classList.add("mat-background-".concat(wt)),this._backgroundColor=wt}},{key:"ngAfterContentChecked",value:function(){var wt=this,nn=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=nn){var Hn=null==this._selectedIndex;if(!Hn){this.selectedTabChange.emit(this._createChangeEvent(nn));var Wn=this._tabBodyWrapper.nativeElement;Wn.style.minHeight=Wn.clientHeight+"px"}Promise.resolve().then(function(){wt._tabs.forEach(function(Vn,ir){return Vn.isActive=ir===nn}),Hn||(wt.selectedIndexChange.emit(nn),wt._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Vn,ir){Vn.position=ir-nn,null!=wt._selectedIndex&&0==Vn.position&&!Vn.origin&&(Vn.origin=nn-wt._selectedIndex)}),this._selectedIndex!==nn&&(this._selectedIndex=nn,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var wt=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var nn=wt._clampTabIndex(wt._indexToSelect);if(nn===wt._selectedIndex){for(var Wn,Hn=wt._tabs.toArray(),Vn=0;Vn<Hn.length;Vn++)if(Hn[Vn].isActive){wt._indexToSelect=wt._selectedIndex=Vn,wt._lastFocusedTabIndex=null,Wn=Hn[Vn];break}!Wn&&Hn[nn]&&Promise.resolve().then(function(){Hn[nn].isActive=!0,wt.selectedTabChange.emit(wt._createChangeEvent(nn))})}wt._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var wt=this;this._allTabs.changes.pipe((0,b.O)(this._allTabs)).subscribe(function(nn){wt._tabs.reset(nn.filter(function(Hn){return Hn._closestTabGroup===wt||!Hn._closestTabGroup})),wt._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:"updatePagination",value:function(){this._tabHeader&&this._tabHeader.updatePagination()}},{key:"focusTab",value:function(wt){var nn=this._tabHeader;nn&&(nn.focusIndex=wt)}},{key:"_focusChanged",value:function(wt){this._lastFocusedTabIndex=wt,this.focusChange.emit(this._createChangeEvent(wt))}},{key:"_createChangeEvent",value:function(wt){var nn=new mn;return nn.index=wt,this._tabs&&this._tabs.length&&(nn.tab=this._tabs.toArray()[wt]),nn}},{key:"_subscribeToTabLabels",value:function(){var wt=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=te.T.apply(void 0,(0,W.Z)(this._tabs.map(function(nn){return nn._stateChanges}))).subscribe(function(){return wt._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(wt){return Math.min(this._tabs.length-1,Math.max(wt||0,0))}},{key:"_getTabLabelId",value:function(wt){return"mat-tab-label-".concat(this._groupId,"-").concat(wt)}},{key:"_getTabContentId",value:function(wt){return"mat-tab-content-".concat(this._groupId,"-").concat(wt)}},{key:"_setTabBodyWrapperHeight",value:function(wt){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var nn=this._tabBodyWrapper.nativeElement;nn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(nn.style.height=wt+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var wt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=wt.clientHeight,wt.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(wt,nn,Hn){wt.disabled||(this.selectedIndex=nn.focusIndex=Hn)}},{key:"_getTabIndex",value:function(wt,nn){var Hn;return wt.disabled?null:nn===(null!==(Hn=this._lastFocusedTabIndex)&&void 0!==Hn?Hn:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(wt,nn){wt&&"mouse"!==wt&&"touch"!==wt&&(this._tabHeader.focusIndex=nn)}}]),et}((0,Z.pj)((0,Z.Kr)(function(){return(0,E.Z)(function Kt(yt){(0,T.Z)(this,Kt),this._elementRef=yt})}()),"primary"));xt.\u0275fac=function(yt){return new(yt||xt)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(he,8),w.Y36(w.QbO,8))},xt.\u0275dir=w.lG2({type:xt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[w.qOj]});var tt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,Hn)}return(0,E.Z)(et)}(xt);tt.\u0275fac=function(yt){return new(yt||tt)(w.Y36(w.SBq),w.Y36(w.sBO),w.Y36(he,8),w.Y36(w.QbO,8))},tt.\u0275cmp=w.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,Jt,5),2&yt)&&(w.iGM(wt=w.CRH())&&(et._allTabs=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(Ct,5),w.Gf(Ve,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._tabBodyWrapper=gt.first),w.iGM(gt=w.CRH())&&(et._tabHeader=gt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(yt,et){2&yt&&w.ekj("mat-tab-group-dynamic-height",et.dynamicHeight)("mat-tab-group-inverted-header","below"===et.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[w._Bn([{provide:Vt,useExisting:tt}]),w.qOj],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","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(yt,et){1&yt&&(w.TgZ(0,"mat-tab-header",0,1),w.NdJ("indexFocused",function(wt){return et._focusChanged(wt)})("selectFocusedIndex",function(wt){return et.selectedIndex=wt}),w.YNc(2,Wt,5,15,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.YNc(5,U,1,11,"mat-tab-body",5),w.qZA()),2&yt&&(w.Q6J("selectedIndex",et.selectedIndex||0)("disableRipple",et.disableRipple)("disablePagination",et.disablePagination),w.xp6(2),w.Q6J("ngForOf",et._tabs),w.xp6(1),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(2),w.Q6J("ngForOf",et._tabs))},dependencies:[x.mk,x.sg,x.O5,v.Pl,Z.wG,j.kH,lt,ye,Sn],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}.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-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.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}"],encapsulation:2});var Et=0,We=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){var Pr;return(0,T.Z)(this,et),(Pr=yt.call(this,gt,Hn,Wn,wt,nn,Vn,ir))._disableRipple=!1,Pr.color="primary",Pr}return(0,E.Z)(et,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(wt){var nn=this._elementRef.nativeElement.classList;nn.remove("mat-background-".concat(this.backgroundColor)),wt&&nn.add("mat-background-".concat(wt)),this._backgroundColor=wt}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(wt){this._disableRipple=(0,ge.Ig)(wt)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var wt=this;this._items.changes.pipe((0,b.O)(null),(0,k.R)(this._destroyed)).subscribe(function(){wt.updateActiveLink()}),(0,A.Z)((0,H.Z)(et.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var wt=this._items.toArray(),nn=0;nn<wt.length;nn++)if(wt[nn].active)return this.selectedIndex=nn,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=wt[nn].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),et}(yn);We.\u0275fac=function(yt){return new(yt||We)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(ot.t4),w.Y36(w.QbO,8))},We.\u0275dir=w.lG2({type:We,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[w.qOj]});var Ye=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){return(0,T.Z)(this,et),yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir)}return(0,E.Z)(et)}(We);Ye.\u0275fac=function(yt){return new(yt||Ye)(w.Y36(w.SBq),w.Y36(de.Is,8),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(St.rL),w.Y36(ot.t4),w.Y36(w.QbO,8))},Ye.\u0275cmp=w.Xpm({type:Ye,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(yt,et,gt){var wt;(1&yt&&w.Suo(gt,vt,5),2&yt)&&(w.iGM(wt=w.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(w.Gf(le,7),w.Gf(Ft,7),w.Gf(pn,7),w.Gf(rt,7),w.Gf(Ot,5),w.Gf(_t,5)),2&yt)&&(w.iGM(gt=w.CRH())&&(et._inkBar=gt.first),w.iGM(gt=w.CRH())&&(et._tabListContainer=gt.first),w.iGM(gt=w.CRH())&&(et._tabList=gt.first),w.iGM(gt=w.CRH())&&(et._tabListInner=gt.first),w.iGM(gt=w.CRH())&&(et._nextPaginator=gt.first),w.iGM(gt=w.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(yt,et){2&yt&&(w.uIk("role",et._getRole()),w.ekj("mat-tab-header-pagination-controls-enabled",et._showPaginationControls)("mat-tab-header-rtl","rtl"==et._getLayoutDirection())("mat-primary","warn"!==et.color&&"accent"!==et.color)("mat-accent","accent"===et.color)("mat-warn","warn"===et.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[w.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:Dt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(yt,et){1&yt&&(w.F$t(),w.TgZ(0,"button",0,1),w.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),w._UZ(2,"div",2),w.qZA(),w.TgZ(3,"div",3,4),w.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),w.TgZ(5,"div",5,6),w.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),w.TgZ(7,"div",7,8),w.Hsn(9),w.qZA(),w._UZ(10,"mat-ink-bar"),w.qZA()(),w.TgZ(11,"button",9,10),w.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),w._UZ(13,"div",2),w.qZA()),2&yt&&(w.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),w.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),w.xp6(5),w.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),w.xp6(6),w.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),w.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[Z.wG,R.wD,le],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2});var Je=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn){var ir;return(0,T.Z)(this,et),(ir=yt.call(this))._tabNavBar=gt,ir.elementRef=wt,ir._focusMonitor=Wn,ir._isActive=!1,ir.id="mat-tab-link-".concat(Et++),ir.rippleConfig=nn||{},ir.tabIndex=parseInt(Hn)||0,"NoopAnimations"===Vn&&(ir.rippleConfig.animation={enterDuration:0,exitDuration:0}),ir}return(0,E.Z)(et,[{key:"active",get:function(){return this._isActive},set:function(wt){var nn=(0,ge.Ig)(wt);nn!==this._isActive&&(this._isActive=nn,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"_handleFocus",value:function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}},{key:"_handleKeydown",value:function(wt){this._tabNavBar.tabPanel&&wt.keyCode===je.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var wt;return this._tabNavBar.tabPanel?null===(wt=this._tabNavBar.tabPanel)||void 0===wt?void 0:wt.id:this.elementRef.nativeElement.getAttribute("aria-controls")}},{key:"_getAriaSelected",value:function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}},{key:"_getAriaCurrent",value:function(){return this.active&&!this._tabNavBar.tabPanel?"page":null}},{key:"_getRole",value:function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}},{key:"_getTabIndex",value:function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}]),et}((0,Z.sb)((0,Z.Kr)((0,Z.Id)(function(){return(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)})}()))));Je.\u0275fac=function(yt){return new(yt||Je)(w.Y36(We),w.Y36(w.SBq),w.Y36(Z.Y2,8),w.$8M("tabindex"),w.Y36(j.tE),w.Y36(w.QbO,8))},Je.\u0275dir=w.lG2({type:Je,inputs:{active:"active",id:"id"},features:[w.qOj]});var vt=function(Kt){(0,P.Z)(et,Kt);var yt=(0,I.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir,Pr){var yi;return(0,T.Z)(this,et),(yi=yt.call(this,gt,wt,Wn,Vn,ir,Pr))._tabLinkRipple=new Z.IR((0,G.Z)(yi),nn,wt,Hn),yi._tabLinkRipple.setupTriggerEvents(wt.nativeElement),yi}return(0,E.Z)(et,[{key:"ngOnDestroy",value:function(){(0,A.Z)((0,H.Z)(et.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),et}(Je);vt.\u0275fac=function(yt){return new(yt||vt)(w.Y36(Ye),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(ot.t4),w.Y36(Z.Y2,8),w.$8M("tabindex"),w.Y36(j.tE),w.Y36(w.QbO,8))},vt.\u0275dir=w.lG2({type:vt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(yt,et){1&yt&&w.NdJ("focus",function(){return et._handleFocus()})("keydown",function(wt){return et._handleKeydown(wt)}),2&yt&&(w.uIk("aria-controls",et._getAriaControls())("aria-current",et._getAriaCurrent())("aria-disabled",et.disabled)("aria-selected",et._getAriaSelected())("id",et.id)("tabIndex",et._getTabIndex())("role",et._getRole()),w.ekj("mat-tab-disabled",et.disabled)("mat-tab-label-active",et.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[w.qOj]});var dn=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt),this.id="mat-tab-nav-panel-".concat(Et++)});dn.\u0275fac=function(yt){return new(yt||dn)},dn.\u0275cmp=w.Xpm({type:dn,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(yt,et){2&yt&&w.uIk("aria-labelledby",et._activeTabId)("id",et.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Dt,decls:1,vars:0,template:function(yt,et){1&yt&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0});var Un=(0,E.Z)(function Kt(){(0,T.Z)(this,Kt)});Un.\u0275fac=function(yt){return new(yt||Un)},Un.\u0275mod=w.oAB({type:Un}),Un.\u0275inj=w.cJS({imports:[x.ez,Z.BQ,v.eL,Z.si,R.Q8,j.rt,Z.BQ]})},907:function(Ae,K,m){"use strict";function G(W,A){(null==A||A>W.length)&&(A=W.length);for(var H=0,P=new Array(A);H<A;H++)P[H]=W[H];return P}m.d(K,{Z:function(){return G}})},3878:function(Ae,K,m){"use strict";function G(W){if(Array.isArray(W))return W}m.d(K,{Z:function(){return G}})},7326:function(Ae,K,m){"use strict";function G(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}m.d(K,{Z:function(){return G}})},5671:function(Ae,K,m){"use strict";function G(W,A){if(!(W instanceof A))throw new TypeError("Cannot call a class as a function")}m.d(K,{Z:function(){return G}})},5647:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(9611),W=m(8814);function A(H,P,I){return(A=(0,W.Z)()?Reflect.construct.bind():function(E,j,R){var v=[null];v.push.apply(v,j);var w=new(Function.bind.apply(E,v));return R&&(0,G.Z)(w,R.prototype),w}).apply(null,arguments)}},3144:function(Ae,K,m){"use strict";function G(A,H){for(var P=0;P<H.length;P++){var I=H[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(A,I.key,I)}}function W(A,H,P){return H&&G(A.prototype,H),P&&G(A,P),Object.defineProperty(A,"prototype",{writable:!1}),A}m.d(K,{Z:function(){return W}})},7762:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(181);function W(A,H){var P="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!P){if(Array.isArray(A)||(P=(0,G.Z)(A))||H&&A&&"number"==typeof A.length){P&&(A=P);var I=0,T=function(){};return{s:T,n:function(){return I>=A.length?{done:!0}:{done:!1,value:A[I++]}},e:function(x){throw x},f:T}}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 R,E=!0,j=!1;return{s:function(){P=P.call(A)},n:function(){var x=P.next();return E=x.done,x},e:function(x){j=!0,R=x},f:function(){try{!E&&null!=P.return&&P.return()}finally{if(j)throw R}}}}},9388:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return H}});var G=m(1120),W=m(8814),A=m(2963);function H(P){var I=(0,W.Z)();return function(){var j,E=(0,G.Z)(P);if(I){var R=(0,G.Z)(this).constructor;j=Reflect.construct(E,arguments,R)}else j=E.apply(this,arguments);return(0,A.Z)(this,j)}}},4942:function(Ae,K,m){"use strict";function G(W,A,H){return A in W?Object.defineProperty(W,A,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[A]=H,W}m.d(K,{Z:function(){return G}})},3237:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1120);function W(H,P){for(;!Object.prototype.hasOwnProperty.call(H,P)&&null!==(H=(0,G.Z)(H)););return H}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(P,I,T){var E=W(P,I);if(E){var j=Object.getOwnPropertyDescriptor(E,I);return j.get?j.get.call(arguments.length<3?P:T):j.value}},A.apply(this,arguments)}},1120:function(Ae,K,m){"use strict";function G(W){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)})(W)}m.d(K,{Z:function(){return G}})},136:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(9611);function W(A,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(H&&H.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),H&&(0,G.Z)(A,H)}},8814:function(Ae,K,m){"use strict";function G(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(W){return!1}}m.d(K,{Z:function(){return G}})},9199:function(Ae,K,m){"use strict";function G(W){if("undefined"!=typeof Symbol&&null!=W[Symbol.iterator]||null!=W["@@iterator"])return Array.from(W)}m.d(K,{Z:function(){return G}})},5267:function(Ae,K,m){"use strict";function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}m.d(K,{Z:function(){return G}})},2963:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1002),W=m(7326);function A(H,P){if(P&&("object"===(0,G.Z)(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return(0,W.Z)(H)}},9611:function(Ae,K,m){"use strict";function G(W,A){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,I){return P.__proto__=I,P})(W,A)}m.d(K,{Z:function(){return G}})},7685:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(3878);var A=m(181),H=m(5267);function P(I,T){return(0,G.Z)(I)||function W(I,T){var E=null==I?null:"undefined"!=typeof Symbol&&I[Symbol.iterator]||I["@@iterator"];if(null!=E){var x,w,j=[],R=!0,v=!1;try{for(E=E.call(I);!(R=(x=E.next()).done)&&(j.push(x.value),!T||j.length!==T);R=!0);}catch(Z){v=!0,w=Z}finally{try{!R&&null!=E.return&&E.return()}finally{if(v)throw w}}return j}}(I,T)||(0,A.Z)(I,T)||(0,H.Z)()}},4506:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(3878),W=m(9199),A=m(181),H=m(5267);function P(I){return(0,G.Z)(I)||(0,W.Z)(I)||(0,A.Z)(I)||(0,H.Z)()}},4902:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return I}});var G=m(907);var A=m(9199),H=m(181);function I(T){return function W(T){if(Array.isArray(T))return(0,G.Z)(T)}(T)||(0,A.Z)(T)||(0,H.Z)(T)||function P(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(Ae,K,m){"use strict";function G(W){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(W)}m.d(K,{Z:function(){return G}})},181:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(907);function W(A,H){if(A){if("string"==typeof A)return(0,G.Z)(A,H);var P=Object.prototype.toString.call(A).slice(8,-1);if("Object"===P&&A.constructor&&(P=A.constructor.name),"Map"===P||"Set"===P)return Array.from(A);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return(0,G.Z)(A,H)}}},5724:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(1120),W=m(9611);var H=m(5647);function P(I){var T="function"==typeof Map?new Map:void 0;return P=function(j){if(null===j||!function A(I){return-1!==Function.toString.call(I).indexOf("[native code]")}(j))return j;if("function"!=typeof j)throw new TypeError("Super expression must either be null or a function");if(void 0!==T){if(T.has(j))return T.get(j);T.set(j,R)}function R(){return(0,H.Z)(j,arguments,(0,G.Z)(this).constructor)}return R.prototype=Object.create(j.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),(0,W.Z)(R,j)},P(I)}},4147:function(Ae){"use strict";Ae.exports={i8:"3.0.0a4"}}},function(Ae){var G;G=9189,Ae(Ae.s=G)}]);