1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-25 01:38:08 +00:00
gns3-server/gns3server/static/web-ui/main.8e8e3d55e78d84fc.js
2024-04-07 18:23:59 +07:00

1 line
4.1 MiB

(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(De,K,m){"use strict";m.d(K,{o:function(){return R}});var G=m(5671),W=m(3144),A=m(591),U=m(8929),R=function(){function P(){(0,G.Z)(this,P),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new U.xQ}return(0,W.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(D){this.findIndex(D)>=0?this.update(D):(this.data.push(D),this.dataChange.next(this.data))}},{key:"set",value:function(D){var j=this;D.forEach(function(v){var k=j.findIndex(v);if(k>=0){var b=Object.assign(j.data[k],v);j.data[k]=b}else j.data.push(v)}),this.data.filter(function(v){return 0===D.filter(function(k){return j.getItemKey(k)===j.getItemKey(v)}).length}).forEach(function(v){return j.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(D){var j=this,L=this.data.findIndex(function(v){return j.getItemKey(v)===D});if(L>=0)return this.data[L]}},{key:"update",value:function(D){var j=this.findIndex(D);if(j>=0){var L=Object.assign(this.data[j],D);this.data[j]=L,this.dataChange.next(this.data),this.itemUpdated.next(L)}}},{key:"remove",value:function(D){var j=this.findIndex(D);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(D){var j=this;return this.data.findIndex(function(L){return j.getItemKey(L)===j.getItemKey(D)})}}]),P}()},6215:function(De,K,m){"use strict";m.d(K,{F:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.link_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5366:function(De,K,m){"use strict";m.d(K,{G:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.node_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5542:function(De,K,m){"use strict";m.d(K,{X:function(){return P}});var G=m(5671),W=m(3144),A=m(4766),U=m(5e3),R=m(2437),P=function(){function E(D){(0,G.Z)(this,E),this.httpController=D}return(0,W.Z)(E,[{key:"getComputes",value:function(j){return this.httpController.get(j,"/computes")}},{key:"getUploadPath",value:function(j,L,v){return"".concat(j.protocol,"//").concat(j.host,":").concat(j.port,"/").concat(A.N.current_version,"/").concat(L,"/images/").concat(v)}},{key:"getStatistics",value:function(j){return this.httpController.get(j,"/statistics")}}]),E}();P.\u0275fac=function(D){return new(D||P)(U.LFG(R.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(De,K,m){"use strict";m.d(K,{CJ:function(){return k},zw:function(){return b}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5724),P=m(5e3),E=m(4766),D=m(1737),j=m(7221),L=m(520),v=function(O){(0,A.Z)(y,O);var S=(0,U.Z)(y);function y(T){return(0,G.Z)(this,y),S.call(this,T)}return(0,W.Z)(y,null,[{key:"fromError",value:function(M,x){var N=new y(M);return N.originalError=x,N}}]),y}((0,R.Z)(Error)),k=function(){function O(){(0,G.Z)(this,O)}return(0,W.Z)(O,[{key:"handleError",value:function(y){var T=y;return"HttpErrorResponse"===y.name&&0===y.status&&(T=v.fromError("Controller is unreachable",y)),401===y.status&&window.location.reload(),(0,D._)(T)}}]),O}();k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac});var b=function(){function O(S,y){(0,G.Z)(this,O),this.http=S,this.errorHandler=y,this.requestsNotificationEmitter=new P.vpe}return(0,W.Z)(O,[{key:"get",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getText",value:function(y,T,M){M=this.getTextOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(y,T,M){M=this.getBlobOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"post",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"put",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"delete",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("DELETE ".concat(x.url)),this.http.delete(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"patch",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.http.patch(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"head",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.head(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"options",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.options(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(y){return y||{responseType:"json"}}},{key:"getTextOptions",value:function(y){return y||{responseType:"text"}}},{key:"getBlobOptions",value:function(y){return y||{responseType:"blob"}}},{key:"getOptionsForController",value:function(y,T,M){return y&&y.host&&y.port?(y.protocol||(y.protocol=location.protocol),T="".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/").concat(E.N.current_version).concat(T)):T="/".concat(E.N.current_version).concat(T),M.headers||(M.headers={}),y&&y.authToken&&!y.tokenExpired&&(M.headers.Authorization="Bearer ".concat(y.authToken)),{url:T,options:M}}}]),O}();b.\u0275fac=function(S){return new(S||b)(P.LFG(L.eN),P.LFG(k))},b.\u0275prov=P.Yz7({token:b,factory:b.\u0275fac})},9971:function(De,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(5671),W=m(3144),A=m(4766),U=m(8929),R=m(5e3),P=m(2437),E=m(9449),D=m(9740),j=function(){function L(v,k,b){(0,G.Z)(this,L),this.httpController=v,this.settingsService=k,this.recentlyOpenedProjectService=b,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 U.xQ,this.projectLockIconSubject=new U.xQ}return(0,W.Z)(L,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(k,b){return this.httpController.getText(k,"/projects/".concat(b,"/files/README.txt"))}},{key:"postReadmeFile",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/files/README.txt"),O)}},{key:"get",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b))}},{key:"open",value:function(k,b){return this.httpController.post(k,"/projects/".concat(b,"/open"),{})}},{key:"close",value:function(k,b){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(k,"/projects/".concat(b,"/close"),{})}},{key:"list",value:function(k){return this.httpController.get(k,"/projects")}},{key:"nodes",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/nodes"))}},{key:"links",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/links"))}},{key:"drawings",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/drawings"))}},{key:"add",value:function(k,b,O){return this.httpController.post(k,"/projects",{name:b,project_id:O})}},{key:"update",value:function(k,b){return this.httpController.put(k,"/projects/".concat(b.project_id),{auto_close:b.auto_close,auto_open:b.auto_open,auto_start:b.auto_start,drawing_grid_size:b.drawing_grid_size,grid_size:b.grid_size,name:b.name,scene_width:b.scene_width,scene_height:b.scene_height,show_interface_labels:b.show_interface_labels})}},{key:"delete",value:function(k,b){return this.httpController.delete(k,"/projects/".concat(b))}},{key:"getUploadPath",value:function(k,b,O){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/import?name=").concat(O)}},{key:"getExportPath",value:function(k,b){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b.project_id,"/export")}},{key:"export",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/export"))}},{key:"getStatistics",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/stats"))}},{key:"duplicate",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/duplicate"),{name:O})}},{key:"isReadOnly",value:function(k){return!!k.readonly&&k.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=O.compression_level&&""!=O.compression_level?"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&compression_level=").concat(O.compression_level,"&token=").concat(k.authToken):"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&token=").concat(k.authToken)}},{key:"getProjectStatus",value:function(k,b){return this.get(k,"".concat(b,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),L}();j.\u0275fac=function(v){return new(v||j)(R.LFG(P.zw),R.LFG(E.g),R.LFG(D.p))},j.\u0275prov=R.Yz7({token:j,factory:j.\u0275fac})},9740:function(De,K,m){"use strict";m.d(K,{p:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R)}return(0,W.Z)(R,[{key:"setcontrollerId",value:function(E){this.controllerId=E}},{key:"setProjectId",value:function(E){this.projectId=E}},{key:"setcontrollerIdProjectList",value:function(E){this.controllerIdProjectList=E}},{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=""}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac})},9449:function(De,K,m){"use strict";m.d(K,{g:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R),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)(R,[{key:"setReportsSettings",value:function(E){this.settings.crash_reports=E,this.removeItem(this.reportsSettings),E?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(E){this.settings.anonymous_statistics=E,this.removeItem(this.statisticsSettings),E?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(E){this.settings.console_command=E,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,E)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(E){localStorage.removeItem(E)}},{key:"setItem",value:function(E,D){localStorage.setItem(E,D)}},{key:"getItem",value:function(E){return localStorage.getItem(E)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(E){this.settings=E,this.setConsoleSettings(E.console_command),this.setReportsSettings(E.crash_reports),this.setStatisticsSettings(E.anonymous_statistics)}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(De,K,m){"use strict";m.d(K,{f:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),U=m(591),R=function(){function P(){(0,G.Z)(this,P),this._darkMode$=new U.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)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(D){D?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),P}();R.\u0275fac=function(E){return new(E||R)},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})},4766:function(De,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"}},3746:function(De,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return SSe},arc:function(){return m1e},area:function(){return kee},areaRadial:function(){return Eee},ascending:function(){return $y},axisBottom:function(){return _ce},axisLeft:function(){return gce},axisRight:function(){return mce},axisTop:function(){return hce},bisect:function(){return X1},bisectLeft:function(){return zue},bisectRight:function(){return QY},bisector:function(){return k7},brush:function(){return Dpe},brushSelection:function(){return Spe},brushX:function(){return Epe},brushY:function(){return xpe},chord:function(){return Ope},clientPoint:function(){return MN},cluster:function(){return oge},color:function(){return aZ},contourDensity:function(){return _he},contours:function(){return Zq},create:function(){return UCe},creator:function(){return kN},cross:function(){return Vue},csvFormat:function(){return Mhe},csvFormatRows:function(){return She},csvParse:function(){return khe},csvParseRows:function(){return The},cubehelix:function(){return Rq},curveBasis:function(){return R1e},curveBasisClosed:function(){return L1e},curveBasisOpen:function(){return Z1e},curveBundle:function(){return N1e},curveCardinal:function(){return B1e},curveCardinalClosed:function(){return F1e},curveCardinalOpen:function(){return U1e},curveCatmullRom:function(){return H1e},curveCatmullRomClosed:function(){return j1e},curveCatmullRomOpen:function(){return G1e},curveLinear:function(){return xN},curveLinearClosed:function(){return z1e},curveMonotoneX:function(){return W1e},curveMonotoneY:function(){return V1e},curveNatural:function(){return Y1e},curveStep:function(){return K1e},curveStepAfter:function(){return J1e},curveStepBefore:function(){return q1e},customEvent:function(){return LCe},descending:function(){return Yue},deviation:function(){return eK},dispatch:function(){return t0},drag:function(){return gg},dragDisable:function(){return BL},dragEnable:function(){return FL},dsvFormat:function(){return C9},easeBack:function(){return Vq},easeBackIn:function(){return Xhe},easeBackInOut:function(){return Vq},easeBackOut:function(){return $he},easeBounce:function(){return sx},easeBounceIn:function(){return Jhe},easeBounceInOut:function(){return Qhe},easeBounceOut:function(){return sx},easeCircle:function(){return Wq},easeCircleIn:function(){return Uhe},easeCircleInOut:function(){return Wq},easeCircleOut:function(){return Hhe},easeCubic:function(){return $L},easeCubicIn:function(){return mpe},easeCubicInOut:function(){return $L},easeCubicOut:function(){return _pe},easeElastic:function(){return Yq},easeElasticIn:function(){return eme},easeElasticInOut:function(){return tme},easeElasticOut:function(){return Yq},easeExp:function(){return zq},easeExpIn:function(){return Bhe},easeExpInOut:function(){return zq},easeExpOut:function(){return Fhe},easeLinear:function(){return Ohe},easePoly:function(){return Uq},easePolyIn:function(){return Rhe},easePolyInOut:function(){return Uq},easePolyOut:function(){return Lhe},easeQuad:function(){return Fq},easeQuadIn:function(){return Ihe},easeQuadInOut:function(){return Fq},easeQuadOut:function(){return Phe},easeSin:function(){return Gq},easeSinIn:function(){return Zhe},easeSinInOut:function(){return Gq},easeSinOut:function(){return Nhe},entries:function(){return Vpe},event:function(){return sm},extent:function(){return T7},forceCenter:function(){return nme},forceCollide:function(){return Cme},forceLink:function(){return kme},forceManyBody:function(){return Dme},forceRadial:function(){return Ame},forceSimulation:function(){return xme},forceX:function(){return Ome},forceY:function(){return Ime},format:function(){return rJ},formatDefaultLocale:function(){return oJ},formatLocale:function(){return nJ},formatPrefix:function(){return iJ},formatSpecifier:function(){return mZ},geoAlbers:function(){return vQ},geoAlbersUsa:function(){return F_e},geoArea:function(){return zme},geoAzimuthalEqualArea:function(){return U_e},geoAzimuthalEqualAreaRaw:function(){return fH},geoAzimuthalEquidistant:function(){return H_e},geoAzimuthalEquidistantRaw:function(){return pH},geoBounds:function(){return Kme},geoCentroid:function(){return e_e},geoCircle:function(){return t_e},geoClipAntimeridian:function(){return W9},geoClipCircle:function(){return UJ},geoClipExtent:function(){return l_e},geoClipRectangle:function(){return FZ},geoConicConformal:function(){return G_e},geoConicConformalRaw:function(){return CQ},geoConicEqualArea:function(){return JZ},geoConicEqualAreaRaw:function(){return gQ},geoConicEquidistant:function(){return W_e},geoConicEquidistantRaw:function(){return wQ},geoContains:function(){return m_e},geoDistance:function(){return px},geoEquirectangular:function(){return z_e},geoEquirectangularRaw:function(){return wx},geoGnomonic:function(){return V_e},geoGnomonicRaw:function(){return hH},geoGraticule:function(){return JJ},geoGraticule10:function(){return __e},geoIdentity:function(){return Y_e},geoInterpolate:function(){return g_e},geoLength:function(){return HJ},geoMercator:function(){return j_e},geoMercatorRaw:function(){return Cx},geoNaturalEarth1:function(){return K_e},geoNaturalEarth1Raw:function(){return mH},geoOrthographic:function(){return q_e},geoOrthographicRaw:function(){return _H},geoPath:function(){return D_e},geoProjection:function(){return im},geoProjectionMutator:function(){return cH},geoRotation:function(){return IJ},geoStereographic:function(){return J_e},geoStereographicRaw:function(){return gH},geoStream:function(){return jd},geoTransform:function(){return A_e},geoTransverseMercator:function(){return Q_e},geoTransverseMercatorRaw:function(){return vH},hcl:function(){return Dq},hierarchy:function(){return yH},histogram:function(){return Que},hsl:function(){return bq},interpolate:function(){return IH},interpolateArray:function(){return XQ},interpolateBasis:function(){return KQ},interpolateBasisClosed:function(){return qQ},interpolateBlues:function(){return nbe},interpolateBrBG:function(){return L0e},interpolateBuGn:function(){return z0e},interpolateBuPu:function(){return W0e},interpolateCool:function(){return pbe},interpolateCubehelix:function(){return wve},interpolateCubehelixDefault:function(){return dbe},interpolateCubehelixLong:function(){return kve},interpolateDate:function(){return $Q},interpolateGnBu:function(){return V0e},interpolateGreens:function(){return rbe},interpolateGreys:function(){return ibe},interpolateHcl:function(){return yve},interpolateHclLong:function(){return bve},interpolateHsl:function(){return mve},interpolateHslLong:function(){return _ve},interpolateInferno:function(){return gbe},interpolateLab:function(){return vve},interpolateMagma:function(){return _be},interpolateNumber:function(){return gp},interpolateObject:function(){return eX},interpolateOrRd:function(){return Y0e},interpolateOranges:function(){return sbe},interpolatePRGn:function(){return Z0e},interpolatePiYG:function(){return N0e},interpolatePlasma:function(){return vbe},interpolatePuBu:function(){return q0e},interpolatePuBuGn:function(){return K0e},interpolatePuOr:function(){return B0e},interpolatePuRd:function(){return J0e},interpolatePurples:function(){return obe},interpolateRainbow:function(){return hbe},interpolateRdBu:function(){return F0e},interpolateRdGy:function(){return U0e},interpolateRdPu:function(){return Q0e},interpolateRdYlBu:function(){return H0e},interpolateRdYlGn:function(){return j0e},interpolateReds:function(){return abe},interpolateRgb:function(){return DH},interpolateRgbBasis:function(){return nve},interpolateRgbBasisClosed:function(){return rve},interpolateRound:function(){return ave},interpolateSpectral:function(){return G0e},interpolateString:function(){return tX},interpolateTransformCss:function(){return uve},interpolateTransformSvg:function(){return cve},interpolateViridis:function(){return mbe},interpolateWarm:function(){return fbe},interpolateYlGn:function(){return $0e},interpolateYlGnBu:function(){return X0e},interpolateYlOrBr:function(){return ebe},interpolateYlOrRd:function(){return tbe},interpolateZoom:function(){return hve},interrupt:function(){return one},interval:function(){return Hke},isoFormat:function(){return Nke},isoParse:function(){return Uke},keys:function(){return zpe},lab:function(){return xq},line:function(){return DN},lineRadial:function(){return See},linkHorizontal:function(){return T1e},linkRadial:function(){return S1e},linkVertical:function(){return M1e},local:function(){return yee},map:function(){return mg},matcher:function(){return aee},max:function(){return nK},mean:function(){return ece},median:function(){return tce},merge:function(){return A7},min:function(){return rK},mouse:function(){return jCe},namespace:function(){return pj},namespaces:function(){return fj},nest:function(){return Upe},now:function(){return hg},pack:function(){return Age},packEnclose:function(){return TQ},packSiblings:function(){return Ege},pairs:function(){return Wue},partition:function(){return Oge},path:function(){return Hd},permute:function(){return nce},pie:function(){return v1e},pointRadial:function(){return zx},polygonArea:function(){return Mve},polygonCentroid:function(){return Sve},polygonContains:function(){return Ave},polygonHull:function(){return Dve},polygonLength:function(){return Ove},precisionFixed:function(){return Bme},precisionPrefix:function(){return Fme},precisionRound:function(){return Ume},quadtree:function(){return pZ},quantile:function(){return WE},quantize:function(){return Tve},radialArea:function(){return Eee},radialLine:function(){return See},randomBates:function(){return Rve},randomExponential:function(){return Lve},randomIrwinHall:function(){return EX},randomLogNormal:function(){return Pve},randomNormal:function(){return SX},randomUniform:function(){return Ive},range:function(){return mc},rgb:function(){return vq},ribbon:function(){return Fpe},scaleBand:function(){return KH},scaleIdentity:function(){return UX},scaleImplicit:function(){return VH},scaleLinear:function(){return FX},scaleLog:function(){return WX},scaleOrdinal:function(){return YH},scalePoint:function(){return Zve},scalePow:function(){return $H},scaleQuantile:function(){return VX},scaleQuantize:function(){return YX},scaleSequential:function(){return M$},scaleSqrt:function(){return rye},scaleThreshold:function(){return KX},scaleTime:function(){return C0e},scaleUtc:function(){return M0e},scan:function(){return rce},schemeAccent:function(){return E0e},schemeBlues:function(){return Y$},schemeBrBG:function(){return S$},schemeBuGn:function(){return L$},schemeBuPu:function(){return Z$},schemeCategory10:function(){return S0e},schemeDark2:function(){return x0e},schemeGnBu:function(){return N$},schemeGreens:function(){return K$},schemeGreys:function(){return q$},schemeOrRd:function(){return B$},schemeOranges:function(){return X$},schemePRGn:function(){return E$},schemePaired:function(){return D0e},schemePastel1:function(){return A0e},schemePastel2:function(){return O0e},schemePiYG:function(){return x$},schemePuBu:function(){return U$},schemePuBuGn:function(){return F$},schemePuOr:function(){return D$},schemePuRd:function(){return H$},schemePurples:function(){return J$},schemeRdBu:function(){return A$},schemeRdGy:function(){return O$},schemeRdPu:function(){return j$},schemeRdYlBu:function(){return I$},schemeRdYlGn:function(){return P$},schemeReds:function(){return Q$},schemeSet1:function(){return I0e},schemeSet2:function(){return P0e},schemeSet3:function(){return R0e},schemeSpectral:function(){return R$},schemeYlGn:function(){return z$},schemeYlGnBu:function(){return G$},schemeYlOrBr:function(){return W$},schemeYlOrRd:function(){return V$},select:function(){return vee},selectAll:function(){return GCe},selection:function(){return FCe},selector:function(){return hj},selectorAll:function(){return iee},set:function(){return Gpe},shuffle:function(){return ice},stack:function(){return X1e},stackOffsetDiverging:function(){return ewe},stackOffsetExpand:function(){return $1e},stackOffsetNone:function(){return Rw},stackOffsetSilhouette:function(){return twe},stackOffsetWiggle:function(){return nwe},stackOrderAscending:function(){return Jee},stackOrderDescending:function(){return rwe},stackOrderInsideOut:function(){return iwe},stackOrderNone:function(){return Lw},stackOrderReverse:function(){return owe},stratify:function(){return Lge},style:function(){return uee},sum:function(){return oce},symbol:function(){return P1e},symbolCircle:function(){return Sj},symbolCross:function(){return xee},symbolDiamond:function(){return Aee},symbolSquare:function(){return Pee},symbolStar:function(){return Iee},symbolTriangle:function(){return Ree},symbolWye:function(){return Lee},symbols:function(){return I1e},thresholdFreedmanDiaconis:function(){return Xue},thresholdScott:function(){return $ue},thresholdSturges:function(){return D7},tickIncrement:function(){return zE},tickStep:function(){return e0},ticks:function(){return x7},timeDay:function(){return cwe},timeDays:function(){return dwe},timeFormat:function(){return Bte},timeFormatDefaultLocale:function(){return Ute},timeFormatLocale:function(){return Ete},timeFriday:function(){return fte},timeFridays:function(){return _we},timeHour:function(){return lwe},timeHours:function(){return uwe},timeInterval:function(){return ys},timeMillisecond:function(){return Xee},timeMilliseconds:function(){return $ee},timeMinute:function(){return awe},timeMinutes:function(){return swe},timeMonday:function(){return lte},timeMondays:function(){return fwe},timeMonth:function(){return vwe},timeMonths:function(){return ywe},timeParse:function(){return Fte},timeSaturday:function(){return pte},timeSaturdays:function(){return gwe},timeSecond:function(){return rte},timeSeconds:function(){return ite},timeSunday:function(){return Zj},timeSundays:function(){return hte},timeThursday:function(){return dte},timeThursdays:function(){return mwe},timeTuesday:function(){return ute},timeTuesdays:function(){return pwe},timeWednesday:function(){return cte},timeWednesdays:function(){return hwe},timeWeek:function(){return Zj},timeWeeks:function(){return hte},timeYear:function(){return bwe},timeYears:function(){return Cwe},timeout:function(){return ex},timer:function(){return $E},timerFlush:function(){return jK},touch:function(){return zCe},touches:function(){return WCe},transition:function(){return Sne},transpose:function(){return iK},tree:function(){return Hge},treemap:function(){return jge},treemapBinary:function(){return Gge},treemapDice:function(){return Tx},treemapResquarify:function(){return Wge},treemapSlice:function(){return rN},treemapSliceDice:function(){return zge},treemapSquarify:function(){return BQ},tsvFormat:function(){return Dhe},tsvFormatRows:function(){return Ahe},tsvParse:function(){return Ehe},tsvParseRows:function(){return xhe},utcDay:function(){return Swe},utcDays:function(){return Ewe},utcFormat:function(){return Uj},utcFriday:function(){return kte},utcFridays:function(){return Iwe},utcHour:function(){return Twe},utcHours:function(){return Mwe},utcMillisecond:function(){return Xee},utcMilliseconds:function(){return $ee},utcMinute:function(){return wwe},utcMinutes:function(){return kwe},utcMonday:function(){return yte},utcMondays:function(){return xwe},utcMonth:function(){return Rwe},utcMonths:function(){return Lwe},utcParse:function(){return Hj},utcSaturday:function(){return Tte},utcSaturdays:function(){return Pwe},utcSecond:function(){return rte},utcSeconds:function(){return ite},utcSunday:function(){return Bj},utcSundays:function(){return Mte},utcThursday:function(){return wte},utcThursdays:function(){return Owe},utcTuesday:function(){return bte},utcTuesdays:function(){return Dwe},utcWednesday:function(){return Cte},utcWednesdays:function(){return Awe},utcWeek:function(){return Bj},utcWeeks:function(){return Mte},utcYear:function(){return Zwe},utcYears:function(){return Nwe},values:function(){return Wpe},variance:function(){return $Y},voronoi:function(){return WSe},window:function(){return mj},zip:function(){return sce},zoom:function(){return Une},zoomIdentity:function(){return QN},zoomTransform:function(){return Bne}});var W={};m.r(W),m.d(W,{safe:function(){return poe},spec:function(){return ELe}});var A={};m.r(A),m.d(A,{angle:function(){return fZe},decibel:function(){return gZe},flex:function(){return _Ze},frequency:function(){return hZe},length:function(){return dZe},resolution:function(){return mZe},semitones:function(){return vZe},time:function(){return pZe}});var U={};m.r(U),m.d(U,{getTrace:function(){return Xoe},isKeyword:function(){return rNe},isProperty:function(){return nNe},isType:function(){return tNe}});var R={};m.r(R),m.d(R,{generate:function(){return mNe},name:function(){return pNe},parse:function(){return aae},structure:function(){return hNe}});var P={};m.r(P),m.d(P,{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 TNe},name:function(){return CNe},parse:function(){return uae},structure:function(){return kNe},walkContext:function(){return wNe}});var D={};m.r(D),m.d(D,{generate:function(){return INe},name:function(){return ANe},parse:function(){return dae},structure:function(){return ONe}});var j={};m.r(j),m.d(j,{generate:function(){return BNe},name:function(){return LNe},parse:function(){return mae},structure:function(){return NNe},walkContext:function(){return ZNe}});var L={};m.r(L),m.d(L,{generate:function(){return HNe},name:function(){return FNe},parse:function(){return _ae},structure:function(){return UNe}});var v={};m.r(v),m.d(v,{generate:function(){return zNe},name:function(){return jNe},parse:function(){return gae},structure:function(){return GNe}});var k={};m.r(k),m.d(k,{generate:function(){return YNe},name:function(){return WNe},parse:function(){return vae},structure:function(){return VNe}});var b={};m.r(b),m.d(b,{generate:function(){return QNe},name:function(){return qNe},parse:function(){return yae},structure:function(){return JNe}});var O={};m.r(O),m.d(O,{generate:function(){return rBe},name:function(){return tBe},parse:function(){return Cae},structure:function(){return nBe}});var S={};m.r(S),m.d(S,{generate:function(){return lBe},name:function(){return aBe},parse:function(){return wae},structure:function(){return sBe}});var y={};m.r(y),m.d(y,{generate:function(){return bBe},name:function(){return gBe},parse:function(){return Mae},structure:function(){return yBe},walkContext:function(){return vBe}});var T={};m.r(T),m.d(T,{generate:function(){return SBe},name:function(){return TBe},parse:function(){return Sae},structure:function(){return MBe}});var M={};m.r(M),m.d(M,{generate:function(){return DBe},name:function(){return EBe},parse:function(){return Eae},structure:function(){return xBe}});var x={};m.r(x),m.d(x,{generate:function(){return PBe},name:function(){return ABe},parse:function(){return xae},structure:function(){return IBe},walkContext:function(){return OBe}});var N={};m.r(N),m.d(N,{generate:function(){return NBe},name:function(){return LBe},parse:function(){return Dae},structure:function(){return ZBe},xxx:function(){return RBe}});var B={};m.r(B),m.d(B,{generate:function(){return UBe},name:function(){return BBe},parse:function(){return Aae},structure:function(){return FBe}});var X={};m.r(X),m.d(X,{generate:function(){return GBe},name:function(){return HBe},parse:function(){return Oae},structure:function(){return jBe}});var $={};m.r($),m.d($,{generate:function(){return VBe},name:function(){return zBe},parse:function(){return Iae},structure:function(){return WBe}});var V={};m.r(V),m.d(V,{generate:function(){return qBe},name:function(){return YBe},parse:function(){return Pae},structure:function(){return KBe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return XBe},name:function(){return JBe},parse:function(){return Rae},structure:function(){return QBe}});var te={};m.r(te),m.d(te,{generate:function(){return n5e},name:function(){return e5e},parse:function(){return Lae},structure:function(){return t5e}});var be={};m.r(be),m.d(be,{generate:function(){return o5e},name:function(){return r5e},parse:function(){return Zae},structure:function(){return i5e}});var pe={};m.r(pe),m.d(pe,{generate:function(){return l5e},name:function(){return a5e},parse:function(){return Nae},structure:function(){return s5e}});var fe={};m.r(fe),m.d(fe,{generate:function(){return d5e},name:function(){return u5e},parse:function(){return Bae},structure:function(){return c5e}});var ue={};m.r(ue),m.d(ue,{generate:function(){return h5e},name:function(){return f5e},parse:function(){return Fae},structure:function(){return p5e}});var de={};m.r(de),m.d(de,{generate:function(){return g5e},name:function(){return m5e},parse:function(){return Uae},structure:function(){return _5e}});var ge={};m.r(ge),m.d(ge,{generate:function(){return C5e},name:function(){return v5e},parse:function(){return Hae},structure:function(){return b5e},walkContext:function(){return y5e}});var je={};m.r(je),m.d(je,{generate:function(){return M5e},name:function(){return w5e},parse:function(){return jae},structure:function(){return T5e},walkContext:function(){return k5e}});var ot={};m.r(ot),m.d(ot,{generate:function(){return A5e},name:function(){return x5e},parse:function(){return zae},structure:function(){return D5e}});var St={};m.r(St),m.d(St,{generate:function(){return R5e},name:function(){return I5e},parse:function(){return Wae},structure:function(){return P5e}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return F5e},name:function(){return Z5e},parse:function(){return Yae},structure:function(){return B5e},walkContext:function(){return N5e}});var Dt={};m.r(Dt),m.d(Dt,{generate:function(){return j5e},name:function(){return U5e},parse:function(){return Kae},structure:function(){return H5e}});var Rt={};m.r(Rt),m.d(Rt,{generate:function(){return V5e},name:function(){return G5e},parse:function(){return qae},structure:function(){return W5e},walkContext:function(){return z5e}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return J5e},name:function(){return K5e},parse:function(){return $ae},structure:function(){return q5e}});var $t={};m.r($t),m.d($t,{generate:function(){return tFe},name:function(){return X5e},parse:function(){return tse},structure:function(){return eFe},walkContext:function(){return $5e}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return oFe},name:function(){return rFe},parse:function(){return rse},structure:function(){return iFe}});var pn={};m.r(pn),m.d(pn,{generate:function(){return cFe},name:function(){return lFe},parse:function(){return ase},structure:function(){return uFe}});var rt={};m.r(rt),m.d(rt,{generate:function(){return yFe},name:function(){return gFe},parse:function(){return lse},structure:function(){return vFe}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return wFe},name:function(){return bFe},parse:function(){return use},structure:function(){return CFe}});var _t={};m.r(_t),m.d(_t,{generate:function(){return SFe},name:function(){return TFe},parse:function(){return cse},structure:function(){return MFe}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return R},Atrule:function(){return P},AtrulePrelude:function(){return E},AttributeSelector:function(){return D},Block:function(){return j},Brackets:function(){return L},CDC:function(){return v},CDO:function(){return k},ClassSelector:function(){return b},Combinator:function(){return O},Comment:function(){return S},Declaration:function(){return y},DeclarationList:function(){return T},Dimension:function(){return M},Function:function(){return x},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return B},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 PFe},Selector:function(){return zFe},Value:function(){return YFe}});var at={};m.r(at),m.d(at,{AnPlusB:function(){return aae},Atrule:function(){return lae},AtrulePrelude:function(){return uae},AttributeSelector:function(){return dae},Block:function(){return mae},Brackets:function(){return _ae},CDC:function(){return gae},CDO:function(){return vae},ClassSelector:function(){return yae},Combinator:function(){return Cae},Comment:function(){return wae},Declaration:function(){return Mae},DeclarationList:function(){return Sae},Dimension:function(){return Eae},Function:function(){return xae},Hash:function(){return Dae},IdSelector:function(){return Oae},Identifier:function(){return Aae},MediaFeature:function(){return Iae},MediaQuery:function(){return Pae},MediaQueryList:function(){return Rae},NestingSelector:function(){return Lae},Nth:function(){return Zae},Number:function(){return Nae},Operator:function(){return Bae},Parentheses:function(){return Fae},Percentage:function(){return Uae},PseudoClassSelector:function(){return Hae},PseudoElementSelector:function(){return jae},Ratio:function(){return zae},Raw:function(){return Wae},Rule:function(){return Yae},Selector:function(){return Kae},SelectorList:function(){return qae},String:function(){return $ae},StyleSheet:function(){return tse},TypeSelector:function(){return rse},UnicodeRange:function(){return ase},Url:function(){return lse},Value:function(){return use},WhiteSpace:function(){return cse}});var ht={};m.r(ht),m.d(ht,{Hooks:function(){return uA},Lexer:function(){return tT},Parser:function(){return nT},Renderer:function(){return A5},Slugger:function(){return nW},TextRenderer:function(){return tW},Tokenizer:function(){return D5},defaults:function(){return ov},getDefaults:function(){return eW},lexer:function(){return y8e},marked:function(){return Nr},options:function(){return f8e},parse:function(){return g8e},parseInline:function(){return _8e},parser:function(){return v8e},setOptions:function(){return p8e},use:function(){return h8e},walkTokens:function(){return m8e}});var vn,Ut=m(3237),Wt=m(1120),H=m(3144),F=m(5671),qe=m(136),Be=m(9388),se=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,F.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,H.Z)(e)}(se.w_),zt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,se.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,se.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,se.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a<o.length;a++)i.remove(o[a])})}},deps:[Jt,se.K0,t.zs3],multi:!0}],ne=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,se.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),ye=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,F.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,H.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,F.Z)(this,n),this._doc=r}return(0,H.Z)(n,[{key:"addGlobalEventListener",value:function(e,i,o){var a=(0,se.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,F.Z)(this,n),this._stylesSet=new Set}return(0,H.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,F.Z)(this,e),(o=r.call(this))._doc=i,o._hostNodes=new Map,o._hostNodes.set(i.head,[]),o}return(0,H.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,se.q)().remove(n)}Nt.\u0275fac=function(r){return new(r||Nt)(t.LFG(se.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,F.Z)(this,n),this.eventManager=r,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Re(r)}return(0,H.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,F.Z)(this,n),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return(0,H.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){(fn(e)?e.content:e).appendChild(i)}},{key:"insertBefore",value:function(e,i,o){e&&(fn(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 fn(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,F.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,H.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,F.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,H.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,F.Z)(this,e),r.call(this,i)}return(0,H.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(se.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,F.Z)(this,e),r.call(this,i)}return(0,H.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,se.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 C=a.indexOf(g);C>-1&&(a.splice(C,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(se.K0))},nn.\u0275prov=t.Yz7({token:nn,factory:nn.\u0275fac});var Ca=[{provide:t.Lbi,useValue:se.bD},{provide:t.g9A,useValue:function yi(){zt.makeCurrent()},multi:!0},{provide:se.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:[se.K0,t.R0b,t.Lbi]},{provide:he,useClass:nn,multi:!0,deps:[se.K0]},{provide:Ye,useClass:Ye,deps:[Le,Nt,t.AFp]},{provide:t.FYo,useExisting:Ye},{provide:ut,useExisting:Nt},{provide:Nt,useClass:Nt,deps:[se.K0]},{provide:Le,useClass:Le,deps:[he,t.R0b]},{provide:se.JF,useClass:ye,deps:[]},[]],na=function(){function n(r){(0,F.Z)(this,n),false}return(0,H.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:[se.ez,t.hGG]});var Gn=function(){function n(r){(0,F.Z)(this,n),this._doc=r,this._dom=(0,se.q)()}return(0,H.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(se.K0))},Gn.\u0275prov=t.Yz7({token:Gn,factory:function(r){return r?new r:function _o(){return new Gn((0,t.LFG)(se.K0))}()},providedIn:"root"});var vr={httpEquiv:"http-equiv"};var ni=function(){function n(r){(0,F.Z)(this,n),this._doc=r}return(0,H.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(se.K0))},ni.\u0275prov=t.Yz7({token:ni,factory:function(r){return r?new r:function fi(){return new ni((0,t.LFG)(se.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,H.Z)(function n(r,e){(0,F.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Yi=function(){function n(r){(0,F.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,H.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,F.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,H.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)(se.K0),e=(0,t.f3M)(t.AFp),(i=new Ui).store=function qs(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 oi=(0,H.Z)(function n(){(0,F.Z)(this,n)});oi.\u0275fac=function(r){return new(r||oi)},oi.\u0275mod=t.oAB({type:oi}),oi.\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"),hu=new t.OlP("HammerLoader"),Ki=function(){function n(){(0,F.Z)(this,n),this.events=[],this.overrides={}}return(0,H.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}();Ki.\u0275fac=function(r){return new(r||Ki)},Ki.\u0275prov=t.Yz7({token:Ki,factory:Ki.\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,F.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,H.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),C=function(z){u.runGuarded(function(){s(z)})};return g.on(a,C),function(){g.off(a,C),"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(se.K0),t.LFG(Ai),t.LFG(t.c2e),t.LFG(hu,8))},tn.\u0275prov=t.Yz7({token:tn,factory:tn.\u0275fac});var en=(0,H.Z)(function n(){(0,F.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:[se.K0,Ai,t.c2e,[new t.FiY,hu]]},{provide:Ai,useClass:Ki,deps:[]}]});var Dr=(0,H.Z)(function n(){(0,F.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(qi)},providedIn:"root"});var qi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,H.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);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(se.K0))},qi.\u0275prov=t.Yz7({token:qi,factory:function(r){return r?new r:function no(n){return new qi(n.get(se.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 Ae(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 C(){}function Z(){}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=Z.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 Ae(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 C.prototype=Z,l(ae,"constructor",Z),l(Z,"constructor",C),C.displayName=l(Z,s,"GeneratorFunction"),n.isGeneratorFunction=function(bt){var $e="function"==typeof bt&&bt.constructor;return!!$e&&($e===C||"GeneratorFunction"===($e.displayName||$e.name))},n.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,Z):(bt.__proto__=Z,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,Ae.prototype={constructor:Ae,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 Ji,n,mu=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 Qi(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=Ji||(Ji={}))[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?Ji.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,C=void 0!==g&&g,Z=e.preventNamespaceInheritance,z=void 0!==Z&&Z;(0,F.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=C,this.preventNamespaceInheritance=z}return(0,H.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:Ji.RAW_TEXT}),script:new hr({contentType:Ji.RAW_TEXT}),title:new hr({contentType:{default:Ji.ESCAPABLE_RAW_TEXT,svg:Ji.PARSABLE_DATA}}),textarea:new hr({contentType:Ji.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=fa[n])&&void 0!==r?r:fa[n.toLowerCase()])&&void 0!==e?e:co}var Qo,Xo,go=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),fo=function(){function n(){(0,F.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,H.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(Z,z){z.notSelectors.length>0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),Z.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"}(Qo||(Qo={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(Xo||(Xo={}));var Br,gu,_u={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 vu(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"}(gu||(gu={}));var ks=/-+([a-z0-9])/g;function yu(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,H.Z)(function n(r){(0,F.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,F.Z)(this,n),this.digits=r}return(0,H.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,F.Z)(this,n),this.powerOfTwos=[r]}return(0,H.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,F.Z)(this,n),this.base=r,this.exponents=[new us(Cr.one())]}return(0,H.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,C=s,Z=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=le(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,C),l=Qn(l,Z),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||Ss(n)}function Ss(n){var r=new we;return Oe(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var bu=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 bu;var Pn,we=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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}(bu);function le(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($o(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 $o(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 Es,rc=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ac.None;(0,F.Z)(this,n),this.modifiers=r}return(0,H.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"}(Es||(Es={}));var mt,Mt,xs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,H.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,F.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,H.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(rc),vl=new xs(Es.Dynamic),Ma=new xs(Es.Inferred),Ie=new xs(Es.Bool),_e=(new xs(Es.Int),new xs(Es.Number)),xe=new xs(Es.String),ze=(new xs(Es.Function),new xs(Es.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 si(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 li=function(){function n(r,e){(0,F.Z)(this,n),this.type=r||null,this.sourceSpan=e||null}return(0,H.Z)(n,[{key:"prop",value:function(e,i){return new fC(this,e,null,i)}},{key:"key",value:function(e,i,o){return new kP(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,F.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,H.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}(li),gf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,H.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}(li),Ar=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,H.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}(li),vf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,H.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,Ds.Final)}}]),e}(li),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,F.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,H.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}(li),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,F.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,H.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}(li),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,F.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&si(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}(li),ie=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,H.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})&&si(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(li),ce=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&si(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(li),me=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,H.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}(li),Ue=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.elements=r,this.expressions=e}),Xe=(0,H.Z)(function n(r,e,i){var o;(0,F.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,H.Z)(function n(r,e){(0,F.Z)(this,n),this.text=r,this.sourceSpan=e}),rn=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),ui=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,xe,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,H.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}(li),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 Ds,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,F.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,H.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}(li),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,F.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,H.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}(li),Cu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,Ie,o)).condition=i,a}return(0,H.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}(li),ma=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,F.Z)(this,n),this.name=r,this.type=e}return(0,H.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),wu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(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 pM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(li),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,F.Z)(this,e),(l=r.call(this,a||_e,s)).operator=i,l.expr=o,l.parens=u,l}return(0,H.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}(li),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,F.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,H.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}(li),fC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,H.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}(li),kP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,H.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}(li),jl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,H.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(li),cM=function(){function n(r,e,i){(0,F.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,H.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,F.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(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}(li),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"}(Ds||(Ds={}));var fM=function(){function n(r,e,i){(0,F.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,H.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,F.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,H.Z)(e,[{key:"toString",value:function(){return function YW(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}(fM),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ds.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,F.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,H.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,F.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,H.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),pM=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,F.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,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(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,F.Z)(this,e),(s=r.call(this,Ds.None,o,a)).expr=i,s}return(0,H.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,F.Z)(this,e),(o=r.call(this,Ds.None,a,s)).value=i,o}return(0,H.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,F.Z)(this,e),(a=r.call(this,Ds.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,H.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&si(this.trueCase,o.trueCase)&&si(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function hM(){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 As(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new sh(n.map(function(e){return new cM(e.key,e.value,e.quoted)}),r,null)}function ch(n,r){return new Cu(n,r)}function oa(n,r,e,i,o){return new wu(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 ui(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 SP=qr("<unknown>"),EP={},xP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,H.Z)(e,[{key:"visitExpression",value:function(o,a){return a===EP?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}(li),wf=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,F.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,H.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof me&&!Lv(e)||e instanceof xP)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new xP(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 wu([],[new Sa(e)])),d=qr(l).callFn([])):(u=qr(l).set(e),d=qr(l)),this.statements.push(u.toDeclStmt(Ma,Ds.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:SP}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=As(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:SP,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return As(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(C){return!C.isConstant()});if(!s){var u=i.map(function(C,Z){return C.isConstant()?a.getConstLiteral(C,!0):qr("a".concat(Z))}),h=oa(u.filter(Za).map(function(C){return new ma(C.name,vl)}),[new Sa(o(u))],Ma),g=this.freshName();this.statements.push(qr(g).set(h).toDeclStmt(Ma,Ds.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 DP,EP)}}]),n}(),DP=function(){function n(){(0,F.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,H.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,H.Z)(function n(){(0,F.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,F.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,H.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,C){i.set(g,C),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(C){var Z=dh(C.col0-l);return l=C.col0,null!=C.sourceUrl&&(Z+=dh(i.get(C.sourceUrl)-u),u=i.get(C.sourceUrl),Z+=dh(C.sourceLine0-d),d=C.sourceLine0,Z+=dh(C.sourceCol0-h),h=C.sourceCol0),Z}).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 AP(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 fF=/'|\\|\n|\r|\$/g,pF=/^[$A-Z_][0-9A-Z_$]*$/i,hF=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),IP=function(){function n(r){(0,F.Z)(this,n),this._indent=r,this._lines=[new hF(r)]}return(0,H.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 hF(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,C=u.indent*" ".length,Z=0;Z<h.length&&!h[Z];)C+=g[Z].length,Z++;for(Z<h.length&&0===d&&0===C?a=!0:s();Z<h.length;){var z=h[Z],q=z.start.file,re=z.start.line,ae=z.start.col;for(o.addSource(q.url,q.content).addMapping(C,q.url,re,ae),C+=g[Z].length,Z++;Z<h.length&&(z===h[Z]||!h[Z]);)C+=g[Z].length,Z++}}),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,F.Z)(this,n),this._escapeDollarInStrings=r}return(0,H.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(fF,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||!pF.test(i);return o?"'".concat(i,"'"):i}function fh(n){for(var r="",e=0;e<n;e++)r+=" ";return r}function mM(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 PP(n){return"".concat("@").concat(n)}function mF(n,r){return"".concat("@").concat(n,".").concat(r)}function RP(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=vM(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(Z){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(Z).toStmt()])),z}if(vM(n)){var u=s_(n.delegateDeps,n.target);s=l(new(n.delegateType===Bv.Class?ce:ah)(n.delegate,u))}else s=function LP(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 C=oa([new ma("t",vl)],a,Ma,void 0,"".concat(n.name,"_Factory"));return null!==e&&(C=oa([],[new bf(e.name),new Sa(C)]).callFn([],void 0,!0)),{expression:C,statements:[],type:gM(n)}}function gM(n){var r=null!==n.deps&&"invalid"!==n.deps?function yF(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?As(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,[mM(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 yM(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 vM(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,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,H.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),vC=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),bM=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),CM=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,H.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,F.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,H.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,F.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,H.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,F.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,H.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,C){(0,F.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=C}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),ZP=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),wM=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),Hv=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,H.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),jv=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,H.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,H.Z)(function n(r,e,i,o,a,s){(0,F.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 FP(n){var r=new CF,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=[]}),kM=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),c_=function(){function n(r,e){(0,F.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),NP=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),JW=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.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,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),BP=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),bC=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var CF=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),UP=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 UP;function SF(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Gv="i18n-";function SM(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 NP}function ku(n){return!!n.i18n}function xM(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 DM(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 VP(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 BP}).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=SF(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 AM(n){return"".concat("MSG_").concat(n).toUpperCase()}function OF(n){return new bf(n.name,void 0,Ma,void 0,n.sourceSpan)}var YP=/[-.]/,OM="_t",sc="ctx",_h="rf",qP="restoredCtx",PF=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 PM(n,r){return Object.getOwnPropertyNames(n).length>0?function f_(n,r){return As(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:YP.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 JP(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,F.Z)(this,n),this.values=[]}return(0,H.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return As(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&&PF.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 XP(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:e3(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:e3(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:$P(n),statements:e.statements}}function $P(n){return new gl(Xn(Ne.InjectableDeclaration,[mM(n.type.type,n.typeArgumentCount)]))}function e3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):t3(e?Xn(Ne.resolveForwardRef).callFn([r]):r)}function t3(n){return oa([new ma("t",vl)],[new Sa(n.prop("\u0275fac").callFn([qr("t")]))])}var n3=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var LM=function(){function n(r,e){(0,F.Z)(this,n),this.start=r,this.end=e}return(0,H.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function RM(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];n3.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 LM("{{","}}"),Rf=123,Rc=125;function jM(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 GM(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,F.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,H.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}(),zM=(0,H.Z)(function n(r,e){(0,F.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,F.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,H.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,F.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,H.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 FF=0;function Th(n){return n.replace(/\W/g,"_")}var RC,h3='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',HF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.call(this,!1)}return(0,H.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(h3,"(")),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(h3,"("));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 m3(n){var r;return(null===(r=function jF(){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(m3(a));return void 0===s.bind?(0,Jr.Z)(Function,r):(s.toString=function(){return a},s.bind(Ja))}var _3=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new VM(o),l=IP.createRoot();return i.length>0&&!function GF(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 C=$v.apply(void 0,(0,cn.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,cn.Z)(i))}}]),n}(),VM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,H.Z)(e,[{key:"createReturnStmt",value:function(o){new Sa(new sh(this._evalExportedVars.map(function(s){return new cM(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(Ds.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(Ds.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 UF(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(FF++),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}(HF);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:YM(n),statements:[]}}function YM(n){return new gl(Xn(Ne.InjectorDeclaration,[new gl(n.type.type)]))}var Mh,Tu,g3=function(){function n(r){(0,F.Z)(this,n),this.context=r}return(0,H.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 v3(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=[],C=new Ba;if(C.set("type",e),i.length>0&&C.set("bootstrap",oc(i,u)),d===Mh.Inline)o.length>0&&C.set("declarations",oc(o,u)),a.length>0&&C.set("imports",oc(a,u)),s.length>0&&C.set("exports",oc(s,u));else if(d===Mh.SideEffect){var Z=function WF(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 gF(n){return gC("ngJitMode",n)}(new ah(Xn(Ne.setNgModuleScope),[r,s.toLiteralMap()])),d=new wu([],[u.toStmt()]);return new ah(d,[]).toStmt()}(n);null!==Z&&g.push(Z)}return null!==l&&l.length>0&&C.set("schemas",pi(l.map(function(re){return re.value}))),null!==h&&(C.set("id",h),g.push(Xn(Ne.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Xn(Ne.defineNgModule).callFn([C.toLiteralMap()],void 0,!0),type:y3(n),statements:g}}function y3(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?KM(e):VF(s),a?KM(o):ze,KM(i)]))}function KM(n){var r=n.map(function(e){return hC(e.type)});return n.length>0?ps(pi(r)):ze}function VF(n){var r=n.map(function(e){return hC(e)});return n.length>0?ps(pi(r)):ze}function YF(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([As(r)],void 0,!0),type:KF(n),statements:[]}}function KF(n){return new gl(Xn(Ne.PipeDeclaration,[mM(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"}(Tu||(Tu={}));var Eh,ey=(0,H.Z)(function n(r,e,i,o){(0,F.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,F.Z)(this,n),this.start=r,this.end=e}return(0,H.Z)(n,[{key:"toAbsolute",value:function(e){return new Rs(e+this.start,e+this.end)}}]),n}(),Fa=function(){function n(r,e){(0,F.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,H.Z)(e)}(Fa),Mu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,H.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),b3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,H.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,F.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,H.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,F.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,H.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,F.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,H.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),qM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,H.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,F.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,H.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),Is=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,H.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),Ps=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,H.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,F.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,H.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 Is(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Is(o,a,0))}}]),e}(Ps),ay=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,H.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),JM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,H.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,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,H.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,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,H.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),Rs=(0,H.Z)(function n(r,e){(0,F.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,F.Z)(this,e),(u=r.call(this,new w_(0,null===o?0:o.length),new Rs(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,H.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),QM=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),qF=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),JF=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),XM=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 Is(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 Ps(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 JM(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new b3(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 qM(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}(),QF=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 Ps(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 JM(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 b3(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 qM(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,H.Z)(function n(r,e,i,o,a,s){(0,F.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 $M=(0,H.Z)(function n(r,e,i,o,a,s,l){(0,F.Z)(this,n),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),aV=(0,H.Z)(function n(r,e,i,o,a){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),C3=(0,H.Z)(function n(r,e,i,o,a,s,l,u){(0,F.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,H.Z)(function n(){(0,F.Z)(this,n)});function XF(n,r,e,i,o,a,s){n||(n=new S3(s));var l=function S_(n,r){return function k3(n,r){var e=new rS(n);return r.visit(e)}(n,r)}({createLiteralArrayConverter:function(Z){return function(z){return pi(z)}},createLiteralMapConverter:function(Z){return function(z){return As(Z.map(function(re,ae){return{key:re.key,value:z[ae],quoted:re.quoted}}))}},createPipeConverter:function(Z){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(Z))}},e),u=new xh(n,r,i,!1,o,a),d=[];M3(l.visit(u,ji.Statement),d),function T3(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,H.Z)(function n(r,e){(0,F.Z)(this,n),this.stmts=r,this.currValExpr=e});function w3(n,r,e,i){n||(n=new S3);var o=new xh(n,r,i,!1),a=e.visit(o,ji.Expression),s=eS(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new E_(s,a)}function eS(n,r){for(var e=[],i=0;i<n.temporaryCount;i++)e.push(FC(r,i));return e}function tS(n,r){return"tmp_".concat(n,"_").concat(r)}function FC(n,r){return new bf(tS(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 rS=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,H.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}(XM),xh=function(){function n(r,e,i,o,a,s){(0,F.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,H.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 nS(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 $F(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(tS(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=tS(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 M3(n,r){Array.isArray(n)?n.forEach(function(e){return M3(e,r)}):r.push(n)}function iS(){throw new Error("Unsupported operation")}var ly,$F=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=iS,o.isEquivalent=iS,o.visitExpression=iS,o}return(0,H.Z)(e)}(li),S3=function(){function n(r){(0,F.Z)(this,n),this.globals=r}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o,new Mu(i,o),a,null)).converter=s,l}return(0,H.Z)(e)}(M_);function E3(){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 x3(n){return Id.has(n.toLowerCase())}var e4=function(){function n(){(0,F.Z)(this,n),this.strictStyling=!0}return(0,H.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=c4(e);e=l4(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(uV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(D3,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(t4.lastIndex=0;null!==(o=t4.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(n4,function(i,o,a){if(o){var d,s=[],l=o.split(",").map(function(C){return C.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(C){u.e(C)}finally{u.f()}return s.join(",")}return Ah+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(O3,function(i){for(var o,s,a=[[]];s=r4.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;h4(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 p4(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 i4.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return Z3(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 Z3(e,function(i){var o=i.selector.replace(oS," ").replace(Su," ");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(oS)}).map(function(l){var Z,u=(0,mu.Z)(l),d=u[0],h=u.slice(1);return[(Z=d,s._selectorNeedsScoping(Z,i)?a?s._applyStrictSelectorScope(Z,i,o):s._applySelectorScope(Z,i,o):Z)].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+")"+o4,"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(Su,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 C,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 Ae=Ke.replace(x_,"");if(Ae.length>0){var it=Ae.match(/([^:]*)(:*)(.*)/);it&&(st=it[1]+l+it[2]+it[3])}}return st},d=new lV(e),h="",g=0,Z=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Ah)>-1);null!==(C=Z.exec(e));){var re=C[1],ae=e.slice(g,C.index).trim(),Se=(q=q||ae.indexOf(Ah)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=Z.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(s4,A3).replace(a4,uy)}}]),n}(),lV=function(){function n(r){var e=this;(0,F.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,H.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}(),uV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,D3=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,t4=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,uy="-shadowcsshost",A3="-shadowcsscontext",HC="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",n4=new RegExp(uy+HC,"gim"),O3=new RegExp(A3+HC,"gim"),r4=new RegExp(A3+HC,"im"),Ah=uy+"-no-combinator",Su=/-shadowcsshost-no-combinator([^\s]*)/,i4=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],oS=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,o4="([>\\s~+[.,{:][\\s\\S]*)?$",x_=/-shadowcsshost/gim,a4=/:host/gim,s4=/:host-context/gim,I3=/\/\*[\s\S]*?\*\//g;function l4(n){return n.replace(I3,"")}var u4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function c4(n){return n.match(u4)||[]}var jr="%BLOCK%",R3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,L3=/%QUOTED%/g,d4=new Map([["{","}"]]),f4=new Map([['"','"'],["'","'"]]),jC=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.selector=r,this.content=e});function Z3(n,r){var e=B3(n,f4,"%QUOTED%"),i=B3(e.escapedString,d4,jr),o=0,a=0;return i.escapedString.replace(R3,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(L3,function(){return e.blocks[a++]})}var N3=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.escapedString=r,this.blocks=e});function B3(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 N3(i.join(""),o)}function h4(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 aS(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,F.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,H.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(G3(o))return null;(function j3(n){return n.startsWith("--")})(e)||(e=bl(e));var l=H3(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),U3(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(G3(o))return null;var s=H3(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),U3(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 F3(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?aS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?aS(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 _4(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 g4(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,C=2;h instanceof $a&&(C+=h.expressions.length,a&&(g=a(h)));var Z={sourceSpan:u.sourceSpan,allocateBindingSlots:C,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(Z):l.push({reference:g,calls:[Z]})}),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,v4,!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 U3(n,r){n.has(r)||n.set(r,n.size)}function H3(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 v4(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 G3(n){return n instanceof Nf&&(n=n.ast),n instanceof Mu}!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"],z3=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"tokenize",value:function(e){for(var i=new V3(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,F.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,H.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 sS(n,r,e){return new Zc(n,r,Xr.Character,e,String.fromCharCode(e))}function lS(n,r,e){return new Zc(n,r,Xr.Operator,0,e)}var zC=new Zc(-1,-1,Xr.Character,0,""),V3=function(){function n(r){(0,F.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,H.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):sS(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(;jM(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(),sS(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),lS(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),lS(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 b4(n,r,e){return new Zc(n,r,Xr.Keyword,0,e)}(e,this.index,i):function y4(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 W3(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(),Y3(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 M4(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function w4(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=K3(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 C4(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()),lS(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function k4(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 Y3(n){return 45==n||43==n}function K3(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,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),q3=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),uS=function(){function n(r){(0,F.Z)(this,n),this._lexer=r,this.errors=[]}return(0,H.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 J3;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 Rs(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=[],C=0;C<d.length;++C){var Z=d[C].text,z=this._stripComments(Z),q=this._lexer.tokenize(z),re=new tl(e,i,o,q,0,this.errors,h[C]).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?S4(o):null,g=0,C=!1,Z=!1,z=a.start,q=a.end;g<e.length;)if(C){var Se=g,Ce=Se+z.length,Ee=this._getInterpolationEndIndex(e,q,Ce);if(-1===Ee){C=!1,Z=!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 Ae=null!==(s=null==h?void 0:h.get(Se))&&void 0!==s?s:Se,it=Ae+z.length;d.push(it),g=Ke,C=!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}),C=!0}if(!C)if(Z){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 Is(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(C){d.e(C)}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,F.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,H.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 Mu(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 Mu(this.span(e),this.sourceSpan(e))}return new b3(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 Ps(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 Ps(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 Ps(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 Ps(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 Ps(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 Ps(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 Ps(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 JM(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 Is(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Is(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Is(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Is(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 Is(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Is(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Mu(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Mu(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Mu(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,C=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===C.length&&a.error("Expected identifier for property access",e.span.end),C}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Mu(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 Mu(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 Rs(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 q3(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 Mu&&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 qM(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new Mu(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 Rs(e.span.start,a);return i.push(new qF(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 Rs(e.span.start,this.currentAbsoluteOffset);return new QM(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 Rs(e,this.currentAbsoluteOffset);return new QM(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}(),J3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,H.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(JF);function S4(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,H.Z)(function n(r,e){(0,F.Z)(this,n),this.sourceSpan=r,this.i18n=e}),Eu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,H.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,F.Z)(this,e),(d=r.call(this,s,u)).switchValue=i,d.type=o,d.cases=a,d.switchValueSourceSpan=l,d}return(0,H.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,F.Z)(this,n),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,H.Z)(n,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),n}(),cS=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,F.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,H.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(Oh),X3=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,F.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,H.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Oh),fy=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,H.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,F.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,H.Z)(e)}(kh),fS=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var my,E4=/\r\n?/g;function hy(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function $3(n){return'Unknown entity "'.concat(n,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(my||(my={}));var e6=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.error=r}),D4=function(){function n(r,e,i){(0,F.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 hV(r,o):new I4(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,H.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(E4,"\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 dV(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 e6(o)}},{key:"handleError",value:function(e){if(e instanceof n6&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof e6))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 fV(n,r){return O4(n)===O4(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(A4),59!=this._cursor.peek()){this._cursor.advance();var s=o?my.HEX:my.DEC;throw this._createError(function x4(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(C){throw this._createError($3(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var d=this._cursor.clone();if(this._attemptCharCodeUntilFn(hS),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($3(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()&&!t6(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(pS,""===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(xu);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(xu),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(xu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(xu);this._consumeTagOpenEnd()}catch(l){if(l instanceof e6)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===Ji.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===Ji.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(xu),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(xu),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 pS(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(xu);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(xu),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(xu),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(xu)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Rf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(xu),this._beginToken(21),this._requireCharCode(Rf),this._endToken([]),this._attemptCharCodeUntilFn(xu),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Rc),this._endToken([]),this._attemptCharCodeUntilFn(xu),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 xu(n){return!jM(n)||0===n}function pS(n){return jM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function t6(n){return(n<97||122<n)&&(n<65||90<n)&&(n<48||n>57)}function A4(n){return 59===n||0===n||!function xd(n){return n>=97&&n<=102||n>=65&&n<=70||Lf(n)}(n)}function hS(n){return 59===n||0===n||!y_(n)}function O4(n){return n>=97&&n<=122?n-97+65:n}function pV(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 I4=function(){function n(r,e){if((0,F.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,H.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 n6('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}(),hV=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.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,H.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(GM(a())){for(var h="",g=0,C=this.clone();GM(a())&&g<3;)C=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),g++;this.state.peek=parseInt(h,8),this.internalState=C.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 n6("Invalid hexadecimal escape sequence",o);return l}}]),e}(I4),n6=(0,H.Z)(function n(r,e){(0,F.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,F.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,H.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(kh),r6=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.rootNodes=r,this.errors=e}),mV=function(){function n(r){(0,F.Z)(this,n),this.getTagDefinition=r}return(0,H.Z)(n,[{key:"parse",value:function(e,i,o){var a=function cV(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new D4(new zM(n,r),e,i);return o.tokenize(),new fS(pV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new Hf(a.tokens,this.getTagDefinition);return s.build(),new r6(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),Hf=function(){function n(r,e){(0,F.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,H.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,i6):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new Eu(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),C=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),Z=new X3(l,s,[],g,C,void 0);this._pushElement(Z),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,i6):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 C=l&&u&&new Xa(l.start,u,l.fullStart);return new cS(i,a,new Xa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,C,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 i6(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 o6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.call(this,ka)}return(0,H.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}(mV),KC="ngPreserveWhitespaces",a6=new Set(["pre","template","textarea","script","style"]),qC=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",P4=new RegExp("[^".concat(qC,"]")),jf=new RegExp("[".concat(qC,"]{2,}"),"g");function l6(n){return n.replace(new RegExp("\ue500","g")," ")}var u6=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"visitElement",value:function(e,i){return a6.has(e.name)||function s6(n){return n.some(function(r){return r.name===KC})}(e.attrs)?new X3(e.name,Nc(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new X3(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(P4),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 c6(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[d6(e[0])],sourceSpan:i}}(u):u}),l=d6(e.value);return new Eu(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 d6(n){return l6(n).replace(jf," ")}function I_(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return As(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var P_=(0,H.Z)(function n(){(0,F.Z)(this,n)}),_S=["[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:|"],gS=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),vS=Array.from(gS).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),m6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,_S.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(","),C=d.split("^"),Z=(0,Yn.Z)(C,2),z=Z[0],q=Z[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 Ae,st=(0,An.Z)(i._eventSchema.get(q.toLowerCase()));try{for(st.s();!(Ae=st.n()).done;){var it=Ae.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,H.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(Qi(o)||Ii(o))return!1;if(s.some(function(u){return u.name===_u.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&&(Qi(o)||Ii(o)||a.some(function(s){return s.name===_u.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=E3()[o+"|"+a];return l||((l=E3()["*|"+a])||Br.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=gS.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=vS.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 gV(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 _6=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function yS(n,r){return n=n.toLowerCase(),r=r.toLowerCase(),_6.has(n+"|"+r)||_6.has("*|"+r)}var XC="animate-",L4=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,H.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 Z,h=o.start.offset+"*".length,g=this._parseTemplateBindings(e,i,o,h,a),C=(0,An.Z)(g);try{for(C.s();!(Z=C.n()).done;){var z=Z.value,q=Rd(o,z.sourceSpan),re=z.key.source,ae=Rd(o,z.key.span);if(z instanceof QM){var Se=z.value?z.value.source:"$implicit",Ce=z.value?Rd(o,z.value.span):void 0;u.push(new aV(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){C.e(st)}finally{C.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){bS(e)?(e=e.substring(1),void 0!==d&&(d=Rd(d,new Rs(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 Rs(h.start.offset+XC.length,h.end.offset)))):bS(e)&&(g=!0,e=e.substring(1),void 0!==h&&(h=Rd(h,new Rs(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 C3(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 C=u.substring(0,g),Z=u.substring(g+1);u=Hi(C,Z)}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 C3(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),bS(e)?(e=e.slice(1),void 0!==d&&(d=Rd(d,new Rs(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 yu(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new $M(h,g,1,C,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 yu(n,":",r)}(e,[null,e]),g=(0,Yn.Z)(h,2),C=g[0],Z=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new $M(Z,C,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 Mu?(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 bS(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 Ls,N4=/^([^:/?#]+):/;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 z4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=Ls.OTHER;return Ii(s)?l=Ls.NG_CONTENT:"style"==s?l=Ls.STYLE:"script"==s?l=Ls.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Ls.STYLESHEET),new G4(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"}(Ls||(Ls={}));var G4=(0,H.Z)(function n(r,e,i,o,a){(0,F.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var vV=/^(?:(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 yV(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,yV=function(){function n(r,e){(0,F.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,H.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===Ls.SCRIPT)return null;if(a.type===Ls.STYLE){var s=function TS(n){return 1===n.children.length&&n.children[0]instanceof Eu?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Ls.STYLESHEET&&function Z4(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(N4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function ai(n){return"ng-template"===Oi(n)[1]}(e.name),u=[],d=[],h=[],g=[],C=[],Z={},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=kS(Ce.name),st=!1;if(Ce.i18n&&(Z[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 Ae=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,Ae,Ce.sourceSpan,bt,[],z,ft,!0),q.push.apply(q,(0,cn.Z)(ft.map(function(_r){return new wM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!st&&C.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Pe,$e=Nc(a.nonBindable?bV:this,e.children);if(a.type===Ls.NG_CONTENT){e.children&&!e.children.every(function(_r){return function E6(n){return n instanceof Eu&&0==n.value.trim().length}(_r)||function x6(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 ZP(ct,Bt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ct)}else if(l){var Ht=this.extractAttributes(e.name,u,Z);Pe=new Sd(e.name,C,Ht.bound,d,[],$e,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var Pt=this.extractAttributes(e.name,u,Z);Pe=new hh(e.name,C,Pt.bound,d,$e,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,Z),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 CM(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 bM(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 CM(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=kS(i.name),g=i.value,C=i.sourceSpan,Z=i.valueSpan?i.valueSpan.start.offset:C.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(vV);if(q){if(null!=q[1]){var re=q[7],ae=z(C,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,C,Z,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(C,q[2],Se);this.parseVariable(Se,g,C,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Ee=q[7],Ke=z(C,q[3],Ee);this.parseReference(Ee,g,C,Ke,i.valueSpan,u)}else if(q[4]){var st=[],Ae=q[7],it=z(C,q[4],Ae);this.bindingParser.parseEvent(Ae,g,!1,C,i.valueSpan||C,o,st,it),n1(st,s)}else if(q[5]){var ft=q[7],bt=z(C,q[5],ft);this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ft,g,C,i.valueSpan,o,s,bt)}else if(q[6]){var $e=z(C,"",h);this.bindingParser.parseLiteralAttr(h,g,C,Z,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(C,Pe.start,ct);if(Pe.start===cc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ct,g,!1,C,Z,i.valueSpan,o,a,Bt),this.parseAssignmentEvent(ct,g,C,i.valueSpan,o,s,Bt);else if(Pe.start===cc_PROPERTY.start)this.bindingParser.parsePropertyBinding(ct,g,!1,C,Z,i.valueSpan,o,a,Bt);else{var Ht=[];this.bindingParser.parseEvent(ct,g,!1,C,i.valueSpan||C,o,Ht,Bt),n1(Ht,s)}return!0}var Pt=z(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,C,i.valueSpan,o,a,Pt,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=l6(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new bM(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 wM(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}(),wS=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"visitElement",value:function(e){var i=uc(e);if(i.type===Ls.SCRIPT||i.type===Ls.STYLE||i.type===Ls.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 CM(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}(),bV=new wS;function kS(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,F.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,H.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(D6))}),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;VP(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 MS(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 D6(n){var r=function(a,s){return MS("#",a,s)},e=function(a,s){return MS("*",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 V4=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),Y4=new V4;function R_(n){return n.visit(Y4)}var A6={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"},CV=function(){function n(){(0,F.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,H.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=A6[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=A6[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}(),K4=new uS(new z3);function wV(n){var r=new J4(K4,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function q4(n,r){return r}var J4=function(){function n(r,e){(0,F.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,H.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 CV,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||q4},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 JW(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 kM(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 kM(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 NP(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],C=ES(g)||"INTERPOLATION",Z=o.placeholderRegistry.getPlaceholderName(C,g);o.placeholderToContent[Z]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new BP(g,Z,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof kM?(z.value+=h.parts[0],z.sourceSpan=new Xa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new kM(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function Q4(n,r){if(r instanceof Tf&&(function O6(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 SS(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 X4=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function ES(n){return n.split(X4)[2]}var $4=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){return(0,F.Z)(this,e),r.call(this,i,o)}return(0,H.Z)(e)}(kh),e8=function(r,e){return r instanceof Oh&&(e instanceof bC&&r.i18n instanceof Tf&&(e.previousMessage=r.i18n),r.i18n=e),e},I6=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,F.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=wV(this.interpolationConfig)}return(0,H.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 r6(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function EM(n){return n.attrs.some(function(r){return SM(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,e8)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(Gv)){var h=u.name.slice(Gv.length);yS(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 C,g=(0,An.Z)(o);try{for(g.s();!(C=g.n()).done;){var Z=C.value,z=a[Z.name];void 0!==z&&Z.value&&(Z.i18n=this._generateI18nMessage([Z],Z.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;xM(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 r8(){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),Ss(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 $4(e.sourceSpan,i))}}]),n}();function kV(n,r,e,i){var o=function o8(n){return n.nodes.map(function(r){return r.visit(i8,null)}).join("")}(r),a=[on(o)];Object.keys(i).length&&(a.push(I_(TC(i,!0),!0)),a.push(I_({original_code:As(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}),hM(r)}(r)),[s,new uh(n.set(e))]}var yy=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),i8=new yy;function xS(n,r,e){var i=function Bc(n){var r=[],e=new a8(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function Zs(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 a8=function(){function n(r,e){(0,F.Z)(this,n),this.placeholderToMessage=r,this.pieces=e}return(0,H.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 Du="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=XF(e,h,l,"b",n.handlerSpan,d,l1),C=[],Z=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(Z&&C.push.apply(C,(0,cn.Z)(Z)),C.push.apply(C,(0,cn.Z)(g)),z){C.unshift(z);var q=C[C.length-1];q instanceof Sa?C[C.length-1]=new Sa(gh(q.value.sourceSpan,Ne.resetView,[q.value])):C.push(new uh(gh(null,Ne.resetView,[])))}var re=1===i?mF(o,s):o,ae=r&&Th(r),Se=[];d.has(u)&&Se.push(new ma(u,vl));var Ce=oa(Se,C,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,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Z_();(0,F.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=C,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(Z){return i.allocatePureFunctionSlots(Z)},function(Z,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Ne.pipe,[on(q),on(Z)])})}return(0,H.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=RS(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?vu(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),C=SC(this._updateCodeFns),Z=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[ql(1,Z.concat(g))]:[],re=C.length>0?[ql(2,z.concat(C))]:[];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=LS(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(qP),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,Z=function Os(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(Z)}}}),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=AM("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(Th(e),"$$").concat(s)}else{var l=AM(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 C,u=e.getSerializedPlaceholders(),d={},h=u.size?DM(u):{};i.size&&i.forEach(function(Z,z){if(1===Z.length)h[z]=Z[0];else{var q=d_("".concat("I18N_EXP_").concat(z));h[z]=on(q),d[z]=pi(Z)}}),(Array.from(u.values()).some(function(Z){return Z.length>1})||Object.keys(d).length)&&(C=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,C)}}},{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 C=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Ne.i18nExp,function(){return e.convertPropertyBinding(C)})};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,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof $a){var z=DM(VP(g));l.push(on(h.name),a.i18nTranslate(g,z)),C.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),C=(0,Yn.Z)(g,2),Z=C[0],z=C[1],q=Qi(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=[],Ae=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?Ae.push(un):st.push(un))});var it=this.getAttributeExpressions(e.name,h,st,e.outputs,l,[],Ae);Ke.push(this.addAttrsToConsts(it));var ft=this.prepareRefsArray(e.references);Ke.push(this.addToConsts(ft));var bt=this._namespace,$e=this.getNamespaceInstruction(Z);$e!==bt&&this.addNamespaceInstruction($e,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Pe=!d&&this.i18n?!RS(e.children):e.children.length>0,ct=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Ae.length&&!Pe,Bt=!ct&&RS(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),Ae.length>0&&this.i18nAttributesInstruction(s,Ae,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 Is)||!!Nn.value;i.allocateBindingSlots(Nn),Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return rr?i.convertPropertyBinding(Nn):_r},PP(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 PS(n){return"iframe"===n.toLowerCase()}(e.name)&&x3(un.name)&&(Pa=Xn(Ne.validateIframeAttribute)),Pa&&eo.push(Pa),Av){var CP=on(Av);Pa?eo.push(CP):eo.push(on(null),CP)}if(i.allocateBindingSlots(gr),0===bn)gr instanceof $a?i.interpolatedUpdateInstruction(Z6(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 l8(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 WW=gr instanceof $a?gr.expressions[0]:gr;Hr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(WW)},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 br=0,Mn=Hr;br<Mn.length;br++){var gn=Mn[br];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 C=this.prepareRefsArray(e.references);h.push(this.addToConsts(C)),h.push(Xn(Ne.templateRefExtractor))}var Z=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=Z.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(Ke.toDeclStmt(d)),Z._ngContentReservedSlots.length)&&(st=i._ngContentReservedSlots).push.apply(st,(0,cn.Z)(Z._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,Ne.templateCreate,function(){return h.splice(2,0,on(Z.getConstCount()),on(Z.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,ku),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 N6(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 Z=TC(Object.assign(Object.assign({},a),s),!1);return gh(null,Ne.i18nPostprocess,[g,I_(Z,!0)])};if(wC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(xM(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 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof $a){o.interpolatedUpdateInstruction(Z6(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(Z){s.e(Z)}finally{s.f()}for(var h=0,g=a;h<g.length;h++){var C=g[h];this.updateInstructionWithAdvance(e,C.span,Ne.property,C.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=w3(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 sV(n,r,e,i){var o=new xh(n,r,i,!0),a=o.visitInterpolation(e,ji.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:eS(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,Z,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],C=(0,An.Z)(i);try{for(C.s();!(Z=C.n()).done;){var z=Z.value;if(z.name===Du&&(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)(OS(z.name)).concat([c8(e,z)]))}}catch(Ae){C.e(Ae)}finally{C.f()}function ae(Ae,it){"string"==typeof Ae?d.has(Ae)||(h.push.apply(h,(0,cn.Z)(OS(Ae))),void 0!==it&&h.push(it),d.add(Ae)):h.push(on(Ae))}if(g&&h.push.apply(h,(0,cn.Z)(L6(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(Ae){return ae(Ae.name)})),u.length&&(h.push(on(6)),u.forEach(function(Ae){return ae(Ae.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 C=g>0?[u1(g).toStmt()]:[],Z=d.set(Xn(Ne.reference).callFn([on(s)]));return C.concat(Z.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?RP(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,F.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,H.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,C=h.isVarLength;this.definePipe(o.name,l,s,Xn(g));var Z=[o.exp].concat((0,cn.Z)(o.args)),z=C?this.visitAll([new NC(o.span,o.sourceSpan,Z)]):this.visitAll(Z),q=new M_(o.span,o.sourceSpan,d,[new Is(o.span,o.sourceSpan,s),new Is(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 AS(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=As(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return AS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(QF),B_=[Ne.pipeBind1,Ne.pipeBind2,Ne.pipeBind3,Ne.pipeBind4];var P6=[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 AS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function DS(n){var r=P6[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 OS(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$$",R6=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,F.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,H.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(qP).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 L6(n){var r=vu(n.value)[0];return[on(5),Wl(r)]}function Z6(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 IS=new m6;function U_(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl;return new L4(new uS(new z3),n,IS,[])}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 c8(n,r){var e=Wl(r.value);if(!yS(n,r.name))return e;switch(IS.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 bM||n instanceof jv}function RS(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 LS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[OF(r),Cf(B6(),kV(r,n,e,i),xS(r,n,TC(i,!1)))];return o&&a.push(new uh(r.set(o(r)))),a}function B6(){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 F6=/attr\.([^\]]+)/,NS="_nghost-".concat("%COMP%"),BS="_ngcontent-".concat("%COMP%");function U6(n,r,e){var i=new Ba,o=vu(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)(HS(u,r)))).toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),C=qr(sc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(C).toStmt())}}catch(z){s.e(z)}finally{s.f()}var Z=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,Z)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function z6(n,r,e){var i=[],o=[],a=MC(o,OM);n.forEach(function(l){var u=Xn(Ne.viewQuery).callFn(HS(l,r));i.push(u.toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),C=qr(sc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(C).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 W6(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 C=[],Z=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&C.push.apply(C,(0,cn.Z)(function p8(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?RP(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 C=0,Z=i;C<Z.length;C++){var z=Z[C];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=[],Ae=[],it=[],ft=0,bt=Se;ft<bt.length;ft++){var $e=bt[ft],Pe=$e.expression.visit(Ke()),ct=YS(l,Pe),Bt=f8($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):x3(Ht)&&ar.push(Xn(Ne.validateIframeAttribute)),z.push.apply(z,(0,cn.Z)(ct.stmts)),Pt===Ne.hostProperty?st.push(ar):Pt===Ne.attribute?Ae.push(ar):Pt===Ne.syntheticHostProperty?it.push(ar):Z.push({reference:Pt,paramsOrFn:ar,span:null})}for(var kr=0,_r=st;kr<_r.length;kr++){var Wr=_r[kr];Z.push({reference:Ne.hostProperty,paramsOrFn:Wr,span:null})}for(var Hr=0,Kr=Ae;Hr<Kr.length;Hr++){var Ho=Kr[Hr];Z.push({reference:Ne.attribute,paramsOrFn:Ho,span:null})}for(var tr=0,br=it;tr<br.length;tr++){var Mn=br[tr];Z.push({reference:Ne.syntheticHostProperty,paramsOrFn:Mn,span:null})}var gn=function jS(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),Z.push({reference:bn.reference,paramsOrFn:TV(gr,l,YS),span:null})}}catch(eo){Nn.e(eo)}finally{Nn.f()}}),Ce&&s.set("hostVars",on(Ce)),C.length>0||Z.length>0){var nr=a?"".concat(a,"_HostBindings"):null,un=[];return C.length>0&&un.push(ql(1,SC(C))),Z.length>0&&un.push(ql(2,z.concat(SC(Z)))),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",PM(n.inputs,!0)),i.set("outputs",PM(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 FS(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 j6(n,r,e){var i=U6(n,r,e);FS(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,R6.createRootScope(),0,l,null,null,u,Ne.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),C=g.buildTemplateFunction(h.nodes,[]),Z=g.getNgContentSelectors();Z&&i.set("ngContentSelectors",Z),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",C),n.declarations.length>0&&i.set("dependencies",function d8(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=Qo.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==Qo.Emulated?function Y6(n,r,e){var i=new e4;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,BS,NS):n.styles,Ce=Se.reduce(function(st,Ae){return Ae.trim().length>0&&st.push(r.getConstLiteral(on(Ae))),st},[]);Ce.length>0&&i.set("styles",pi(Ce))}else n.encapsulation===Qo.Emulated&&(n.encapsulation=Qo.None);return n.encapsulation!==Qo.Emulated&&i.set("encapsulation",on(n.encapsulation)),null!==n.animations&&i.set("data",As([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==Xo.Default&&i.set("changeDetection",on(d)),{expression:Xn(Ne.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:US(n),statements:[]}}function US(n){var r=WS(n);return r.push(m1(n.template.ngContentSelectors)),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.ComponentDeclaration,r))}function HS(n,r){var e=[JP(n,r),on(G6(n))];return n.read&&e.push(n.read),e}function G6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function GS(n){return ps(on(n))}function zS(n){return ps(As(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 WS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[mM(n.type.type,n.typeArgumentCount),null!==r?GS(r):ze,null!==n.exportAs?m1(n.exportAs):ze,zS(n.inputs),zS(n.outputs),m1(n.queries.map(function(e){return e.propertyName}))]}function VS(n){var r=WS(n);return r.push(ze),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.DirectiveDeclaration,r))}function YS(n,r){return w3(null,n,r,"b")}function TV(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function f8(n){var e,r=n.name,i=r.match(F6);return i?(r=i[1],e=Ne.attribute):n.isAnimation?(r=PP(r),e=Ne.syntheticHostProperty):e=Ne.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var V6=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var m8=(0,H.Z)(function n(){(0,F.Z)(this,n)}),_8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new _3;(0,F.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ac,this.ResourceLoader=m8,this.elementSchemaRegistry=new m6}return(0,H.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=YF({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=YF(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=XP({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:XS(o.providedIn),useClass:Ns(o,"useClass"),useFactory:J6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(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:"compileInjectableDeclaration",value:function(e,i,o){var a,s=XP({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,providedIn:XS(o.providedIn),useClass:Ns(o,"useClass"),useFactory:J6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Ou)},!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 T8(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=v3({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 zF(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=JS(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 H6(n,r,e){var i=U6(n,r,e);return FS(i,n),{expression:Xn(Ne.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:VS(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),JS(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(y8),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 q6(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 C,g=(0,An.Z)(n.dependencies);try{for(g.s();!(C=g.n()).done;){var Z=C.value;switch(Z.kind){case"directive":case"component":h.push(_1(Z));break;case"pipe":h.push(QS(Z))}}}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 MV(n){return n?Object.keys(n).map(function(r){return{kind:Tu.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:Xo.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:Qo.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=j6(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(Ou):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function WM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new zM("",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,Ds.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new g3(i),!0).$def}}]),n}();function KS(n){return Object.assign(Object.assign({},n),{predicate:qS(n.predicate),read:n.read?new Ar(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function K6(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:qS(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 qS(n){return Array.isArray(n)?n:Oc(new Ar(n),1)}function JS(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 w8(n){return"Input"===n.ngMetadataName}(h)?function k8(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(KS),providers:null!=n.providers?new Ar(n.providers):null,viewQueries:n.viewQueries.map(KS),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:g8(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(K6),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(K6),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 g8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:v8(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 v8(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 y8(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:Tu.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 QS(n){return{kind:Tu.Pipe,name:n.name,type:new Ar(n.type)}}function g1(n,r,e,i,o){var a=o?LM.fromArray(o):Vl,s=function u8(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 o6).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 I6(i,!o,a),C=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var Z={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(Z.commentNodes=[]),Z}h=C.rootNodes,o||(h=Nc(new u6,h),g.hasI18nMeta&&(h=Nc(new I6(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)(C.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 Ns(n,r){if(n.hasOwnProperty(r))return Oc(new Ar(n[r]),0)}function J6(n,r){if(n.hasOwnProperty(r))return new Ar(n[r])}function XS(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(Au)}function Au(n){var r=null!=n.attribute,e=null===n.token?null:new Ar(n.token);return $S(r?new Ar(n.attribute):e,r,n.host,n.optional,n.self,n.skipSelf)}function Ou(n){var r,e,i,o,a,s=null!==(r=n.attribute)&&void 0!==r&&r;return $S(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 $S(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 h8(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(V6);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 b8(n){return"HostBinding"===n.ngMetadataName}(d)?function C8(n){return"HostListener"===n.ngMetadataName}(d)&&(i.listeners[d.eventName||u]="".concat(u,"(").concat((d.args||[]).join(","),")")):i.properties[d.hostPropertyName||u]=function _F(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 nE;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(nE||(nE={}));var I8=function(){function n(){(0,F.Z)(this,n),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,H.Z)(n,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return Ji.PARSABLE_DATA}}]),n}();new I8;var sR;!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"}(sR||(sR={}));!function X6(n){(n.ng||(n.ng={})).\u0275compilerFacade=new _8}(Ja);var bi=m(925),En=m(3191),Yr=m(5664),On=m(8929),xa=m(4096),rU=m(1715),mR=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 lE(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 _R(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function uE(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 cE(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 gR(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 vR=function(){function n(r){(0,F.Z)(this,n),this._document=r,this.positions=new Map}return(0,H.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,C){g.clientRect&&i!==C&&i.contains(C)&&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 yR(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?wR(n,r):("input"===i||"select"===i||"textarea"===i)&&CR(n,r),bR("canvas",n,r,wR),bR("input, textarea, select",n,r,CR),r}function bR(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 oU=0;function CR(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(oU++))}function wR(n,r){var e=r.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch(i){}}var kR=(0,bi.i$)({passive:!0}),Oy=(0,bi.i$)({passive:!1}),dE=new Set(["position"]),aU=function(){function n(r,e,i,o,a,s){var l=this;(0,F.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 Z=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!Z)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 vR(i),s.registerDragItem(this)}return(0,H.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,kR),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(),lE(o,!1,dE),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 C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.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 Z=this._previewTemplate;this._pickupPositionInElement=Z&&Z.template&&!Z.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;lE(this._rootElement,!0,dE),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=SR(l,this._document),this._previewRef=l,e.matchSize?w1(a,s):a.style.transform=Iy(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else w1(a=yR(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)},dE),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 iU(n){var r=getComputedStyle(n),e=uE(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=uE(r,"transition-duration"),s=uE(r,"transition-delay");return _R(a[o])+_R(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=SR(this._placeholderRef,this._document)):o=yR(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(),C=g.width,Z=g.height,z=h.top+d,q=h.bottom-(Z-d);a=MR(a,h.left+u,h.right-(C-u)),s=MR(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,kR),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 MR(n,r,e){return Math.max(r,Math.min(e,n))}function Py(n){return"t"===n.type[0]}function SR(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 lU=function(){function n(r,e){(0,F.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,H.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,C=h.clientRect,Z=d>l?1:-1,z=this._getItemOffsetPx(g,C,Z),q=this._getSiblingOffsetPx(d,s,Z),re=s.slice();return function fE(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=cE(C,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 C=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&C===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}(),DR=function(){function n(r,e,i,o,a){var s=this;(0,F.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,rU.F)(0,mR.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 vR(i),this._sortStrategy=new lU(this.element,e),this._sortStrategy.withSortPredicate(function(l,u){return s.sortPredicate(l,u,s)})}return(0,H.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&&gR(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(C,Z){if(Z!==o._document&&C.clientRect&&!a&&gR(C.clientRect,.05,e,i)){var z=function uU(n,r,e,i){var o=Uh(r,i),a=pE(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]}(Z,C.clientRect,e,i),q=(0,Yn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=Z)}}),!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=pE(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&&cE(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||!cE(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 pE(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 hE=(0,bi.i$)({passive:!1,capture:!0}),Hh=function(){function n(r,e){var i=this;(0,F.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,H.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,hE)})}},{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,hE)}},{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:hE}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:hE}),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(se.K0))},Hh.\u0275prov=t.Yz7({token:Hh,factory:Hh.\u0275fac,providedIn:"root"});var mE={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zf=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,H.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mE;return new aU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new DR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();zf.\u0275fac=function(r){return new(r||zf)(t.LFG(se.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,F.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,H.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 AR=new t.OlP("CDK_DRAG_CONFIG");var cU=0,_E=new t.OlP("CdkDropList"),K_=function(){function n(r,e,i,o,a,s,l){var u=this;(0,F.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(cU++),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,H.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(AR,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:_E,useExisting:K_}])]});var OR=new t.OlP("CdkDragHandle"),Zy=function(){function n(r,e){(0,F.Z)(this,n),this.element=r,this._stateChanges=new On.xQ,this._disabled=!1,this._parentDrag=e}return(0,H.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:OR,useExisting:Zy}])]});var IR=new t.OlP("CdkDragPlaceholder"),T1=(0,H.Z)(function n(r){(0,F.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:IR,useExisting:T1}])]});var gE=new t.OlP("CdkDragPreview"),M1=function(){function n(r){(0,F.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,H.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:gE,useExisting:M1}])]});var q_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,F.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(Z){var z=C._dragRef.moved.pipe((0,$n.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(Z);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,H.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(_E,12),t.Y36(se.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(AR,8),t.Y36(nl.Is,8),t.Y36(zf),t.Y36(t.sBO),t.Y36(OR,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,gE,5),t.Suo(i,IR,5),t.Suo(i,OR,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,H.Z)(function n(){(0,F.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),Wi=m(591),Ny=m(4715),qn=m(1086),PR=[[["caption"]],[["colgroup"],["col"]]];function pU(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 hU(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 vE(n){return function(r){(0,qe.Z)(i,r);var e=(0,Be.Z)(i);function i(){var o;(0,F.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,H.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"),mU=new t.OlP("text-column-options"),Uc=(0,H.Z)(function n(r){(0,F.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,H.Z)(function n(r){(0,F.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,H.Z)(function n(r){(0,F.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 RR=(0,H.Z)(function n(){(0,F.Z)(this,n)}),rl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,H.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}(vE(RR));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,H.Z)(function n(r,e){var i;(0,F.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,F.Z)(this,e),r.call(this,i,o)}return(0,H.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,F.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,H.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,F.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,H.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 yE=(0,H.Z)(function n(){(0,F.Z)(this,n),this.tasks=[],this.endTasks=[]}),E1=new t.OlP("_COALESCED_STYLE_SCHEDULER"),Vf=function(){function n(r){(0,F.Z)(this,n),this._ngZone=r,this._currentSchedule=null,this._destroyed=new On.xQ}return(0,H.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 yE,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 yE;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,F.Z)(this,n),this.template=r,this._differs=e}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,H.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(vE(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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,H.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(vE(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,F.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,H.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,F.Z)(this,n),this._viewContainer=r,n.mostRecentCellOutlet=this}return(0,H.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,H.Z)(function n(){(0,F.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,H.Z)(function n(){(0,F.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,H.Z)(function n(){(0,F.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 Iu=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.templateRef=r,this._contentClassName="cdk-no-data-row"});Iu.\u0275fac=function(r){return new(r||Iu)(t.Y36(t.Rgc))},Iu.\u0275dir=t.lG2({type:Iu,selectors:[["ng-template","cdkNoDataRow",""]]});var ZR=["top","bottom","left","right"],vU=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,F.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,H.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 C=g[h];o._removeStickyStyle(C,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),C=i.lastIndexOf(!0),Z=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===C),o[Ee]&&a._addStickyStyle(Ke,re,g[Ee],Ee===Z)}}catch(st){ae.e(st)}finally{ae.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===C?[]:d.slice(0,C+1).map(function(st,Ae){return i[Ae]?st:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===Z?[]:d.slice(Z).map(function(st,Ae){return o[Ae+Z]?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,C=0;g<s.length;g++)if(l[g]){u[g]=C;var Z=s[g];h[g]=this._isNativeHtmlTable?Array.from(Z.children):[Z];var z=Z.getBoundingClientRect().height;C+=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 Ae=st.value;a._addStickyStyle(Ae,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()}ZR.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=ZR;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 bE=new t.OlP("CDK_SPL"),eg=(0,H.Z)(function n(){(0,F.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,H.Z)(function n(r,e){(0,F.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,H.Z)(function n(r,e){(0,F.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,H.Z)(function n(r,e){(0,F.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,H.Z)(function n(r,e){(0,F.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,C){(0,F.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=C,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 Wi.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,H.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,qn.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 vU(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,qn.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(se.K0),t.Y36(bi.t4),t.Y36(Si.k),t.Y36(E1),t.Y36(sa.rL),t.Y36(bE,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,Iu,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:bE,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(PR),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,F.Z)(this,n),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,H.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(mU,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,pU,2,3,"th",1),t.YNc(2,hU,2,3,"td",2),t.BQk())},dependencies:[Uc,wl,rl,$_,Wf],encapsulation:2});var Qf=(0,H.Z)(function n(){(0,F.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=["*"],pY=["content"];function hY(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 BR(n,r){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}var FR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function kU(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 CE(n,r){1&n&&(t.TgZ(0,"mat-sidenav-content"),t.Hsn(1,2),t.qZA())}var TU=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],HR={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 wE=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function jR(){return!1}}),A1=new t.OlP("MAT_DRAWER_CONTAINER");var Pu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,H.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(sa.PQ);Pu.\u0275fac=function(r){return new(r||Pu)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return rg})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},Pu.\u0275cmp=t.Xpm({type:Pu,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:Pu}]),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,F.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,C=h.toState;(0===C.indexOf("open")&&"void"===g||"void"===C&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,H.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(se.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(pY,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:[HR.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,F.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,H.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(wE),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,Pu,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(Pu,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(FR),t.YNc(0,hY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,BR,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.O5,Pu],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,F.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,H.Z)(e)}(Pu);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,F.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,H.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:[HR.transformDrawer]},changeDetection:0});var tp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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(TU),t.YNc(0,kU,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,CE,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.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,H.Z)(function n(){(0,F.Z)(this,n)});pc.\u0275fac=function(r){return new(r||pc)},pc.\u0275mod=t.oAB({type:pc}),pc.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,sa.ZD,sa.ZD,Gt.BQ]});function kE(n){return new t.vHH(3e3,!1)}function XR(n){return new t.vHH(3502,!1)}function ZU(){return new t.vHH(3300,!1)}function NU(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"),C=g==u,Z=C&&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)}Z.set(re,ae)}),C||l.push(Z),d=Z,u=g}),s.length)throw XR();return l}function R1(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&ME(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&ME(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&ME(e,"destroy",n))})}}function ME(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 Ru(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function nL(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var np=function(r,e){return!1},rL=function(r,e,i){return[]},Uy=null;function SE(n){var r=n.parentNode||n.host;return r===Uy?null:r}(I1()||"undefined"!=typeof Element)&&(function tL(){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=SE(e)}return!1}):np=function(r,e){return r.contains(e)},rL=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var rp=null,iL=!1;function og(n){rp||(rp=function kY(){return"undefined"!=typeof document?document.body:null}()||{},iL=!!rp.style&&"WebkitAppearance"in rp.style);var r=!0;rp.style&&!function CY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in rp.style)&&iL)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in rp.style);return r}var oL=np,EE=rL;var ag=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 oL(e,i)}},{key:"getParentElement",value:function(e){return SE(e)}},{key:"query",value:function(e,i,o){return EE(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,H.Z)(function n(){(0,F.Z)(this,n)});Tl.NOOP=new ag;var Wc="ng-enter",xE="ng-leave",sg="ng-trigger",N1=".ng-trigger",aL="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 sL(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(kE()),{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 TE(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function SU(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,kE())}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 Lu(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(Z){i.e(Z)}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],C=h[1];r.set(g,C)}}catch(Z){u.e(Z)}finally{u.f()}return r}function hc(n,r,e){return e?r+":"+e+";":""}function DE(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,dL(o),n.style[o])}n.setAttribute("style",r)}function Zu(n,r,e){n.style&&(r.forEach(function(i,o){var a=cL(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),I1()&&DE(n))}function il(n,r){n.style&&(r.forEach(function(e,i){var o=cL(i);n.style[o]=""}),I1()&&DE(n))}function jy(n){return Array.isArray(n)?1==n.length?n[0]:(0,Zt.vP)(n):n}function MY(n,r,e){var i=r.params||{},o=lL(n);o.length&&o.forEach(function(a){i.hasOwnProperty(a)||e.push(function EU(n){return new t.vHH(3001,!1)}())})}var AE=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function lL(n){var r=[];if("string"==typeof n){for(var e;e=AE.exec(n);)r.push(e[1]);AE.lastIndex=0}return r}function Gy(n,r,e){var i=n.toString(),o=i.replace(AE,function(a,s){var l=r[s];return null==l&&(e.push(function gY(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 uL=/-+([a-z0-9])/g;function cL(n){return n.replace(uL,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}function dL(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function VU(n,r){return 0===n||0===r}function fL(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 Nu(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 xU(n){return new t.vHH(3004,!1)}(r.type)}}function H1(n,r){return window.getComputedStyle(n)[r]}function KU(n,r){var e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(function(i){return function mL(n,r,e){if(":"==n[0]){var i=function _L(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 JR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(qU(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(qU(l,a))}(i,e,r)}):e.push(n),e}var IE=new Set(["true","1"]),j1=new Set(["false","0"]);function qU(n,r){var e=IE.has(n)||j1.has(n),i=IE.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?IE.has(n):j1.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?IE.has(r):j1.has(r)),s&&l}}var JU=":self",gL=new RegExp("s*".concat(":self","s*,?"),"g");function G1(n,r,e,i){return new QU(n).build(r,e,i)}var QU=function(){function n(r){(0,F.Z)(this,n),this._driver=r}return(0,H.Z)(n,[{key:"build",value:function(e,i,o){var a=new SY(i);return this._resetContextStyleTimingState(a),Nu(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 GR(){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(Z){h.name=Z,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var C=o.visitTransition(d,i);a+=C.queryCount,s+=C.depCount,u.push(C)}else i.errors.push(function zR(){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){lL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){U1(s.values());i.errors.push(function WR(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=Nu(this,jy(e.animation),i);return{type:1,matchers:KU(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 Nu(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=Nu(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 xY(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 Z,C=(0,An.Z)(g.values());try{for(C.s();!(Z=C.n()).done;){if(Z.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){C.e(q)}finally{C.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),C=g.get(h),Z=!0;C&&(l!=s&&l>=C.startTime&&s<=C.endTime&&(i.errors.push(function VR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,C.startTime,C.endTime)),Z=!1),l=C.startTime),Z&&g.set(h,{startTime:l,endTime:s}),i.options&&MY(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 IU(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,C=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ke=null!=Ee.offset?Ee.offset:function EY(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 PU(){return new t.vHH(3012,!1)}()),d&&i.errors.push(function YR(){return new t.vHH(3200,!1)}());var Z=e.steps.length,z=0;l>0&&l<Z?i.errors.push(function RU(){return new t.vHH(3202,!1)}()):0==l&&(z=1/(Z-1));var q=Z-1,re=i.currentTime,ae=i.currentAnimateTimings,Se=ae.duration;return C.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:Nu(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 XU(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==JU});return r&&(n=n.replace(gL,"")),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,Ru(i.collectedStyles,i.currentQuerySelector,new Map);var h=Nu(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 KR(){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:Nu(this,jy(e.animation),i),timings:o,options:null}}}]),n}();var SY=(0,H.Z)(function n(r){(0,F.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 $U(n){return n?lg(n):null}(n.params)):n={},n}function Vy(n,r,e){return{duration:n,delay:r,easing:e}}function yL(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 PE=function(){function n(){(0,F.Z)(this,n),this._map=new Map}return(0,H.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}(),bL=new RegExp(":enter","g"),LE=new RegExp(":leave","g");function e7(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 ZE).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var ZE=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 PE;var C=new CL(e,i,h,a,s,g,[]);C.options=d;var Z=d.delay?Vc(d.delay):0;C.currentTimeline.delayNextStep(Z),C.currentTimeline.setStyles([l],null,C.errors,d),Nu(this,o,C);var z=C.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,C.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[yL(i,[],[],[],0,Z,"",!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),Nu(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 Nu(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),Nu(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,C){i.currentQueryIndex=C;var Z=i.createSubContext(e.options,g);l&&Z.delayNextStep(l),g===i.element&&(h=Z.currentTimeline),Nu(o,e.animation,Z),Z.currentTimeline.applyStylesToKeyframe();var z=Z.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 C=g.currentTime;Nu(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-C+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ug={},CL=function(){function n(r,e,i,o,a,s,l,u){(0,F.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 t7(this._driver,e,0),l.push(this.currentTimeline)}return(0,H.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 AY(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(bL,"."+this._enterClassName)).replace(LE,"."+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 qR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),t7=function(){function n(r,e,i,o){(0,F.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,H.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 OY(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 Lu(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),C=g[0],z=Gy(g[1],l,o);this._pendingStyles.set(C,z),this._localTimelineStyles.has(C)||this._backFill.set(C,null!==(s=this._globalTimelineStyles.get(C))&&void 0!==s?s:Zt.l3),this._updateStyle(C,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,C){var Z=Lu(g,new Map,e._backFill);Z.forEach(function(z,q){z===Zt.k1?i.add(q):z===Zt.l3&&o.add(q)}),a||Z.set("offset",C/e.duration),s.push(Z)});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 yL(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),AY=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,F.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,H.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,C=Lu(o[0]);C.set("offset",0),d.push(C);var Z=Lu(o[0]);Z.set("offset",n7(g)),d.push(Z);for(var z=o.length-1,q=1;q<=z;q++){var re=Lu(o[q]),Se=s+re.get("offset")*l;re.set("offset",n7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return yL(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(t7);function n7(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 NE=(0,H.Z)(function n(){(0,F.Z)(this,n)}),i7=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"]),o7=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return cL(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(i7.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 DU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(NE);function BE(n,r,e,i,o,a,s,l,u,d,h,g,C){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:C}}var z1={},FE=function(){function n(r,e,i){(0,F.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,H.Z)(n,[{key:"match",value:function(e,i,o,a){return function a7(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 C,Z=[],z=this.ast.options&&this.ast.options.params||z1,q=u&&u.params||z1,re=this.buildStyles(o,q,Z),ae=d&&d.params||z1,Se=this.buildStyles(a,ae,Z),Ce=new Set,Ee=new Map,Ke=new Map,st="void"===a,Ae={params:wL(ae,z),delay:null===(C=this.ast.options)||void 0===C?void 0:C.delay},it=g?[]:e7(e,i,this.ast.animation,s,l,re,Se,Ae,h,Z),ft=0;if(it.forEach(function($e){ft=Math.max($e.duration+$e.delay,ft)}),Z.length)return BE(i,this._triggerName,o,a,st,re,Se,[],[],Ee,Ke,ft,Z);it.forEach(function($e){var Pe=$e.element,ct=Ru(Ee,Pe,new Set);$e.preStyleProps.forEach(function(Ht){return ct.add(Ht)});var Bt=Ru(Ke,Pe,new Set);$e.postStyleProps.forEach(function(Ht){return Bt.add(Ht)}),Pe!==i&&Ce.add(Pe)});var bt=U1(Ce.values());return BE(i,this._triggerName,o,a,st,re,Se,it,bt,Ee,Ke,ft)}}]),n}();function wL(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,F.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,H.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 kL=function(){function n(r,e,i){var o=this;(0,F.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))}),TL(this.states,"true","1"),TL(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new FE(r,a,o.states))}),this.fallbackTransition=function Ky(n,r,e){return new FE(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,H.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 TL(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 s7=new PE,LY=function(){function n(r,e,i){(0,F.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,H.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=G1(this._driver,i,o,a);if(o.length)throw function $R(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=e7(this._driver,i,l,Wc,xE,new Map,new Map,a,s7,s)).forEach(function(C){var Z=Ru(d,C.element,new Map);C.postStyleProps.forEach(function(z){return Z.set(z,null)})}):(s.push(ZU()),u=[]),s.length)throw NU();d.forEach(function(C,Z){C.forEach(function(z,q){C.set(q,o._driver.computeStyle(Z,q,Zt.l3))})});var h=u.map(function(C){var Z=d.get(C.element);return o._buildPlayer(C,new Map,Z)}),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 BU(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}(),l7="ng-animate-queued",op="ng-animate-disabled",ZY="ng-star-inserted",BY=[],d7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bu="__ng_removed",ML=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,F.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,H.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",SL=new ML(W1),UY=function(){function n(r,e,i){(0,F.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,H.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function FU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function UU(n){return new t.vHH(3303,!1)}();if(!function _(n){return"start"==n||"done"==n}(o))throw function HU(n,r){return new t.vHH(3400,!1)}();var l=Ru(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=Ru(this._engine.statesByElement,e,new Map);return d.has(i)||(ee(e,sg),ee(e,sg+"-"+i),d.set(i,SL)),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 jU(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 EL(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 ML(o,this.id),C=o&&o.hasOwnProperty("value");!C&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=SL);var Z=g.value===W1;if(Z||h.value!==g.value){var ae=Ru(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,l7),u.onStart(function(){oe(e,l7)})),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),Zu(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[Bu]){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 C=s.trigger(e,g,W1,a);C&&d.push(C)}}),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)||SL,C=new ML(W1),Z=new EL(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:C,player:Z,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[Bu];(!h||h===d7)&&(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}(),HY=function(){function n(r,e,i){(0,F.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,H.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 UY(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[Bu];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[Bu]={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[Bu];if(a&&a.setForRemoval){if(e[Bu]=d7,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(C,Z){return e._balanceNamespaceList(C,Z)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var s=this.collectedEnterElements[a];ee(s,ZY)}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(C){return C()}),this._flushFns=[],this._whenQuietFns.length){var g=this._whenQuietFns;this._whenQuietFns=[],o.length?Vh(o).onDone(function(){g.forEach(function(C){return C()})}):g.forEach(function(C){return C()})}}},{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 PE,s=[],l=new Map,u=[],d=new Map,h=new Map,g=new Map,C=new Set;this.disabledNodes.forEach(function(bn){C.add(bn);for(var Nn=o.driver.query(bn,".ng-animate-queued",!0),rr=0;rr<Nn.length;rr++)C.add(Nn[rr])});var Z=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],Ae=st[Bu];Ae&&Ae.setForRemoval&&(Se.push(st),Ce.add(st),Ae.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=xE+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[Bu];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=!Z||!o.driver.containsElement(Z,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 Zu(rr,Pa.toStyles)}),void s.push(Nn);if(bn.isFallbackTransition)return Nn.onStart(function(){return il(rr,Pa.fromStyles)}),Nn.onDestroy(function(){return Zu(rr,Pa.toStyles)}),void s.push(Nn);var CP=[];Pa.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||CP.push(th)}),Pa.timelines=CP,a.append(rr,Pa.timelines);var WW={instruction:Pa,player:Nn,element:rr};u.push(WW),Pa.queriedElements.forEach(function(th){return Ru(d,th,[]).push(Nn)}),Pa.preStyleProps.forEach(function(th,wP){if(th.size){var dC=h.get(wP);dC||h.set(wP,dC=new Set),th.forEach(function(K$e,VW){return dC.add(VW)})}}),Pa.postStyleProps.forEach(function(th,wP){var dC=g.get(wP);dC||g.set(wP,dC=new Set),th.forEach(function(K$e,VW){return dC.add(VW)})})}})}if($e.length){var Bt=[];$e.forEach(function(bn){Bt.push(function eL(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){Ru(Ht,Nn,[]).push(gr),gr.destroy()})});var Tn=Se.filter(function(bn){return kt(bn,h,g)}),jn=new Map;I(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){I(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(C.has(Nn))return rr.onDestroy(function(){return Zu(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 Zu(Nn,gr.toStyles)}),_r.push(rr),C.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[Bu];if(oe(Kr,xE),!Ho||!Ho.hasAnimation){var tr=[];if(d.size){var br=d.get(Kr);br&&br.length&&tr.push.apply(tr,(0,cn.Z)(br));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[Bu];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 C=function(){var q=g.value.element,re=q!==l,ae=Ru(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;)C()}catch(Z){h.e(Z)}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=[],C=new Set,Z=new Set,z=i.timelines.map(function(re){var ae=re.element;C.add(ae);var Se=ae[Bu];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)||BY).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),Ae=P1(u.driver,u._normalizer,ae,re.keyframes,Ke,st),it=u._buildPlayer(re,Ae,Ee);if(re.subTimeline&&a&&Z.add(ae),Ce){var ft=new EL(e,d,ae);ft.setRealPlayer(it),g.push(ft)}return it});g.forEach(function(re){Ru(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)})}),C.forEach(function(re){return ee(re,aL)});var q=Vh(z);return q.onDestroy(function(){C.forEach(function(re){return oe(re,aL)}),Zu(h,i.toStyles)}),Z.forEach(function(re){Ru(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}(),EL=function(){function n(r,e,i){(0,F.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,H.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){Ru(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 w(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function I(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(w(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var C=r.computeStyle(d,g,o);h.set(g,C),(!C||0==C.length)&&(d[Bu]=FY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return w(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,F.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(a,s){},this._transitionEngine=new HY(r,e,i),this._timelineEngine=new LY(r,e,i),this._transitionEngine.onRemovalComplete=function(a,s){return o.onRemovalComplete(a,s)}}return(0,H.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 LU(n,r){return new t.vHH(3404,!1)}();h.length,u=function RY(n,r,e){return new kL(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=nL(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=nL(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,F.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,H.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Zu(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Zu(this._element,this._initialStyles),this._endStyles&&(Zu(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),Zu(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,F.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,H.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,F.Z)(this,n)}return(0,H.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 oL(e,i)}},{key:"getParentElement",value:function(e){return SE(e)}},{key:"query",value:function(e,i,o){return EE(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});VU(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var C=Kh(i).map(function(z){return Lu(z)}),Z=_n(e,C=fL(e,C,h));return new Cn(e,C,d,Z)}}]),n}(),ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;(0,F.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,H.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 Bs(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(se.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,F.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,H.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,F.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,H.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 Bs(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 Bs(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,F.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,H.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 Z(z){Array.isArray(z)?z.forEach(Z):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,F.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,H.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,F.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,H.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),C=(0,Yn.Z)(g,2);d=C[0],h=C[1]}return this.engine.listen(this.namespaceId,u,d,h,function(Z){var z=Z._data||-1;l.factory.scheduleListenerCallback(z,s,Z)})}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,F.Z)(this,e),r.call(this,i.body,o,a)}return(0,H.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Xt);ap.\u0275fac=function(r){return new(r||ap)(t.LFG(se.K0),t.LFG(Tl),t.LFG(NE),t.LFG(t.z2F))},ap.\u0275prov=t.Yz7({token:ap,factory:ap.\u0275fac});var jY=[{provide:Zt._j,useClass:ei},{provide:NE,useFactory:function Eue(){return new o7}},{provide:Xt,useClass:ap},{provide:t.FYo,useFactory:function xue(n,r,e){return new Kc(n,r,e)},deps:[Ye,Xt,t.R0b]}],f7=[{provide:Tl,useFactory:function(){return new Or}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(jY),p7=[{provide:Tl,useClass:ag},{provide:t.QbO,useValue:"NoopAnimations"}].concat(jY),V1=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?p7:f7}}}]),n}();V1.\u0275fac=function(r){return new(r||V1)},V1.\u0275mod=t.oAB({type:V1}),V1.\u0275inj=t.cJS({providers:f7,imports:[na]});var UE=(0,H.Z)(function n(){(0,F.Z)(this,n)});UE.\u0275fac=function(r){return new(r||UE)},UE.\u0275mod=t.oAB({type:UE}),UE.\u0275inj=t.cJS({providers:p7,imports:[na]});var Due=m(839),Y1=m(6053),_s=m(1709),K1=m(8117),h7=m(2821),Aue=m(3906),GY=m(519);function m7(n,r){return n=function Oue(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 _7="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},zY=function(r){return null!=r&&"object"===(void 0===r?"undefined":_7(r))&&1===r.nodeType&&"object"===_7(r.style)&&"object"===_7(r.ownerDocument)};function WY(n,r){if(r=v7(r,!0),!zY(r))return-1;for(var e=0;e<n.length;e++)if(n[e]===r)return e;return-1}function g7(n,r){return-1!==WY(n,r)}function Iue(n,r){for(var e=0;e<r.length;e++)g7(n,r[e])||n.push(r[e]);return r}function Pue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Iue(n,e=e.map(v7))}function Rue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(v7).reduce(function(o,a){var s=WY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function v7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!zY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function VY(n){if(n===window)return function Zue(){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,y7=void 0;"function"!=typeof Object.create?(r=function(){},y7=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}):y7=Object.create;var Bue=y7,Qy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function b7(n,r){r=r||{};for(var e=Bue(n),i=0;i<Qy.length;i++)void 0!==r[Qy[i]]&&(e[Qy[i]]=r[Qy[i]]);return e}function C7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var HE=["webkit","moz","ms","o"],jE=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=HE.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[HE[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=HE.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[HE[n]+"CancelAnimationFrame"]||window[HE[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function Uue(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 Lue(n,r){var e=m7((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 Fue(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",b7(r,l));return C7(d,u),s.dispatchEvent(d)}:"function"==typeof document.createEvent?function(s,l,u){var d=b7(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),C7(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var d=document.createEventObject(),h=b7(r,l);for(var g in h)d[g]=h[g];return C7(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=m7(r.autoScroll),this.syncMove=m7(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 Pue.apply(void 0,[n].concat($e)),this},this.remove=function(){for(var $e=[],Pe=arguments.length;Pe--;)$e[Pe]=arguments[Pe];return Rue.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 Z,C=null;function z($e){for(var Pe=0;Pe<n.length;Pe++)if(n[Pe]===$e.target){o=!0;break}o&&jE(function(){return o=!1})}function q(){d=!0}function re(){d=!1,ae()}function ae(){q1(Z),q1(g)}function Se(){d=!1}function Ee(){for(var $e=null,Pe=0;Pe<n.length;Pe++)YY(s,n[Pe])&&($e=n[Pe]);return $e}function Ke($e){if(e.autoScroll()&&!$e.dispatched){var Pe=$e.target,ct=document.body;C&&!YY(s,C)&&(e.scrollWhenOutside||(C=null)),Pe&&Pe.parentNode===ct?Pe=Ee():(Pe=function Ce($e){if(!$e)return null;if(C===$e||g7(n,$e))return $e;for(;$e=$e.parentNode;)if(g7(n,$e))return $e;return null}(Pe),Pe||(Pe=Ee())),Pe&&Pe!==C&&(C=Pe),h&&(q1(g),g=jE(st)),C&&(q1(Z),Z=jE(Ae))}}function st(){it(h),q1(g),g=jE(st)}function Ae(){!C||(it(C),q1(Z),Z=jE(Ae))}function it($e){var ct,Bt,Pe=VY($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 YY(n,r,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function Nue(n,r){var e=VY(r);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,r)}var jue=function Hue(n,r){return new Uue(n,r)};function w7(n,r,e){e&&e.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}function xL(n,r,e){e&&e.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}var Xy=(0,H.Z)(function n(){(0,F.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,H.Z)(function n(r){(0,F.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 GE=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 Due.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)()),C=g.pipe((0,Ri.q)(1),(0,K1.B)()),Z=g.pipe((0,h7.h)(1),(0,K1.B)());return C.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=jue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),w7(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)}),Z.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})}),Z.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),Z.pipe((0,_s.zg)(function(z){var q=d.pipe((0,Aue.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})}),xL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,Gi.T)(h,Z).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,GY.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,C=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var Z="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:Z,"-webkit-transform":Z,"-ms-transform":Z,"-moz-transform":Z,"-o-transform":Z})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:C})})}},{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 KY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}GE.\u0275fac=function(r){return new(r||GE)(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(se.K0))},GE.\u0275dir=t.lG2({type:GE,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 DL=function(){function n(r,e,i,o,a){(0,F.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,H.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){w7(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,C=h.clientY,Z=h.dropData,z=h.target;s={clientX:g,clientY:C,dropData:Z,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=KY(g,C,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:C,target:z,dropData:Z});return o.scrollContainerRect?q&&re&&KY(g,C,o.scrollContainerRect):q&&re})),u=l.pipe((0,ts.x)());u.pipe((0,$r.h)(function(h){return h})).subscribe(function(){d=!0,w7(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,GY.G)(),(0,$r.h)(function(h){var g=(0,Yn.Z)(h,2),C=g[0],Z=g[1];return C&&!Z})).subscribe(function(){d=!1,xL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),xL(e.renderer,e.element,e.dragActiveClass),d&&(xL(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}();DL.\u0275fac=function(r){return new(r||DL)(t.Y36(t.SBq),t.Y36(Xy),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(J1,8))},DL.\u0275dir=t.lG2({type:DL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Q1=(0,H.Z)(function n(){(0,F.Z)(this,n)});Q1.\u0275fac=function(r){return new(r||Q1)},Q1.\u0275mod=t.oAB({type:Q1}),Q1.\u0275inj=t.cJS({});var qY=m(2072);function $y(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function k7(n){return 1===n.length&&(n=function Gue(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 JY=k7($y),QY=JY.right,zue=JY.left,X1=QY;function Wue(n,r){null==r&&(r=XY);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 XY(n,r){return[n,r]}function Vue(n,r,e){var s,l,u,d,i=n.length,o=r.length,a=new Array(i*o);for(null==e&&(e=XY),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 Yue(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function fg(n){return null===n?NaN:+n}function $Y(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 eK(n,r){var e=$Y(n,r);return e&&Math.sqrt(e)}function T7(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 tK=Array.prototype,Kue=tK.slice,que=tK.map;function AL(n){return function(){return n}}function Jue(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 M7=Math.sqrt(50),S7=Math.sqrt(10),E7=Math.sqrt(2);function x7(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=zE(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 zE(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>=M7?10:a>=S7?5:a>=E7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=M7?10:a>=S7?5:a>=E7?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>=M7?o*=10:a>=S7?o*=5:a>=E7&&(o*=2),r<n?-o:o}function D7(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Que(){var n=Jue,r=T7,e=D7;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],C=e(u,h,g);Array.isArray(C)||(C=e0(h,g,C),C=mc(Math.ceil(h/C)*C,g,C));for(var Z=C.length;C[0]<=h;)C.shift(),--Z;for(;C[Z-1]>g;)C.pop(),--Z;var q,z=new Array(Z+1);for(a=0;a<=Z;++a)(q=z[a]=[]).x0=a>0?C[a-1]:h,q.x1=a<Z?C[a]:g;for(a=0;a<s;++a)h<=(l=u[a])&&l<=g&&z[X1(C,l,0,Z)].push(o[a]);return z}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:AL(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:AL([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?AL(Kue.call(o)):AL(o),i):e},i}function WE(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 Xue(n,r,e){return n=que.call(n,fg).sort($y),Math.ceil((e-r)/(2*(WE(n,.75)-WE(n,.25))*Math.pow(n.length,-1/3)))}function $ue(n,r,e){return Math.ceil((e-r)/(3.5*eK(n)*Math.pow(n.length,-1/3)))}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])&&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 ece(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 tce(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 WE(a.sort($y),.5)}function A7(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 rK(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 nce(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function rce(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 ice(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 oce(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 iK(n){if(!(a=n.length))return[];for(var r=-1,e=rK(n,ace),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 ace(n){return n.length}function sce(){return iK(arguments)}var O7=Array.prototype.slice;function lce(n){return n}function uce(n){return"translate("+(n+.5)+",0)"}function cce(n){return"translate(0,"+(n+.5)+")"}function dce(n){return function(r){return+n(r)}}function fce(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(e){return+n(e)+r}}function pce(){return!this.__axis}function PL(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?uce:cce;function g(C){var Z=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,z=null==o?r.tickFormat?r.tickFormat.apply(r,e):lce:o,q=Math.max(a,0)+l,re=r.range(),ae=+re[0]+.5,Se=+re[re.length-1]+.5,Ce=(r.bandwidth?fce:dce)(r.copy()),Ee=C.selection?C.selection():C,Ke=Ee.selectAll(".domain").data([null]),st=Ee.selectAll(".tick").data(Z,r).order(),Ae=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")),C!==Ee&&(Ke=Ke.transition(C),st=st.transition(C),ft=ft.transition(C),bt=bt.transition(C),Ae=Ae.transition(C).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))})),Ae.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(pce).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(C){return arguments.length?(r=C,g):r},g.ticks=function(){return e=O7.call(arguments),g},g.tickArguments=function(C){return arguments.length?(e=null==C?[]:O7.call(C),g):e.slice()},g.tickValues=function(C){return arguments.length?(i=null==C?null:O7.call(C),g):i&&i.slice()},g.tickFormat=function(C){return arguments.length?(o=C,g):o},g.tickSize=function(C){return arguments.length?(a=s=+C,g):a},g.tickSizeInner=function(C){return arguments.length?(a=+C,g):a},g.tickSizeOuter=function(C){return arguments.length?(s=+C,g):s},g.tickPadding=function(C){return arguments.length?(l=+C,g):l},g}function hce(n){return PL(1,n)}function mce(n){return PL(2,n)}function _ce(n){return PL(3,n)}function gce(n){return PL(4,n)}var vce={value:function(){}};function aK(){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 RL(e)}function RL(n){this._=n}function yce(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 bce(n,r){for(var o,e=0,i=n.length;e<i;++e)if((o=n[e]).name===r)return o.value}function sK(n,r,e){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=vce,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=e&&n.push({name:r,value:e}),n}RL.prototype=aK.prototype={constructor:RL,on:function(r,e){var a,i=this._,o=yce(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]=sK(i[a],r.name,e);else if(null==e)for(a in i)i[a]=sK(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=bce(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new RL(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=aK;function Cce(){}function P7(n){return null==n?Cce:function(){return this.querySelector(n)}}function kce(){return[]}function lK(n){return null==n?kce:function(){return this.querySelectorAll(n)}}function uK(n){return function(){return this.matches(n)}}function cK(n){return new Array(n.length)}function LL(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}LL.prototype={constructor:LL,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 xce(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 LL(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Dce(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new LL(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Zce(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var R7="http://www.w3.org/1999/xhtml",fK={svg:"http://www.w3.org/2000/svg",xhtml:R7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ZL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),fK.hasOwnProperty(r)?{space:fK[r],local:n}:n}function Gce(n){return function(){this.removeAttribute(n)}}function zce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wce(n,r){return function(){this.setAttribute(n,r)}}function Vce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kce(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 pK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jce(n){return function(){this.style.removeProperty(n)}}function Qce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xce(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)||pK(n).getComputedStyle(n,null).getPropertyValue(r)}function ede(n){return function(){delete this[n]}}function tde(n,r){return function(){this[n]=r}}function nde(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function hK(n){return n.trim().split(/^|\s+/)}function L7(n){return n.classList||new mK(n)}function mK(n){this._node=n,this._names=hK(n.getAttribute("class")||"")}function _K(n,r){for(var e=L7(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function gK(n,r){for(var e=L7(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function ide(n){return function(){_K(this,n)}}function ode(n){return function(){gK(this,n)}}function ade(n,r){return function(){(r.apply(this,arguments)?_K:gK)(this,n)}}function lde(){this.textContent=""}function ude(n){return function(){this.textContent=n}}function cde(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function fde(){this.innerHTML=""}function pde(n){return function(){this.innerHTML=n}}function hde(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function _de(){this.nextSibling&&this.parentNode.appendChild(this)}function vde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bde(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===R7&&r.documentElement.namespaceURI===R7?r.createElement(n):r.createElementNS(e,n)}}function Cde(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function vK(n){var r=ZL(n);return(r.local?Cde:bde)(r)}function kde(){return null}function Mde(){var n=this.parentNode;n&&n.removeChild(this)}function Ede(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function xde(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}mK.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 yK={},Ln=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ide(n,r,e){return n=bK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function bK(n,r,e){return function(i){var o=Ln;Ln=i;try{n.call(this,this.__data__,r,e)}finally{Ln=o}}}function Pde(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 Rde(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 Lde(n,r,e){var i=yK.hasOwnProperty(n.type)?Ide:bK;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 NL(n,r,e,i){var o=Ln;n.sourceEvent=Ln,Ln=n;try{return r.apply(e,i)}finally{Ln=o}}function CK(n,r,e){var i=pK(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 Nde(n,r){return function(){return CK(this,n,r)}}function Bde(n,r){return function(){return CK(this,n,r.apply(this,arguments))}}var wK=[null];function _c(n,r){this._groups=n,this._parents=r}function kK(){return new _c([[document.documentElement]],wK)}_c.prototype=kK.prototype={constructor:_c,select:function wce(n){"function"!=typeof n&&(n=P7(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 Tce(n){"function"!=typeof n&&(n=lK(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 Mce(n){"function"!=typeof n&&(n=uK(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 Ace(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(st){Z[++d]=st}),Z;var e=r?Dce:xce,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Ece(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],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,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 Sce(){return new _c(this._enter||this._groups.map(cK),this._parents)},exit:function Oce(){return new _c(this._exit||this._groups.map(cK),this._parents)},join:function Ice(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 Pce(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 C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new _c(s,this._parents)},order:function Rce(){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 Lce(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zce);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 Nce(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Bce(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Fce(){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 Uce(){var n=0;return this.each(function(){++n}),n},empty:function Hce(){return!this.node()},each:function jce(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 qce(n,r){var e=ZL(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?zce:Gce:"function"==typeof r?e.local?Kce:Yce:e.local?Vce:Wce)(e,r))},style:function $ce(n,r,e){return arguments.length>1?this.each((null==r?Jce:"function"==typeof r?Xce:Qce)(n,r,null==e?"":e)):$1(this.node(),n)},property:function rde(n,r){return arguments.length>1?this.each((null==r?ede:"function"==typeof r?nde:tde)(n,r)):this.node()[n]},classed:function sde(n,r){var e=hK(n+"");if(arguments.length<2){for(var i=L7(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?ade:r?ide:ode)(e,r))},text:function dde(n){return arguments.length?this.each(null==n?lde:("function"==typeof n?cde:ude)(n)):this.node().textContent},html:function mde(n){return arguments.length?this.each(null==n?fde:("function"==typeof n?hde:pde)(n)):this.node().innerHTML},raise:function gde(){return this.each(_de)},lower:function yde(){return this.each(vde)},append:function wde(n){var r="function"==typeof n?n:vK(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function Tde(n,r){var e="function"==typeof n?n:vK(n),i=null==r?kde:"function"==typeof r?r:P7(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Sde(){return this.each(Mde)},clone:function Dde(n){return this.select(n?xde:Ede)},datum:function Ade(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function Zde(n,r,e){var o,s,i=Pde(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?Lde:Rde,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 Fde(n,r){return this.each(("function"==typeof r?Bde:Nde)(n,r))}};var pg=kK;function Ci(n){return"string"==typeof n?new _c([[document.querySelector(n)]],[document.documentElement]):new _c([[n]],wK)}function Z7(){Ln.stopImmediatePropagation()}function ew(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function BL(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 FL(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 UL(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function N7(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*",YE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ude=/^#([0-9a-f]{3,8})$/,Hde=new RegExp("^rgb\\("+[rw,rw,rw]+"\\)$"),jde=new RegExp("^rgb\\("+[sp,sp,sp]+"\\)$"),Gde=new RegExp("^rgba\\("+[rw,rw,rw,YE]+"\\)$"),zde=new RegExp("^rgba\\("+[sp,sp,sp,YE]+"\\)$"),Wde=new RegExp("^hsl\\("+[YE,sp,sp]+"\\)$"),Vde=new RegExp("^hsla\\("+[YE,sp,sp,YE]+"\\)$"),TK={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 MK(){return this.rgb().formatHex()}function SK(){return this.rgb().formatRgb()}function r0(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Ude.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?EK(r):3===e?new Ql(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?HL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?HL(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=Hde.exec(n))?new Ql(r[1],r[2],r[3],1):(r=jde.exec(n))?new Ql(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Gde.exec(n))?HL(r[1],r[2],r[3],r[4]):(r=zde.exec(n))?HL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Wde.exec(n))?OK(r[1],r[2]/100,r[3]/100,1):(r=Vde.exec(n))?OK(r[1],r[2]/100,r[3]/100,r[4]):TK.hasOwnProperty(n)?EK(TK[n]):"transparent"===n?new Ql(NaN,NaN,NaN,0):null}function EK(n){return new Ql(n>>16&255,n>>8&255,255&n,1)}function HL(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ql(n,r,e,i)}function xK(n){return n instanceof tw||(n=r0(n)),n?new Ql((n=n.rgb()).r,n.g,n.b,n.opacity):new Ql}function jL(n,r,e,i){return 1===arguments.length?xK(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 DK(){return"#"+B7(this.r)+B7(this.g)+B7(this.b)}function AK(){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 B7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function OK(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 IK(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 F7(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 PK(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 GL(n){return function(){return n}}function RK(n,r){return function(e){return n+e*r}}function $de(n){return 1==(n=+n)?iw:function(r,e){return e-r?function Qde(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):GL(isNaN(r)?e:r)}}function iw(n,r){var e=r-n;return e?RK(n,e):GL(isNaN(n)?r:n)}UL(tw,r0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:MK,formatHex:MK,formatHsl:function Yde(){return IK(this).formatHsl()},formatRgb:SK,toString:SK}),UL(Ql,jL,N7(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:DK,formatHex:DK,formatRgb:AK,toString:AK})),UL(lp,function Kde(n,r,e,i){return 1===arguments.length?IK(n):new lp(n,r,e,null==i?1:i)},N7(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(F7(r>=240?r-240:r+120,a,o),F7(r,a,o),F7(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 zL=function n(r){var e=$de(r);function i(o,a){var s=e((o=jL(o)).r,(a=jL(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 LK(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=jL(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 efe=LK(function qde(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 PK((e-i/r)*r,s,o,a,l)}});LK(function Jde(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 PK((e-i/r)*r,o,a,s,l)}});function ZK(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]=WL(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 tfe(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 nfe(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]=WL(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var U7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H7=new RegExp(U7.source,"g");function NK(n,r){var i,o,a,e=U7.lastIndex=H7.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=U7.exec(n))&&(o=H7.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=H7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ife(n){return function(r){return n(r)+""}}(u[0].x):function rfe(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 ofe(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 WL(n,r){var i,e=typeof r;return null==r||"boolean"===e?GL(r):("number"===e?qc:"string"===e?(i=r0(r))?(r=i,zL):NK:r instanceof r0?zL:r instanceof Date?tfe:function afe(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}(r)?ofe:Array.isArray(r)?ZK:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?nfe:qc)(n,r)}function BK(){for(var r,n=Ln;r=n.sourceEvent;)n=r;return n}function FK(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=BK();return r.changedTouches&&(r=r.changedTouches[0]),FK(n,r)}var VL,JE,ow=0,KE=0,qE=0,YL=0,i0=0,KL=0,QE="object"==typeof performance&&performance.now?performance:Date,HK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function hg(){return i0||(HK(sfe),i0=QE.now()+KL)}function sfe(){i0=0}function XE(){this._call=this._time=this._next=null}function $E(n,r,e){var i=new XE;return i.restart(n,r,e),i}function jK(){hg(),++ow;for(var r,n=VL;n;)(r=i0-n._time)>=0&&n._call.call(null,r),n=n._next;--ow}function GK(){i0=(YL=QE.now())+KL,ow=KE=0;try{jK()}finally{ow=0,function ufe(){for(var n,e,r=VL,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:VL=e);JE=n,j7(i)}(),i0=0}}function lfe(){var n=QE.now(),r=n-YL;r>1e3&&(KL-=r,YL=n)}function j7(n){ow||(KE&&(KE=clearTimeout(KE)),n-i0>24?(n<1/0&&(KE=setTimeout(GK,n-QE.now()-KL)),qE&&(qE=clearInterval(qE))):(qE||(YL=QE.now(),qE=setInterval(lfe,1e3)),ow=1,HK(GK)))}function ex(n,r,e){var i=new XE;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}XE.prototype=$E.prototype={constructor:XE,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&&JE!==this&&(JE?JE._next=this:VL=this,JE=this),this._call=r,this._time=i,j7()},stop:function(){this._call&&(this._call=null,this._time=1/0,j7())}};var cfe=t0("start","end","cancel","interrupt"),dfe=[];function QL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function ffe(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,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return ex(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),Z.on.call("cancel",n,n.__data__,Z.index,Z.group),delete i[h])}if(ex(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(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);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,C=o.length;++g<C;)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=$E(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:cfe,tween:dfe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function W7(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 tx,Y7,qK,XL,YK=180/Math.PI,V7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KK(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)*YK,skewX:Math.atan(u)*YK,scaleX:s,scaleY:l}}function JK(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.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,C),function l(d,h,g,C){d!==h?C.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,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var _fe=JK(function hfe(n){return"none"===n?V7:(tx||(tx=document.createElement("DIV"),Y7=document.documentElement,qK=document.defaultView),tx.style.transform=n,n=qK.getComputedStyle(Y7.appendChild(tx),null).getPropertyValue("transform"),Y7.removeChild(tx),KK(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),gfe=JK(function mfe(n){return null!=n&&(XL||(XL=document.createElementNS("http://www.w3.org/2000/svg","g")),XL.setAttribute("transform",n),n=XL.transform.baseVal.consolidate())?KK((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):V7},", ",")",")");function vfe(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 yfe(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 K7(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 QK(n,r){var e;return("number"==typeof r?qc:r instanceof r0?zL:(e=r0(r))?(r=e,zL):NK)(n,r)}function Cfe(n){return function(){this.removeAttribute(n)}}function wfe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function kfe(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 Tfe(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 Mfe(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 Sfe(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 xfe(n,r){return function(e){this.setAttribute(n,r.call(this,e))}}function Dfe(n,r){return function(e){this.setAttributeNS(n.space,n.local,r.call(this,e))}}function Afe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Dfe(n,a)),e}return o._value=r,o}function Ofe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&xfe(n,a)),e}return o._value=r,o}function Pfe(n,r){return function(){W7(this,n).delay=+r.apply(this,arguments)}}function Rfe(n,r){return r=+r,function(){W7(this,n).delay=r}}function Zfe(n,r){return function(){Qh(this,n).duration=+r.apply(this,arguments)}}function Nfe(n,r){return r=+r,function(){Qh(this,n).duration=r}}function Ffe(n,r){if("function"!=typeof r)throw new Error;return function(){Qh(this,n).ease=r}}function zfe(n,r,e){var i,o,a=function Gfe(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)?W7:Qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Jfe=pg.prototype.constructor;function XK(n){return function(){this.style.removeProperty(n)}}function rpe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function ipe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&rpe(n,s,e)),i}return a._value=r,a}function upe(n){return function(r){this.textContent=n.call(this,r)}}function cpe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&upe(o)),r}return i._value=n,i}var hpe=0;function Xh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function q7(n){return pg().transition(n)}function $K(){return++hpe}var sw=pg.prototype;function mpe(n){return n*n*n}function _pe(n){return--n*n*n+1}function $L(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Xh.prototype=q7.prototype={constructor:Xh,select:function Kfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=P7(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),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,QL(d[C],r,e,C,d,Ud(h,e)));return new Xh(a,this._parents,r,e)},selectAll:function qfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=lK(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 Z,C=n.call(h,h.__data__,g,u),z=Ud(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&QL(Z,r,e,q,C,z);a.push(C),s.push(h)}return new Xh(a,s,r,e)},filter:function Hfe(n){"function"!=typeof n&&(n=uK(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 jfe(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 C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new Xh(s,this._parents,this._name,this._id)},selection:function Qfe(){return new Jfe(this._groups,this._parents)},transition:function fpe(){for(var n=this._name,r=this._id,e=$K(),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 Wfe(n,r){var e=this._id;return arguments.length<2?Ud(this.node(),e).on.on(n):this.each(zfe(e,n,r))},attr:function Efe(n,r){var e=ZL(n),i="transform"===e?gfe:QK;return this.attrTween(n,"function"==typeof r?(e.local?Sfe:Mfe)(e,i,K7(this,"attr."+n,r)):null==r?(e.local?wfe:Cfe)(e):(e.local?Tfe:kfe)(e,i,r))},attrTween:function Ife(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=ZL(n);return this.tween(e,(i.local?Afe:Ofe)(i,r))},style:function npe(n,r,e){var i="transform"==(n+="")?_fe:QK;return null==r?this.styleTween(n,function Xfe(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,XK(n)):"function"==typeof r?this.styleTween(n,function epe(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,K7(this,"style."+n,r))).each(function tpe(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=XK(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 $fe(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 ope(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,ipe(n,r,null==e?"":e))},text:function lpe(n){return this.tween("text","function"==typeof n?function spe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(K7(this,"text",n)):function ape(n){return function(){this.textContent=n}}(null==n?"":n+""))},textTween:function dpe(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,cpe(n))},remove:function Yfe(){return this.on("end.remove",function Vfe(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 bfe(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?vfe:yfe)(e,n,r))},delay:function Lfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Pfe:Rfe)(r,n)):Ud(this.node(),r).delay},duration:function Bfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Zfe:Nfe)(r,n)):Ud(this.node(),r).duration},ease:function Ufe(n){var r=this._id;return arguments.length?this.each(Ffe(r,n)):Ud(this.node(),r).ease},end:function ppe(){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 J7={time:null,delay:0,duration:250,ease:$L};function gpe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return J7.time=hg(),J7;return e}pg.prototype.interrupt=function pfe(n){return this.each(function(){aw(this,n)})},pg.prototype.transition=function vpe(n){var r,e;n instanceof Xh?(r=n._id,n=n._name):(r=$K(),(e=J7).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||gpe(u,r));return new Xh(i,this._parents,n,r)};function eq(n){return function(){return n}}function bpe(n,r,e){this.target=n,this.type=r,this.selection=e}function tq(){Ln.stopImmediatePropagation()}function eZ(){Ln.preventDefault(),Ln.stopImmediatePropagation()}var nq={name:"drag"},Q7={name:"space"},lw={name:"handle"},uw={name:"center"},tZ={name:"x",handles:["e","w"].map(nx),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]]}},nZ={name:"y",handles:["n","s"].map(nx),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]]}},Cpe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(nx),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"},rq={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},iq={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wpe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},kpe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function nx(n){return{type:n}}function Tpe(){return!Ln.button}function Mpe(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function X7(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function $7(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Spe(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function Epe(){return e9(tZ)}function xpe(){return e9(nZ)}function Dpe(){return e9(Cpe)}function e9(n){var a,r=Mpe,e=Tpe,i=t0(s,"start","brush","end"),o=6;function s(C){var Z=C.property("__brush",g).selectAll(".overlay").data([nx("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$h.overlay).merge(Z).each(function(){var q=X7(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])}),C.selectAll(".selection").data([nx("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=C.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]}),C.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 C=Ci(this),Z=X7(this).selection;Z?(C.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),C.selectAll(".handle").style("display",null).attr("x",function(z){return"e"===z.type[z.type.length-1]?Z[1][0]-o/2:Z[0][0]-o/2}).attr("y",function(z){return"s"===z.type[0]?Z[1][1]-o/2:Z[0][1]-o/2}).attr("width",function(z){return"n"===z.type||"s"===z.type?Z[1][0]-Z[0][0]+o:o}).attr("height",function(z){return"e"===z.type||"w"===z.type?Z[1][1]-Z[0][1]+o:o})):C.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(C,Z){return C.__brush.emitter||new d(C,Z)}function d(C,Z){this.that=C,this.args=Z,this.state=C.__brush,this.active=0}function h(){if(Ln.touches){if(Ln.changedTouches.length<Ln.touches.length)return eZ()}else if(a)return;if(e.apply(this,arguments)){var Ke,st,it,ft,$e,Pe,Bt,Ht,Pt,Tn,jn,ar,kr,C=this,Z=Ln.target.__data__.type,z="selection"===(Ln.metaKey?Z="overlay":Z)?nq:Ln.altKey?uw:lw,q=n===nZ?null:wpe[Z],re=n===tZ?null:kpe[Z],ae=X7(C),Se=ae.extent,Ce=ae.selection,Ee=Se[0][0],Ae=Se[0][1],bt=Se[1][0],ct=Se[1][1],zn=q&&re&&Ln.shiftKey,_r=Fd(C),Wr=_r,Hr=u(C,arguments).beforestart();"overlay"===Z?ae.selection=Ce=[[Ke=n===nZ?Ee:_r[0],it=n===tZ?Ae:_r[1]],[$e=n===nZ?bt:Ke,Bt=n===tZ?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(C).attr("pointer-events","none"),Ho=Kr.selectAll(".overlay").attr("cursor",$h[Z]);if(Ln.touches)Kr.on("touchmove.brush",br,!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",br,!0).on("mouseup.brush",gn,!0);BL(Ln.view)}tq(),aw(C),l.call(C),Hr.start()}function br(){var bn=Fd(C);zn&&!ar&&!kr&&(Math.abs(bn[0]-Wr[0])>Math.abs(bn[1]-Wr[1])?kr=!0:ar=!0),Wr=bn,jn=!0,eZ(),Mn()}function Mn(){var bn;switch(Pt=Wr[0]-_r[0],Tn=Wr[1]-_r[1],z){case Q7:case nq:q&&(Pt=Math.max(Ee-Ke,Math.min(bt-$e,Pt)),st=Ke+Pt,Pe=$e+Pt),re&&(Tn=Math.max(Ae-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(Ae-it,Math.min(ct-it,Tn)),ft=it+Tn,Ht=Bt):re>0&&(Tn=Math.max(Ae-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(Ae,Math.min(ct,it-Tn*re)),Ht=Math.max(Ae,Math.min(ct,Bt+Tn*re)))}Pe<st&&(q*=-1,bn=Ke,Ke=$e,$e=bn,bn=st,st=Pe,Pe=bn,Z in rq&&Ho.attr("cursor",$h[Z=rq[Z]])),Ht<ft&&(re*=-1,bn=it,it=Bt,Bt=bn,bn=ft,ft=Ht,Ht=bn,Z in iq&&Ho.attr("cursor",$h[Z=iq[Z]])),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(C),Hr.brush())}function gn(){if(tq(),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 FL(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),$7(Ce)&&(ae.selection=null,l.call(C)),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=Q7,Ho.attr("cursor",$h.selection),Mn());break;default:return}eZ()}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===Q7&&(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[Z]),Mn());break;default:return}eZ()}}function g(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=n,C}return s.move=function(C,Z){C.selection?C.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 Z?Z.apply(this,arguments):Z,q.extent),Ce=WL(ae,Se);function Ee(Ke){q.selection=1===Ke&&$7(Se)?null:Ce(Ke),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):C.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof Z?Z.apply(z,q):Z,re.extent),Se=u(z,q).beforestart();aw(z),re.selection=null==ae||$7(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(Z){NL(new bpe(s,Z,n.output(this.state.selection)),i.apply,i,[Z,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:eq([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),s):r},s.filter=function(C){return arguments.length?(e="function"==typeof C?C:eq(!!C),s):e},s.handleSize=function(C){return arguments.length?(o=+C,s):o},s.on=function(){var C=i.on.apply(i,arguments);return C===i?s:C},s}var oq=Math.cos,aq=Math.sin,sq=Math.PI,rZ=sq/2,lq=2*sq,uq=Math.max;function Ape(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ope(){var n=0,r=null,e=null,i=null;function o(a){var Z,z,q,re,ae,Se,s=a.length,l=[],u=mc(s),d=[],h=[],g=h.groups=new Array(s),C=new Array(s*s);for(Z=0,ae=-1;++ae<s;){for(z=0,Se=-1;++Se<s;)z+=a[ae][Se];l.push(z),d.push(mc(s)),Z+=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=(Z=uq(0,lq-n*s)/Z)?n:lq/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,Ae=z+=Ke*Z;C[Ee*s+Ce]={index:Ce,subindex:Ee,startAngle:st,endAngle:Ae,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=C[Se*s+ae],ft=C[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=uq(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=Ape(a))._=a,o):i&&i._},o}var Ipe=Array.prototype.slice;function t9(n){return function(){return n}}var n9=Math.PI,r9=2*n9,o0=1e-6,Ppe=r9-o0;function i9(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cq(){return new i9}i9.prototype=cq.prototype={constructor:i9,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,C=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(C>o0)if(Math.abs(g*u-d*h)>o0&&a){var Z=i-s,z=o-l,q=u*u+d*d,re=Z*Z+z*z,ae=Math.sqrt(q),Se=Math.sqrt(C),Ce=a*Math.tan((n9-Math.acos((q+C-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*Z>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,C=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&&(C<0&&(C=C%r9+r9),C>Ppe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):C>o0&&(this._+="A"+i+","+i+",0,"+ +(C>=n9)+","+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=cq;function Rpe(n){return n.source}function Lpe(n){return n.target}function Zpe(n){return n.radius}function Npe(n){return n.startAngle}function Bpe(n){return n.endAngle}function Fpe(){var n=Rpe,r=Lpe,e=Zpe,i=Npe,o=Bpe,a=null;function s(){var l,u=Ipe.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),C=i.apply(this,u)-rZ,Z=o.apply(this,u)-rZ,z=g*oq(C),q=g*aq(C),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-rZ,Se=o.apply(this,u)-rZ;if(a||(a=l=Hd()),a.moveTo(z,q),a.arc(0,0,g,C,Z),(C!==ae||Z!==Se)&&(a.quadraticCurveTo(0,0,re*oq(ae),re*aq(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:t9(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:t9(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:t9(+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 iZ(){}function dq(n,r){var e=new iZ;if(n instanceof iZ)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}iZ.prototype=dq.prototype={constructor:iZ,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=dq;function Upe(){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,C=l.length,Z=n[u++],re=mg(),Se=d();++g<C;)(ae=re.get(z=Z(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,C){d.push({key:C,values:s(g,u)})})),null!=h?d.sort(function(g,C){return h(g.key,C.key)}):d}return o={object:function(u){return a(u,0,Hpe,jpe)},map:function(u){return a(u,0,fq,pq)},entries:function(u){return s(a(u,0,fq,pq),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 Hpe(){return{}}function jpe(n,r,e){n[r]=e}function fq(){return mg()}function pq(n,r,e){n.set(r,e)}function oZ(){}var a0=mg.prototype;function hq(n,r){var e=new oZ;if(n instanceof oZ)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}oZ.prototype=hq.prototype={constructor:oZ,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 Gpe=hq;function zpe(n){var r=[];for(var e in n)r.push(e);return r}function Wpe(n){var r=[];for(var e in n)r.push(n[e]);return r}function Vpe(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 rx(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*",ix="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",up="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ype=/^#([0-9a-f]{3})$/,Kpe=/^#([0-9a-f]{6})$/,qpe=new RegExp("^rgb\\("+[fw,fw,fw]+"\\)$"),Jpe=new RegExp("^rgb\\("+[up,up,up]+"\\)$"),Qpe=new RegExp("^rgba\\("+[fw,fw,fw,ix]+"\\)$"),Xpe=new RegExp("^rgba\\("+[up,up,up,ix]+"\\)$"),$pe=new RegExp("^hsl\\("+[ix,up,up]+"\\)$"),ehe=new RegExp("^hsla\\("+[ix,up,up,ix]+"\\)$"),mq={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 aZ(n){var r;return n=(n+"").trim().toLowerCase(),(r=Ype.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=Kpe.exec(n))?_q(parseInt(r[1],16)):(r=qpe.exec(n))?new ol(r[1],r[2],r[3],1):(r=Jpe.exec(n))?new ol(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Qpe.exec(n))?gq(r[1],r[2],r[3],r[4]):(r=Xpe.exec(n))?gq(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=$pe.exec(n))?yq(r[1],r[2]/100,r[3]/100,1):(r=ehe.exec(n))?yq(r[1],r[2]/100,r[3]/100,r[4]):mq.hasOwnProperty(n)?_q(mq[n]):"transparent"===n?new ol(NaN,NaN,NaN,0):null}function _q(n){return new ol(n>>16&255,n>>8&255,255&n,1)}function gq(n,r,e,i){return i<=0&&(n=r=e=NaN),new ol(n,r,e,i)}function o9(n){return n instanceof _g||(n=aZ(n)),n?new ol((n=n.rgb()).r,n.g,n.b,n.opacity):new ol}function vq(n,r,e,i){return 1===arguments.length?o9(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 yq(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 the(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof _g||(n=aZ(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 bq(n,r,e,i){return 1===arguments.length?the(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 a9(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,aZ,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),cw(ol,vq,rx(_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,bq,rx(_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(a9(r>=240?r-240:r+120,a,o),a9(r,a,o),a9(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 Cq=Math.PI/180,wq=180/Math.PI,Sq=4/29,pw=6/29,Eq=3*pw*pw;function s9(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*Cq;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ol||(n=o9(n));var s,l,e=d9(n.r),i=d9(n.g),o=d9(n.b),a=l9((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=l9((.4360747*e+.3850649*i+.1430804*o)/.96422),l=l9((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function xq(n,r,e,i){return 1===arguments.length?s9(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 l9(n){return n>.008856451679035631?Math.pow(n,1/3):n/Eq+Sq}function u9(n){return n>pw?n*n*n:Eq*(n-Sq)}function c9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function d9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function rhe(n){if(n instanceof em)return new em(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=s9(n)),0===n.a&&0===n.b)return new em(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*wq;return new em(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Dq(n,r,e,i){return 1===arguments.length?rhe(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,xq,rx(_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(c9(3.1338561*(e=.96422*u9(e))-1.6168667*(r=1*u9(r))-.4906146*(i=.82521*u9(i))),c9(-.9787684*e+1.9161415*r+.033454*i),c9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),cw(em,Dq,rx(_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 s9(this).rgb()}}));var f9=1.78277,p9=-.29227,lZ=-.90649,ox=1.97294,Oq=ox*lZ,Iq=ox*f9,Pq=f9*p9- -.14861*lZ;function ihe(n){if(n instanceof l0)return new l0(n.h,n.s,n.l,n.opacity);n instanceof ol||(n=o9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Pq*i+Oq*r-Iq*e)/(Pq+Oq-Iq),a=i-o,s=(ox*(e-o)-p9*a)/lZ,l=Math.sqrt(s*s+a*a)/(ox*o*(1-o)),u=l?Math.atan2(s,a)*wq-120:NaN;return new l0(u<0?u+360:u,l,o,n.opacity)}function Rq(n,r,e,i){return 1===arguments.length?ihe(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,Rq,rx(_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)*Cq,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+f9*a)),255*(e+i*(p9*o+lZ*a)),255*(e+i*(ox*o)),this.opacity)}}));var Lq=Array.prototype.slice;function ahe(n,r){return n-r}function u0(n){return function(){return n}}function lhe(n,r){for(var o,e=-1,i=r.length;++e<i;)if(o=uhe(n,r[e]))return o;return 0}function uhe(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],C=g[0],Z=g[1];if(che(u,g,r))return 0;h>i!=Z>i&&e<(C-d)*(i-h)/(Z-h)+d&&(o=-o)}return o}function che(n,r,e){var i;return function dhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function fhe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function phe(){}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 Zq(){var n=1,r=1,e=D7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(ahe);else{var g=T7(d),C=g[0],Z=g[1];h=e0(C,Z,h),h=mc(Math.floor(C/h)*h,Math.floor(Z/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],C=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,C=new Array,Z=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],Ae=[Ke[1][0]+z,Ke[1][1]+q],it=l(st),ft=l(Ae);(bt=Z[it])?($e=C[ft])?(delete Z[bt.end],delete C[$e.start],bt===$e?(bt.ring.push(Ae),g(bt.ring)):C[bt.start]=Z[$e.end]={start:bt.start,end:$e.end,ring:bt.ring.concat($e.ring)}):(delete Z[bt.end],bt.ring.push(Ae),Z[bt.end=ft]=bt):(bt=C[ft])?($e=Z[it])?(delete C[bt.start],delete Z[$e.end],bt===$e?(bt.ring.push(Ae),g(bt.ring)):C[$e.start]=Z[bt.end]={start:$e.start,end:bt.end,ring:$e.ring.concat(bt.ring)}):(delete C[bt.start],bt.ring.unshift(st),C[bt.start=it]=bt):C[it]=Z[ft]={start:it,end:ft,ring:[st,Ae]}}tm[Se<<3].forEach(Ee)}(d,h,function(Z){i(Z,d,h),function she(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}(Z)>0?g.push([Z]):C.push(Z)}),C.forEach(function(Z){for(var re,z=0,q=g.length;z<q;++z)if(-1!==lhe((re=g[z])[0],Z))return void re.push(Z)}),{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(C){var ae,Z=C[0],z=C[1],q=0|Z,re=0|z,Se=h[re*n+q];Z>0&&Z<n&&q===Z&&(ae=h[re*n+q-1],C[0]=Z+(g-ae)/(Se-ae)-.5),z>0&&z<r&&re===z&&(ae=h[(re-1)*n+q],C[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(Lq.call(d)):u0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:phe,o):i===u},o}function h9(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 m9(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 hhe(n){return n[0]}function mhe(n){return n[1]}function _he(){var n=hhe,r=mhe,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,Ae){var it=n(Ke,st,Ae)+s>>a,ft=r(Ke,st,Ae)+s>>a;it>=0&&it<l&&ft>=0&&ft<u&&++ae[it+ft*l]}),h9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),m9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),h9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),m9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),h9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),m9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=nK(ae);Ce=e0(0,Ee,Ce),(Ce=mc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Zq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(C),re}function C(re){re.forEach(Z)}function Z(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(Lq.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 _9(n,r,e){arguments.length<3&&(e=r,r=BK().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return FK(n,a);return null}function uZ(n){return function(){return n}}function g9(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 ghe(){return!Ln.ctrlKey&&!Ln.button}function vhe(){return this.parentNode}function yhe(n){return null==n?{x:Ln.x,y:Ln.y}:n}function bhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function gg(){var l,u,d,h,n=ghe,r=vhe,e=yhe,i=bhe,o={},a=t0("start","drag","end"),s=0,g=0;function C(Ee){Ee.on("mousedown.drag",Z).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 Z(){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),BL(Ln.view),Z7(),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),FL(Ln.view,d),ew(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var Ae,it,Ee=Ln.changedTouches,Ke=r.apply(this,arguments),st=Ee.length;for(Ae=0;Ae<st;++Ae)(it=Ce(Ee[Ae].identifier,Ke,_9,this,arguments))&&(Z7(),it("start"))}}function ae(){var st,Ae,Ee=Ln.changedTouches,Ke=Ee.length;for(st=0;st<Ke;++st)(Ae=o[Ee[st].identifier])&&(ew(),Ae("drag"))}function Se(){var st,Ae,Ee=Ln.changedTouches,Ke=Ee.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),st=0;st<Ke;++st)(Ae=o[Ee[st].identifier])&&(Z7(),Ae("end"))}function Ce(Ee,Ke,st,Ae,it){var bt,$e,Pe,ft=st(Ke,Ee),ct=a.copy();if(NL(new g9(C,"beforestart",bt,Ee,s,ft[0],ft[1],0,0,ct),function(){return null!=(Ln.subject=bt=e.apply(Ae,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}NL(new g9(C,Ht,bt,Ee,Tn,ft[0]+$e,ft[1]+Pe,ft[0]-Pt[0],ft[1]-Pt[1],ct),ct.apply,ct,[Ht,Ae,it])}}return C.filter=function(Ee){return arguments.length?(n="function"==typeof Ee?Ee:uZ(!!Ee),C):n},C.container=function(Ee){return arguments.length?(r="function"==typeof Ee?Ee:uZ(Ee),C):r},C.subject=function(Ee){return arguments.length?(e="function"==typeof Ee?Ee:uZ(Ee),C):e},C.touchable=function(Ee){return arguments.length?(i="function"==typeof Ee?Ee:uZ(!!Ee),C):i},C.on=function(){var Ee=a.on.apply(a,arguments);return Ee===a?C:Ee},C.clickDistance=function(Ee){return arguments.length?(g=(Ee=+Ee)*Ee,C):Math.sqrt(g)},C}g9.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Nq={},v9={};function Bq(n){return new Function("d","return {"+n.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function C9(n){var r=new RegExp('["'+n+"\n\r]"),e=n.charCodeAt(0);function o(d,h){var q,g=[],C=d.length,Z=0,z=0,re=C<=0,ae=!1;function Se(){if(re)return v9;if(ae)return ae=!1,Nq;var Ee,st,Ke=Z;if(34===d.charCodeAt(Ke)){for(;Z++<C&&34!==d.charCodeAt(Z)||34===d.charCodeAt(++Z););return(Ee=Z)>=C?re=!0:10===(st=d.charCodeAt(Z++))?ae=!0:13===st&&(ae=!0,10===d.charCodeAt(Z)&&++Z),d.slice(Ke+1,Ee-1).replace(/""/g,'"')}for(;Z<C;){if(10===(st=d.charCodeAt(Ee=Z++)))ae=!0;else if(13===st)ae=!0,10===d.charCodeAt(Z)&&++Z;else if(st!==e)continue;return d.slice(Ke,Ee)}return re=!0,d.slice(Ke,C)}for(10===d.charCodeAt(C-1)&&--C,13===d.charCodeAt(C-1)&&--C;(q=Se())!==v9;){for(var Ce=[];q!==Nq&&q!==v9;)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,C,Z=o(d,function(z,q){if(g)return g(z,q-1);C=z,g=h?function Che(n,r){var e=Bq(n);return function(i,o){return r(e(i),o,n)}}(z,h):Bq(z)});return Z.columns=C||[],Z},parseRows:o,format:function a(d,h){return null==h&&(h=function whe(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(C){return u(g[C])}).join(n)})).join("\n")},formatRows:function s(d){return d.map(l).join("\n")}}}var cZ=C9(","),khe=cZ.parse,The=cZ.parseRows,Mhe=cZ.format,She=cZ.formatRows,dZ=C9("\t"),Ehe=dZ.parse,xhe=dZ.parseRows,Dhe=dZ.format,Ahe=dZ.formatRows;function Ohe(n){return+n}function Ihe(n){return n*n}function Phe(n){return n*(2-n)}function Fq(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Rhe=function n(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=n,e}(3),Lhe=function n(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=n,e}(3),Uq=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),Hq=Math.PI,jq=Hq/2;function Zhe(n){return 1==+n?1:1-Math.cos(n*jq)}function Nhe(n){return Math.sin(n*jq)}function Gq(n){return(1-Math.cos(Hq*n))/2}function vg(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Bhe(n){return vg(1-+n)}function Fhe(n){return 1-vg(n)}function zq(n){return((n*=2)<=1?vg(1-n):2-vg(n-1))/2}function Uhe(n){return 1-Math.sqrt(1-n*n)}function Hhe(n){return Math.sqrt(1- --n*n)}function Wq(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var k9=4/11,fZ=7.5625;function Jhe(n){return 1-sx(1-n)}function sx(n){return(n=+n)<k9?fZ*n*n:n<.7272727272727273?fZ*(n-=.5454545454545454)*n+.75:n<.9090909090909091?fZ*(n-=.8181818181818182)*n+.9375:fZ*(n-=.9545454545454546)*n+.984375}function Qhe(n){return((n*=2)<=1?1-sx(1-n):sx(n-1)+1)/2}var T9=1.70158,Xhe=function n(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=n,e}(T9),$he=function n(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=n,e}(T9),Vq=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}(T9),hw=2*Math.PI,eme=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),Yq=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),tme=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 nme(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 Kq(n,r,e,i){if(isNaN(r)||isNaN(e))return n;var o,g,C,Z,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>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(Z=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===Z&&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>=(C=(u+h)/2))?u=C:h=C}while((ae=re<<1|q)==(Se=(z>=C)<<1|Z>=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 mme(n){return n[0]}function gme(n){return n[1]}function pZ(n,r,e){var i=new E9(null==r?mme:r,null==e?gme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function E9(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 qq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var $l=pZ.prototype=E9.prototype;function yme(n){return n.x+n.vx}function bme(n){return n.y+n.vy}function Cme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,C,Z,z,q,d=r.length,re=0;re<o;++re)for(h=pZ(r,yme,bme).visitAfter(s),u=0;u<d;++u)g=r[u],z=e[g.index],q=z*z,C=g.x+g.vx,Z=g.y+g.vy,h.visit(ae);function ae(Se,Ce,Ee,Ke,st){var Ae=Se.data,it=Se.r,ft=z+it;if(!Ae)return Ce>C+ft||Ke<C-ft||Ee>Z+ft||st<Z-ft;if(Ae.index>g.index){var bt=C-Ae.x-Ae.vx,$e=Z-Ae.y-Ae.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,Ae.vx-=bt*(ft=1-ft),Ae.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 wme(n){return n.index}function Jq(n,r){var e=n.get(r);if(!e)throw new Error("missing: "+r);return e}function kme(n){var i,a,s,l,u,r=wme,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,Ae,it,ft,Se=0;Se<ae;++Se)Ee=(Ce=n[Se]).source,st=(Ke=Ce.target).x+Ke.vx-Ee.x-Ee.vx||yg(),Ae=Ke.y+Ke.vy-Ee.y-Ee.vy||yg(),st*=it=((it=Math.sqrt(st*st+Ae*Ae))-a[Se])/it*q*i[Se],Ae*=it,Ke.vx-=st*(ft=u[Se]),Ke.vy-=Ae*ft,Ee.vx+=st*(ft=1-ft),Ee.vy+=Ae*ft}function C(){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=Jq(Se,Ce.source)),"object"!=typeof Ce.target&&(Ce.target=Jq(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),Z(),a=new Array(ae),z()}}function Z(){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,C()},g.links=function(q){return arguments.length?(n=q,C(),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),Z(),g):e},g.distance=function(q){return arguments.length?(o="function"==typeof q?q:gs(+q),z(),g):o},g}function Tme(n){return n.x}function Mme(n){return n.y}$l.copy=function(){var e,i,n=new E9(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=qq(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]=qq(i));return n},$l.add=function rme(n){var r=+this._x.call(null,n),e=+this._y.call(null,n);return Kq(this.cover(r,e),r,e,n)},$l.addAll=function ime(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)Kq(this,s[e],l[e],n[e]);return this},$l.cover=function ome(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 ame(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},$l.extent=function sme(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 lme(n,r,e){var i,s,l,u,d,z,q,o=this._x0,a=this._y0,h=this._x1,g=this._y1,C=[],Z=this._root;for(Z&&C.push(new Xl(Z,o,a,h,g)),null==e?e=1/0:(o=n-e,a=r-e,h=n+e,g=r+e,e*=e);z=C.pop();)if(!(!(Z=z.node)||(s=z.x0)>h||(l=z.y0)>g||(u=z.x1)<o||(d=z.y1)<a))if(Z.length){var re=(s+u)/2,ae=(l+d)/2;C.push(new Xl(Z[3],re,ae,u,d),new Xl(Z[2],s,ae,re,d),new Xl(Z[1],re,l,u,ae),new Xl(Z[0],s,l,re,ae)),(q=(r>=ae)<<1|n>=re)&&(z=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=z)}else{var Se=n-+this._x.call(null,Z.data),Ce=r-+this._y.call(null,Z.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=Z.data}}return i},$l.remove=function ume(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,C,Z,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>=(C=(s+u)/2))?s=C:u=C,(q=g>=(Z=(l+d)/2))?l=Z:d=Z,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 cme(n){for(var r=0,e=n.length;r<e;++r)this.remove(n[r]);return this},$l.root=function dme(){return this._root},$l.size=function fme(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},$l.visit=function pme(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 hme(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 _me(n){return arguments.length?(this._x=n,this):this._x},$l.y=function vme(n){return arguments.length?(this._y=n,this):this._y};var Qq,Eme=Math.PI*(3-Math.sqrt(5));function xme(n){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=mg(),u=$E(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 C(){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*Eme;re.x=ae*Math.cos(Se),re.y=ae*Math.sin(Se)}(isNaN(re.vx)||isNaN(re.vy))&&(re.vx=re.vy=0)}}function Z(z){return z.initialize&&z.initialize(n),z}return null==n&&(n=[]),C(),r={tick:g,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(n=q,C(),l.each(Z),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,Z(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ke,st,Ae,it,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se<Ce;++Se)(st=(Ee=q-(Ae=n[Se]).x)*Ee+(Ke=re-Ae.y)*Ke)<ae&&(it=Ae,ae=st);return it},on:function(q,re){return arguments.length>1?(d.on(q,re),r):d.on(q)}}}function Dme(){var n,r,e,o,i=gs(-30),a=1,s=1/0,l=.81;function u(C){var Z,z=n.length,q=pZ(n,Tme,Mme).visitAfter(h);for(e=C,Z=0;Z<z;++Z)r=n[Z],q.visit(g)}function d(){if(n){var C,z,Z=n.length;for(o=new Array(Z),C=0;C<Z;++C)z=n[C],o[z.index]=+i(z,C,n)}}function h(C){var z,q,ae,Se,Ce,Z=0,re=0;if(C.length){for(ae=Se=Ce=0;Ce<4;++Ce)(z=C[Ce])&&(q=Math.abs(z.value))&&(Z+=z.value,re+=q,ae+=q*z.x,Se+=q*z.y);C.x=ae/re,C.y=Se/re}else{(z=C).x=z.data.x,z.y=z.data.y;do{Z+=o[z.data.index]}while(z=z.next)}C.value=Z}function g(C,Z,z,q){if(!C.value)return!0;var re=C.x-r.x,ae=C.y-r.y,Se=q-Z,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*C.value*e/Ce,r.vy+=ae*C.value*e/Ce),!0;if(!(C.length||Ce>=s)){(C.data!==r||C.next)&&(0===re&&(Ce+=(re=yg())*re),0===ae&&(Ce+=(ae=yg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)));do{C.data!==r&&(Se=o[C.data.index]*e/Ce,r.vx+=re*Se,r.vy+=ae*Se)}while(C=C.next)}}return u.initialize=function(C){n=C,d()},u.strength=function(C){return arguments.length?(i="function"==typeof C?C:gs(+C),d(),u):i},u.distanceMin=function(C){return arguments.length?(a=C*C,u):Math.sqrt(a)},u.distanceMax=function(C){return arguments.length?(s=C*C,u):Math.sqrt(s)},u.theta=function(C){return arguments.length?(l=C*C,u):Math.sqrt(l)},u}function Ame(n,r,e){var i,a,s,o=gs(.1);function l(d){for(var h=0,g=i.length;h<g;++h){var C=i[h],Z=C.x-r||1e-6,z=C.y-e||1e-6,q=Math.sqrt(Z*Z+z*z),re=(s[h]-q)*a[h]*d/q;C.vx+=Z*re,C.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 Ome(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 Ime(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 hZ(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=hZ(Math.abs(n)))?n[1]:NaN}function Xq(n,r){var e=hZ(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 $q={"":function Lme(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 Xq(100*r,e)},r:Xq,s:function Zme(n,r){var e=hZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Qq=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")+hZ(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)}},Nme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function mZ(n){return new x9(n)}function x9(n){if(!(r=Nme.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"):$q[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 eJ(n){return n}mZ.prototype=x9.prototype,x9.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 _Z,rJ,iJ,tJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function nJ(n){var r=n.grouping&&n.thousands?function Pme(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):eJ,e=n.currency,i=n.decimal,o=n.numerals?function Rme(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):eJ,a=n.percent||"%";function s(u){var d=(u=mZ(u)).fill,h=u.align,g=u.sign,C=u.symbol,Z=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===C?e[0]:"#"===C&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===C?e[1]:/[%p]/.test(ae)?a:"",Ee=$q[ae],Ke=!ae||/[defgprs%]/.test(ae);function st(Ae){var bt,$e,Pe,it=Se,ft=Ce;if("c"===ae)ft=Ee(Ae)+ft,Ae="";else{var ct=(Ae=+Ae)<0;if(Ae=Ee(Math.abs(Ae),re),ct&&0==+Ae&&(ct=!1),it=(ct?"("===g?g:"-":"-"===g||"("===g?"":g)+it,ft=("s"===ae?tJ[8+Qq/3]:"")+ft+(ct&&"("===g?")":""),Ke)for(bt=-1,$e=Ae.length;++bt<$e;)if(48>(Pe=Ae.charCodeAt(bt))||Pe>57){ft=(46===Pe?i+Ae.slice(bt+1):Ae.slice(bt))+ft,Ae=Ae.slice(0,bt);break}}q&&!Z&&(Ae=r(Ae,1/0));var Bt=it.length+Ae.length+ft.length,Ht=Bt<z?new Array(z-Bt+1).join(d):"";switch(q&&Z&&(Ae=r(Ht+Ae,Ht.length?z-ft.length:1/0),Ht=""),h){case"<":Ae=it+Ae+ft+Ht;break;case"=":Ae=it+Ht+Ae+ft;break;case"^":Ae=Ht.slice(0,Bt=Ht.length>>1)+it+Ae+ft+Ht.slice(Bt);break;default:Ae=Ht+it+Ae+ft}return o(Ae)}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=mZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(mw(d)/3))),C=Math.pow(10,-g),Z=tJ[8+g/3];return function(z){return h(C*z)+Z}}}}function oJ(n){return _Z=nJ(n),rJ=_Z.format,iJ=_Z.formatPrefix,_Z}function Bme(n){return Math.max(0,-mw(Math.abs(n)))}function Fme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mw(r)/3)))-mw(Math.abs(n)))}function Ume(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,mw(r)-mw(n))+1}function bg(){return new gZ}function gZ(){this.reset()}oJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),gZ.prototype={constructor:gZ,reset:function(){this.s=this.t=0},add:function(r){aJ(vZ,r,this.t),aJ(this,vZ.s,this.s),this.s?this.t+=vZ.t:this.s=vZ.t},valueOf:function(){return this.s}};var vZ=new gZ;function aJ(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,yZ=Zi/4,Fu=2*Zi,zo=180/Zi,Lr=Zi/180,Xi=Math.abs,_w=Math.atan,eu=Math.atan2,Sr=Math.cos,bZ=Math.ceil,lJ=Math.exp,CZ=(Math.floor,Math.log),D9=Math.pow,mr=Math.sin,lx=Math.sign||function(n){return n>0?1:n<0?-1:0},vs=Math.sqrt,A9=Math.tan;function uJ(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 cJ(n){return(n=mr(n/2))*n}function _a(){}function wZ(n,r){n&&fJ.hasOwnProperty(n.type)&&fJ[n.type](n,r)}var dJ={Feature:function(r,e){wZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)wZ(i[o].geometry,e)}},fJ={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){O9(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)O9(i[o],e,0)},Polygon:function(r,e){pJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)pJ(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)wZ(i[o],e)}};function O9(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 pJ(n,r){var e=-1,i=n.length;for(r.polygonStart();++e<i;)O9(n[e],r,1);r.polygonEnd()}function jd(n,r){n&&dJ.hasOwnProperty(n.type)?dJ[n.type](n,r):wZ(n,r)}var hJ,mJ,I9,P9,R9,kZ=bg(),TZ=bg(),fp={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){kZ.reset(),fp.lineStart=Hme,fp.lineEnd=jme},polygonEnd:function(){var r=+kZ;TZ.add(r<0?Fu+r:r),this.lineStart=this.lineEnd=this.point=_a},sphere:function(){TZ.add(Fu)}};function Hme(){fp.point=Gme}function jme(){_J(hJ,mJ)}function Gme(n,r){fp.point=_J,hJ=n,mJ=r,I9=n*=Lr,P9=Sr(r=(r*=Lr)/2+yZ),R9=mr(r)}function _J(n,r){var e=(n*=Lr)-I9,i=e>=0?1:-1,o=i*e,a=Sr(r=(r*=Lr)/2+yZ),s=mr(r),l=R9*s,u=P9*a+l*Sr(o),d=l*i*mr(o);kZ.add(eu(d,u)),I9=n,P9=a,R9=s}function zme(n){return TZ.reset(),jd(n,fp),2*TZ}function MZ(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 SZ(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 L9(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function EZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function xZ(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,gJ,vJ,vw,Cg,nm,ux=bg(),rm={point:Z9,lineStart:bJ,lineEnd:CJ,polygonStart:function(){rm.point=wJ,rm.lineStart=Wme,rm.lineEnd=Vme,ux.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),rm.point=Z9,rm.lineStart=bJ,rm.lineEnd=CJ,kZ<0?(Aa=-(Ha=180),vc=-(Qc=90)):ux>Mr?Qc=90:ux<-Mr&&(vc=-90),nm[0]=Aa,nm[1]=Ha}};function Z9(n,r){Cg.push(nm=[Aa=n,Ha=n]),r<vc&&(vc=r),r>Qc&&(Qc=r)}function yJ(n,r){var e=c0([n*Lr,r*Lr]);if(vw){var i=gw(vw,e),a=gw([i[1],-i[0],0],i);xZ(a),a=MZ(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 bJ(){rm.point=yJ}function CJ(){nm[0]=Aa,nm[1]=Ha,rm.point=Z9,vw=null}function wJ(n,r){if(vw){var e=n-d0;ux.add(Xi(e)>180?e+(e>0?360:-360):e)}else gJ=n,vJ=r;fp.point(n,r),yJ(n,r)}function Wme(){fp.lineStart()}function Vme(){wJ(gJ,vJ),fp.lineEnd(),Xi(ux)>Mr&&(Aa=-(Ha=180)),nm[0]=Aa,nm[1]=Ha,vw=null}function yc(n,r){return(r-=n)<0?r+360:r}function Yme(n,r){return n[0]-r[0]}function kJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function Kme(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(Yme),r=1,a=[i=Cg[0]];r<e;++r)kJ(i,(o=Cg[r])[0])||kJ(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 cx,DZ,AZ,OZ,IZ,PZ,RZ,LZ,N9,B9,F9,TJ,MJ,tu,nu,ru,Gd={sphere:_a,point:U9,lineStart:SJ,lineEnd:EJ,polygonStart:function(){Gd.lineStart=Qme,Gd.lineEnd=Xme},polygonEnd:function(){Gd.lineStart=SJ,Gd.lineEnd=EJ}};function U9(n,r){n*=Lr;var e=Sr(r*=Lr);dx(e*Sr(n),e*mr(n),mr(r))}function dx(n,r,e){++cx,AZ+=(n-AZ)/cx,OZ+=(r-OZ)/cx,IZ+=(e-IZ)/cx}function SJ(){Gd.point=qme}function qme(n,r){n*=Lr;var e=Sr(r*=Lr);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),Gd.point=Jme,dx(tu,nu,ru)}function Jme(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);DZ+=s,PZ+=s*(tu+(tu=i)),RZ+=s*(nu+(nu=o)),LZ+=s*(ru+(ru=a)),dx(tu,nu,ru)}function EJ(){Gd.point=U9}function Qme(){Gd.point=$me}function Xme(){xJ(TJ,MJ),Gd.point=U9}function $me(n,r){TJ=n,MJ=r,n*=Lr,r*=Lr,Gd.point=xJ;var e=Sr(r);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),dx(tu,nu,ru)}function xJ(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;N9+=g*s,B9+=g*l,F9+=g*u,DZ+=h,PZ+=h*(tu+(tu=i)),RZ+=h*(nu+(nu=o)),LZ+=h*(ru+(ru=a)),dx(tu,nu,ru)}function e_e(n){cx=DZ=AZ=OZ=IZ=PZ=RZ=LZ=N9=B9=F9=0,jd(n,Gd);var r=N9,e=B9,i=F9,o=r*r+e*e+i*i;return o<1e-12&&(r=PZ,e=RZ,i=LZ,DZ<Mr&&(r=AZ,e=OZ,i=IZ),(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 H9(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 j9(n,r){return[n>Zi?n-Fu:n<-Zi?n+Fu:n,r]}function G9(n,r,e){return(n%=Fu)?r||e?H9(AJ(n),OJ(r,e)):AJ(n):r||e?OJ(r,e):j9}function DJ(n){return function(r,e){return[(r+=n)>Zi?r-Fu:r<-Zi?r+Fu:r,e]}}function AJ(n){var r=DJ(n);return r.invert=DJ(-n),r}function OJ(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,C=mr(u),Z=C*e+h*i;return[eu(g*o-Z*a,h*e-C*i),gc(Z*o+g*a)]}return s.invert=function(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,C=mr(u),Z=C*o-g*a;return[eu(g*o+C*a,h*e+Z*i),gc(Z*e-h*i)]},s}function IJ(n){function r(e){return(e=n(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e}return n=G9(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 PJ(n,r,e,i,o,a){if(e){var s=Sr(r),l=mr(r),u=i*e;null==o?(o=r+i*Fu,a=r-u/2):(o=RJ(s,o),a=RJ(s,a),(i>0?o<a:o>a)&&(o+=i*Fu));for(var d,h=o;i>0?h>a:h<a;h-=u)d=MZ([s,-l*Sr(h),-l*mr(h)]),n.point(d[0],d[1])}}function RJ(n,r){(r=c0(r))[0]-=n,xZ(r);var e=uJ(-r[1]);return((-r[2]<0?-e:e)+Fu-Mr)%Fu}function t_e(){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=G9(-u[0]*Lr,-u[1]*Lr,0).invert,PJ(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 LJ(){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 ZZ(n,r){return Xi(n[0]-r[0])<Mr&&Xi(n[1]-r[1])<Mr}function NZ(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 ZJ(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(ZZ(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 NZ(re,z,null,!0)),s.push(Se.o=new NZ(re,null,Se,!1)),a.push(Se=new NZ(ae,z,null,!1)),s.push(Se.o=new NZ(ae,null,Se,!0))}}),a.length){for(s.sort(r),NJ(a),NJ(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,g,d=a[0];;){for(var C=d,Z=!0;C.v;)if((C=C.n)===d)return;h=C.z,o.lineStart();do{if(C.v=C.o.v=!0,C.e){if(Z)for(l=0,u=h.length;l<u;++l)o.point((g=h[l])[0],g[1]);else i(C.x,C.n.x,1,o);C=C.n}else{if(Z)for(h=C.p.z,l=h.length-1;l>=0;--l)o.point((g=h[l])[0],g[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,Z=!Z}while(!C.v);o.lineEnd()}}}function NJ(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}}j9.invert=j9;var z9=bg();function BJ(n,r){var e=r[0],i=r[1],o=mr(i),a=[mr(e),-Sr(e),0],s=0,l=0;z9.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,C=h[g-1],Z=C[0],z=C[1]/2+yZ,q=mr(z),re=Sr(z),ae=0;ae<g;++ae,Z=Ce,q=Ke,re=st,C=Se){var Se=h[ae],Ce=Se[0],Ee=Se[1]/2+yZ,Ke=mr(Ee),st=Sr(Ee),Ae=Ce-Z,it=Ae>=0?1:-1,ft=it*Ae,bt=ft>Zi,$e=q*Ke;if(z9.add(eu($e*it*mr(ft),re*st+$e*Sr(ft))),s+=bt?Ae+it*Fu:Ae,bt^Z>=e^Ce>=e){var Pe=gw(c0(C),c0(Se));xZ(Pe);var ct=gw(a,Pe);xZ(ct);var Bt=(bt^Ae>=0?-1:1)*gc(ct[2]);(i>Bt||i===Bt&&(Pe[0]||Pe[1]))&&(l+=bt^Ae>=0?1:-1)}}return(s<-Mr||s<Mr&&z9<-Mr)^1&l}function FJ(n,r,e,i){return function(o){var d,h,g,a=r(o),s=LJ(),l=r(s),u=!1,C={point:Z,lineStart:q,lineEnd:re,polygonStart:function(){C.point=ae,C.lineStart=Se,C.lineEnd=Ce,h=[],d=[]},polygonEnd:function(){C.point=Z,C.lineStart=q,C.lineEnd=re,h=A7(h);var Ke=BJ(d,i);h.length?(u||(o.polygonStart(),u=!0),ZJ(h,r_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 Z(Ee,Ke){n(Ee,Ke)&&o.point(Ee,Ke)}function z(Ee,Ke){a.point(Ee,Ke)}function q(){C.point=z,a.lineStart()}function re(){C.point=Z,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(),Ae=Ke.length;if(g.pop(),d.push(g),g=null,Ae){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}Ae>1&&2&Ee&&Ke.push(Ke.pop().concat(Ke.shift())),h.push(Ke.filter(n_e))}}return C}}function n_e(n){return n.length>1}function r_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 W9=FJ(function(){return!0},function i_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 o_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 a_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 UJ(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,C){var q=[1,0,0],re=gw(c0(h),c0(g)),ae=SZ(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!C&&h;var Ee=r*ae/Ce,Ke=-r*Se/Ce,st=gw(q,re),Ae=EZ(q,Ee);L9(Ae,EZ(re,Ke));var ft=st,bt=SZ(Ae,ft),$e=SZ(ft,ft),Pe=bt*bt-$e*(SZ(Ae,Ae)-1);if(!(Pe<0)){var ct=vs(Pe),Bt=EZ(ft,(-bt-ct)/$e);if(L9(Bt,Ae),Bt=MZ(Bt),!C)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=EZ(ft,(-bt+ct)/$e);return L9(Wr,Ae),[Bt,MZ(Wr)]}}}function d(h,g){var C=i?n:Zi-n,Z=0;return h<-C?Z|=1:h>C&&(Z|=2),g<-C?Z|=4:g>C&&(Z|=8),Z}return FJ(s,function l(h){var g,C,Z,z,q;return{lineStart:function(){z=Z=!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=Z=Ke)&&h.lineStart(),Ke!==Z&&((!(Ee=u(g,Ce))||ZZ(g,Ee)||ZZ(Ce,Ee))&&(Ce[0]+=Mr,Ce[1]+=Mr,Ke=s(Ce[0],Ce[1]))),Ke!==Z)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 Ae;!(st&C)&&(Ae=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(Ae[0][0],Ae[0][1]),h.point(Ae[1][0],Ae[1][1]),h.lineEnd()):(h.point(Ae[1][0],Ae[1][1]),h.lineEnd(),h.lineStart(),h.point(Ae[0][0],Ae[0][1])))}Ke&&(!g||!ZZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,Z=Ke,C=st},lineEnd:function(){Z&&h.lineEnd(),g=null},clean:function(){return q|(z&&Z)<<1}}},function a(h,g,C,Z){PJ(Z,n,e,C,h,g)},i?[0,-n]:[-Zi,n-Zi])}var fx=1e9,BZ=-fx;function FZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,C){var Z=0,z=0;if(null==d||(Z=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{C.point(0===Z||3===Z?n:e,Z>1?i:r)}while((Z=(Z+g+4)%4)!==z);else C.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),C=s(h,1);return g!==C?g-C: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 C,Z,z,q,re,ae,Se,Ce,Ee,Ke,st,h=d,g=LJ(),Ae={point:it,lineStart:function Pe(){Ae.point=Bt,Z&&Z.push(z=[]),Ke=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ct(){C&&(Bt(q,re),ae&&Ee&&g.rejoin(),C.push(g.result())),Ae.point=it,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,C=[],Z=[],st=!0},polygonEnd:function $e(){var Ht=function ft(){for(var Ht=0,Pt=0,Tn=Z.length;Pt<Tn;++Pt)for(var _r,Wr,jn=Z[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=(C=A7(C)).length;(Pt||Tn)&&(d.polygonStart(),Pt&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&ZJ(C,l,Ht,a,d),d.polygonEnd()),h=d,C=Z=z=null}};function it(Ht,Pt){o(Ht,Pt)&&h.point(Ht,Pt)}function Bt(Ht,Pt){var Tn=o(Ht,Pt);if(Z&&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(BZ,Math.min(fx,Se)),Ce=Math.max(BZ,Math.min(fx,Ce))],zn=[Ht=Math.max(BZ,Math.min(fx,Ht)),Pt=Math.max(BZ,Math.min(fx,Pt))];!function s_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,C=r[0]-s,Z=r[1]-l;if(z=e-s,C||!(z>0)){if(z/=C,C<0){if(z<h)return;z<g&&(g=z)}else if(C>0){if(z>g)return;z>h&&(h=z)}if(z=o-s,C||!(z<0)){if(z/=C,C<0){if(z>g)return;z>h&&(h=z)}else if(C>0){if(z<h)return;z<g&&(g=z)}if(z=i-l,Z||!(z>0)){if(z/=Z,Z<0){if(z<h)return;z<g&&(g=z)}else if(Z>0){if(z>g)return;z>h&&(h=z)}if(z=a-l,Z||!(z<0)){if(z/=Z,Z<0){if(z>g)return;z>h&&(h=z)}else if(Z>0){if(z<h)return;z<g&&(g=z)}return h>0&&(n[0]=s+h*C,n[1]=l+h*Z),g<1&&(r[0]=s+g*C,r[1]=l+g*Z),!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 Ae}}function l_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=FZ(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 Y9,UZ,HZ,V9=bg(),bw={sphere:_a,point:_a,lineStart:function u_e(){bw.point=d_e,bw.lineEnd=c_e},lineEnd:_a,polygonStart:_a,polygonEnd:_a};function c_e(){bw.point=bw.lineEnd=_a}function d_e(n,r){Y9=n*=Lr,UZ=mr(r*=Lr),HZ=Sr(r),bw.point=f_e}function f_e(n,r){n*=Lr;var e=mr(r*=Lr),i=Sr(r),o=Xi(n-Y9),a=Sr(o),l=i*mr(o),u=HZ*e-UZ*i*a,d=UZ*e+HZ*i*a;V9.add(eu(vs(l*l+u*u),d)),Y9=n,UZ=e,HZ=i}function HJ(n){return V9.reset(),jd(n,bw),+V9}var K9=[null,null],p_e={type:"LineString",coordinates:K9};function px(n,r){return K9[0]=n,K9[1]=r,HJ(p_e)}var jJ={Feature:function(r,e){return jZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(jZ(i[o].geometry,e))return!0;return!1}},GJ={Sphere:function(){return!0},Point:function(r,e){return zJ(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(zJ(i[o],e))return!0;return!1},LineString:function(r,e){return WJ(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(WJ(i[o],e))return!0;return!1},Polygon:function(r,e){return VJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(VJ(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(jZ(i[o],e))return!0;return!1}};function jZ(n,r){return!(!n||!GJ.hasOwnProperty(n.type))&&GJ[n.type](n,r)}function zJ(n,r){return 0===px(n,r)}function WJ(n,r){var e=px(n[0],n[1]);return px(n[0],r)+px(r,n[1])<=e+Mr}function VJ(n,r){return!!BJ(n.map(h_e),YJ(r))}function h_e(n){return(n=n.map(YJ)).pop(),n}function YJ(n){return[n[0]*Lr,n[1]*Lr]}function m_e(n,r){return(n&&jJ.hasOwnProperty(n.type)?jJ[n.type]:jZ)(n,r)}function KJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function qJ(n,r,e){var i=mc(n,r-Mr,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function JJ(){var n,r,e,i,o,a,s,l,C,Z,z,q,u=10,d=u,h=90,g=360,re=2.5;function ae(){return{type:"MultiLineString",coordinates:Se()}}function Se(){return mc(bZ(i/h)*h,e,h).map(z).concat(mc(bZ(l/g)*g,s,g).map(q)).concat(mc(bZ(r/u)*u,n,u).filter(function(Ce){return Xi(Ce%h)>Mr}).map(C)).concat(mc(bZ(a/d)*d,o,d).filter(function(Ce){return Xi(Ce%g)>Mr}).map(Z))}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,C=KJ(a,o,90),Z=qJ(r,n,re),z=KJ(l,s,90),q=qJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Mr],[180,90-Mr]]).extentMinor([[-180,-80-Mr],[180,80+Mr]])}function __e(){return JJ()()}function g_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),C=u*Sr(o),Z=u*mr(o),z=2*gc(vs(cJ(a-i)+s*u*cJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*C,Ke=Ce*g+Se*Z,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 QJ,XJ,Q9,X9,q9=bg(),J9=bg(),wg={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){wg.lineStart=v_e,wg.lineEnd=b_e},polygonEnd:function(){wg.lineStart=wg.lineEnd=wg.point=_a,q9.add(Xi(J9)),J9.reset()},result:function(){var r=q9/2;return q9.reset(),r}};function v_e(){wg.point=y_e}function y_e(n,r){wg.point=$J,QJ=Q9=n,XJ=X9=r}function $J(n,r){J9.add(X9*n-Q9*r),Q9=n,X9=r}function b_e(){$J(QJ,XJ)}var eQ=wg,Cw=1/0,GZ=Cw,hx=-Cw,zZ=hx,C_e={point:function w_e(n,r){n<Cw&&(Cw=n),n>hx&&(hx=n),r<GZ&&(GZ=r),r>zZ&&(zZ=r)},lineStart:_a,lineEnd:_a,polygonStart:_a,polygonEnd:_a,result:function(){var r=[[Cw,GZ],[hx,zZ]];return hx=zZ=-(GZ=Cw=1/0),r}};var tQ,nQ,pp,hp,WZ=C_e,$9=0,eH=0,mx=0,VZ=0,YZ=0,ww=0,tH=0,nH=0,_x=0,zd={point:p0,lineStart:rQ,lineEnd:iQ,polygonStart:function(){zd.lineStart=M_e,zd.lineEnd=S_e},polygonEnd:function(){zd.point=p0,zd.lineStart=rQ,zd.lineEnd=iQ},result:function(){var r=_x?[tH/_x,nH/_x]:ww?[VZ/ww,YZ/ww]:mx?[$9/mx,eH/mx]:[NaN,NaN];return $9=eH=mx=VZ=YZ=ww=tH=nH=_x=0,r}};function p0(n,r){$9+=n,eH+=r,++mx}function rQ(){zd.point=k_e}function k_e(n,r){zd.point=T_e,p0(pp=n,hp=r)}function T_e(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);VZ+=o*(pp+n)/2,YZ+=o*(hp+r)/2,ww+=o,p0(pp=n,hp=r)}function iQ(){zd.point=p0}function M_e(){zd.point=E_e}function S_e(){oQ(tQ,nQ)}function E_e(n,r){zd.point=oQ,p0(tQ=pp=n,nQ=hp=r)}function oQ(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);VZ+=o*(pp+n)/2,YZ+=o*(hp+r)/2,ww+=o,tH+=(o=hp*n-pp*r)*(pp+n),nH+=o*(hp+r),_x+=3*o,p0(pp=n,hp=r)}var aQ=zd;function sQ(n){this._context=n}sQ.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,Fu)}},result:_a};var iH,lQ,uQ,gx,vx,rH=bg(),KZ={point:_a,lineStart:function(){KZ.point=x_e},lineEnd:function(){iH&&cQ(lQ,uQ),KZ.point=_a},polygonStart:function(){iH=!0},polygonEnd:function(){iH=null},result:function(){var r=+rH;return rH.reset(),r}};function x_e(n,r){KZ.point=cQ,lQ=gx=n,uQ=vx=r}function cQ(n,r){gx-=n,vx-=r,rH.add(vs(gx*gx+vx*vx)),gx=n,vx=r}var dQ=KZ;function fQ(){this._string=[]}function pQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function D_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(eQ)),eQ.result()},a.measure=function(s){return jd(s,i(dQ)),dQ.result()},a.bounds=function(s){return jd(s,i(WZ)),WZ.result()},a.centroid=function(s){return jd(s,i(aQ)),aQ.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 fQ):new sQ(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 A_e(n){return{stream:yx(n)}}function yx(n){return function(r){var e=new oH;for(var i in n)e[i]=n[i];return e.stream=r,e}}function oH(){}function aH(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(WZ)),r(WZ.result()),null!=i&&n.clipExtent(i),n}function qZ(n,r,e){return aH(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 sH(n,r,e){return qZ(n,[[0,0],r],e)}function lH(n,r,e){return aH(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 uH(n,r,e){return aH(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)}fQ.prototype={_radius:4.5,_circle:pQ(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=pQ(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}},oH.prototype={constructor:oH,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 O_e=Sr(30*Lr);function mQ(n,r){return+r?function P_e(n,r){function e(i,o,a,s,l,u,d,h,g,C,Z,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+C,Ke=l+Z,st=u+z,Ae=vs(Ee*Ee+Ke*Ke+st*st),it=gc(st/=Ae),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*C+l*Z+u*z<O_e)&&(e(i,o,a,s,l,u,$e,Pe,ft,Ee/=Ae,Ke/=Ae,st,q,re),re.point($e,Pe),e($e,Pe,ft,Ee,Ke,st,d,h,g,C,Z,z,q,re))}}return function(i){var o,a,s,l,u,d,h,g,C,Z,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,C,h,Z,z,q,g=$e[0],C=$e[1],h=it,Z=bt[0],z=bt[1],q=bt[2],16,i),i.point(g,C)}function Ee(){re.point=ae,i.lineEnd()}function Ke(){Se(),re.point=st,re.lineEnd=Ae}function st(it,ft){Ce(o=it,ft),a=g,s=C,l=Z,u=z,d=q,re.point=Ce}function Ae(){e(g,C,h,Z,z,q,a,s,o,l,u,d,16,i),re.lineEnd=Ee,Ee()}return re}}(n,r):function I_e(n){return yx({point:function(e,i){e=n(e,i),this.stream.point(e[0],e[1])}})}(n)}var R_e=yx({point:function(r,e){this.stream.point(r*Lr,e*Lr)}});function Z_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 _Q(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 C(Z,z){return[s*Z-l*z+r,e-l*Z-s*z]}return C.invert=function(Z,z){return[u*Z-d*z+h,g-d*Z-u*z]},C}function im(n){return cH(function(){return n})()}function cH(n){var r,h,q,re,ae,Ee,Ke,st,Ae,it,e=150,i=480,o=250,a=0,s=0,l=0,u=0,d=0,g=0,C=null,Z=W9,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=_Q(e,0,0,g).apply(null,r(a,s)),Bt=(g?_Q:Z_e)(e,i-ct[0],o-ct[1],g);return h=G9(l,u,d),Ke=H9(r,Bt),st=H9(h,Ke),Ee=mQ(Ke,Ce),Pe()}function Pe(){return Ae=it=null,ft}return ft.stream=function(ct){return Ae&&it===ct?Ae:Ae=R_e(function L_e(n){return yx({point:function(e,i){var o=n(e,i);return this.stream.point(o[0],o[1])}})}(h)(Z(Ee(Se(it=ct)))))},ft.preclip=function(ct){return arguments.length?(Z=ct,C=void 0,Pe()):Z},ft.postclip=function(ct){return arguments.length?(Se=ct,z=q=re=ae=null,Pe()):Se},ft.clipAngle=function(ct){return arguments.length?(Z=+ct?UJ(C=ct*Lr):(C=null,W9),Pe()):C*zo},ft.clipExtent=function(ct){return arguments.length?(Se=null==ct?(z=q=re=ae=null,f0):FZ(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=mQ(Ke,Ce=ct*ct),Pe()):vs(Ce)},ft.fitExtent=function(ct,Bt){return qZ(ft,ct,Bt)},ft.fitSize=function(ct,Bt){return sH(ft,ct,Bt)},ft.fitWidth=function(ct,Bt){return lH(ft,ct,Bt)},ft.fitHeight=function(ct,Bt){return uH(ft,ct,Bt)},function(){return r=n.apply(this,arguments),ft.invert=r.invert&&bt,$e()}}function dH(n){var r=0,e=Zi/3,i=cH(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 gQ(n,r){var e=mr(n),i=(e+mr(r))/2;if(Xi(i)<Mr)return function N_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*lx(d),gc((o-(l*l+d*d)*i*i)/(2*i))]},s}function JZ(){return dH(gQ).scale(155.424).center([0,33.6442])}function vQ(){return JZ().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function F_e(){var n,r,i,a,l,u,e=vQ(),o=JZ().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=JZ().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(Z,z){u=[Z,z]}};function h(C){var Z=C[0],z=C[1];return u=null,i.point(Z,z),u||(a.point(Z,z),u)||(l.point(Z,z),u)}function g(){return n=r=null,h}return h.invert=function(C){var Z=e.scale(),z=e.translate(),q=(C[0]-z[0])/Z,re=(C[1]-z[1])/Z;return(re>=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return n&&r===C?n:n=function B_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=C),o.stream(C),s.stream(C)])},h.precision=function(C){return arguments.length?(e.precision(C),o.precision(C),s.precision(C),g()):e.precision()},h.scale=function(C){return arguments.length?(e.scale(C),o.scale(.35*C),s.scale(C),h.translate(e.translate())):e.scale()},h.translate=function(C){if(!arguments.length)return e.translate();var Z=e.scale(),z=+C[0],q=+C[1];return i=e.translate(C).clipExtent([[z-.455*Z,q-.238*Z],[z+.455*Z,q+.238*Z]]).stream(d),a=o.translate([z-.307*Z,q+.201*Z]).clipExtent([[z-.425*Z+Mr,q+.12*Z+Mr],[z-.214*Z-Mr,q+.234*Z-Mr]]).stream(d),l=s.translate([z-.205*Z,q+.212*Z]).clipExtent([[z-.214*Z+Mr,q+.166*Z+Mr],[z-.115*Z-Mr,q+.234*Z-Mr]]).stream(d),g()},h.fitExtent=function(C,Z){return qZ(h,C,Z)},h.fitSize=function(C,Z){return sH(h,C,Z)},h.fitWidth=function(C,Z){return lH(h,C,Z)},h.fitHeight=function(C,Z){return uH(h,C,Z)},h.scale(1070)}function yQ(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 bx(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 fH=yQ(function(n){return vs(2/(1+n))});function U_e(){return im(fH).scale(124.75).clipAngle(179.999)}fH.invert=bx(function(n){return 2*gc(n/2)});var pH=yQ(function(n){return(n=uJ(n))&&n/mr(n)});function H_e(){return im(pH).scale(79.4188).clipAngle(179.999)}function Cx(n,r){return[n,CZ(A9((Da+r)/2))]}function j_e(){return bQ(Cx).scale(961/Fu)}function bQ(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(),C=r(IJ(r.rotate()).invert([0,0]));return a(null==s?[[C[0]-g,C[1]-g],[C[0]+g,C[1]+g]]:n===Cx?[[Math.max(C[0]-g,s),l],[Math.min(C[0]+g,u),d]]:[[s,Math.max(C[1]-g,l)],[u,Math.min(C[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 A9((Da+n)/2)}function CQ(n,r){var e=Sr(n),i=n===r?mr(n):CZ(e/Sr(r))/CZ(QZ(r)/QZ(n)),o=e*D9(QZ(n),i)/i;if(!i)return Cx;function a(s,l){o>0?l<-Da+Mr&&(l=-Da+Mr):l>Da-Mr&&(l=Da-Mr);var u=o/D9(QZ(l),i);return[u*mr(i*s),o-u*Sr(i*s)]}return a.invert=function(s,l){var u=o-l,d=lx(i)*vs(s*s+u*u);return[eu(s,Xi(u))/i*lx(u),2*_w(D9(o/d,1/i))-Da]},a}function G_e(){return dH(CQ).scale(109.5).parallels([30,30])}function wx(n,r){return[n,r]}function z_e(){return im(wx).scale(152.63)}function wQ(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 wx;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*lx(u),o-lx(i)*vs(s*s+u*u)]},a}function W_e(){return dH(wQ).scale(131.154).center([0,13.9389])}function hH(n,r){var e=Sr(r),i=Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function V_e(){return im(hH).scale(144.049).clipAngle(60)}function XZ(n,r,e,i){return 1===n&&1===r&&0===e&&0===i?f0:yx({point:function(a,s){this.stream.point(a*n+e,s*r+i)}})}function Y_e(){var l,u,d,g,C,Z,n=1,r=0,e=0,i=1,o=1,a=f0,s=null,h=f0;function z(){return g=C=null,Z}return Z={stream:function(re){return g&&C===re?g:g=a(h(C=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):FZ(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=XZ((n=+re)*i,n*o,r,e),z()):n},translate:function(re){return arguments.length?(a=XZ(n*i,n*o,r=+re[0],e=+re[1]),z()):[r,e]},reflectX:function(re){return arguments.length?(a=XZ(n*(i=re?-1:1),n*o,r,e),z()):i<0},reflectY:function(re){return arguments.length?(a=XZ(n*i,n*(o=re?-1:1),r,e),z()):o<0},fitExtent:function(re,ae){return qZ(Z,re,ae)},fitSize:function(re,ae){return sH(Z,re,ae)},fitWidth:function(re,ae){return lH(Z,re,ae)},fitHeight:function(re,ae){return uH(Z,re,ae)}}}function mH(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 K_e(){return im(mH).scale(175.295)}function _H(n,r){return[Sr(r)*mr(n),mr(r)]}function q_e(){return im(_H).scale(249.5).clipAngle(90+Mr)}function gH(n,r){var e=Sr(r),i=1+Sr(n)*e;return[e*mr(n)/i,mr(r)/i]}function J_e(){return im(gH).scale(250).clipAngle(142)}function vH(n,r){return[CZ(A9((Da+r)/2)),-n]}function Q_e(){var n=bQ(vH),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 X_e(n,r){return n.parent===r.parent?1:2}function ege(n,r){return n+r.x}function nge(n,r){return Math.max(n,r.y)}function oge(){var n=X_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var Z=C.children;Z?(C.x=function $_e(n){return n.reduce(ege,0)/n.length}(Z),C.y=function tge(n){return 1+n.reduce(nge,0)}(Z)):(C.x=s?l+=n(C,s):0,C.y=0,s=C)});var u=function rge(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function ige(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(C){C.x=(C.x-a.x)*r,C.y=(a.y-C.y)*e}:function(C){C.x=(C.x-h)/(g-h)*r,C.y=(1-(a.y?C.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 age(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 yH(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=bge);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(kQ)}function bge(n){return n.children}function Cge(n){n.data=n.data.data}function kQ(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}pH.invert=bx(function(n){return n}),Cx.invert=function(n,r){return[n,2*_w(lJ(r))-Da]},wx.invert=wx,hH.invert=bx(_w),mH.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]},_H.invert=bx(gc),gH.invert=bx(function(n){return 2*_w(n)}),vH.invert=function(n,r){return[-r,2*_w(lJ(n))-Da]},kw.prototype=yH.prototype={constructor:kw,count:function sge(){return this.eachAfter(age)},each:function lge(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 cge(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 uge(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 dge(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 fge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function pge(n){for(var r=this,e=function hge(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 mge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function _ge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function gge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function vge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function yge(){return yH(this).eachBefore(Cge)}};var wge=Array.prototype.slice;function TQ(n){for(var o,a,r=0,e=(n=function kge(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}(wge.call(n))).length,i=[];r<e;)o=n[r],a&&MQ(a,o)?++r:(a=Mge(i=Tge(i,o)),r=0);return a}function Tge(n,r){var e,i;if(bH(r,n))return[r];for(e=0;e<n.length;++e)if($Z(r,n[e])&&bH(kx(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($Z(kx(n[e],n[i]),r)&&$Z(kx(n[e],r),n[i])&&$Z(kx(n[i],r),n[e])&&bH(SQ(n[e],n[i],r),n))return[n[e],n[i],r];throw new Error}function $Z(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 MQ(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 bH(n,r){for(var e=0;e<r.length;++e)if(!MQ(n,r[e]))return!1;return!0}function Mge(n){switch(n.length){case 1:return function Sge(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return kx(n[0],n[1]);case 3:return SQ(n[0],n[1],n[2])}}function kx(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 SQ(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,C=i-s,Z=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=Z*z-C*q,st=(z*Ee-q*Ce)/(2*Ke)-i,Ae=(q*re-z*ae)/Ke,it=(Z*Ce-C*Ee)/(2*Ke)-o,ft=(C*ae-Z*re)/Ke,bt=Ae*Ae+ft*ft-1,$e=2*(a+st*Ae+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+Ae*ct,y:o+it+ft*ct,r:ct}}function EQ(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 xQ(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 DQ(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 eN(n){this._=n,this.next=null,this.previous=null}function AQ(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;EQ(e,r,i=n[2]),r=new eN(r),e=new eN(e),i=new eN(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){EQ(r._,e._,i=n[l]),i=new eN(i),u=e.next,d=r.previous,h=e._.r,g=r._.r;do{if(h<=g){if(xQ(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(xQ(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=DQ(r);(i=i.next)!==e;)(s=DQ(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=TQ(r),l=0;l<o;++l)(r=n[l]).x-=i.x,r.y-=i.y;return i.r}function Ege(n){return AQ(n),n}function xge(n){return null==n?null:tN(n)}function tN(n){if("function"!=typeof n)throw new Error;return n}function h0(){return 0}function Tw(n){return function(){return n}}function Dge(n){return Math.sqrt(n.value)}function Age(){var n=null,r=1,e=1,i=h0;function o(a){return a.x=r/2,a.y=e/2,n?a.eachBefore(OQ(n)).eachAfter(CH(i,.5)).eachBefore(IQ(1)):a.eachBefore(OQ(Dge)).eachAfter(CH(h0,1)).eachAfter(CH(i,a.r/Math.min(r,e))).eachBefore(IQ(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=xge(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 OQ(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function CH(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=AQ(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function IQ(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 PQ(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 Tx(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 Oge(){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&&Tx(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,C=u.y1-e;g<d&&(d=g=(d+g)/2),C<h&&(h=C=(h+C)/2),u.x0=d,u.y0=h,u.x1=g,u.y1=C}}(r,l)),i&&s.eachBefore(PQ),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 Ige={depth:-1},LQ={};function Pge(n){return n.id}function Rge(n){return n.parentId}function Lge(){var n=Pge,r=Rge;function e(i){var o,a,l,u,d,g,C,s=i.length,h=new Array(s),Z={};for(a=0;a<s;++a)o=i[a],d=h[a]=new kw(o),null!=(g=n(o,a,i))&&(g+="")&&(Z[C="$"+(d.id=g)]=C in Z?LQ:d);for(a=0;a<s;++a)if(d=h[a],null!=(g=r(i[a],a,i))&&(g+="")){if(!(u=Z["$"+g]))throw new Error("missing: "+g);if(u===LQ)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=Ige,l.eachBefore(function(z){z.depth=z.parent.depth+1,--s}).eachBefore(kQ),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=tN(i),e):n},e.parentId=function(i){return arguments.length?(r=tN(i),e):r},e}function Zge(n,r){return n.parent===r.parent?1:2}function wH(n){var r=n.children;return r?r[0]:n.t}function kH(n){var r=n.children;return r?r[r.length-1]:n.t}function Nge(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 Fge(n,r,e){return n.a.parent===r.parent?n.a:e}function nN(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 Hge(){var n=Zge,r=1,e=1,i=null;function o(d){var h=function Uge(n){for(var e,o,a,s,l,r=new nN(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 nN(a[s],s)),o.parent=e;return(r.parent=new nN(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,C=d,Z=d;d.eachBefore(function(Se){Se.x<g.x&&(g=Se),Se.x>C.x&&(C=Se),Se.depth>Z.depth&&(Z=Se)});var z=g===C?1:n(g,C)/2,q=z-g.x,re=r/(C.x+z+q),ae=e/(Z.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,C=d.i?g[d.i-1]:null;if(h){!function Bge(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 Z=(h[0].z+h[h.length-1].z)/2;C?(d.z=C.z+n(d._,C._),d.m=d.z-Z):d.z=Z}else C&&(d.z=C.z+n(d._,C._));d.parent.A=function l(d,h,g){if(h){for(var Ee,C=d,Z=d,z=h,q=C.parent.children[0],re=C.m,ae=Z.m,Se=z.m,Ce=q.m;z=kH(z),C=wH(C),z&&C;)q=wH(q),(Z=kH(Z)).a=d,(Ee=z.z+Se-C.z-re+n(z._,C._))>0&&(Nge(Fge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=C.m,Ce+=q.m,ae+=Z.m;z&&!kH(Z)&&(Z.t=z,Z.m+=Se-ae),C&&!wH(q)&&(q.t=C,q.m+=re-Ce,g=d)}return g}(d,C,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 rN(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}nN.prototype=Object.create(kw.prototype);var ZQ=(1+Math.sqrt(5))/2;function NQ(n,r,e,i,o,a){for(var u,d,Z,z,re,ae,Se,Ce,Ee,Ke,st,s=[],l=r.children,h=0,g=0,C=l.length,q=r.value;h<C;){Z=o-e,z=a-i;do{re=l[g++].value}while(!re&&g<C);for(ae=Se=re,st=re*re*(Ke=Math.max(z/Z,Z/z)/(q*n)),Ee=Math.max(Se/st,st/ae);g<C;++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:Z<z,children:l.slice(h,g)}),u.dice?Tx(u,e,i,o,q?i+=z*re/q:a):rN(u,e,i,q?e+=Z*re/q:o,a),q-=re,h=g}return s}var BQ=function n(r){function e(i,o,a,s,l){NQ(r,i,o,a,s,l)}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(ZQ);function jge(){var n=BQ,r=!1,e=1,i=1,o=[0],a=h0,s=h0,l=h0,u=h0,d=h0;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(g),o=[0],r&&C.eachBefore(PQ),C}function g(C){var Z=o[C.depth],z=C.x0+Z,q=C.y0+Z,re=C.x1-Z,ae=C.y1-Z;re<z&&(z=re=(z+re)/2),ae<q&&(q=ae=(q+ae)/2),C.x0=z,C.y0=q,C.x1=re,C.y1=ae,C.children&&(Z=o[C.depth+1]=a(C)/2,z+=d(C)-Z,q+=s(C)-Z,(re-=l(C)-Z)<z&&(z=re=(z+re)/2),(ae-=u(C)-Z)<q&&(q=ae=(q+ae)/2),n(C,z,q,re,ae))}return h.round=function(C){return arguments.length?(r=!!C,h):r},h.size=function(C){return arguments.length?(e=+C[0],i=+C[1],h):[e,i]},h.tile=function(C){return arguments.length?(n=tN(C),h):n},h.padding=function(C){return arguments.length?h.paddingInner(C).paddingOuter(C):h.paddingInner()},h.paddingInner=function(C){return arguments.length?(a="function"==typeof C?C:Tw(+C),h):a},h.paddingOuter=function(C){return arguments.length?h.paddingTop(C).paddingRight(C).paddingBottom(C).paddingLeft(C):h.paddingTop()},h.paddingTop=function(C){return arguments.length?(s="function"==typeof C?C:Tw(+C),h):s},h.paddingRight=function(C){return arguments.length?(l="function"==typeof C?C:Tw(+C),h):l},h.paddingBottom=function(C){return arguments.length?(u="function"==typeof C?C:Tw(+C),h):u},h.paddingLeft=function(C){return arguments.length?(d="function"==typeof C?C:Tw(+C),h):d},h}function Gge(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,C,Z,z,q,re,ae){if(g>=C-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=Z/2+Ce,Ke=g+1,st=C-1;Ke<st;){var Ae=Ke+st>>>1;d[Ae]<Ee?Ke=Ae+1:st=Ae}Ee-d[Ke-1]<d[Ke]-Ee&&g+1<Ke&&--Ke;var it=d[Ke]-Ce,ft=Z-it;if(re-z>ae-q){var bt=(z*ft+re*it)/Z;h(g,Ke,it,z,q,bt,ae),h(Ke,C,ft,bt,q,re,ae)}else{var $e=(q*ft+ae*it)/Z;h(g,Ke,it,z,q,re,$e),h(Ke,C,ft,z,$e,re,ae)}}(0,l,n.value,r,e,i,o)}function zge(n,r,e,i,o){(1&n.depth?rN:Tx)(n,r,e,i,o)}var Wge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,Z,C=-1,z=u.length,q=i.value;++C<z;){for(h=(d=u[C]).children,g=d.value=0,Z=h.length;g<Z;++g)d.value+=h[g].value;d.dice?Tx(d,o,a,s,a+=(l-a)*d.value/q):rN(d,o,a,o+=(s-o)*d.value/q,l),q-=d.value}else i._squarify=u=NQ(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(ZQ);function Mw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Mx(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*",Sx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vge=/^#([0-9a-f]{3,8})$/,Yge=new RegExp("^rgb\\("+[Ew,Ew,Ew]+"\\)$"),Kge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),qge=new RegExp("^rgba\\("+[Ew,Ew,Ew,Sx]+"\\)$"),Jge=new RegExp("^rgba\\("+[mp,mp,mp,Sx]+"\\)$"),Qge=new RegExp("^hsl\\("+[Sx,mp,mp]+"\\)$"),Xge=new RegExp("^hsla\\("+[Sx,mp,mp,Sx]+"\\)$"),FQ={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 UQ(){return this.rgb().formatHex()}function HQ(){return this.rgb().formatRgb()}function Ex(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Vge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?jQ(r):3===e?new al(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?iN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?iN(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=Yge.exec(n))?new al(r[1],r[2],r[3],1):(r=Kge.exec(n))?new al(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qge.exec(n))?iN(r[1],r[2],r[3],r[4]):(r=Jge.exec(n))?iN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Qge.exec(n))?WQ(r[1],r[2]/100,r[3]/100,1):(r=Xge.exec(n))?WQ(r[1],r[2]/100,r[3]/100,r[4]):FQ.hasOwnProperty(n)?jQ(FQ[n]):"transparent"===n?new al(NaN,NaN,NaN,0):null}function jQ(n){return new al(n>>16&255,n>>8&255,255&n,1)}function iN(n,r,e,i){return i<=0&&(n=r=e=NaN),new al(n,r,e,i)}function TH(n){return n instanceof kg||(n=Ex(n)),n?new al((n=n.rgb()).r,n.g,n.b,n.opacity):new al}function oN(n,r,e,i){return 1===arguments.length?TH(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 GQ(){return"#"+MH(this.r)+MH(this.g)+MH(this.b)}function zQ(){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 MH(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function WQ(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 VQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof kg||(n=Ex(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 SH(n,r,e,i){return 1===arguments.length?VQ(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 EH(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 YQ(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 KQ(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 YQ((e-i/r)*r,s,o,a,l)}}function qQ(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 YQ((e-i/r)*r,o,a,s,l)}}function aN(n){return function(){return n}}function JQ(n,r){return function(e){return n+e*r}}function xH(n,r){var e=r-n;return e?JQ(n,e>180||e<-180?e-360*Math.round(e/360):e):aN(isNaN(n)?r:n)}function tve(n){return 1==(n=+n)?Us:function(r,e){return e-r?function eve(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):aN(isNaN(r)?e:r)}}function Us(n,r){var e=r-n;return e?JQ(n,e):aN(isNaN(n)?r:n)}Mw(kg,Ex,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:UQ,formatHex:UQ,formatHsl:function $ge(){return VQ(this).formatHsl()},formatRgb:HQ,toString:HQ}),Mw(al,oN,Mx(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:GQ,formatHex:GQ,formatRgb:zQ,toString:zQ})),Mw(_p,SH,Mx(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(EH(r>=240?r-240:r+120,a,o),EH(r,a,o),EH(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 DH=function n(r){var e=tve(r);function i(o,a){var s=e((o=oN(o)).r,(a=oN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Us(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 QQ(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=oN(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 nve=QQ(KQ),rve=QQ(qQ);function XQ(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]=IH(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 $Q(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 eX(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]=IH(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var AH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OH=new RegExp(AH.source,"g");function tX(n,r){var i,o,a,e=AH.lastIndex=OH.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=AH.exec(n))&&(o=OH.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=OH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ove(n){return function(r){return n(r)+""}}(u[0].x):function ive(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 IH(n,r){var i,e=typeof r;return null==r||"boolean"===e?aN(r):("number"===e?gp:"string"===e?(i=Ex(r))?(r=i,DH):tX:r instanceof Ex?DH:r instanceof Date?$Q:Array.isArray(r)?XQ:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?eX:gp)(n,r)}function ave(n,r){return r-=n=+n,function(e){return Math.round(n+r*e)}}var xx,RH,iX,sN,nX=180/Math.PI,PH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rX(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)*nX,skewX:Math.atan(u)*nX,scaleX:s,scaleY:l}}function oX(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.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,C),function l(d,h,g,C){d!==h?C.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,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var uve=oX(function sve(n){return"none"===n?PH:(xx||(xx=document.createElement("DIV"),RH=document.documentElement,iX=document.defaultView),xx.style.transform=n,n=iX.getComputedStyle(RH.appendChild(xx),null).getPropertyValue("transform"),RH.removeChild(xx),rX(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),cve=oX(function lve(n){return null!=n&&(sN||(sN=document.createElementNS("http://www.w3.org/2000/svg","g")),sN.setAttribute("transform",n),n=sN.transform.baseVal.consolidate())?rX((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):PH},", ",")",")"),Dx=Math.SQRT2;function sX(n){return((n=Math.exp(n))+1/n)/2}function hve(n,r){var g,C,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)C=Math.log(l/o)/Dx,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(Dx*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/Dx,g=function(Ce){var Ee=Ce*C,Ke=sX(re),st=o/(2*Z)*(Ke*function pve(n){return((n=Math.exp(2*n))-1)/(n+1)}(Dx*Ee+re)-function fve(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/sX(Dx*Ee+re)]}}return g.duration=1e3*C,g}function lX(n){return function(r,e){var i=n((r=SH(r)).h,(e=SH(e)).h),o=Us(r.s,e.s),a=Us(r.l,e.l),s=Us(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 mve=lX(xH),_ve=lX(Us),uX=Math.PI/180,cX=180/Math.PI,hX=4/29,xw=6/29,mX=3*xw*xw;function _X(n){if(n instanceof Wd)return new Wd(n.l,n.a,n.b,n.opacity);if(n instanceof vp)return vX(n);n instanceof al||(n=TH(n));var a,s,r=UH(n.r),e=UH(n.g),i=UH(n.b),o=NH((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=NH((.4360747*r+.3850649*e+.1430804*i)/.96422),s=NH((.0139322*r+.0971045*e+.7141733*i)/.82521)),new Wd(116*o-16,500*(a-o),200*(o-s),n.opacity)}function ZH(n,r,e,i){return 1===arguments.length?_X(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 NH(n){return n>.008856451679035631?Math.pow(n,1/3):n/mX+hX}function BH(n){return n>xw?n*n*n:mX*(n-hX)}function FH(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function UH(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function gX(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof Wd||(n=_X(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)*cX;return new vp(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function HH(n,r,e,i){return 1===arguments.length?gX(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 vX(n){if(isNaN(n.h))return new Wd(n.l,0,0,n.opacity);var r=n.h*uX;return new Wd(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function vve(n,r){var e=Us((n=ZH(n)).l,(r=ZH(r)).l),i=Us(n.a,r.a),o=Us(n.b,r.b),a=Us(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 yX(n){return function(r,e){var i=n((r=HH(r)).h,(e=HH(e)).h),o=Us(r.c,e.c),a=Us(r.l,e.l),s=Us(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,ZH,Mx(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(FH(3.1338561*(e=.96422*BH(e))-1.6168667*(r=1*BH(r))-.4906146*(i=.82521*BH(i))),FH(-.9787684*e+1.9161415*r+.033454*i),FH(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),Mw(vp,HH,Mx(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 vX(this).rgb()}}));var yve=yX(xH),bve=yX(Us),jH=1.78277,GH=-.29227,uN=-.90649,Ax=1.97294,CX=Ax*uN,wX=Ax*jH,kX=jH*GH- -.14861*uN;function Cve(n){if(n instanceof _0)return new _0(n.h,n.s,n.l,n.opacity);n instanceof al||(n=TH(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(kX*i+CX*r-wX*e)/(kX+CX-wX),a=i-o,s=(Ax*(e-o)-GH*a)/uN,l=Math.sqrt(s*s+a*a)/(Ax*o*(1-o)),u=l?Math.atan2(s,a)*cX-120:NaN;return new _0(u<0?u+360:u,l,o,n.opacity)}function zH(n,r,e,i){return 1===arguments.length?Cve(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 TX(n){return function r(e){function i(o,a){var s=n((o=zH(o)).h,(a=zH(a)).h),l=Us(o.s,a.s),u=Us(o.l,a.l),d=Us(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,zH,Mx(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)*uX,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+jH*a)),255*(e+i*(GH*o+uN*a)),255*(e+i*(Ax*o)),this.opacity)}}));var wve=TX(xH),kve=TX(Us);function Tve(n,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=n(i/(r-1));return e}function Mve(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 Sve(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 Eve(n,r,e){return(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0])}function xve(n,r){return n[0]-r[0]||n[1]-r[1]}function MX(n){for(var r=n.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Eve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Dve(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(xve),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=MX(i),s=MX(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 Ave(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 Ove(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 Ive=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),SX=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),Pve=function n(r){function e(){var i=SX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Dw),EX=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),Rve=function n(r){function e(i){var o=EX.source(r)(i);return function(){return o()/i}}return e.source=n,e}(Dw),Lve=function n(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=n,e}(Dw),xX=Array.prototype,WH=xX.map,Tg=xX.slice,VH={name:"implicit"};function YH(n){var r=mg(),e=[],i=VH;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==VH)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 YH().domain(e).range(n).unknown(i)},o}function KH(){var o,a,n=YH().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,C=i[1]<i[0],Z=i[C-0],z=i[1-C];o=(z-Z)/Math.max(1,g-l+2*u),s&&(o=Math.floor(o)),Z+=(z-Z-o*(g-l))*d,a=o*(1-l),s&&(Z=Math.round(Z),a=Math.round(a));var q=mc(g).map(function(re){return Z+o*re});return e(C?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 KH().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(d)},h()}function DX(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return DX(r())},n}function Zve(){return DX(KH().paddingInner(1))}function Nve(n,r){return n=+n,r=+r,function(e){return Math.round(n*(1-e)+r*e)}}function qH(n){return function(){return n}}function AX(n){return+n}var OX=[0,1];function JH(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:qH(r)}function Uve(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 Hve(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 cN(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function dN(n,r){var s,l,u,e=OX,i=OX,o=WL,a=!1;function d(){return s=Math.min(e.length,i.length)>2?Hve:Uve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Bve(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,JH,a?function Fve(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=WH.call(g,AX),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=Nve,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 IX,jve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fN(n){if(!(r=jve.exec(n)))throw new Error("invalid format: "+n);var r;return new QH({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 QH(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 pN(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=pN(Math.abs(n)))?n[1]:NaN}function PX(n,r){var e=pN(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")}fN.prototype=QH.prototype,QH.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 RX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Gve(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 PX(100*r,e)},r:PX,s:function Kve(n,r){var e=pN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(IX=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")+pN(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 LX(n){return n}var hN,XH,BX,ZX=Array.prototype.map,NX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qve(n){var r=void 0===n.grouping||void 0===n.thousands?LX:function Wve(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)}}(ZX.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?LX:function Vve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(ZX.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 C=(g=fN(g)).fill,Z=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"):RX[Ke]||(void 0===Ce&&(Ce=12),Ee=!0,Ke="g"),(re||"0"===C&&"="===Z)&&(re=!0,C="0",Z="=");var st="$"===q?e:"#"===q&&/[boxX]/.test(Ke)?"0"+Ke.toLowerCase():"",Ae="$"===q?i:/[%p]/.test(Ke)?s:"",it=RX[Ke],ft=/[defgprs%]/.test(Ke);function bt($e){var Bt,Ht,Pt,Pe=st,ct=Ae;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 Yve(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?NX[8+IX/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(C):"";switch(Se&&re&&($e=r(zn+$e,zn.length?ae-ct.length:1/0),zn=""),Z){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,C){var Z=d(((g=fN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Aw(C)/3))),q=Math.pow(10,-z),re=NX[8+z/3];return function(ae){return Z(q*ae)+re}}}}function $ve(n,r,e){var s,i=n[0],o=n[n.length-1],a=e0(i,o,null==r?10:r);switch((e=fN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function zve(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),BX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Qve(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 Xve(n){return Math.max(0,-Aw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return XH(e)}function Ox(n){var r=n.domain;return n.ticks=function(e){var i=r();return x7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return $ve(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=zE(s,l,e))>0?u=zE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=zE(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 FX(){var n=dN(JH,qc);return n.copy=function(){return cN(n,FX())},Ox(n)}function UX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=WH.call(e,AX),r):n.slice()},r.copy=function(){return UX().domain(n)},Ox(r)}function HX(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 eye(n,r){return(r=Math.log(r/n))?function(e){return Math.log(e/n)/r}:qH(r)}function tye(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 nye(n){return isFinite(n)?+("1e"+n):n<0?0:n}function jX(n){return 10===n?nye:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function GX(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 zX(n){return function(r){return-n(-r)}}function WX(){var n=dN(eye,tye).domain([1,10]),r=n.domain,e=10,i=GX(10),o=jX(10);function a(){return i=GX(e),o=jX(e),r()[0]<0&&(i=zX(i),o=zX(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 Z,z,q,g=i(u),C=i(d),re=null==s?10:+s,ae=[];if(!(e%1)&&C-g<re){if(g=Math.round(g)-1,C=Math.round(C)+1,u>0){for(;g<C;++g)for(z=1,Z=o(g);z<e;++z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else for(;g<C;++g)for(z=e-1,Z=o(g);z>=1;--z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else ae=x7(g,C,Math.min(C-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=XH(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(HX(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},n.copy=function(){return cN(n,WX().base(e))},n}function Ow(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function $H(){var n=1,r=dN(function i(a,s){return(s=Ow(s,n)-(a=Ow(a,n)))?function(l){return(Ow(l,n)-a)/s}:qH(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 cN(r,$H().exponent(n))},Ox(r)}function rye(){return $H().exponent(.5)}function VX(){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]=WE(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 VX().domain(n).range(r)},o}function YX(){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 YX().domain([n,r]).range(o)},Ox(a)}function KX(){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 KX().domain(n).range(r)},i}!function Jve(n){return hN=qve(n),XH=hN.format,BX=hN.formatPrefix,hN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ej=new Date,tj=new Date;function Hs(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 Hs(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 ej.setTime(+a),tj.setTime(+s),n(ej),n(tj),Math.floor(e(ej,tj))},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 nj=Hs(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()});nj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Hs(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=nj,qX=(nj.range,Hs(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()})),iye=qX,g0=(qX.range,6e4),_N=36e5,QX=6048e5;function v0(n){return Hs(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)/QX})}var gN=v0(0),y0=v0(1),oye=v0(2),aye=v0(3),om=v0(4),sye=v0(5),lye=v0(6),XX=(gN.range,y0.range,oye.range,aye.range,om.range,sye.range,lye.range,Hs(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})),Ix=XX,$X=(XX.range,Hs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*g0)},function(n,r){n.setTime(+n+r*_N)},function(n,r){return(r-n)/_N},function(n){return n.getHours()})),uye=$X,e$=($X.range,Hs(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()})),cye=e$,t$=(e$.range,Hs(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()})),n$=t$,vN=(t$.range,Hs(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));vN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Hs(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):vN:null};var r$=vN;vN.range;function b0(n){return Hs(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)/QX})}var yN=b0(0),C0=b0(1),dye=b0(2),fye=b0(3),am=b0(4),pye=b0(5),hye=b0(6),i$=(yN.range,C0.range,dye.range,fye.range,am.range,pye.range,hye.range,Hs(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})),Px=i$,rj=(i$.range,Hs(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()}));rj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Hs(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=rj;rj.range;function ij(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 oj(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 Rx(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Iw,y$,b$,o$={"-":"",_:" ",0:"0"},js=/^\s*\d+/,_ye=/^%/,gye=/[\\^$*+?|[\]().{}]/g;function Vi(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 vye(n){return n.replace(gye,"\\$&")}function Lx(n){return new RegExp("^(?:"+n.map(vye).join("|")+")","i")}function Zx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function yye(n,r,e){var i=js.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function bye(n,r,e){var i=js.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Cye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function wye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function kye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function a$(n,r,e){var i=js.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function s$(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Tye(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 Mye(n,r,e){var i=js.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Sye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function l$(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Eye(n,r,e){var i=js.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function u$(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Dye(n,r,e){var i=js.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Aye(n,r,e){var i=js.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=js.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Iye(n,r,e){var i=_ye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Pye(n,r,e){var i=js.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Rye(n,r,e){var i=js.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function c$(n,r){return Vi(n.getDate(),r,2)}function Lye(n,r){return Vi(n.getHours(),r,2)}function Zye(n,r){return Vi(n.getHours()%12||12,r,2)}function Nye(n,r){return Vi(1+Ix.count(Vd(n),n),r,3)}function d$(n,r){return Vi(n.getMilliseconds(),r,3)}function Bye(n,r){return d$(n,r)+"000"}function Fye(n,r){return Vi(n.getMonth()+1,r,2)}function Uye(n,r){return Vi(n.getMinutes(),r,2)}function Hye(n,r){return Vi(n.getSeconds(),r,2)}function jye(n){var r=n.getDay();return 0===r?7:r}function Gye(n,r){return Vi(gN.count(Vd(n)-1,n),r,2)}function f$(n){var r=n.getDay();return r>=4||0===r?om(n):om.ceil(n)}function zye(n,r){return n=f$(n),Vi(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function Wye(n){return n.getDay()}function Vye(n,r){return Vi(y0.count(Vd(n)-1,n),r,2)}function Yye(n,r){return Vi(n.getFullYear()%100,r,2)}function Kye(n,r){return Vi((n=f$(n)).getFullYear()%100,r,2)}function qye(n,r){return Vi(n.getFullYear()%1e4,r,4)}function Jye(n,r){var e=n.getDay();return Vi((n=e>=4||0===e?om(n):om.ceil(n)).getFullYear()%1e4,r,4)}function Qye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Vi(r/60|0,"0",2)+Vi(r%60,"0",2)}function p$(n,r){return Vi(n.getUTCDate(),r,2)}function Xye(n,r){return Vi(n.getUTCHours(),r,2)}function $ye(n,r){return Vi(n.getUTCHours()%12||12,r,2)}function e0e(n,r){return Vi(1+Px.count(Yd(n),n),r,3)}function h$(n,r){return Vi(n.getUTCMilliseconds(),r,3)}function t0e(n,r){return h$(n,r)+"000"}function n0e(n,r){return Vi(n.getUTCMonth()+1,r,2)}function r0e(n,r){return Vi(n.getUTCMinutes(),r,2)}function i0e(n,r){return Vi(n.getUTCSeconds(),r,2)}function o0e(n){var r=n.getUTCDay();return 0===r?7:r}function a0e(n,r){return Vi(yN.count(Yd(n)-1,n),r,2)}function m$(n){var r=n.getUTCDay();return r>=4||0===r?am(n):am.ceil(n)}function s0e(n,r){return n=m$(n),Vi(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function l0e(n){return n.getUTCDay()}function u0e(n,r){return Vi(C0.count(Yd(n)-1,n),r,2)}function c0e(n,r){return Vi(n.getUTCFullYear()%100,r,2)}function d0e(n,r){return Vi((n=m$(n)).getUTCFullYear()%100,r,2)}function f0e(n,r){return Vi(n.getUTCFullYear()%1e4,r,4)}function p0e(n,r){var e=n.getUTCDay();return Vi((n=e>=4||0===e?am(n):am.ceil(n)).getUTCFullYear()%1e4,r,4)}function h0e(){return"+0000"}function _$(){return"%"}function g$(n){return+n}function v$(n){return Math.floor(+n/1e3)}!function g0e(n){return Iw=function mye(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=Lx(o),h=Zx(o),g=Lx(a),C=Zx(a),Z=Lx(s),z=Zx(s),q=Lx(l),re=Zx(l),ae=Lx(u),Se=Zx(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:c$,e:c$,f:Bye,g:Kye,G:Jye,H:Lye,I:Zye,j:Nye,L:d$,m:Fye,M:Uye,p:function kr(Mn){return o[+(Mn.getHours()>=12)]},q:function _r(Mn){return 1+~~(Mn.getMonth()/3)},Q:g$,s:v$,S:Hye,u:jye,U:Gye,V:zye,w:Wye,W:Vye,x:null,X:null,y:Yye,Y:qye,Z:Qye,"%":_$},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:p$,e:p$,f:t0e,g:d0e,G:p0e,H:Xye,I:$ye,j:e0e,L:h$,m:n0e,M:r0e,p:function tr(Mn){return o[+(Mn.getUTCHours()>=12)]},q:function br(Mn){return 1+~~(Mn.getUTCMonth()/3)},Q:g$,s:v$,S:i0e,u:o0e,U:a0e,V:s0e,w:l0e,W:u0e,x:null,X:null,y:c0e,Y:f0e,Z:h0e,"%":_$},Ke={a:function bt(Mn,gn,nr){var un=Z.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=C[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:l$,e:l$,f:Oye,g:s$,G:a$,H:u$,I:u$,j:Eye,L:Aye,m:Sye,M:xye,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:Mye,Q:Pye,s:Rye,S:Dye,u:bye,U:Cye,V:wye,w:yye,W:kye,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:s$,Y:a$,Z:Tye,"%":Iye};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=o$[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 Ae(Mn,gn){return function(nr){var Nn,rr,un=Rx(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=oj(Rx(un.y,0,1))).getUTCDay(),Nn=rr>4||0===rr?C0.ceil(Nn):C0(Nn),Nn=Px.offset(Nn,7*(un.V-1)),un.y=Nn.getUTCFullYear(),un.m=Nn.getUTCMonth(),un.d=Nn.getUTCDate()+(un.w+6)%7):(rr=(Nn=ij(Rx(un.y,0,1))).getDay(),Nn=rr>4||0===rr?y0.ceil(Nn):y0(Nn),Nn=Ix.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?oj(Rx(un.y,0,1)).getUTCDay():ij(Rx(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,oj(un)):ij(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 o$?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=Ae(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=Ae(gn+="",!0);return nr.toString=function(){return gn},nr}}}(n),y$=Iw.format,Iw.parse,b$=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 Nx=1e3,Bx=6e4,Fx=60*Bx,Ux=24*Fx,C$=30*Ux,aj=365*Ux;function y0e(n){return new Date(n)}function b0e(n){return n instanceof Date?+n:+new Date(+n)}function sj(n,r,e,i,o,a,s,l,u){var d=dN(JH,qc),h=d.invert,g=d.domain,C=u(".%L"),Z=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,Nx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Bx],[a,5,5*Bx],[a,15,15*Bx],[a,30,30*Bx],[o,1,Fx],[o,3,3*Fx],[o,6,6*Fx],[o,12,12*Fx],[i,1,Ux],[i,2,2*Ux],[e,1,6048e5],[r,1,C$],[r,3,3*C$],[n,1,aj]];function Ke(Ae){return(s(Ae)<Ae?C:a(Ae)<Ae?Z:o(Ae)<Ae?z:i(Ae)<Ae?q:r(Ae)<Ae?e(Ae)<Ae?re:ae:n(Ae)<Ae?Se:Ce)(Ae)}function st(Ae,it,ft,bt){if(null==Ae&&(Ae=10),"number"==typeof Ae){var $e=Math.abs(ft-it)/Ae,Pe=k7(function(ct){return ct[2]}).right(Ee,$e);Pe===Ee.length?(bt=e0(it/aj,ft/aj,Ae),Ae=n):Pe?(bt=(Pe=Ee[$e/Ee[Pe-1][2]<Ee[Pe][2]/$e?Pe-1:Pe])[1],Ae=Pe[0]):(bt=Math.max(e0(it,ft,Ae),1),Ae=l)}return null==bt?Ae:Ae.every(bt)}return d.invert=function(Ae){return new Date(h(Ae))},d.domain=function(Ae){return arguments.length?g(WH.call(Ae,b0e)):g().map(y0e)},d.ticks=function(Ae,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(Ae,bt,$e,it))?ct.range(bt,$e+1):[],Pe?ct.reverse():ct},d.tickFormat=function(Ae,it){return null==it?Ke:u(it)},d.nice=function(Ae,it){var ft=g();return(Ae=st(Ae,ft[0],ft[ft.length-1],it))?g(HX(ft,Ae)):d},d.copy=function(){return cN(d,sj(n,r,e,i,o,a,s,l,u))},d}function C0e(){return sj(Vd,iye,gN,Ix,uye,cye,n$,r$,y$).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var w$=Hs(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()}),w0e=w$,k$=(w$.range,Hs(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*_N)},function(n,r){return(r-n)/_N},function(n){return n.getUTCHours()})),k0e=k$,T$=(k$.range,Hs(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()})),T0e=T$;T$.range;function M0e(){return sj(Yd,w0e,yN,Px,k0e,T0e,n$,r$,b$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function M$(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 M$(n).domain([r,e]).clamp(i)},Ox(o)}function ci(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 S0e=ci("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),E0e=ci("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),x0e=ci("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),D0e=ci("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),A0e=ci("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),O0e=ci("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),I0e=ci("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),P0e=ci("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),R0e=ci("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Po(n){return efe(n[n.length-1])}var S$=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ci),L0e=Po(S$),E$=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ci),Z0e=Po(E$),x$=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ci),N0e=Po(x$),D$=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ci),B0e=Po(D$),A$=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ci),F0e=Po(A$),O$=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ci),U0e=Po(O$),I$=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ci),H0e=Po(I$),P$=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ci),j0e=Po(P$),R$=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ci),G0e=Po(R$),L$=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ci),z0e=Po(L$),Z$=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ci),W0e=Po(Z$),N$=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ci),V0e=Po(N$),B$=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ci),Y0e=Po(B$),F$=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ci),K0e=Po(F$),U$=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ci),q0e=Po(U$),H$=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ci),J0e=Po(H$),j$=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ci),Q0e=Po(j$),G$=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ci),X0e=Po(G$),z$=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ci),$0e=Po(z$),W$=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ci),ebe=Po(W$),V$=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ci),tbe=Po(V$),Y$=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ci),nbe=Po(Y$),K$=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ci),rbe=Po(K$),q$=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ci),ibe=Po(q$),J$=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ci),obe=Po(J$),Q$=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ci),abe=Po(Q$),X$=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ci),sbe=Po(X$),lbe=Math.PI/180,ube=180/Math.PI,lj=1.78277,uj=-.29227,bN=-.90649,Hx=1.97294,eee=Hx*bN,tee=Hx*lj,nee=lj*uj- -.14861*bN;function cbe(n){if(n instanceof w0)return new w0(n.h,n.s,n.l,n.opacity);n instanceof Ql||(n=xK(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(nee*i+eee*r-tee*e)/(nee+eee-tee),a=i-o,s=(Hx*(e-o)-uj*a)/bN,l=Math.sqrt(s*s+a*a)/(Hx*o*(1-o)),u=l?Math.atan2(s,a)*ube-120:NaN;return new w0(u<0?u+360:u,l,o,n.opacity)}function yp(n,r,e,i){return 1===arguments.length?cbe(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 ree(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)}UL(w0,yp,N7(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)*lbe,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+lj*a)),255*(e+i*(uj*o+bN*a)),255*(e+i*(Hx*o)),this.opacity)}}));ree(function Xde(n,r){var e=r-n;return e?RK(n,e>180||e<-180?e-360*Math.round(e/360):e):GL(isNaN(n)?r:n)});var cj=ree(iw),dbe=cj(yp(300,.5,0),yp(-240,.5,1)),fbe=cj(yp(-100,.75,.35),yp(80,1.5,.8)),pbe=cj(yp(260,.75,.35),yp(80,1.5,.8)),CN=yp();function hbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return CN.h=360*n-100,CN.s=1.5-1.5*r,CN.l=.8-.9*r,CN+""}function wN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var mbe=wN(ci("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_be=wN(ci("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gbe=wN(ci("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),vbe=wN(ci("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),dj="http://www.w3.org/1999/xhtml",fj={svg:"http://www.w3.org/2000/svg",xhtml:dj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pj(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),fj.hasOwnProperty(r)?{space:fj[r],local:n}:n}function ybe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===dj&&r.documentElement.namespaceURI===dj?r.createElement(n):r.createElementNS(e,n)}}function bbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function kN(n){var r=pj(n);return(r.local?bbe:ybe)(r)}function Cbe(){}function hj(n){return null==n?Cbe:function(){return this.querySelector(n)}}function kbe(){return[]}function iee(n){return null==n?kbe:function(){return this.querySelectorAll(n)}}var oee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var jx=document.documentElement;if(!jx.matches){var Mbe=jx.webkitMatchesSelector||jx.msMatchesSelector||jx.mozMatchesSelector||jx.oMatchesSelector;oee=function(r){return function(){return Mbe.call(this,r)}}}}var aee=oee;function see(n){return new Array(n.length)}function TN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}TN.prototype={constructor:TN,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 Dbe(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 TN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Abe(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new TN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Zbe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Gbe(n){return function(){this.removeAttribute(n)}}function zbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wbe(n,r){return function(){this.setAttribute(n,r)}}function Vbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Ybe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kbe(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 mj(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jbe(n){return function(){this.style.removeProperty(n)}}function Qbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xbe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function uee(n,r){return n.style.getPropertyValue(r)||mj(n).getComputedStyle(n,null).getPropertyValue(r)}function eCe(n){return function(){delete this[n]}}function tCe(n,r){return function(){this[n]=r}}function nCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function cee(n){return n.trim().split(/^|\s+/)}function _j(n){return n.classList||new dee(n)}function dee(n){this._node=n,this._names=cee(n.getAttribute("class")||"")}function fee(n,r){for(var e=_j(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function pee(n,r){for(var e=_j(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function iCe(n){return function(){fee(this,n)}}function oCe(n){return function(){pee(this,n)}}function aCe(n,r){return function(){(r.apply(this,arguments)?fee:pee)(this,n)}}function lCe(){this.textContent=""}function uCe(n){return function(){this.textContent=n}}function cCe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function fCe(){this.innerHTML=""}function pCe(n){return function(){this.innerHTML=n}}function hCe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function _Ce(){this.nextSibling&&this.parentNode.appendChild(this)}function vCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function CCe(){return null}function kCe(){var n=this.parentNode;n&&n.removeChild(this)}function MCe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function SCe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}dee.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 hee={},sm=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(hee={mouseenter:"mouseover",mouseleave:"mouseout"}));function ACe(n,r,e){return n=mee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function mee(n,r,e){return function(i){var o=sm;sm=i;try{n.call(this,this.__data__,r,e)}finally{sm=o}}}function OCe(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 ICe(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 PCe(n,r,e){var i=hee.hasOwnProperty(n.type)?ACe:mee;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 LCe(n,r,e,i){var o=sm;n.sourceEvent=sm,sm=n;try{return r.apply(e,i)}finally{sm=o}}function _ee(n,r,e){var i=mj(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 ZCe(n,r){return function(){return _ee(this,n,r)}}function NCe(n,r){return function(){return _ee(this,n,r.apply(this,arguments))}}var gj=[null];function iu(n,r){this._groups=n,this._parents=r}function gee(){return new iu([[document.documentElement]],gj)}iu.prototype=gee.prototype={constructor:iu,select:function wbe(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 iu(i,this._parents)},selectAll:function Tbe(n){"function"!=typeof n&&(n=iee(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 Sbe(n){"function"!=typeof n&&(n=aee(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 Obe(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(st){Z[++d]=st}),Z;var e=r?Abe:Dbe,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function xbe(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],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,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 Ebe(){return new iu(this._enter||this._groups.map(see),this._parents)},exit:function Ibe(){return new iu(this._exit||this._groups.map(see),this._parents)},merge:function Pbe(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 C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new iu(s,this._parents)},order:function Rbe(){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 Lbe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zbe);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 Nbe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Bbe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Fbe(){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 Ube(){var n=0;return this.each(function(){++n}),n},empty:function Hbe(){return!this.node()},each:function jbe(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 qbe(n,r){var e=pj(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?zbe:Gbe:"function"==typeof r?e.local?Kbe:Ybe:e.local?Vbe:Wbe)(e,r))},style:function $be(n,r,e){return arguments.length>1?this.each((null==r?Jbe:"function"==typeof r?Xbe:Qbe)(n,r,null==e?"":e)):uee(this.node(),n)},property:function rCe(n,r){return arguments.length>1?this.each((null==r?eCe:"function"==typeof r?nCe:tCe)(n,r)):this.node()[n]},classed:function sCe(n,r){var e=cee(n+"");if(arguments.length<2){for(var i=_j(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?aCe:r?iCe:oCe)(e,r))},text:function dCe(n){return arguments.length?this.each(null==n?lCe:("function"==typeof n?cCe:uCe)(n)):this.node().textContent},html:function mCe(n){return arguments.length?this.each(null==n?fCe:("function"==typeof n?hCe:pCe)(n)):this.node().innerHTML},raise:function gCe(){return this.each(_Ce)},lower:function yCe(){return this.each(vCe)},append:function bCe(n){var r="function"==typeof n?n:kN(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function wCe(n,r){var e="function"==typeof n?n:kN(n),i=null==r?CCe:"function"==typeof r?r:hj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function TCe(){return this.each(kCe)},clone:function ECe(n){return this.select(n?SCe:MCe)},datum:function xCe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function RCe(n,r,e){var o,s,i=OCe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?PCe:ICe,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 BCe(n,r){return this.each(("function"==typeof r?NCe:ZCe)(n,r))}};var FCe=gee;function vee(n){return"string"==typeof n?new iu([[document.querySelector(n)]],[document.documentElement]):new iu([[n]],gj)}function UCe(n){return vee(kN(n).call(document.documentElement))}var HCe=0;function yee(){return new vj}function vj(){this._="@"+(++HCe).toString(36)}function yj(){for(var r,n=sm;r=n.sourceEvent;)n=r;return n}function MN(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 jCe(n){var r=yj();return r.changedTouches&&(r=r.changedTouches[0]),MN(n,r)}function GCe(n){return"string"==typeof n?new iu([document.querySelectorAll(n)],[document.documentElement]):new iu([null==n?[]:n],gj)}function zCe(n,r,e){arguments.length<3&&(e=r,r=yj().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return MN(n,a);return null}function WCe(n,r){null==r&&(r=yj().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=MN(n,r[e]);return o}function VCe(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 YCe(n,r){for(var e in r)n.attr(e,r[e]);return n}function qCe(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 JCe(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function XCe(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 $Ce(n,r){for(var e in r)n.property(e,r[e]);return n}function t1e(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 n1e(n,r){for(var e in r)n.attr(e,r[e]);return n}function i1e(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 o1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function gi(n){return function(){return n}}vj.prototype=yee.prototype={constructor:vj,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 KCe(n){return("function"==typeof n?VCe:YCe)(this,n)},pg.prototype.styles=function QCe(n,r){return("function"==typeof n?qCe:JCe)(this,n,null==r?"":r)},pg.prototype.properties=function e1e(n){return("function"==typeof n?XCe:$Ce)(this,n)},q7.prototype.attrs=function r1e(n){return("function"==typeof n?t1e:n1e)(this,n)},q7.prototype.styles=function a1e(n,r){return("function"==typeof n?i1e:o1e)(this,n,null==r?"":r)};var bee=Math.abs,Ml=Math.atan2,k0=Math.cos,s1e=Math.max,bj=Math.min,bp=Math.sin,Pw=Math.sqrt,sl=1e-12,T0=Math.PI,SN=T0/2,lm=2*T0;function l1e(n){return n>1?0:n<-1?T0:Math.acos(n)}function Cee(n){return n>=1?SN:n<=-1?-SN:Math.asin(n)}function u1e(n){return n.innerRadius}function c1e(n){return n.outerRadius}function d1e(n){return n.startAngle}function f1e(n){return n.endAngle}function p1e(n){return n&&n.padAngle}function h1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,C=g*u-h*d;if(!(C*C<sl))return[n+(C=(h*(r-a)-g*(n-o))/C)*u,r+C*d]}function EN(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,C=n+h,Z=r+g,z=e+h,q=i+g,re=(C+z)/2,ae=(Z+q)/2,Se=z-C,Ce=q-Z,Ee=Se*Se+Ce*Ce,Ke=o-a,st=C*q-z*Z,Ae=(Ce<0?-1:1)*Pw(s1e(0,Ke*Ke*Ee-st*st)),it=(st*Ce-Se*Ae)/Ee,ft=(-st*Se-Ce*Ae)/Ee,bt=(st*Ce+Se*Ae)/Ee,$e=(-st*Se+Ce*Ae)/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 m1e(){var n=u1e,r=c1e,e=gi(0),i=null,o=d1e,a=f1e,s=p1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),C=+r.apply(this,arguments),Z=o.apply(this,arguments)-SN,z=a.apply(this,arguments)-SN,q=bee(z-Z),re=z>Z;if(l||(l=d=Hd()),C<g&&(h=C,C=g,g=h),C>sl)if(q>lm-sl)l.moveTo(C*k0(Z),C*bp(Z)),l.arc(0,0,C,Z,z,!re),g>sl&&(l.moveTo(g*k0(z),g*bp(z)),l.arc(0,0,g,z,Z,re));else{var Pe,ct,ae=Z,Se=z,Ce=Z,Ee=z,Ke=q,st=q,Ae=s.apply(this,arguments)/2,it=Ae>sl&&(i?+i.apply(this,arguments):Pw(g*g+C*C)),ft=bj(bee(C-g)/2,+e.apply(this,arguments)),bt=ft,$e=ft;if(it>sl){var Bt=Cee(it/g*bp(Ae)),Ht=Cee(it/C*bp(Ae));(Ke-=2*Bt)>sl?(Ce+=Bt*=re?1:-1,Ee-=Bt):(Ke=0,Ce=Ee=(Z+z)/2),(st-=2*Ht)>sl?(ae+=Ht*=re?1:-1,Se-=Ht):(st=0,ae=Se=(Z+z)/2)}var Pt=C*k0(ae),Tn=C*bp(ae),jn=g*k0(Ee),zn=g*bp(Ee);if(ft>sl){var Hr,ar=C*k0(Se),kr=C*bp(Se),_r=g*k0(Ce),Wr=g*bp(Ce);if(q<=lm-sl&&(Hr=h1e(Pt,Tn,_r,Wr,ar,kr,jn,zn))){var Kr=Pt-Hr[0],Ho=Tn-Hr[1],tr=ar-Hr[0],br=kr-Hr[1],Mn=1/bp(l1e((Kr*tr+Ho*br)/(Pw(Kr*Kr+Ho*Ho)*Pw(tr*tr+br*br)))/2),gn=Pw(Hr[0]*Hr[0]+Hr[1]*Hr[1]);bt=bj(ft,(g-gn)/(Mn-1)),$e=bj(ft,(C-gn)/(Mn+1))}}st>sl?$e>sl?(Pe=EN(_r,Wr,Pt,Tn,C,$e,re),ct=EN(ar,kr,jn,zn,C,$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,C,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,C,ae,Se,!re)):l.moveTo(Pt,Tn),g>sl&&Ke>sl?bt>sl?(Pe=EN(jn,zn,ar,kr,g,-bt,re),ct=EN(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 wee(n){this._context=n}function xN(n){return new wee(n)}function Cj(n){return n[0]}function wj(n){return n[1]}function DN(){var n=Cj,r=wj,e=gi(!0),i=null,o=xN,a=null;function s(l){var u,h,C,d=l.length,g=!1;for(null==i&&(a=o(C=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(C)return a=null,C+""||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 kee(){var n=Cj,r=null,e=gi(0),i=wj,o=gi(!0),a=null,s=xN,l=null;function u(h){var g,C,Z,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)C=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),Z=g-1;Z>=C;--Z)l.point(Se[Z],Ce[Z]);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 DN().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 _1e(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function g1e(n){return n}function v1e(){var n=g1e,r=_1e,e=null,i=gi(0),o=gi(lm),a=gi(0);function s(l){var u,h,g,ae,Ee,d=l.length,C=0,Z=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[Z[u]=u]=+n(l[u],u,l))>0&&(C+=Ee);for(null!=r?Z.sort(function(Ke,st){return r(z[Ke],z[st])}):null!=e&&Z.sort(function(Ke,st){return e(l[Ke],l[st])}),u=0,g=C?(re-d*Ce)/C:0;u<d;++u,q=ae)h=Z[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}wee.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 Tee=kj(xN);function Mee(n){this._curve=n}function kj(n){function r(e){return new Mee(n(e))}return r._curve=n,r}function Gx(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(kj(e)):r()._curve},n}function See(){return Gx(DN().curve(Tee))}function Eee(){var n=kee().curve(Tee),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 Gx(e())},delete n.lineX0,n.lineEndAngle=function(){return Gx(i())},delete n.lineX1,n.lineInnerRadius=function(){return Gx(o())},delete n.lineY0,n.lineOuterRadius=function(){return Gx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(kj(s)):r()._curve},n}function zx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}Mee.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 Tj=Array.prototype.slice;function y1e(n){return n.source}function b1e(n){return n.target}function Mj(n){var r=y1e,e=b1e,i=Cj,o=wj,a=null;function s(){var l,u=Tj.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 C1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function w1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function k1e(n,r,e,i,o){var a=zx(r,e),s=zx(r,e=(e+o)/2),l=zx(i,e),u=zx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function T1e(){return Mj(C1e)}function M1e(){return Mj(w1e)}function S1e(){var n=Mj(k1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var Sj={draw:function(r,e){var i=Math.sqrt(e/T0);r.moveTo(i,0),r.arc(0,0,i,0,lm)}},xee={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()}},Dee=Math.sqrt(1/3),E1e=2*Dee,Aee={draw:function(r,e){var i=Math.sqrt(e/E1e),o=i*Dee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},Oee=Math.sin(T0/10)/Math.sin(7*T0/10),D1e=Math.sin(lm/10)*Oee,A1e=-Math.cos(lm/10)*Oee,Iee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=D1e*i,a=A1e*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()}},Pee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},Ej=Math.sqrt(3),Ree={draw:function(r,e){var i=-Math.sqrt(e/(3*Ej));r.moveTo(0,2*i),r.lineTo(-Ej*i,-i),r.lineTo(Ej*i,-i),r.closePath()}},Xc=-.5,$c=Math.sqrt(3)/2,xj=1/Math.sqrt(12),O1e=3*(xj/2+1),Lee={draw:function(r,e){var i=Math.sqrt(e/O1e),o=i/2,a=i*xj,s=o,l=i*xj+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()}},I1e=[Sj,xee,Aee,Pee,Iee,Ree,Lee];function P1e(){var n=gi(Sj),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 AN(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 ON(n){this._context=n}function R1e(n){return new ON(n)}function Zee(n){this._context=n}function L1e(n){return new Zee(n)}function Nee(n){this._context=n}function Z1e(n){return new Nee(n)}function Bee(n,r){this._basis=new ON(n),this._beta=r}ON.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:AN(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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Zee.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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Nee.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:AN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Bee.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 N1e=function n(r){function e(i){return 1===r?new ON(i):new Bee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function IN(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 Dj(n,r){this._context=n,this._k=(1-r)/6}Dj.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:IN(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:IN(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 B1e=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: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:IN(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 F1e=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){this._context=n,this._k=(1-r)/6}Oj.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:IN(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 U1e=function n(r){function e(i){return new Oj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Ij(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 Fee(n,r){this._context=n,this._alpha=r}Fee.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:Ij(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 H1e=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: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:Ij(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 j1e=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,r){this._context=n,this._alpha=r}Hee.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:Ij(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 G1e=function n(r){function e(i){return r?new Hee(i,r):new Oj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function jee(n){this._context=n}function z1e(n){return new jee(n)}function Gee(n){return n<0?-1:1}function zee(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(Gee(a)+Gee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function Wee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function Pj(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 PN(n){this._context=n}function Vee(n){this._context=new Yee(n)}function Yee(n){this._context=n}function W1e(n){return new PN(n)}function V1e(n){return new Vee(n)}function Kee(n){this._context=n}function qee(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 Y1e(n){return new Kee(n)}function RN(n,r){this._context=n,this._t=r}function K1e(n){return new RN(n,.5)}function q1e(n){return new RN(n,0)}function J1e(n){return new RN(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 Q1e(n,r){return n[r]}function X1e(){var n=gi([]),r=Lw,e=Rw,i=Q1e;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,C=s[l],Z=h[l]=new Array(u),z=0;z<u;++z)Z[z]=q=[0,+i(a[z],C,z,a)],q.data=a[z];Z.key=C}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(Tj.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(Tj.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?Rw:a,o):e},o}function $1e(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 ewe(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 twe(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 nwe(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,Z=(g-(h[i-1][1]||0))/2,z=0;z<l;++z){var q=n[r[z]];Z+=(q[i][1]||0)-(q[i-1][1]||0)}u+=g,d+=Z*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 Jee(n){var r=n.map(Qee);return Lw(n).sort(function(e,i){return r[e]-r[i]})}function Qee(n){for(var o,r=0,e=-1,i=n.length;++e<i;)(o=+n[e][1])&&(r+=o);return r}function rwe(n){return Jee(n).reverse()}function iwe(n){var e,i,r=n.length,o=n.map(Qee),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 owe(n){return Lw(n).reverse()}jee.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))}},PN.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:Pj(this,this._t0,Wee(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,Pj(this,Wee(this,i=zee(this,r,e)),i);break;default:Pj(this,this._t0,i=zee(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(Vee.prototype=Object.create(PN.prototype)).point=function(n,r){PN.prototype.point.call(this,r,n)},Yee.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)}},Kee.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=qee(r),a=qee(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)}},RN.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 Rj=new Date,Lj=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 Rj.setTime(+a),Lj.setTime(+s),n(Rj),n(Lj),Math.floor(e(Rj,Lj))},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 LN=ys(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});LN.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}):LN:null};var Xee=LN,$ee=LN.range,M0=6e4,NN=36e5,nte=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()}),rte=nte,ite=nte.range,ote=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()}),awe=ote,swe=ote.range,ate=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*M0)},function(n,r){n.setTime(+n+r*NN)},function(n,r){return(r-n)/NN},function(n){return n.getHours()}),lwe=ate,uwe=ate.range,ste=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}),cwe=ste,dwe=ste.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 Zj=S0(0),lte=S0(1),ute=S0(2),cte=S0(3),dte=S0(4),fte=S0(5),pte=S0(6),hte=Zj.range,fwe=lte.range,pwe=ute.range,hwe=cte.range,mwe=dte.range,_we=fte.range,gwe=pte.range,mte=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()}),vwe=mte,ywe=mte.range,Nj=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()});Nj.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 bwe=Nj,Cwe=Nj.range,_te=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()}),wwe=_te,kwe=_te.range,gte=ys(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*NN)},function(n,r){return(r-n)/NN},function(n){return n.getUTCHours()}),Twe=gte,Mwe=gte.range,vte=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}),Swe=vte,Ewe=vte.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 Bj=E0(0),yte=E0(1),bte=E0(2),Cte=E0(3),wte=E0(4),kte=E0(5),Tte=E0(6),Mte=Bj.range,xwe=yte.range,Dwe=bte.range,Awe=Cte.range,Owe=wte.range,Iwe=kte.range,Pwe=Tte.range,Ste=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()}),Rwe=Ste,Lwe=Ste.range,Fj=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()});Fj.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 Zwe=Fj,Nwe=Fj.range;function Bwe(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 BN(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 Wx(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function Ete(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=Vx(o),h=Yx(o),g=Vx(a),C=Yx(a),Z=Vx(s),z=Yx(s),q=Vx(l),re=Yx(l),ae=Vx(u),Se=Yx(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:Ote,e:Ote,f:lke,H:oke,I:ake,j:ske,L:Ite,m:uke,M:cke,p:function kr(tr){return o[+(tr.getHours()>=12)]},Q:Zte,s:Nte,S:dke,u:fke,U:pke,V:hke,w:mke,W:_ke,x:null,X:null,y:gke,Y:vke,Z:yke,"%":Lte},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:Pte,e:Pte,f:kke,H:bke,I:Cke,j:wke,L:Rte,m:Tke,M:Mke,p:function Ho(tr){return o[+(tr.getUTCHours()>=12)]},Q:Zte,s:Nte,S:Ske,u:Eke,U:xke,V:Dke,w:Ake,W:Oke,x:null,X:null,y:Ike,Y:Pke,Z:Rke,"%":Lte},Ke={a:function bt(tr,br,Mn){var gn=Z.exec(br.slice(Mn));return gn?(tr.w=z[gn[0].toLowerCase()],Mn+gn[0].length):-1},A:function $e(tr,br,Mn){var gn=g.exec(br.slice(Mn));return gn?(tr.w=C[gn[0].toLowerCase()],Mn+gn[0].length):-1},b:function Pe(tr,br,Mn){var gn=ae.exec(br.slice(Mn));return gn?(tr.m=Se[gn[0].toLowerCase()],Mn+gn[0].length):-1},B:function ct(tr,br,Mn){var gn=q.exec(br.slice(Mn));return gn?(tr.m=re[gn[0].toLowerCase()],Mn+gn[0].length):-1},c:function Bt(tr,br,Mn){return it(tr,r,br,Mn)},d:Dte,e:Dte,f:tke,H:Ate,I:Ate,j:Qwe,L:eke,m:Jwe,M:Xwe,p:function ft(tr,br,Mn){var gn=d.exec(br.slice(Mn));return gn?(tr.p=h[gn[0].toLowerCase()],Mn+gn[0].length):-1},Q:rke,s:ike,S:$we,u:Gwe,U:zwe,V:Wwe,w:jwe,W:Vwe,x:function Ht(tr,br,Mn){return it(tr,e,br,Mn)},X:function Pt(tr,br,Mn){return it(tr,i,br,Mn)},y:Kwe,Y:Ywe,Z:qwe,"%":nke};function st(tr,br){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=xte[Nn=tr.charAt(++nr)])?Nn=tr.charAt(++nr):rr="e"===Nn?" ":"0",(gr=br[Nn])&&(Nn=gr(Mn,rr)),gn.push(Nn),un=nr+1);return gn.push(tr.slice(un,nr)),gn.join("")}}function Ae(tr,br){return function(Mn){var un,bn,gn=Wx(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=BN(Wx(gn.y))).getUTCDay(),un=bn>4||0===bn?C0.ceil(un):C0(un),un=Px.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=br(Wx(gn.y))).getDay(),un=bn>4||0===bn?y0.ceil(un):y0(un),un=Ix.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?BN(Wx(gn.y)).getUTCDay():br(Wx(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,BN(gn)):br(gn)}}function it(tr,br,Mn,gn){for(var Nn,rr,nr=0,un=br.length,bn=Mn.length;nr<un;){if(gn>=bn)return-1;if(37===(Nn=br.charCodeAt(nr++))){if(Nn=br.charAt(nr++),!(rr=Ke[Nn in xte?br.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(br){var Mn=st(br+="",Ce);return Mn.toString=function(){return br},Mn},parse:function(br){var Mn=Ae(br+="",Bwe);return Mn.toString=function(){return br},Mn},utcFormat:function(br){var Mn=st(br+="",Ee);return Mn.toString=function(){return br},Mn},utcParse:function(br){var Mn=Ae(br,BN);return Mn.toString=function(){return br},Mn}}}var Zw,Bte,Fte,Uj,Hj,xte={"-":"",_:" ",0:"0"},ll=/^\s*\d+/,Fwe=/^%/,Uwe=/[\\^$*+?|[\]().{}]/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 Hwe(n){return n.replace(Uwe,"\\$&")}function Vx(n){return new RegExp("^(?:"+n.map(Hwe).join("|")+")","i")}function Yx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function jwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Gwe(n,r,e){var i=ll.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function zwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function Wwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function Vwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Ywe(n,r,e){var i=ll.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Kwe(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 qwe(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 Jwe(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 Dte(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Qwe(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 Ate(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function $we(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function eke(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function tke(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 nke(n,r,e){var i=Fwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function rke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function ike(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ote(n,r){return vo(n.getDate(),r,2)}function oke(n,r){return vo(n.getHours(),r,2)}function ake(n,r){return vo(n.getHours()%12||12,r,2)}function ske(n,r){return vo(1+Ix.count(Vd(n),n),r,3)}function Ite(n,r){return vo(n.getMilliseconds(),r,3)}function lke(n,r){return Ite(n,r)+"000"}function uke(n,r){return vo(n.getMonth()+1,r,2)}function cke(n,r){return vo(n.getMinutes(),r,2)}function dke(n,r){return vo(n.getSeconds(),r,2)}function fke(n){var r=n.getDay();return 0===r?7:r}function pke(n,r){return vo(gN.count(Vd(n),n),r,2)}function hke(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 mke(n){return n.getDay()}function _ke(n,r){return vo(y0.count(Vd(n),n),r,2)}function gke(n,r){return vo(n.getFullYear()%100,r,2)}function vke(n,r){return vo(n.getFullYear()%1e4,r,4)}function yke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function Pte(n,r){return vo(n.getUTCDate(),r,2)}function bke(n,r){return vo(n.getUTCHours(),r,2)}function Cke(n,r){return vo(n.getUTCHours()%12||12,r,2)}function wke(n,r){return vo(1+Px.count(Yd(n),n),r,3)}function Rte(n,r){return vo(n.getUTCMilliseconds(),r,3)}function kke(n,r){return Rte(n,r)+"000"}function Tke(n,r){return vo(n.getUTCMonth()+1,r,2)}function Mke(n,r){return vo(n.getUTCMinutes(),r,2)}function Ske(n,r){return vo(n.getUTCSeconds(),r,2)}function Eke(n){var r=n.getUTCDay();return 0===r?7:r}function xke(n,r){return vo(yN.count(Yd(n),n),r,2)}function Dke(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 Ake(n){return n.getUTCDay()}function Oke(n,r){return vo(C0.count(Yd(n),n),r,2)}function Ike(n,r){return vo(n.getUTCFullYear()%100,r,2)}function Pke(n,r){return vo(n.getUTCFullYear()%1e4,r,4)}function Rke(){return"+0000"}function Lte(){return"%"}function Zte(n){return+n}function Nte(n){return Math.floor(+n/1e3)}function Ute(n){return Zw=Ete(n),Bte=Zw.format,Fte=Zw.parse,Uj=Zw.utcFormat,Hj=Zw.utcParse,Zw}Ute({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 Hte="%Y-%m-%dT%H:%M:%S.%LZ";var Zke=Date.prototype.toISOString?function Lke(n){return n.toISOString()}:Uj(Hte),Nke=Zke;var Fke=+new Date("2000-01-01T00:00:00.000Z")?function Bke(n){var r=new Date(n);return isNaN(r)?null:r}:Hj(Hte),Uke=Fke;function Hke(n,r,e){var i=new XE,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 jke(){}function jj(n){return null==n?jke:function(){return this.querySelector(n)}}function zke(){return[]}function jte(n){return null==n?zke:function(){return this.querySelectorAll(n)}}function Gte(n){return function(){return this.matches(n)}}function zte(n){return new Array(n.length)}function FN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}FN.prototype={constructor:FN,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 qke(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 FN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Jke(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new FN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function rTe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var Gj="http://www.w3.org/1999/xhtml",Vte={svg:"http://www.w3.org/2000/svg",xhtml:Gj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function UN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Vte.hasOwnProperty(r)?{space:Vte[r],local:n}:n}function cTe(n){return function(){this.removeAttribute(n)}}function dTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fTe(n,r){return function(){this.setAttribute(n,r)}}function pTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function hTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function mTe(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 Yte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function gTe(n){return function(){this.style.removeProperty(n)}}function vTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function yTe(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)||Yte(n).getComputedStyle(n,null).getPropertyValue(r)}function CTe(n){return function(){delete this[n]}}function wTe(n,r){return function(){this[n]=r}}function kTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Kte(n){return n.trim().split(/^|\s+/)}function zj(n){return n.classList||new qte(n)}function qte(n){this._node=n,this._names=Kte(n.getAttribute("class")||"")}function Jte(n,r){for(var e=zj(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function Qte(n,r){for(var e=zj(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function MTe(n){return function(){Jte(this,n)}}function STe(n){return function(){Qte(this,n)}}function ETe(n,r){return function(){(r.apply(this,arguments)?Jte:Qte)(this,n)}}function DTe(){this.textContent=""}function ATe(n){return function(){this.textContent=n}}function OTe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function PTe(){this.innerHTML=""}function RTe(n){return function(){this.innerHTML=n}}function LTe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function NTe(){this.nextSibling&&this.parentNode.appendChild(this)}function FTe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function HTe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===Gj&&r.documentElement.namespaceURI===Gj?r.createElement(n):r.createElementNS(e,n)}}function jTe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Xte(n){var r=UN(n);return(r.local?jTe:HTe)(r)}function zTe(){return null}function VTe(){var n=this.parentNode;n&&n.removeChild(this)}function KTe(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function qTe(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}qte.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 $te={},x0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||($te={mouseenter:"mouseover",mouseleave:"mouseout"}));function $Te(n,r,e){return n=ene(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function ene(n,r,e){return function(i){var o=x0;x0=i;try{n.call(this,this.__data__,r,e)}finally{x0=o}}}function eMe(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 tMe(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 nMe(n,r,e){var i=$te.hasOwnProperty(n.type)?$Te:ene;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 tne(n,r,e){var i=Yte(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 iMe(n,r){return function(){return tne(this,n,r)}}function oMe(n,r){return function(){return tne(this,n,r.apply(this,arguments))}}var sMe=[null];function Kd(n,r){this._groups=n,this._parents=r}function nne(){return new Kd([[document.documentElement]],sMe)}Kd.prototype=nne.prototype={constructor:Kd,select:function Gke(n){"function"!=typeof n&&(n=jj(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 Wke(n){"function"!=typeof n&&(n=jte(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 Vke(n){"function"!=typeof n&&(n=Gte(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 Qke(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(st){Z[++d]=st}),Z;var e=r?Jke:qke,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Kke(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],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,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 Yke(){return new Kd(this._enter||this._groups.map(zte),this._parents)},exit:function Xke(){return new Kd(this._exit||this._groups.map(zte),this._parents)},join:function $ke(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 eTe(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 C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new Kd(s,this._parents)},order:function tTe(){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 nTe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=rTe);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 iTe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function oTe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function aTe(){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 sTe(){var n=0;return this.each(function(){++n}),n},empty:function lTe(){return!this.node()},each:function uTe(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 _Te(n,r){var e=UN(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?dTe:cTe:"function"==typeof r?e.local?mTe:hTe:e.local?pTe:fTe)(e,r))},style:function bTe(n,r,e){return arguments.length>1?this.each((null==r?gTe:"function"==typeof r?yTe:vTe)(n,r,null==e?"":e)):Nw(this.node(),n)},property:function TTe(n,r){return arguments.length>1?this.each((null==r?CTe:"function"==typeof r?kTe:wTe)(n,r)):this.node()[n]},classed:function xTe(n,r){var e=Kte(n+"");if(arguments.length<2){for(var i=zj(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?ETe:r?MTe:STe)(e,r))},text:function ITe(n){return arguments.length?this.each(null==n?DTe:("function"==typeof n?OTe:ATe)(n)):this.node().textContent},html:function ZTe(n){return arguments.length?this.each(null==n?PTe:("function"==typeof n?LTe:RTe)(n)):this.node().innerHTML},raise:function BTe(){return this.each(NTe)},lower:function UTe(){return this.each(FTe)},append:function GTe(n){var r="function"==typeof n?n:Xte(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function WTe(n,r){var e="function"==typeof n?n:Xte(n),i=null==r?zTe:"function"==typeof r?r:jj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function YTe(){return this.each(VTe)},clone:function JTe(n){return this.select(n?qTe:KTe)},datum:function QTe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function rMe(n,r,e){var o,s,i=eMe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?nMe:tMe,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 aMe(n,r){return this.each(("function"==typeof r?oMe:iMe)(n,r))}};var Kx=nne,lMe=t0("start","end","interrupt"),uMe=[];function GN(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function cMe(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,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return ex(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),delete i[h])}if(ex(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(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);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,C=o.length;++g<C;)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=$E(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:lMe,tween:uMe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Kj(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 one(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 qx,Jj,lne,zN,ane=180/Math.PI,qj={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sne(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)*ane,skewX:Math.atan(u)*ane,scaleX:s,scaleY:l}}function une(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.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,C),function l(d,h,g,C){d!==h?C.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,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Sg(d,g)},{i:q-2,x:Sg(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var hMe=une(function fMe(n){return"none"===n?qj:(qx||(qx=document.createElement("DIV"),Jj=document.documentElement,lne=document.defaultView),qx.style.transform=n,n=lne.getComputedStyle(Jj.appendChild(qx),null).getPropertyValue("transform"),Jj.removeChild(qx),sne(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),mMe=une(function pMe(n){return null!=n&&(zN||(zN=document.createElementNS("http://www.w3.org/2000/svg","g")),zN.setAttribute("transform",n),n=zN.transform.baseVal.consolidate())?sne((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):qj},", ",")",")");function _Me(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 gMe(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 Qj(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 Xj(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function cne(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function Jx(){}var WN=1/.7,Bw="\\s*([+-]?\\d+)\\s*",Xx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yMe=/^#([0-9a-f]{3,8})$/,bMe=new RegExp("^rgb\\("+[Bw,Bw,Bw]+"\\)$"),CMe=new RegExp("^rgb\\("+[Cp,Cp,Cp]+"\\)$"),wMe=new RegExp("^rgba\\("+[Bw,Bw,Bw,Xx]+"\\)$"),kMe=new RegExp("^rgba\\("+[Cp,Cp,Cp,Xx]+"\\)$"),TMe=new RegExp("^hsl\\("+[Xx,Cp,Cp]+"\\)$"),MMe=new RegExp("^hsla\\("+[Xx,Cp,Cp,Xx]+"\\)$"),dne={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 fne(){return this.rgb().formatHex()}function pne(){return this.rgb().formatRgb()}function $x(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=yMe.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?hne(r):3===e?new bc(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?VN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?VN(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=bMe.exec(n))?new bc(r[1],r[2],r[3],1):(r=CMe.exec(n))?new bc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=wMe.exec(n))?VN(r[1],r[2],r[3],r[4]):(r=kMe.exec(n))?VN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=TMe.exec(n))?gne(r[1],r[2]/100,r[3]/100,1):(r=MMe.exec(n))?gne(r[1],r[2]/100,r[3]/100,r[4]):dne.hasOwnProperty(n)?hne(dne[n]):"transparent"===n?new bc(NaN,NaN,NaN,0):null}function hne(n){return new bc(n>>16&255,n>>8&255,255&n,1)}function VN(n,r,e,i){return i<=0&&(n=r=e=NaN),new bc(n,r,e,i)}function EMe(n){return n instanceof Jx||(n=$x(n)),n?new bc((n=n.rgb()).r,n.g,n.b,n.opacity):new bc}function YN(n,r,e,i){return 1===arguments.length?EMe(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 mne(){return"#"+$j(this.r)+$j(this.g)+$j(this.b)}function _ne(){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 $j(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function gne(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 vne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof Jx||(n=$x(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 eG(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 yne(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 bne(n){return function(){return n}}function Cne(n,r){return function(e){return n+e*r}}function IMe(n){return 1==(n=+n)?wne:function(r,e){return e-r?function OMe(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):bne(isNaN(r)?e:r)}}function wne(n,r){var e=r-n;return e?Cne(n,e):bne(isNaN(n)?r:n)}Xj(Jx,$x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:fne,formatHex:fne,formatHsl:function SMe(){return vne(this).formatHsl()},formatRgb:pne,toString:pne}),Xj(bc,YN,cne(Jx,{brighter:function(r){return r=null==r?WN:Math.pow(WN,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:mne,formatHex:mne,formatRgb:_ne,toString:_ne})),Xj(wp,function xMe(n,r,e,i){return 1===arguments.length?vne(n):new wp(n,r,e,null==i?1:i)},cne(Jx,{brighter:function(r){return r=null==r?WN:Math.pow(WN,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(eG(r>=240?r-240:r+120,a,o),eG(r,a,o),eG(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 kne=function n(r){var e=IMe(r);function i(o,a){var s=e((o=YN(o)).r,(a=YN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=wne(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 Tne(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=YN(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+""}}}Tne(function DMe(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 yne((e-i/r)*r,s,o,a,l)}}),Tne(function AMe(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 yne((e-i/r)*r,o,a,s,l)}});var tG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nG=new RegExp(tG.source,"g");function LMe(n,r){var i,o,a,e=tG.lastIndex=nG.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=tG.exec(n))&&(o=nG.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=nG.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function RMe(n){return function(r){return n(r)+""}}(u[0].x):function PMe(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 Mne(n,r){var e;return("number"==typeof r?Sg:r instanceof $x?kne:(e=$x(r))?(r=e,kne):LMe)(n,r)}function ZMe(n){return function(){this.removeAttribute(n)}}function NMe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function BMe(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 FMe(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 UMe(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 HMe(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 GMe(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 zMe(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 VMe(n,r){return function(){Kj(this,n).delay=+r.apply(this,arguments)}}function YMe(n,r){return r=+r,function(){Kj(this,n).delay=r}}function qMe(n,r){return function(){D0(this,n).duration=+r.apply(this,arguments)}}function JMe(n,r){return r=+r,function(){D0(this,n).duration=r}}function XMe(n,r){if("function"!=typeof r)throw new Error;return function(){D0(this,n).ease=r}}function rSe(n,r,e){var i,o,a=function nSe(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)?Kj:D0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var uSe=Kx.prototype.constructor;function _Se(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 wSe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Sne(n){return Kx().transition(n)}function Ene(){return++wSe}var Fw=Kx.prototype;kp.prototype=Sne.prototype={constructor:kp,select:function sSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=jj(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),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,GN(d[C],r,e,C,d,qd(h,e)));return new kp(a,this._parents,r,e)},selectAll:function lSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=jte(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 Z,C=n.call(h,h.__data__,g,u),z=qd(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&GN(Z,r,e,q,C,z);a.push(C),s.push(h)}return new kp(a,s,r,e)},filter:function eSe(n){"function"!=typeof n&&(n=Gte(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 tSe(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 C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new kp(s,this._parents,this._name,this._id)},selection:function cSe(){return new uSe(this._groups,this._parents)},transition:function CSe(){for(var n=this._name,r=this._id,e=Ene(),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);GN(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 iSe(n,r){var e=this._id;return arguments.length<2?qd(this.node(),e).on.on(n):this.each(rSe(e,n,r))},attr:function jMe(n,r){var e=UN(n),i="transform"===e?mMe:Mne;return this.attrTween(n,"function"==typeof r?(e.local?HMe:UMe)(e,i,Qj(this,"attr."+n,r)):null==r?(e.local?NMe:ZMe)(e):(e.local?FMe:BMe)(e,i,r+""))},attrTween:function WMe(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=UN(n);return this.tween(e,(i.local?GMe:zMe)(i,r))},style:function mSe(n,r,e){var i="transform"==(n+="")?hMe:Mne;return null==r?this.styleTween(n,function dSe(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 fSe(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function hSe(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,Qj(this,"style."+n,r)):function pSe(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 gSe(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,_Se(n,r,null==e?"":e))},text:function bSe(n){return this.tween("text","function"==typeof n?function ySe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(Qj(this,"text",n)):function vSe(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function aSe(){return this.on("end.remove",function oSe(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 vMe(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?_Me:gMe)(e,n,r))},delay:function KMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?VMe:YMe)(r,n)):qd(this.node(),r).delay},duration:function QMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?qMe:JMe)(r,n)):qd(this.node(),r).duration},ease:function $Me(n){var r=this._id;return arguments.length?this.each(XMe(r,n)):qd(this.node(),r).ease}};var rG={time:null,delay:0,duration:250,ease:$L};function kSe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return rG.time=hg(),rG;return e}Kx.prototype.interrupt=function dMe(n){return this.each(function(){one(this,n)})},Kx.prototype.transition=function TSe(n){var r,e;n instanceof kp?(r=n._id,n=n._name):(r=Ene(),(e=rG).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])&&GN(u,n,r,d,s,e||kSe(u,r));return new kp(i,this._parents,n,r)};var MSe=[null];function SSe(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]],MSe,r,+o);return null}function xne(n){return function(){return n}}function ESe(n){return n[0]}function xSe(n){return n[1]}function iG(){this._=null}function KN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function eD(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 tD(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 Dne(n){for(;n.L;)n=n.L;return n}iG.prototype={constructor:iG,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=Dne(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&&(eD(this,i),i=(r=i).U),i.C=!1,o.C=!0,tD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(tD(this,i),i=(r=i).U),i.C=!1,o.C=!0,eD(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?Dne(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,eD(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,tD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,eD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,tD(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,eD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,tD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Ane=iG;function nD(n,r,e,i){var o=[null,null],a=Sl.push(o)-1;return o.left=n,o.right=r,e&&qN(o,n,r,e),i&&qN(o,r,n,i),Cc[n.index].halfedges.push(a),Cc[r.index].halfedges.push(a),o}function rD(n,r,e){var i=[r,e];return i.left=n,i}function qN(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 DSe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,C=1,Z=s[0]-l,z=s[1]-u;if(q=r-l,Z||!(q>0)){if(q/=Z,Z<0){if(q<g)return;q<C&&(C=q)}else if(Z>0){if(q>C)return;q>g&&(g=q)}if(q=i-l,Z||!(q<0)){if(q/=Z,Z<0){if(q>C)return;q>g&&(g=q)}else if(Z>0){if(q<g)return;q<C&&(C=q)}if(q=e-u,z||!(q>0)){if(q/=z,z<0){if(q<g)return;q<C&&(C=q)}else if(z>0){if(q>C)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>C)return;q>g&&(g=q)}else if(z>0){if(q<g)return;q<C&&(C=q)}return!(g>0)&&!(C<1)||(g>0&&(n[0]=[l+g*Z,u+g*z]),C<1&&(n[1]=[l+C*Z,u+C*z])),!0}}}}}function ASe(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],C=u[1],Z=(d+g)/2,z=(h+C)/2;if(C===h){if(Z<r||Z>=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[Z,e];a=[Z,o]}else{if(s){if(s[1]<e)return}else s=[Z,o];a=[Z,e]}}else if(re=z-(q=(d-g)/(C-h))*Z,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<C){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 PSe(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 One(n,r){return r[+(r.left!==n.site)]}function RSe(n,r){return r[+(r.left===n.site)]}var oG,Ine=[];function NSe(){KN(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,C=2*(u*g-d*h);if(!(C>=-jSe)){var Z=u*u+d*d,z=h*h+g*g,q=(g*Z-d*z)/C,re=(u*z-h*Z)/C,ae=Ine.pop()||new NSe;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=iD._;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}iD.insert(Se,ae),Se||(oG=ae)}}}}function Hw(n){var r=n.circle;r&&(r.P||(oG=r.N),iD.remove(r),Ine.push(r),KN(r),n.circle=null)}var Pne=[];function BSe(){KN(this),this.edge=this.site=this.circle=null}function Rne(n){var r=Pne.pop()||new BSe;return r.site=n,r}function aG(n){Hw(n),jw.remove(n),Pne.push(n),KN(n)}function FSe(n){var r=n.circle,e=r.x,i=r.cy,o=[e,i],a=n.P,s=n.N,l=[n];aG(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),aG(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),aG(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],qN(d.edge,u.site,d.site,o);u=l[0],(d=l[h-1]).edge=nD(u.site,d.site,null,o),Uw(u),Uw(d)}function USe(n){for(var i,o,a,s,r=n[0],e=n[1],l=jw._;l;)if((a=Lne(l,e)-r)>yo)l=l.L;else{if(!((s=r-HSe(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 ISe(n){return Cc[n.index]={site:n,halfedges:[]}}(n);var u=Rne(n);if(jw.insert(i,u),i||o){if(i===o)return Hw(i),o=Rne(i.site),jw.insert(u,o),u.edge=o.edge=nD(i.site,u.site),Uw(i),void Uw(o);if(!o)return void(u.edge=nD(i.site,u.site));Hw(i),Hw(o);var d=i.site,h=d[0],g=d[1],C=n[0]-h,Z=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(C*re-Z*q),Se=C*C+Z*Z,Ce=q*q+re*re,Ee=[(re*Se-Z*Ce)/ae+h,(C*Ce-q*Se)/ae+g];qN(o.edge,d,z,Ee),u.edge=nD(d,n,null,Ee),o.edge=nD(n,z,null,Ee),Uw(i),Uw(o)}}function Lne(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,C=h/d;return g?(-C+Math.sqrt(C*C-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function HSe(n,r){var e=n.N;if(e)return Lne(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var jw,Cc,iD,Sl,yo=1e-6,jSe=1e-12;function GSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function zSe(n,r){return r[1]-n[1]||r[0]-n[0]}function sG(n,r){var i,o,a,e=n.sort(zSe).pop();for(Sl=[],Cc=new Array(n.length),jw=new Ane,iD=new Ane;;)if(a=oG,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(USe(e),i=e[0],o=e[1]),e=n.pop();else{if(!a)break;FSe(a.arc)}if(function LSe(){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]=PSe(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 OSe(n,r,e,i){for(var a,o=Sl.length;o--;)ASe(a=Sl[o],n,r,e,i)&&DSe(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 ZSe(n,r,e,i){var a,s,l,u,d,h,g,C,Z,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=RSe(s,Sl[d[u]]))[0],re=z[1],C=(g=One(s,Sl[d[++u%h]]))[0],Z=g[1],(Math.abs(q-C)>yo||Math.abs(re-Z)>yo)&&(d.splice(u,0,Sl.push(rD(l,z,Math.abs(q-n)<yo&&i-re>yo?[n,Math.abs(C-n)<yo?Z:i]:Math.abs(re-i)<yo&&e-q>yo?[Math.abs(Z-i)<yo?C:e,i]:Math.abs(q-e)<yo&&re-r>yo?[e,Math.abs(C-e)<yo?Z:r]:Math.abs(re-r)<yo&&q-n>yo?[Math.abs(Z-r)<yo?C: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],Ae=[n,i],it=[e,i],ft=[e,r];ae.halfedges.push(Sl.push(rD(l=ae.site,st,Ae))-1,Sl.push(rD(l,Ae,it))-1,Sl.push(rD(l,it,ft))-1,Sl.push(rD(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=iD=Sl=Cc=null}function WSe(){var n=ESe,r=xSe,e=null;function i(o){return new sG(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:xne(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:xne(+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}sG.prototype={constructor:sG,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return One(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&&GSe(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(C){var Z=o.edges[C],z=Z.left;if(z!==u.site&&z||(z=Z.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 oD=Math.SQRT2;function Nne(n){return((n=Math.exp(n))+1/n)/2}function qSe(n,r){var g,C,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)C=Math.log(l/o)/oD,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(oD*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/oD,g=function(Ce){var Ee=Ce*C,Ke=Nne(re),st=o/(2*Z)*(Ke*function KSe(n){return((n=Math.exp(2*n))-1)/(n+1)}(oD*Ee+re)-function YSe(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+st*u,i+st*d,o*Ke/Nne(oD*Ee+re)]}}return g.duration=1e3*C,g}function JN(n){return function(){return n}}function JSe(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 Bne(n){return n.__zoom||QN}function uG(){Ln.stopImmediatePropagation()}function aD(){Ln.preventDefault(),Ln.stopImmediatePropagation()}function QSe(){return!Ln.ctrlKey&&!Ln.button}function XSe(){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 Fne(){return this.__zoom||QN}function $Se(){return-Ln.deltaY*(1===Ln.deltaMode?.05:Ln.deltaMode?1:.002)}function eEe(){return navigator.maxTouchPoints||"ontouchstart"in this}function tEe(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 Une(){var h,g,n=QSe,r=XSe,e=tEe,i=$Se,o=eEe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=qSe,d=t0("start","zoom","end"),C=500,z=0;function q(Pe){Pe.property("__zoom",Fne).on("wheel.zoom",st).on("mousedown.zoom",Ae).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()),aD(),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 Ae(){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;BL(Ln.view),uG(),Pe.mouse=[Bt,this.__zoom.invert(Bt)],aw(this),Pe.start()}function Tn(){if(aD(),!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),FL(Ln.view,Pe.moved),aD(),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);aD(),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(uG(),Pt=0;Pt<ct;++Pt)jn=[jn=_9(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},C)),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(aD(),h&&(h=clearTimeout(h)),Pe.taps=0,Ht=0;Ht<Bt;++Ht)Tn=_9(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(uG(),g&&clearTimeout(g),g=setTimeout(function(){g=null},C),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",Fne),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){NL(new JSe(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:JN(+Pe),q):i},q.filter=function(Pe){return arguments.length?(n="function"==typeof Pe?Pe:JN(!!Pe),q):n},q.touchable=function(Pe){return arguments.length?(o="function"==typeof Pe?Pe:JN(!!Pe),q):o},q.extent=function(Pe){return arguments.length?(r="function"==typeof Pe?Pe:JN([[+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}Bne.prototype=um.prototype;var cG=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"getD3",value:function(){return G}}]),n}();cG=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",[])],cG);var Tp=m(8723);function iEe(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 oEe(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 aEe(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 sEe(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 lEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,aEe,1,7,"circle",2),t.YNc(2,sEe,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 uEe(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 cEe(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 dEe(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 fEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,cEe,1,5,"path",2),t.YNc(2,dEe,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 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.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 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.title.tspans)}}function mEe(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 _Ee(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 gEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,_Ee,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function vEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,hEe,2,1,"ng-container",2),t.YNc(2,mEe,2,4,"tspan",2),t.YNc(3,gEe,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 yEe(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 bEe(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,iEe,3,5,"linearGradient",2),t.YNc(3,oEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,lEe,3,2,"ng-container",2),t.YNc(5,uEe,1,6,"circle",2),t.YNc(6,fEe,3,2,"ng-container",2),t.YNc(7,vEe,4,6,"text",3),t.YNc(8,yEe,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 XN=(0,H.Z)(function n(){(0,F.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}),sD=function(){function n(r,e,i,o){var a=this;(0,F.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 XN,this.defaultOptions=new XN,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 C,Z,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);C=q[0],Z=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Yn.Z)(re,2);C=ae[0],Z=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 Ae={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?Ae.texts=(0,cn.Z)(it):Ae.texts.push(it.toString())}else a.options.subtitle instanceof Array?Ae.texts=(0,cn.Z)(a.options.subtitle):Ae.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+=Ae.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)(Ae.texts);try{for(Ht.s();!(Pt=Ht.n()).done;){var Tn=Pt.value;Ae.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(C," ").concat(Z," ").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:Ae,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,C=a.options.startFromZero||s<0?0:s,Z=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(Z-C));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,C=h.interval,Z=u;a._timerSubscription=u<d?(0,Tp.H)(0,C).subscribe(function(){(Z+=g)<=d?!a.options.animateTitle&&!a.options.animateSubtitle&&Z>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,C).subscribe(function(){(Z-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(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(se.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,H.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}();sD.\u0275fac=function(r){return new(r||sD)(t.Y36(XN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},sD.\u0275cmp=t.Xpm({type:sD,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,bEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[se.sg,se.O5],encapsulation:2});var Gw=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:XN,useValue:e}]}}}]),n}();Gw.\u0275fac=function(r){return new(r||Gw)},Gw.\u0275mod=t.oAB({type:Gw}),Gw.\u0275inj=t.cJS({imports:[se.ez]});var $N=function(){function n(r){(0,F.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,H.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}();$N.\u0275fac=function(r){return new(r||$N)(t.Y36(t.SBq))},$N.\u0275dir=t.lG2({type:$N,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 dG=function(){function n(r){(0,F.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,H.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}(),CEe=function(){function n(r,e,i){(0,F.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 dG(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,H.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,F.Z)(this,n)}return(0,H.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,F.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,H.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),C=this.queue.length,Z=[];l.map(function(z){s||(s=a.options);var q=new dG(z);if(a._isValidFile(q,g,s)){var re=new CEe(a,z,s);Z.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!==C&&(this._onAfterAddingAll(Z),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 wEe(n){return File&&n instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof dG}},{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 C,g=(0,An.Z)(e.headers);try{for(g.s();!(C=g.n()).done;){var Z=C.value;a.setRequestHeader(Z.name,Z.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,F.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,H.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,H.Z)(function n(){(0,F.Z)(this,n)});Ww.\u0275fac=function(r){return new(r||Ww)},Ww.\u0275mod=t.oAB({type:Ww}),Ww.\u0275inj=t.cJS({imports:[se.ez]});var fG=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}(),kEe=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)}}(),Hne=function(n){function r(){return n.call(this)||this}return kEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(fG);Hne.ctorParameters=function(){return[]};var jne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:fG,useClass:Hne}]}),n}();jne.ctorParameters=function(){return[]};var ul=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,F.Z)(this,e),r.call(this)}return(0,H.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,H.Z)(function n(){(0,F.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 lD=m(7326),Yw=m(4942),TEe=m(4450),MEe=m(1961),uD=m(8514),SEe=m(4843),O0=m(1737),I0=m(8896),Gne=m(1762),xg=m(7224),P0=m(1406),ed=m(7221),zne=m(2014),Wne=m(8127),EEe=m(4290),Vne=m(7314),eB=m(537),Yne=m(4327),tB=m(9146),hi="primary",cD=Symbol("RouteTitle"),xEe=function(){function n(r){(0,F.Z)(this,n),this.params=r||{}}return(0,H.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 xEe(n)}function DEe(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(!Kne(n[o=e[a]],r[o]))return!1;return!0}function Kne(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 qne(n){return Array.prototype.concat.apply([],n)}function Jne(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,qn.of)(n)}var IEe={exact:function $ne(n,r,e){if(!L0(n.segments,r.segments)||!nB(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!$ne(n.children[i],r.children[i],e))return!1;return!0},subset:ere},Qne={exact:function PEe(n,r){return Sp(n,r)},subset:function REe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Kne(n[e],r[e])})},ignored:function(){return!0}};function Xne(n,r,e){return IEe[e.paths](n.root,r.root,e.matrixParams)&&Qne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function ere(n,r,e){return tre(n,r,r.segments,e)}function tre(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!L0(o,e)||r.hasChildren()||!nB(o,e,i))}if(n.segments.length===e.length){if(!L0(n.segments,e)||!nB(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!ere(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)&&nB(n.segments,s,i)&&n.children[hi])&&tre(n.children[hi],r,l,i)}function nB(n,r,e){return r.every(function(i,o){return Qne[e](n[o].parameters,i.parameters)})}var R0=function(){function n(r,e,i){(0,F.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,H.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Kw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return NEe.serialize(this)}}]),n}(),vi=function(){function n(r,e){var i=this;(0,F.Z)(this,n),this.segments=r,this.children=e,this.parent=null,cl(e,function(o,a){return o.parent=i})}return(0,H.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 rB(this)}}]),n}(),dD=function(){function n(r,e){(0,F.Z)(this,n),this.path=r,this.parameters=e}return(0,H.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Kw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ire(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,H.Z)(function n(){(0,F.Z)(this,n)});qw.\u0275fac=function(r){return new(r||qw)},qw.\u0275prov=t.Yz7({token:qw,factory:function(){return new hG},providedIn:"root"});var hG=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"parse",value:function(e){var i=new VEe(e);return new R0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(fD(e.root,!0)),o=function UEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(iB(e),"=").concat(iB(o))}).join("&"):"".concat(iB(e),"=").concat(iB(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function BEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),NEe=new hG;function rB(n){return n.segments.map(function(r){return ire(r)}).join("/")}function fD(n,r){if(!n.hasChildren())return rB(n);if(r){var e=n.children[hi]?fD(n.children[hi],!1):"",i=[];return cl(n.children,function(a,s){s!==hi&&i.push("".concat(s,":").concat(fD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function ZEe(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?[fD(n.children[hi],!1)]:["".concat(s,":").concat(fD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[hi]?"".concat(rB(n),"/").concat(o[0]):"".concat(rB(n),"/(").concat(o.join("//"),")")}function nre(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function iB(n){return nre(n).replace(/%3B/gi,";")}function mG(n){return nre(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oB(n){return decodeURIComponent(n)}function rre(n){return oB(n.replace(/\+/g,"%20"))}function ire(n){return"".concat(mG(n.path)).concat(function FEe(n){return Object.keys(n).map(function(r){return";".concat(mG(r),"=").concat(mG(n[r]))}).join("")}(n.parameters))}var HEe=/^[^\/()?;=#]+/;function aB(n){var r=n.match(HEe);return r?r[0]:""}var jEe=/^[^=?&#]+/;var zEe=/^[^&#]+/;var VEe=function(){function n(r){(0,F.Z)(this,n),this.url=r,this.remaining=r}return(0,H.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=aB(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new dD(oB(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=aB(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=aB(this.remaining);a&&(o=a,this.capture(o))}e[oB(i)]=oB(o)}}},{key:"parseQueryParam",value:function(e){var i=function GEe(n){var r=n.match(jEe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function WEe(n){var r=n.match(zEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=rre(i),l=rre(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=aB(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 _G(n){return n.segments.length>0?new vi([],(0,Yw.Z)({},hi,n)):n}function sB(n){for(var r={},e=0,i=Object.keys(n.children);e<i.length;e++){var o=i[e],s=sB(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function YEe(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 JEe(n,r,e,i,o){var a;if(0===e.length)return Jw(r.root,r.root,r.root,i,o);var l=sre(e);if(l.toRoot())return Jw(r.root,r.root,new vi([],{}),i,o);var d=function u(g){var C,Z=function XEe(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=pD(n.commands[0])?0:1;return lre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(C=n.snapshot)||void 0===C?void 0:C._urlSegment,g),z=Z.processChildren?mD(Z.segmentGroup,Z.index,l.commands):vG(Z.segmentGroup,Z.index,l.commands);return Jw(r.root,Z.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function pD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function hD(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=_G(sB(n===r?e:ore(n,r,e)));return new R0(l,a,o)}function ore(n,r,e){var i={};return cl(n.children,function(o,a){i[a]=o===r?e:ore(o,r,e)}),new vi(n.segments,i)}var are=function(){function n(r,e,i){if((0,F.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&pD(i[0]))throw new t.vHH(4003,false);var o=i.find(hD);if(o&&o!==Jne(i))throw new t.vHH(4004,false)}return(0,H.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function sre(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new are(!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 are(e,r,i)}var Qw=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function lre(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 vG(n,r,e){if(n||(n=new vi([],{})),0===n.segments.length&&n.hasChildren())return mD(n,r,e);var i=function exe(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(hD(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(!cre(u,d,s))return a;i+=2}else{if(!cre(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),mD(a,0,o)}return i.match&&0===o.length?new vi(n.segments,{}):i.match&&!n.hasChildren()?yG(n,r,e):i.match?mD(n,0,o):yG(n,r,e)}function mD(n,r,e){if(0===e.length)return new vi(n.segments,{});var i=function $Ee(n){return hD(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]=vG(n.children[s],r,a))}),cl(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new vi(n.segments,o)}function yG(n,r,e){for(var i=n.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(hD(a)){var s=txe(a.outlets);return new vi(i,s)}if(0===o&&pD(e[0])){var l=n.segments[r];i.push(new dD(l.path,ure(e[0]))),o++}else{var u=hD(a)?a.outlets[hi]:"".concat(a),d=o<e.length-1?e[o+1]:null;u&&d&&pD(d)?(i.push(new dD(u,ure(d))),o+=2):(i.push(new dD(u,{})),o++)}}return new vi(i,{})}function txe(n){var r={};return cl(n,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=yG(new vi([],{}),0,e))}),r}function ure(n){var r={};return cl(n,function(e,i){return r[i]="".concat(e)}),r}function cre(n,r,e){return n==e.path&&Sp(r,e.parameters)}var cm=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.id=r,this.url=e}),lB=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,F.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,H.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,F.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,H.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(cm),_D=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,H.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),bG=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,H.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),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,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,H.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),rxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,H.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),ixe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,H.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),oxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,H.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),axe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,H.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),sxe=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.type=9}return(0,H.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),lxe=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.type=10}return(0,H.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),uxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=11}return(0,H.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),cxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=12}return(0,H.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),dxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=13}return(0,H.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),fxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=14}return(0,H.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),dre=function(){function n(r,e,i){(0,F.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,H.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 fre=function(){function n(r){(0,F.Z)(this,n),this._root=r}return(0,H.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=CG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=CG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=wG(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 wG(e,this._root).map(function(i){return i.value})}}]),n}();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)return a}}catch(s){e.e(s)}finally{e.f()}return null}function wG(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=wG(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,F.Z)(this,n),this.value=r,this.children=e}return(0,H.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 pre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,i)).snapshot=o,kG((0,lD.Z)(a),i),a}return(0,H.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(fre);function hre(n,r){var e=function hxe(n,r){var s=new uB([],{},{},"",{},hi,r,null,n.root,-1,{});return new _re("",new dm(s,[]))}(n,r),i=new Wi.X([new dD("",{})]),o=new Wi.X({}),a=new Wi.X({}),s=new Wi.X({}),l=new Wi.X(""),u=new fr(i,o,s,l,a,hi,r,e.root);return u.snapshot=e.root,new pre(new dm(u,[]),e)}var fr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,F.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[cD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,H.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 mre(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 mxe(e.slice(i))}function mxe(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 uB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z;(0,F.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===(Z=this.data)||void 0===Z?void 0:Z[cD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=C?C:h,this._resolve=g}return(0,H.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}(),_re=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,o)).url=i,kG((0,lD.Z)(a),o),a}return(0,H.Z)(e,[{key:"toString",value:function(){return gre(this._root)}}]),e}(fre);function kG(n,r){r.value._routerState=n,r.children.forEach(function(e){return kG(n,e)})}function gre(n){var r=n.children.length>0?" { ".concat(n.children.map(gre).join(", ")," } "):"";return"".concat(n.value).concat(r)}function TG(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 AEe(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 MG(n,r){var e=Sp(n.params,r.params)&&function LEe(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||MG(n.parent,r.parent))}function gD(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function gxe(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 gD(n,i,s)}}catch(l){o.e(l)}finally{o.f()}return gD(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 gD(n,d)}),s}}var l=function vxe(n){return new fr(new Wi.X(n.url),new Wi.X(n.params),new Wi.X(n.queryParams),new Wi.X(n.fragment),new Wi.X(n.data),n.outlet,n.component,n)}(r.value),u=r.children.map(function(d){return gD(n,d)});return new dm(l,u)}var SG="ngNavigationCancelingError";function vre(n,r){var e=Z0(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=e.redirectTo,o=e.navigationBehaviorOptions,a=yre(!1,0,r);return a.url=i,a.navigationBehaviorOptions=o,a}function yre(n,r,e){var i=new Error("NavigationCancelingError: "+(n||""));return i[SG]=!0,i.cancellationCode=r,e&&(i.url=e),i}function bre(n){return Cre(n)&&Z0(n.url)}function Cre(n){return n&&n[SG]}var yxe=(0,H.Z)(function n(){(0,F.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,F.Z)(this,n),this.contexts=new Map}return(0,H.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 yxe,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 cB=!1,fm=function(){function n(r,e,i,o,a){(0,F.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,H.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,cB);return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new t.vHH(4012,cB);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,cB);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,cB);this._activatedRoute=e;var o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new bxe(e,l,o.injector);if(i&&function Cxe(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 bxe=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.childContexts=e,this.parent=i}return(0,H.Z)(n,[{key:"get",value:function(e,i){return e===fr?this.route:e===Ep?this.childContexts:this.parent.get(e,i)}}]),n}();var N0=(0,H.Z)(function n(){(0,F.Z)(this,n)});function wre(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 xG(n){var r=n.children&&n.children.map(xG),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 kre(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 vD(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 Sxe=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,H.Z)(n,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),TG(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 fxe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new cxe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a,s=e.value,l=i?i.value:null;if(TG(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),TG(h.route.value),this.activateChildRoutes(e,null,d.children)}else{var g=vD(s.snapshot),C=null!==(a=null==g?void 0:g.get(t._Vd))&&void 0!==a?a:null;d.attachRef=null,d.route=s,d.resolver=C,d.injector=g,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(e,null,d.children)}}else this.activateChildRoutes(e,null,o)}}]),n}(),Tre=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]}),dB=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.component=r,this.route=e});function Exe(n,r,e){var i=n._root;return yD(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 yD(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){Dxe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),cl(a,function(s,l){return bD(s,e.getContext(l),o)}),o}function Dxe(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=Axe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Tre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?yD(n,r,l?l.children:null,i,o):yD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new dB(l.outlet.component,s))}else s&&bD(r,l,o),o.canActivateChecks.push(new Tre(i)),a.component?yD(n,null,l?l.children:null,i,o):yD(n,null,e,i,o);return o}function Axe(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!MG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!MG(n,r)}}function bD(n,r,e){var i=Xw(n),o=n.value;cl(i,function(a,s){o.component?bD(a,r?r.children.getContext(s):null,e):bD(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new dB(r.outlet.component,o)):e.canDeactivateChecks.push(new dB(null,o))}function CD(n){return"function"==typeof n}function DG(n){return n instanceof TEe.K||"EmptyError"===(null==n?void 0:n.name)}var fB=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)(fB))})).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===fB)return fB;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!==fB}),(0,Ri.q)(1))})}function Bxe(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,qn.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Fxe(n,r,e,i){return(0,hs.D)(n).pipe((0,_s.zg)(function(o){return function Wxe(n,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,qn.of)(!0);var s=a.map(function(l){var u,d=null!==(u=vD(r))&&void 0!==u?u:o,h=$w(l,d);return Dg(function Lxe(n){return n&&CD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,xg.P)())});return(0,qn.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 Oxe(n){return"boolean"==typeof n}(u)?function Uxe(n,r,e,i){return(0,hs.D)(r).pipe((0,P0.b)(function(o){return(0,MEe.z)(function jxe(n,r){return null!==n&&r&&r(new uxe(n)),(0,qn.of)(!0)}(o.route.parent,i),function Hxe(n,r){return null!==n&&r&&r(new dxe(n)),(0,qn.of)(!0)}(o.route,i),function zxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function xxe(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,uD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=vD(s.node))&&void 0!==d?d:e,g=$w(u,h);return Dg(function Rxe(n){return n&&CD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,xg.P)())});return(0,qn.of)(l).pipe(ek())})});return(0,qn.of)(a).pipe(ek())}(n,o.path,e),function Gxe(n,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,qn.of)(!0);var o=i.map(function(a){return(0,uD.P)(function(){var s,l=null!==(s=vD(r))&&void 0!==s?s:e,u=$w(a,l);return Dg(function Pxe(n){return n&&CD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,xg.P)())})});return(0,qn.of)(o).pipe(ek())}(n,o.route,e))}),(0,xg.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,qn.of)(u)}),(0,$n.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}function Vxe(n,r,e,i){var o=r.canLoad;if(void 0===o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=$w(s,n);return Dg(function Ixe(n){return n&&CD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(ek(),Mre(i))}function Mre(n){return(0,SEe.z)((0,aa.b)(function(r){if(Z0(r))throw vre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function Yxe(n,r,e,i){var o=r.canMatch;if(!o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=$w(s,n);return Dg(function Zxe(n){return n&&CD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(ek(),Mre())}var AG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Sre(n,r,e,i,o){var a=OG(n,r,e);return a.matched?Yxe(i=wre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},AG)})):(0,qn.of)(a)}function OG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},AG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||DEe)(e,n,r);if(!a)return Object.assign({},AG);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 pB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Jxe(n,e,i)){var a=new vi(r,qxe(n,r,i,new vi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Qxe(n,e,i)){var s=new vi(n.segments,Kxe(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 Kxe(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(hB(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 qxe(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 Jxe(n,r,e){return e.some(function(i){return hB(n,r,i)&&td(i)!==hi})}function Qxe(n,r,e){return e.some(function(i){return hB(n,r,i)})}function hB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Ere(n,r,e,i){return!!(td(n)===i||i!==hi&&hB(r,e,n))&&("**"===n.path||OG(r,n,e).matched)}function xre(n,r,e){return 0===r.length&&!n.children[e]}var mB=!1,_B=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.segmentGroup=r||null}),Dre=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.urlTree=r});function wD(n){return(0,O0._)(new _B(n))}function Are(n){return(0,O0._)(new Dre(n))}var tDe=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,H.Z)(n,[{key:"apply",value:function(){var e=this,i=pB(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(sB(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,ed.K)(function(l){if(l instanceof Dre)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof _B?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(sB(s),e.queryParams,e.fragment)})).pipe((0,ed.K)(function(s){throw s instanceof _B?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,mB)}},{key:"createUrlTree",value:function(e,i,o){var a=_G(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],C=kre(i,h);return a.expandSegmentGroup(e,C,g,h).pipe((0,$n.U)(function(Z){return{segment:Z,outlet:h}}))}),(0,zne.R)(function(h,g){return h[g.outlet]=g.segment,h},{}),(0,Wne.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 _B)return(0,qn.of)(null);throw g}))}),(0,xg.P)(function(d){return!!d}),(0,ed.K)(function(d,h){if(DG(d))return xre(i,a,s)?(0,qn.of)(new vi([],{})):wD(i);throw d}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return Ere(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):wD(i):wD(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("/")?Are(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=OG(i,a,s),h=d.matched,g=d.consumedSegments,C=d.remainingSegments,Z=d.positionalParamSegments;if(!h)return wD(i);var z=this.applyRedirectCommands(g,a.redirectTo,Z);return a.redirectTo.startsWith("/")?Are(z):this.lineralizeSegments(a,z).pipe((0,_s.zg)(function(q){return u.expandSegment(e,i,o,q.concat(C),l,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,i,o,a,s){var l=this;return"**"===o.path?(e=wre(o,e),o.loadChildren?(o._loadedRoutes?(0,qn.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,qn.of)(new vi(a,{}))):Sre(i,o,a,e,this.urlSerializer).pipe((0,Io.w)(function(d){var Z,h=d.matched,g=d.consumedSegments,C=d.remainingSegments;return h?(e=null!==(Z=o._injector)&&void 0!==Z?Z: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=pB(i,g,C,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,qn.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)}))}))):wD(i)}))}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,qn.of)({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):Vxe(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 $xe(n){return(0,O0._)(yre(mB,3))}()})):(0,qn.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,qn.of)(o);if(a.numberOfChildren>1||!a.children[hi])return e.redirectTo,(0,O0._)(new t.vHH(4e3,mB));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,mB);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 nDe(n,r,e,i){return(0,Io.w)(function(o){return function eDe(n,r,e,i,o){return new tDe(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 rDe=(0,H.Z)(function n(){(0,F.Z)(this,n)});function iDe(n){return new oo.y(function(r){return r.error(n)})}var aDe=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.Z)(n,[{key:"recognize",value:function(){var e=this,i=pB(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 uB([],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 _re(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=mre(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=kre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,zne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,cn.Z)(l)),s):null}),(0,EEe.o)(function(s){return null!==s}),(0,Vne.d)(null),(0,Wne.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Ore(s);return function sDe(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(DG(u))return xre(o,a,s)?(0,qn.of)([]):(0,qn.of)(null);throw u}))}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a,s){var u,d,h,l=this;if(i.redirectTo||!Ere(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?Jne(a).parameters:{},C=Pre(o)+a.length,Z=new uB(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lre(i),td(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ire(o),C,Zre(i),C);h=(0,qn.of)({snapshot:Z,consumedSegments:[],remainingSegments:[]})}else h=Sre(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=Pre(o)+re.length;return{snapshot:new uB(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Lre(i),td(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Ire(o),Ke,Zre(i),Ke),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,Io.w)(function(z){var q,re;if(null===z)return(0,qn.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 lDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),st=pB(o,Se,Ce,Ke.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),Ae=st.segmentGroup,it=st.slicedSegments;if(0===it.length&&Ae.hasChildren())return l.processChildren(Ee,Ke,Ae).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}));if(0===Ke.length&&0===it.length)return(0,qn.of)([new dm(ae,[])]);var ft=td(i)===s;return l.processSegment(Ee,Ke,Ae,it,ft?hi:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}))}))}}]),n}();function Ore(n){var o,r=[],e=new Set,i=(0,An.Z)(n);try{var a=function(){var g=o.value;if(!function uDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(g))return r.push(g),1;var Z,C=r.find(function(z){return g.value.routeConfig===z.value.routeConfig});void 0!==C?((Z=C.children).push.apply(Z,(0,cn.Z)(g.children)),e.add(C)):r.push(g)};for(i.s();!(o=i.n()).done;)a()}catch(h){i.e(h)}finally{i.f()}var l,s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Ore(u.children);r.push(new dm(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Ire(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function Pre(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 Lre(n){return n.data||{}}function Zre(n){return n.resolve||{}}function dDe(n,r,e,i,o,a){return(0,_s.zg)(function(s){return function oDe(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 aDe(n,r,e,i,o,s,l,a).recognize().pipe((0,Io.w)(function(u){return null===u?iDe(new rDe):(0,qn.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 fDe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,hs.D)(o).pipe((0,P0.b)(function(s){return function pDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Nre(o)&&(a[cD]=o.title),function hDe(n,r,e,i){var o=function mDe(n){return[].concat((0,cn.Z)(Object.keys(n)),(0,cn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,hs.D)(o).pipe((0,_s.zg)(function(s){return function _De(n,r,e,i){var o,a=null!==(o=vD(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,h7.h)(1),(0,x1.h)(a),(0,ed.K)(function(s){return DG(s)?I0.E:(0,O0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=mre(n,e).resolve,o&&Nre(o)&&(n.data[cD]=o.title),null}))}(s.route,i,n,r)}),(0,aa.b)(function(){return a++}),(0,h7.h)(1),(0,_s.zg)(function(s){return a===o.length?(0,qn.of)(e):I0.E}))})}function Nre(n){return"string"==typeof n.title||null===n.title}function IG(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,qn.of)(r)})}var tk=function(){function n(){(0,F.Z)(this,n)}return(0,H.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[cD]}}]),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,F.Z)(this,e),(o=r.call(this)).title=i,o}return(0,H.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 gDe=(0,H.Z)(function n(){(0,F.Z)(this,n)}),vDe=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),yDe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(vDe),vB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),PG=new t.OlP("ROUTES"),Ag=function(){function n(r,e){(0,F.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,H.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,qn.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,eB.x)(function(){i.componentLoaders.delete(e)})),a=new Gne.c(o,function(){return new On.xQ}).pipe((0,Yne.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,qn.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=qne((d=u.create(e).injector).get(PG,[],t.XFs.Self|t.XFs.Optional));var C=h.map(xG);return{routes:C,injector:d}}),(0,eB.x)(function(){o.childrenLoaders.delete(i)})),l=new Gne.c(s,function(){return new On.xQ}).pipe((0,Yne.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,qn.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 CDe=(0,H.Z)(function n(){(0,F.Z)(this,n)}),wDe=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),yB=!1;function kDe(n){throw n}function TDe(n,r,e){return r.parse("/")}var MDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Fre(){var n,r,e=(0,t.f3M)(qw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(se.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(PG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(vB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(B0),h=(0,t.f3M)(tk,{optional:!0}),g=(0,t.f3M)(CDe,{optional:!0}),C=(0,t.f3M)(gDe,{optional:!0}),Z=new ur(null,e,i,o,a,s,qne(l));return g&&(Z.urlHandlingStrategy=g),C&&(Z.routeReuseStrategy=C),Z.titleStrategy=null!=h?h:d,function EDe(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,Z),Z}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,F.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=kDe,this.malformedUriErrorHandler=TDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new wDe,this.routeReuseStrategy=new yDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Ag),this.configLoader.onLoadEndListener=function(Z){return u.triggerEvent(new lxe(Z))},this.configLoader.onLoadStartListener=function(Z){return u.triggerEvent(new sxe(Z))},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 OEe(){return new R0(new vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=hre(this.currentUrlTree,this.rootComponentType),this.transitions=new Wi.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,H.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,qn.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 Ure(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,Io.w)(function(Ee){var Ke=i.transitions.getValue();return o.next(new lB(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ke!==i.transitions.getValue()?I0.E:Promise.resolve(Ee)}),nDe(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}),dDe(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 nxe(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 Z=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new lB(Z,i.serializeUrl(z),q,re);o.next(Se);var Ce=hre(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,qn.of)(a)}return i.rawUrlTree=u.rawUrl,u.resolve(null),I0.E}),(0,aa.b)(function(u){var d=new rxe(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:Exe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Bxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,aa.b)(function(u){if(a.guardsResult=u.guardsResult,Z0(u.guardsResult))throw vre(i.urlSerializer,u.guardsResult);var d=new ixe(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)}),IG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,aa.b)(function(d){var h=new oxe(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,qn.of)(d).pipe(fDe(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 axe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),IG(function(u){return(0,Y1.aj)(function h(g){var C,Z=[];(null===(C=g.routeConfig)||void 0===C?void 0:C.loadComponent)&&!g.routeConfig._loadedComponent&&Z.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;Z.push.apply(Z,(0,cn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return Z}(u.targetSnapshot.root)).pipe((0,Vne.d)(),(0,Ri.q)(1))}),IG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function _xe(n,r,e){var i=gD(n,r._root,e?e._root:void 0);return new pre(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 Sxe(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,eB.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,Cre(u)){bre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new _D(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),bre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),C={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Ure(a.source)};i.scheduleNavigation(g,"imperative",null,C,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var Z=new bG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(Z);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(xG),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)),JEe(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 xDe(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({},MDe):!1===i?Object.assign({},SDe):i,Z0(e))return Xne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Xne(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 Z,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),Z=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):Z=0;return this.setTransition({id:C,targetPageId:Z,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 _D(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 xDe(n){for(var r=0;r<n.length;r++){var e=n[r];if(null==e)throw new t.vHH(4008,yB)}}function Ure(n){return"imperative"!==n}ur.\u0275fac=function(r){t.$Z()},ur.\u0275prov=t.Yz7({token:ur,factory:function(){return Fre()},providedIn:"root"});var Wo=function(){function n(r,e,i,o,a){(0,F.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,H.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}();Wo.\u0275fac=function(r){return new(r||Wo)(t.Y36(ur),t.Y36(fr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Wo.\u0275dir=t.lG2({type:Wo,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 Gs=function(){function n(r,e,i){var o=this;(0,F.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,H.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}();Gs.\u0275fac=function(r){return new(r||Gs)(t.Y36(ur),t.Y36(fr),t.Y36(se.S$))},Gs.\u0275dir=t.lG2({type:Gs,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,F.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,H.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,qn.of)(this.links.changes,this.linksWithHrefs.changes,(0,qn.of)(null)).pipe((0,tB.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,tB.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 DDe(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(Wo,8),t.Y36(Gs,8))},nk.\u0275dir=t.lG2({type:nk,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Wo,5),t.Suo(i,Gs,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 Hre=(0,H.Z)(function n(){(0,F.Z)(this,n)}),kD=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"preload",value:function(e,i){return i().pipe((0,ed.K)(function(){return(0,qn.of)(null)}))}}]),n}();kD.\u0275fac=function(r){return new(r||kD)},kD.\u0275prov=t.Yz7({token:kD,factory:kD.\u0275fac,providedIn:"root"});var TD=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"preload",value:function(e,i){return(0,qn.of)(null)}}]),n}();TD.\u0275fac=function(r){return new(r||TD)},TD.\u0275prov=t.Yz7({token:TD,factory:TD.\u0275fac,providedIn:"root"});var rk=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.router=r,this.injector=i,this.preloadingStrategy=o,this.loader=a}return(0,H.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,C=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(C,null!==(s=h.children)&&void 0!==s?s:h._loadedRoutes))}}catch(Z){u.e(Z)}finally{u.f()}return(0,hs.D)(l).pipe((0,tB.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,qn.of)(null)).pipe((0,_s.zg)(function(u){var d;return null===u?(0,qn.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,tB.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(Hre),t.LFG(Ag))},rk.\u0275prov=t.Yz7({token:rk,factory:rk.\u0275fac,providedIn:"root"});var RG=new t.OlP(""),ik=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,F.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,H.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 lB?(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 dre&&(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 dre(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 jre(n){return n.routerState.root}function ok(n,r){return{"\u0275kind":n,"\u0275providers":r}}function LG(n){return[{provide:PG,multi:!0,useValue:n}]}function Gre(){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(zre);1===n.get(ZG)&&a.initialNavigation(),null===(e=n.get(Wre,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(RG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var zre=new t.OlP("",{factory:function(){return new On.xQ}}),ZG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function ADe(){return ok(2,[{provide:ZG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(se.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(zre);(function a(s){e.get(ur).events.pipe((0,$r.h)(function(u){return u instanceof Jd||u instanceof _D||u instanceof bG}),(0,$n.U)(function(u){return u instanceof Jd||!(!(u instanceof _D)||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,qn.of)(void 0):u},l.initialNavigation()})})}}}])}var Wre=new t.OlP("");function PDe(n){return ok(0,[{provide:Wre,useExisting:rk},{provide:Hre,useExisting:n}])}var Vre=new t.OlP("ROUTER_FORROOT_GUARD"),RDe=[se.Ye,{provide:qw,useClass:hG},{provide:ur,useFactory:Fre},Ep,{provide:fr,useFactory:jre,deps:[ur]},Ag];function LDe(){return new t.PXZ("Router",ur)}var F0=function(){function n(r){(0,F.Z)(this,n)}return(0,H.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[RDe,[],LG(e),{provide:Vre,useFactory:FDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:vB,useValue:i||{}},null!=i&&i.useHash?{provide:se.S$,useClass:se.Do}:{provide:se.S$,useClass:se.b0},{provide:RG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(se.EM),i=(0,t.f3M)(vB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new ik(r,e,i)}},null!=i&&i.preloadingStrategy?PDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:LDe},null!=i&&i.initialNavigation?UDe(i):[],[{provide:Yre,useFactory:Gre},{provide:t.tb,multi:!0,useExisting:Yre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[LG(e)]}}}]),n}();function FDe(n){return"guarded"}function UDe(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:ZG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ADe().\u0275providers:[]]}F0.\u0275fac=function(r){return new(r||F0)(t.LFG(Vre,8))},F0.\u0275mod=t.oAB({type:F0}),F0.\u0275inj=t.cJS({imports:[N0]});var Yre=new t.OlP("");new t.GfV("14.3.0");var wB=(0,H.Z)(function n(){(0,F.Z)(this,n)}),ho=m(2437),or=function(){function n(r){(0,F.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,H.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 wB;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 MD=(0,H.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,F.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),El=function(){function n(){(0,F.Z)(this,n),this.state=new Wi.X(new MD(!1))}return(0,H.Z)(n,[{key:"setError",value:function(e){this.state.next(new MD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new MD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new MD(!0))}},{key:"deactivate",value:function(){this.state.next(new MD(!1))}}]),n}();El.\u0275fac=function(r){return new(r||El)},El.\u0275prov=t.Yz7({token:El,factory:El.\u0275fac});var Kre=["mat-button",""],qre=["*"],zDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],WDe=(0,Gt.pj)((0,Gt.Id)((0,Gt.Kr)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}()))),dn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,F.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)(zDe);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,H.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}(WDe);dn.\u0275fac=function(r){return new(r||dn)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.QbO,8))},dn.\u0275cmp=t.Xpm({type:dn,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:Kre,ngContentSelectors:qre,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,F.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,H.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}(dn);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:Kre,ngContentSelectors:qre,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,H.Z)(function n(){(0,F.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 kB,H0=m(567);function SD(n){var r;return(null===(r=function YDe(){if(void 0===kB&&(kB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(kB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return kB}())||void 0===r?void 0:r.createHTML(n))||n}function Jre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Qre(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 Xre(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,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,F.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,H.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 Xre(o);var l=SD(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 Xre(i);var s=SD(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 Qre(e);var a=this._cachedIconsByUrl.get(o);return a?(0,qn.of)(TB(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 TB(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=$re(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._)(Jre(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,qn.of)(TB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return TB(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,qn.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,qn.of)(null)}))});return(0,H0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Jre(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,qn.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(SD("<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(SD("<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 KDe(){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 Qre(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 SD(g)}),(0,eB.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($re(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 JDe(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(se.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,se.K0;function TB(n){return n.cloneNode(!0)}function $re(n,r){return n+":"+r}function JDe(n){return!(!n.url||!n.options)}var QDe=(0,Gt.pj)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}()),XDe=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),$De=new t.OlP("mat-icon-location",{providedIn:"root",factory:function e2e(){var n=(0,t.f3M)(se.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var eie=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t2e=eie.map(function(n){return"[".concat(n,"]")}).join(", "),n2e=/^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,F.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,H.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(t2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){eie.forEach(function(g){var C=a[h],Z=C.getAttribute(g),z=Z?Z.match(n2e):null;if(z){var q=s.get(C);q||(q=[],s.set(C,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}(QDe);Dn.\u0275fac=function(r){return new(r||Dn)(t.Y36(t.SBq),t.Y36(xp),t.$8M("aria-hidden"),t.Y36($De),t.Y36(t.qLn),t.Y36(XDe,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,H.Z)(function n(){(0,F.Z)(this,n)});function r2e(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 i2e(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 a2e=(0,Gt.pj)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}(),"primary"),s2e=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function l2e(){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,F.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 C=e._diameters;return g._spinnerAnimationLabel=g._getSpinnerAnimationLabel(),C.has(a.head)||C.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,H.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}(a2e);ou._diameters=new WeakMap,ou.\u0275fac=function(r){return new(r||ou)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(se.K0,8),t.Y36(t.QbO,8),t.Y36(s2e),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,r2e,1,11,"circle",2),t.YNc(3,i2e,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:[se.RF,se.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,H.Z)(function n(){(0,F.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275mod=t.oAB({type:ak}),ak.\u0275inj=t.cJS({imports:[Gt.BQ,se.ez,Gt.BQ]});var nd=m(5113),ao=m(7429),c2e=["tooltip"],tie="tooltip-panel",nie=(0,bi.i$)({passive:!0});var rie=new t.OlP("mat-tooltip-scroll-strategy");var h2e={provide:rie,deps:[Li.aV],useFactory:function p2e(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},m2e=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function _2e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var MB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z=this;(0,F.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=C,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),h.change.pipe((0,Ir.R)(this._destroyed)).subscribe(function(){Z._overlayRef&&Z._updatePosition(Z._overlayRef)})}return(0,H.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,nie)}),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(tie),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(tie,"-");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,nie)})}},{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}();MB.\u0275fac=function(r){t.$Z()},MB.\u0275dir=t.lG2({type:MB,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,C,Z,z){var q;return(0,F.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,C,Z,z))._tooltipComponent=xD,q}return(0,H.Z)(e)}(MB);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(rie),t.Y36(nl.Is,8),t.Y36(m2e,8),t.Y36(se.K0))},mi.\u0275dir=t.lG2({type:mi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var ED=function(){function n(r,e){(0,F.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new On.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,H.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}();ED.\u0275fac=function(r){return new(r||ED)(t.Y36(t.sBO),t.Y36(t.QbO,8))},ED.\u0275dir=t.lG2({type:ED});var xD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.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,H.Z)(e)}(ED);xD.\u0275fac=function(r){return new(r||xD)(t.Y36(t.sBO),t.Y36(nd.Yg),t.Y36(t.QbO,8))},xD.\u0275cmp=t.Xpm({type:xD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(c2e,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:[se.mk,se.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,H.Z)(function n(){(0,F.Z)(this,n)});G0.\u0275fac=function(r){return new(r||G0)},G0.\u0275mod=t.oAB({type:G0}),G0.\u0275inj=t.cJS({providers:[h2e],imports:[Yr.rt,se.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 g2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function v2e(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 y2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,g2e,2,0,"div",2),t.YNc(2,v2e,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,F.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,H.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,y2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[se.O5,Wo,dn,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 DD=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,H.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}();DD.\u0275fac=function(r){return new(r||DD)(t.Y36(ur),t.Y36(or),t.Y36(El),t.Y36(se.K0))},DD.\u0275cmp=t.Xpm({type:DD,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,F.Z)(this,n),this.dataChange=new Wi.X([])}return(0,H.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 G2e(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 z2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var jG=new t.OlP("MatSnackBarData"),SB=(0,H.Z)(function n(){(0,F.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),W2e=Math.pow(2,31)-1,EB=function(){function n(r,e){var i=this;(0,F.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,H.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,W2e))}},{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}(),OD=function(){function n(r,e){(0,F.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,H.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();OD.\u0275fac=function(r){return new(r||OD)(t.Y36(EB),t.Y36(jG))},OD.\u0275cmp=t.Xpm({type:OD,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,G2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[se.O5,dn],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 V2e={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})))])},ID=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.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,H.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);ID.\u0275fac=function(r){return new(r||ID)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bi.t4),t.Y36(SB))},ID.\u0275dir=t.lG2({type:ID,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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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}(ID);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,z2e,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:[V2e.snackBarState]}});var W0=(0,H.Z)(function n(){(0,F.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,se.ez,pm,Gt.BQ,Gt.BQ]});var oie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function Y2e(){return new SB}});var V0=function(){function n(r,e,i,o,a,s){(0,F.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,H.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:SB,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 SB),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new EB(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),C=l.attachComponentPortal(g);u.instance=C.instance}return this._breakpointObserver.observe(nd.u3.HandsetPortrait).pipe((0,Ir.R)(s.detachments())).subscribe(function(Z){s.overlayElement.classList.toggle(o.handsetCssClass,Z.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:EB,useValue:i},{provide:jG,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(oie))},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,F.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=OD,d.snackBarContainerComponent=sk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,H.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(oie))},rd.\u0275prov=t.Yz7({token:rd,factory:rd.\u0275fac,providedIn:W0});var Zn=function(){function n(r,e){(0,F.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,H.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),K2e=["*",[["mat-card-footer"]]],J2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],X2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Y0=(0,H.Z)(function n(){(0,F.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,H.Z)(function n(){(0,F.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,H.Z)(function n(){(0,F.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 PD=(0,H.Z)(function n(){(0,F.Z)(this,n),this.align="start"});PD.\u0275fac=function(r){return new(r||PD)},PD.\u0275dir=t.lG2({type:PD,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 xB=(0,H.Z)(function n(){(0,F.Z)(this,n)});xB.\u0275fac=function(r){return new(r||xB)},xB.\u0275dir=t.lG2({type:xB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var DB=(0,H.Z)(function n(){(0,F.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var AB=(0,H.Z)(function n(){(0,F.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var OB=(0,H.Z)(function n(){(0,F.Z)(this,n)});OB.\u0275fac=function(r){return new(r||OB)},OB.\u0275dir=t.lG2({type:OB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var IB=(0,H.Z)(function n(){(0,F.Z)(this,n)});IB.\u0275fac=function(r){return new(r||IB)},IB.\u0275dir=t.lG2({type:IB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var PB=(0,H.Z)(function n(){(0,F.Z)(this,n)});PB.\u0275fac=function(r){return new(r||PB)},PB.\u0275dir=t.lG2({type:PB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var RB=(0,H.Z)(function n(){(0,F.Z)(this,n)});RB.\u0275fac=function(r){return new(r||RB)},RB.\u0275dir=t.lG2({type:RB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var di=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._animationMode=r});di.\u0275fac=function(r){return new(r||di)(t.Y36(t.QbO,8))},di.\u0275cmp=t.Xpm({type:di,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(K2e),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 LB=(0,H.Z)(function n(){(0,F.Z)(this,n)});LB.\u0275fac=function(r){return new(r||LB)},LB.\u0275cmp=t.Xpm({type:LB,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(J2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ZB=(0,H.Z)(function n(){(0,F.Z)(this,n)});ZB.\u0275fac=function(r){return new(r||ZB)},ZB.\u0275cmp=t.Xpm({type:ZB,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(X2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ck=(0,H.Z)(function n(){(0,F.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 eAe=m(7568),aie=(0,bi.i$)({passive:!0}),K0=function(){function n(r,e){(0,F.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,H.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,aie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,aie)}}),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 NB=function(){function n(r,e){(0,F.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,H.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}();NB.\u0275fac=function(r){return new(r||NB)(t.Y36(t.SBq),t.Y36(K0))},NB.\u0275dir=t.lG2({type:NB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var BB=function(){function n(r,e,i,o){var a=this;(0,F.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,H.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,eAe.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}();BB.\u0275fac=function(r){return new(r||BB)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(se.K0,8))},BB.\u0275dir=t.lG2({type:BB,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,H.Z)(function n(){(0,F.Z)(this,n)});q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275mod=t.oAB({type:q0}),q0.\u0275inj=t.cJS({});var tAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),nAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],rAe=0,iAe=(0,Gt.FD)(function(){return(0,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),Kn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;(0,F.Z)(this,e),(Z=r.call(this,u,s,l,a))._elementRef=i,Z._platform=o,Z._autofillMonitor=h,Z._formField=C,Z._uid="mat-input-".concat(rAe++),Z.focused=!1,Z.stateChanges=new On.xQ,Z.controlType="mat-input",Z.autofilled=!1,Z._disabled=!1,Z._type="text",Z._readonly=!1,Z._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,bi.qK)().has(re)}),Z._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=Z._elementRef.nativeElement,q=z.nodeName.toLowerCase();return Z._inputValueAccessor=d||z,Z._previousNativeValue=Z.value,Z.id=Z.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",Z._iOSKeyupListener)}),Z._isServer=!Z._platform.isBrowser,Z._isNativeSelect="select"===q,Z._isTextarea="textarea"===q,Z._isInFormField=!!C,Z._isNativeSelect&&(Z.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),Z}return(0,H.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(){nAe.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}(iAe);Kn.\u0275fac=function(r){return new(r||Kn)(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(tAe,10),t.Y36(K0),t.Y36(t.R0b),t.Y36(kn.G_,8))},Kn.\u0275dir=t.lG2({type:Kn,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:Kn}]),t.qOj,t.TTD]});var dk=(0,H.Z)(function n(){(0,F.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 ri=m(4107);function oAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function aAe(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 sAe(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 RD=function(){function n(r,e,i,o,a){(0,F.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,H.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 wB;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}();RD.\u0275fac=function(r){return new(r||RD)(t.Y36(or),t.Y36(Dp),t.Y36(fr),t.Y36(ur),t.Y36(Zn))},RD.\u0275cmp=t.Xpm({type:RD,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,oAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,aAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,sAe,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,di,Kn,ri.gD,Gt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var hm=m(4834),GG=["*"],sie='.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}}',lAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],cAe=["text"];function dAe(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 fAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],lie=(0,Gt.Id)((0,Gt.Kr)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}())),hAe=(0,Gt.Kr)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}()),uie=new t.OlP("MatList"),cie=new t.OlP("MatNavList"),zs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new On.xQ,i}return(0,H.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(lie);zs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zs)))(e||zs)}}(),zs.\u0275cmp=t.Xpm({type:zs,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:cie,useExisting:zs}]),t.qOj,t.TTD],ngContentSelectors:GG,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,F.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,H.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}(lie);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:uie,useExisting:mm}]),t.qOj,t.TTD],ngContentSelectors:GG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[sie],encapsulation:2,changeDetection:0});var fk=(0,H.Z)(function n(){(0,F.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,H.Z)(function n(){(0,F.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 FB=(0,H.Z)(function n(){(0,F.Z)(this,n)});FB.\u0275fac=function(r){return new(r||FB)},FB.\u0275dir=t.lG2({type:FB,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,F.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,H.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}(hAe);Oa.\u0275fac=function(r){return new(r||Oa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(cie,8),t.Y36(uie,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(lAe),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 mAe=(0,Gt.Kr)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}()),_Ae=(0,Gt.Kr)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}()),gAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return hk}),multi:!0},vAe=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.source=r,this.options=e}),LD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.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,H.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}(_Ae);LD.\u0275fac=function(r){return new(r||LD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return hk})))},LD.\u0275cmp=t.Xpm({type:LD,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(cAe,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(fAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,dAe,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,se.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,F.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,H.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(C){s.e(C)}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(C){d.e(C)}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 vAe(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}(mAe);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,LD,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([gAe]),t.qOj,t.TTD],ngContentSelectors:GG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[sie],encapsulation:2,changeDetection:0});var mk=(0,H.Z)(function n(){(0,F.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,se.ez,Gt.uc,Gt.BQ,Gt.us,hm.t]});var yAe=0,zG=new t.OlP("CdkAccordion"),_k=function(){function n(){(0,F.Z)(this,n),this._stateChanges=new On.xQ,this._openCloseAllActions=new On.xQ,this.id="cdk-accordion-".concat(yAe++),this._multi=!1}return(0,H.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:zG,useExisting:_k}]),t.TTD]});var bAe=0,ZD=function(){function n(r,e,i){var o=this;(0,F.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(bAe++),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,H.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}();ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(zG,12),t.Y36(t.sBO),t.Y36(Si.A8))},ZD.\u0275dir=t.lG2({type:ZD,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:zG,useValue:void 0}])]});var J0=(0,H.Z)(function n(){(0,F.Z)(this,n)});J0.\u0275fac=function(r){return new(r||J0)},J0.\u0275mod=t.oAB({type:J0}),J0.\u0275inj=t.cJS({});var CAe=["body"];function wAe(n,r){}var kAe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function MAe(n,r){if(1&n&&t._UZ(0,"span",2),2&n){var e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}var SAe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],WG=new t.OlP("MAT_ACCORDION"),die="225ms cubic-bezier(0.4,0.0,0.2,1)",fie={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)(die))]),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)(die))])},pie=new t.OlP("MAT_EXPANSION_PANEL"),ND=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this._template=r,this._expansionPanel=e});ND.\u0275fac=function(r){return new(r||ND)(t.Y36(t.Rgc),t.Y36(pie,8))},ND.\u0275dir=t.lG2({type:ND,selectors:[["ng-template","matExpansionPanelContent",""]]});var xAe=0,hie=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,F.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(xAe++),h._bodyAnimationDone=new On.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,ts.x)(function(g,C){return g.fromState===C.fromState&&g.toState===C.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,H.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}(ZD);xl.\u0275fac=function(r){return new(r||xl)(t.Y36(WG,12),t.Y36(t.sBO),t.Y36(Si.A8),t.Y36(t.s_b),t.Y36(se.K0),t.Y36(t.QbO,8),t.Y36(hie,8))},xl.\u0275cmp=t.Xpm({type:xl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,ND,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(CAe,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:WG,useValue:void 0},{provide:pie,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(kAe),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,wAe,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:[fie.bodyExpansion]},changeDetection:0});var UB=(0,H.Z)(function n(){(0,F.Z)(this,n)});UB.\u0275fac=function(r){return new(r||UB)},UB.\u0275dir=t.lG2({type:UB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var DAe=(0,H.Z)(function n(){(0,F.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,F.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(C){return!(!C.hideToggle&&!C.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(C){return!!(C.hideToggle||C.disabled||C.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,H.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)(DAe));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(hie,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(SAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,MAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[se.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:[fie.indicatorRotate]},changeDetection:0});var BD=(0,H.Z)(function n(){(0,F.Z)(this,n)});BD.\u0275fac=function(r){return new(r||BD)},BD.\u0275dir=t.lG2({type:BD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Uu=(0,H.Z)(function n(){(0,F.Z)(this,n)});Uu.\u0275fac=function(r){return new(r||Uu)},Uu.\u0275dir=t.lG2({type:Uu,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,F.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,H.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:WG,useExisting:Dl}]),t.qOj]});var gk=(0,H.Z)(function n(){(0,F.Z)(this,n)});gk.\u0275fac=function(r){return new(r||gk)},gk.\u0275mod=t.oAB({type:gk}),gk.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,J0,ao.eL]});var FD=function(){function n(r){(0,F.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,H.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}();FD.\u0275fac=function(r){return new(r||FD)(t.Y36(fc.eN))},FD.\u0275cmp=t.Xpm({type:FD,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:[dn,mm,Oa,Dl,xl,au,Uu],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,F.Z)(this,n),this.electronService=r}return(0,H.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,F.Z)(this,n),this.platformService=r}return(0,H.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,F.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,H.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 OAe=[[["caption"]],[["colgroup"],["col"]]];function PAe(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 RAe(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 UD=(0,H.Z)(function n(){(0,F.Z)(this,n)});UD.\u0275fac=function(r){return new(r||UD)},UD.\u0275dir=t.lG2({type:UD,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,F.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,H.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:bE,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(OAe),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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,H.Z)(e)}(Iu);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:Iu,useExisting:rb}]),t.qOj]});var yk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,PAe,2,3,"th",1),t.YNc(2,RAe,2,3,"td",2),t.BQk())},dependencies:[wo,mo,Co,Ro,Lo],encapsulation:2});var bk=(0,H.Z)(function n(){(0,F.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 LAe=9007199254740991,ZAe=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,F.Z)(this,e),(i=r.call(this))._renderData=new Wi.X([]),i._filter=new Wi.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<LAe?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),C=i.sortingDataAccessor(h,l),Z=typeof g,z=typeof C;Z!==z&&("number"===Z&&(g+=""),"number"===z&&(C+=""));var q=0;return null!=g&&null!=C?g>C?q=1:g<C&&(q=-1):null!=g?q=1:null!=C&&(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 Wi.X(o),i._updateChangeSubscription(),i}return(0,H.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,qn.of)(null),l=this._paginator?(0,Gi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,qn.of)(null),u=this._data,d=(0,Y1.aj)([u,this._filter]).pipe((0,$n.U)(function(C){var z=(0,Yn.Z)(C,1)[0];return o._filterData(z)})),h=(0,Y1.aj)([d,s]).pipe((0,$n.U)(function(C){var z=(0,Yn.Z)(C,1)[0];return o._orderData(z)})),g=(0,Y1.aj)([h,l]).pipe((0,$n.U)(function(C){var z=(0,Yn.Z)(C,1)[0];return o._pageData(z)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=g.subscribe(function(C){return o._renderData.next(C)})}},{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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(ZAe);function NAe(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 HD=function(){function n(r){(0,F.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,H.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}();HD.\u0275fac=function(r){return new(r||HD)(t.Y36(ul))},HD.\u0275cmp=t.Xpm({type:HD,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,NAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[se.O5,dn]});var wc=m(4068),BAe=function(r,e){return{hidden:r,lightTheme:e}},FAe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,Ck=function(){function n(r,e,i){(0,F.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,H.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=FAe.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 UAe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function HAe(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 jAe(n,r){1&n&&(t.ynx(0),t._UZ(1,"app-adbutler",14),t.BQk())}function GAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,HAe,2,1,"ng-container",13),t.YNc(2,jAe,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 zAe(n,r){1&n&&t._UZ(0,"mat-header-cell")}function WAe(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 VAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",15),t.YNc(1,WAe,1,1,"app-install-software",16),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type)}}function YAe(n,r){1&n&&t._UZ(0,"mat-header-row")}function KAe(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(se.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,BAe,!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:[se.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 jD=function(){function n(r,e){(0,F.Z)(this,n),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){this.dataSource=new qAe(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),n}();jD.\u0275fac=function(r){return new(r||jD)(t.Y36($0),t.Y36(t.sBO))},jD.\u0275cmp=t.Xpm({type:jD,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,UAe,2,0,"mat-header-cell",7),t.YNc(10,GAe,3,2,"mat-cell",8),t.BQk(),t.ynx(11,9),t.YNc(12,zAe,1,0,"mat-header-cell",7),t.YNc(13,VAe,2,1,"mat-cell",10),t.BQk(),t.YNc(14,YAe,1,0,"mat-header-row",11),t.YNc(15,KAe,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:[se.O5,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,HD,Ck]});var qAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new Wi.X([]),o}return(0,H.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,F.Z)(this,n),this.httpController=r,this.controller_id=""}return(0,H.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,F.Z)(this,n),this.httpController=r}return(0,H.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 HB=m(7144),JAe=["input"],QAe=["label"],XAe=function(r){return{enterDuration:r}},eOe=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:mie});function mie(){return{color:"accent",clickAction:"check-indeterminate"}}var tOe=0,_ie={color:"accent",clickAction:"check-indeterminate"},nOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ti}),multi:!0},rOe=(0,H.Z)(function n(){(0,F.Z)(this,n)}),iOe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,H.Z)(function n(r){(0,F.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){var h;return(0,F.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||_ie,h.color=h.defaultColor=h._options.color||_ie.color,h.tabIndex=parseInt(l)||0,h.id=h._uniqueId="".concat(i).concat(++tOe),h}return(0,H.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}(iOe);jB.\u0275fac=function(r){t.$Z()},jB.\u0275dir=t.lG2({type:jB,viewQuery:function(r,e){var i;(1&r&&(t.Gf(JAe,5),t.Gf(QAe,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,F.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,H.Z)(e,[{key:"_createChangeEvent",value:function(o){var a=new rOe;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}(jB);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(eOe,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([nOe]),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,XAe,"NoopAnimations"===e._animationMode?0:150))}},dependencies:[Gt.wG,HB.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 oOe={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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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([oOe]),t.qOj]});var ib=(0,H.Z)(function n(){(0,F.Z)(this,n)});ib.\u0275fac=function(r){return new(r||ib)},ib.\u0275mod=t.oAB({type:ib}),ib.\u0275inj=t.cJS({});var ob=(0,H.Z)(function n(){(0,F.Z)(this,n)});function aOe(n,r){1&n&&t._UZ(0,"mat-icon",15)}function sOe(n,r){1&n&&t._UZ(0,"mat-icon",16)}function lOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter username"),t.qZA())}function uOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter password"),t.qZA())}function cOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Authentication was unsuccessful"),t.qZA())}function dOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"The default username and password is admin"),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,HB.Q8,ib,Gt.BQ,ib]});var GD=function(){function n(r,e,i,o,a,s,l,u){(0,F.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.isRememberMeChecked=!1,this.loginForm=new J.nJ({username:new J.p4("",[J.kI.required]),password:new J.p4("",[J.kI.required])})}return(0,H.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.isRememberMeChecked=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.isRememberMeChecked=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}();GD.\u0275fac=function(r){return new(r||GD)(t.Y36(_m),t.Y36(or),t.Y36(Dp),t.Y36(fr),t.Y36(ur),t.Y36(Zn),t.Y36(gm),t.Y36(wc.f))},GD.\u0275cmp=t.Xpm({type:GD,selectors:[["app-login"]],decls:28,vars:10,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,aOe,1,0,"mat-icon",5),t.YNc(6,sOe,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,lOe,2,0,"mat-error",9),t.qZA(),t.TgZ(16,"mat-form-field"),t._UZ(17,"input",10),t.YNc(18,uOe,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,cOe,2,0,"mat-error",9),t.qZA(),t.TgZ(26,"div",14),t.YNc(27,dOe,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.isRememberMeChecked),t.xp6(6),t.Q6J("ngIf",e.loginError),t.xp6(2),t.Q6J("ngIf",e.loginError))},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,di,Dn,Kn,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 zD=(0,H.Z)(function n(){(0,F.Z)(this,n)});zD.\u0275fac=function(r){return new(r||zD)},zD.\u0275cmp=t.Xpm({type:zD,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:[Wo,dn],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var WD=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.controllerId=""}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();WD.\u0275fac=function(r){return new(r||WD)(t.Y36(fr))},WD.\u0275cmp=t.Xpm({type:WD,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:[Wo,dn,Dn,zs,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 GB,fOe=new Uint8Array(16);function pOe(){if(!GB&&!(GB="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 GB(fOe)}var hOe=/^(?:[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 _Oe=function mOe(n){return"string"==typeof n&&hOe.test(n)},dl=[],VG=0;VG<256;++VG)dl.push((VG+256).toString(16).substr(1));var vOe=function gOe(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(!_Oe(e))throw TypeError("Stringified UUID is invalid");return e};var ns=function yOe(n,r,e){var i=(n=n||{}).random||(n.rng||pOe)();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 vOe(i)},su=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.Z)(this,n)}return(0,H.Z)(n,[{key:"getQemuTemplate",value:function(){return(0,qn.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,qn.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,qn.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,qn.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,qn.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,qn.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,qn.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,qn.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,qn.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,qn.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,qn.of)([])}}]),n}();Al.\u0275fac=function(r){return new(r||Al)},Al.\u0275prov=t.Yz7({token:Al,factory:Al.\u0275fac});var Qd=m(5542),bOe=["input"],COe=function(r){return{enterDuration:r}},kOe=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function TOe(){return{color:"accent"}}});var gie=0,MOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return rs}),multi:!0},vie=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.source=r,this.value=e}),yie=new t.OlP("MatRadioGroup"),VD=function(){function n(r){(0,F.Z)(this,n),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(gie++),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,H.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 vie(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}();VD.\u0275fac=function(r){return new(r||VD)(t.Y36(t.sBO))},VD.\u0275dir=t.lG2({type:VD,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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(VD);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,Ws,5),2&r)&&(t.iGM(o=t.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([MOe,{provide:yie,useExisting:rs}]),t.qOj]});var SOe=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r}),zB=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,F.Z)(this,e),(g=r.call(this,o))._changeDetector=a,g._focusMonitor=s,g._radioDispatcher=l,g._providerOverride=d,g._uniqueId="mat-radio-".concat(++gie),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(C,Z){C!==g.id&&Z===g.name&&(g.checked=!1)}),g}return(0,H.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 vie(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)(SOe)));zB.\u0275fac=function(r){t.$Z()},zB.\u0275dir=t.lG2({type:zB,viewQuery:function(r,e){var i;(1&r&&t.Gf(bOe,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 Ws=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,F.Z)(this,e),r.call(this,i,o,a,s,l,u,d,h)}return(0,H.Z)(e)}(zB);Ws.\u0275fac=function(r){return new(r||Ws)(t.Y36(yie,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(Si.A8),t.Y36(t.QbO,8),t.Y36(kOe,8),t.$8M("tabindex"))},Ws.\u0275cmp=t.Xpm({type:Ws,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,COe,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,H.Z)(function n(){(0,F.Z)(this,n)});function xOe(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 YD=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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}();YD.\u0275fac=function(r){return new(r||YD)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},YD.\u0275cmp=t.Xpm({type:YD,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,xOe,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],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,F.Z)(this,n)}return(0,H.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 DOe=m(5154),Op=function(){function n(r){(0,F.Z)(this,n),this.httpController=r,this.symbols=new Wi.X([]),this.maximumSymbolSize=80}return(0,H.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,DOe.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 KD=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();KD.\u0275fac=function(r){return new(r||KD)},KD.\u0275pipe=t.Yjl({name:"filenamefilter",type:KD,pure:!0});var OOe=function(r){return{buttonSelected:r}},IOe=function(r){return{imageSelected:r}};function POe(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,OOe,o.isSelected===i.symbol_id)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,IOe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),t.LSH)}}var ROe=function(){return{standalone:!0}},Tk=function(){function n(r){(0,F.Z)(this,n),this.symbolService=r,this.symbolChanged=new t.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,H.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,POe,3,7,"div",11),t.ALo(19,"filenamefilter"),t.qZA()}2&r&&(t.xp6(16),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(6,ROe)),t.xp6(2),t.Q6J("ngForOf",t.xi3(19,3,e.filteredSymbols,e.searchText)))},dependencies:[se.mk,se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,dn,Dn,Kn,rs,Ws,KD],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 Hu=function(){function n(){(0,F.Z)(this,n),this.symbolChangedEmitter=new t.vpe,this.chosenSymbol=""}return(0,H.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 LOe(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 ZOe(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 NOe(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 BOe(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 FOe(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 UOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Name "),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.name," ")}}function jOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Local 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.rport," ")}}function zOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Type "),t.qZA())}function WOe(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 VOe(n,r){1&n&&(t.TgZ(0,"th",43),t._uU(1," Remote port "),t.qZA())}function YOe(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 KOe(n,r){1&n&&t._UZ(0,"tr",45)}function qOe(n,r){1&n&&t._UZ(0,"tr",46)}function JOe(n,r){if(1&n&&(t.TgZ(0,"table",34),t.ynx(1,35),t.YNc(2,UOe,2,0,"th",36),t.YNc(3,HOe,2,1,"td",37),t.BQk(),t.ynx(4,38),t.YNc(5,jOe,2,0,"th",36),t.YNc(6,GOe,2,1,"td",37),t.BQk(),t.ynx(7,39),t.YNc(8,zOe,2,0,"th",36),t.YNc(9,WOe,2,1,"td",37),t.BQk(),t.ynx(10,40),t.YNc(11,VOe,2,0,"th",36),t.YNc(12,YOe,2,1,"td",37),t.BQk(),t.YNc(13,KOe,1,0,"tr",41),t.YNc(14,qOe,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 QOe(n,r){1&n&&t._UZ(0,"br")}Hu.\u0275fac=function(r){return new(r||Hu)},Hu.\u0275cmp=t.Xpm({type:Hu,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:[dn,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 XOe=function(){return{standalone:!0}};function $Oe(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,LOe,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,ZOe,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,NOe,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,BOe,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,FOe,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,JOe,15,3,"table",23),t.YNc(52,QOe,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,XOe))("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 eIe(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 tIe=function(r){return{shadowed:r}},qD=function(){function n(r,e,i,o,a,s){(0,F.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,H.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 nIe(n,r){}qD.\u0275fac=function(r){return new(r||qD)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(kc),t.Y36(ur))},qD.\u0275cmp=t.Xpm({type:qD,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,$Oe,75,24,"div",4),t.qZA(),t.YNc(6,eIe,1,2,"app-symbols-menu",5),t.qZA()),2&r&&(t.Q6J("ngClass",t.VKq(3,tIe,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.cloudNodeTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},dependencies:[se.mk,se.sg,se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu],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 JD=(0,H.Z)(function n(){(0,F.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,F.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(C){g._portalOutlet.hasAttached();var Z=g._portalOutlet.attachDomPortal(C);return g._contentAttached(),Z},g._ariaLabelledBy=g._config.ariaLabelledBy||null,g._document=a,g}return(0,H.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(se.K0,8),t.Y36(JD),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,nIe,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 YG=function(){function n(r,e){var i=this;(0,F.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,H.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}(),bie=new t.OlP("DialogScrollStrategy"),Cie=new t.OlP("DialogData"),rIe=new t.OlP("DefaultDialogConfig");var oIe={provide:bie,deps:[Li.aV],useFactory:function iIe(n){return function(){return n.scrollStrategies.block()}}},aIe=0,vm=function(){function n(r,e,i,o,a,s){var l=this;(0,F.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,uD.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,Oo.O)(void 0))}),this._scrollStrategy=s}return(0,H.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 JD;(i=Object.assign(Object.assign({},a),i)).id=i.id||"cdk-dialog-".concat(aIe++),i.id&&this.getDialogById(i.id);var s=this._getOverlayConfig(i),l=this._overlay.create(s),u=new YG(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(){KG(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;KG(this._openDialogsAtThisLevel,function(i){!1===i.config.closeOnDestroy&&e._removeOpenDialog(i,!1)}),KG(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:JD,useValue:o},{provide:YG,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:Cie,useValue:e.data},{provide:YG,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,qn.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 KG(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(rIe,8),t.LFG(vm,12),t.LFG(Li.Xj),t.LFG(bie))},vm.\u0275prov=t.Yz7({token:vm,factory:vm.\u0275fac});var sb=(0,H.Z)(function n(){(0,F.Z)(this,n)});function sIe(n,r){}sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275mod=t.oAB({type:sb}),sb.\u0275inj=t.cJS({providers:[vm,oIe],imports:[Li.U8,ao.eL,Yr.rt,ao.eL]});var Mk={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},lIe={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)])},WB=(0,H.Z)(function n(){(0,F.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}),QD=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,F.Z)(this,e),(g=r.call(this,i,o,a,s,l,u,d,h))._animationStateChanged=new t.vpe,g}return(0,H.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);QD.\u0275fac=function(r){return new(r||QD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(WB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(Yr.tE))},QD.\u0275cmp=t.Xpm({type:QD,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(r,e){},encapsulation:2});var XD=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 C;return(0,F.Z)(this,e),(C=r.call(this,i,o,a,s,l,u,d,g))._changeDetectorRef=h,C._state="enter",C}return(0,H.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}(QD);XD.\u0275fac=function(r){return new(r||XD)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(WB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(t.sBO),t.Y36(Yr.tE))},XD.\u0275cmp=t.Xpm({type:XD,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,sIe,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:[lIe.dialogContainer]}});var cr=function(){function n(r,e,i){var o=this;(0,F.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(),wie(o,"keydown"===a.type?"keyboard":"mouse"))})}return(0,H.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 wie(n,r,e){return n._closeInteractionType=r,n.close(e)}var ko=new t.OlP("MatDialogData"),uIe=new t.OlP("mat-dialog-default-options"),kie=new t.OlP("mat-dialog-scroll-strategy");var dIe={provide:kie,deps:[Li.aV],useFactory:function cIe(n){return function(){return n.scrollStrategies.block()}}},fIe=0,$D=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,F.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,uD.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,H.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 WB),i)).id=i.id||"".concat(this._idPrefix).concat(fIe++),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:WB,useValue:i},{provide:JD,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}();$D.\u0275fac=function(r){t.$Z()},$D.\u0275prov=t.Yz7({token:$D,factory:$D.\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,F.Z)(this,e),r.call(this,i,o,s,u,d,l,cr,XD,ko,h)}return(0,H.Z)(e)}($D);Gr.\u0275fac=function(r){return new(r||Gr)(t.LFG(Li.aV),t.LFG(t.zs3),t.LFG(se.Ye,8),t.LFG(uIe,8),t.LFG(kie),t.LFG(Gr,12),t.LFG(Li.Xj),t.LFG(t.QbO,8))},Gr.\u0275prov=t.Yz7({token:Gr,factory:Gr.\u0275fac});var pIe=0,Ig=function(){function n(r,e,i){(0,F.Z)(this,n),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Tie(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){wie(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 yr=function(){function n(r,e,i){(0,F.Z)(this,n),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(pIe++)}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Tie(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),n}();yr.\u0275fac=function(r){return new(r||yr)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(Gr))},yr.\u0275dir=t.lG2({type:yr,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 lu=(0,H.Z)(function n(){(0,F.Z)(this,n)});lu.\u0275fac=function(r){return new(r||lu)},lu.\u0275dir=t.lG2({type:lu,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var dr=(0,H.Z)(function n(){(0,F.Z)(this,n),this.align="start"});function Tie(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}dr.\u0275fac=function(r){return new(r||dr)},dr.\u0275dir=t.lG2({type:dr,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,H.Z)(function n(){(0,F.Z)(this,n)});Sk.\u0275fac=function(r){return new(r||Sk)},Sk.\u0275mod=t.oAB({type:Sk}),Sk.\u0275inj=t.cJS({providers:[Gr,dIe],imports:[sb,Li.U8,ao.eL,Gt.BQ,Gt.BQ]});var e2=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();e2.\u0275fac=function(r){return new(r||e2)(t.Y36(cr),t.Y36(ko))},e2.\u0275cmp=t.Xpm({type:e2,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:[dn,yr,lu,dr],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var Xd=function(){function n(r){(0,F.Z)(this,n),this.httpController=r,this.newTemplateCreated=new On.xQ}return(0,H.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,F.Z)(this,n),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new t.vpe}return(0,H.Z)(n,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(e2,{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 Mie=m(9931),qG=m(943);function mIe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}var Sie=["*"];function _Ie(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 VB={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)")])])},Eie=(VB.fadeInItems,VB.transformMenu,new t.OlP("MatMenuContent")),t2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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}();t2.\u0275fac=function(r){return new(r||t2)(t.Y36(t.Rgc),t.Y36(t._Vd),t.Y36(t.z2F),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(se.K0),t.Y36(t.sBO))},t2.\u0275dir=t.lG2({type:t2});var Ek=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(t2);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:Eie,useExisting:Ek}]),t.qOj]});var JG=new t.OlP("MAT_MENU_PANEL"),gIe=(0,Gt.Kr)((0,Gt.Id)(function(){return(0,H.Z)(function n(){(0,F.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,F.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,lD.Z)(u)),u}return(0,H.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}(gIe);Er.\u0275fac=function(r){return new(r||Er)(t.Y36(t.SBq),t.Y36(se.K0),t.Y36(Yr.tE),t.Y36(JG,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:Sie,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,mIe,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:[se.O5,Gt.wG],encapsulation:2,changeDetection:0});var xie=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function vIe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var yIe=0,ym=function(){function n(r,e,i,o){(0,F.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(yIe++)}return(0,H.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(xie),t.Y36(t.sBO))},ym.\u0275dir=t.lG2({type:ym,contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Eie,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,F.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,H.Z)(e)}(ym);Ga.\u0275fac=function(r){return new(r||Ga)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(xie),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:JG,useExisting:Ga}]),t.qOj],ngContentSelectors:Sie,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,_Ie,3,6,"ng-template"))},dependencies:[se.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:[VB.transformMenu,VB.fadeInItems]},changeDetection:0});var Die=new t.OlP("mat-menu-scroll-strategy");var CIe={provide:Die,deps:[Li.aV],useFactory:function bIe(n){return function(){return n.scrollStrategies.reposition()}}},Aie=(0,bi.i$)({passive:!0}),n2=function(){function n(r,e,i,o,a,s,l,u,d){var h=this;(0,F.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,Aie),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,H.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,Aie),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],C=h,Z=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||(C="top"===h?"bottom":"top",Z="top"===g?"bottom":"top");i.withPositions([{originX:s,originY:C,overlayX:z,overlayY:h,offsetY:re},{originX:l,originY:C,overlayX:q,overlayY:h,offsetY:re},{originX:s,originY:Z,overlayX:z,overlayY:g,offsetY:-re},{originX:l,originY:Z,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,qn.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,qn.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,qG.g)(0,Mie.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof ym&&e.menu._isAnimating?e.menu._animationDone.pipe((0,Ri.q)(1),(0,qG.g)(0,Mie.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}();n2.\u0275fac=function(r){return new(r||n2)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Die),t.Y36(JG,8),t.Y36(Er,10),t.Y36(nl.Is,8),t.Y36(Yr.tE),t.Y36(t.R0b))},n2.\u0275dir=t.lG2({type:n2,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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(n2);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,H.Z)(function n(){(0,F.Z)(this,n)});Pg.\u0275fac=function(r){return new(r||Pg)},Pg.\u0275mod=t.oAB({type:Pg}),Pg.\u0275inj=t.cJS({providers:[CIe],imports:[se.ez,Gt.BQ,Gt.si,Li.U8,sa.ZD,Gt.BQ]});var ju=(0,H.Z)(function n(){(0,F.Z)(this,n),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});function wIe(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 kIe(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 TIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function MIe(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 SIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,MIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.cloudNodesTemplates)}}function EIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,SIe,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:[di],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var r2=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,H.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 xIe(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()()}}r2.\u0275fac=function(r){return new(r||r2)(t.Y36(fr),t.Y36(or),t.Y36(su))},r2.\u0275cmp=t.Xpm({type:r2,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,wIe,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,kIe,3,1,"button",7),t.qZA()()(),t.YNc(10,TIe,1,0,"app-empty-templates-list",8),t.YNc(11,EIe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 i2=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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 DIe(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 AIe(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]," ")}}i2.\u0275fac=function(r){return new(r||i2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},i2.\u0275cmp=t.Xpm({type:i2,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,xIe,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:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],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}};function OIe(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,AIe,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,Oie))("ngModel",i.ethernetHubTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",t.DdM(10,Oie))}}function IIe(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 PIe=function(r){return{shadowed:r}},o2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 RIe(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 LIe(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 ZIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function NIe(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 BIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,NIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetHubsTemplates)}}function FIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,BIe,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(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},o2.\u0275cmp=t.Xpm({type:o2,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,DIe,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,OIe,24,11,"div",7),t.qZA(),t.YNc(9,IIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,PIe,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,ri.gD,Gt.ey,Hu],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){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,H.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 UIe(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()()}}a2.\u0275fac=function(r){return new(r||a2)(t.Y36(fr),t.Y36(or),t.Y36(su))},a2.\u0275cmp=t.Xpm({type:a2,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,RIe,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,LIe,3,1,"button",7),t.qZA()()(),t.YNc(10,ZIe,1,0,"app-empty-templates-list",8),t.YNc(11,FIe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 s2=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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 HIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Port number"),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.port_number)}}function GIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"VLAN"),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.vlan)}}function WIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function VIe(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 YIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"EtherType"),t.qZA())}function KIe(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 qIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function JIe(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 QIe(n,r){1&n&&t._UZ(0,"tr",22)}function XIe(n,r){1&n&&t._UZ(0,"tr",23)}function $Ie(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 ePe(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," ")}}s2.\u0275fac=function(r){return new(r||s2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},s2.\u0275cmp=t.Xpm({type:s2,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,UIe,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:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],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}},Rg=function(){function n(r){(0,F.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,H.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 tPe(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 nPe(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 rPe(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,HIe,2,0,"th",2),t.YNc(3,jIe,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,GIe,2,0,"th",2),t.YNc(6,zIe,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,WIe,2,0,"th",2),t.YNc(9,VIe,2,1,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,YIe,2,0,"th",2),t.YNc(12,KIe,2,1,"td",3),t.BQk(),t.ynx(13,7),t.YNc(14,qIe,2,0,"th",2),t.YNc(15,JIe,4,0,"td",3),t.BQk(),t.YNc(16,QIe,1,0,"tr",8),t.YNc(17,XIe,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,$Ie,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,ePe,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,Iie))("ngModel",e.newPort.type),t.xp6(1),t.Q6J("ngForOf",e.portTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Iie))("ngModel",e.newPort.ethertype),t.xp6(1),t.Q6J("ngForOf",e.etherTypes))},dependencies:[se.sg,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ri.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 Pie=function(){return{standalone:!0}};function iPe(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,nPe,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,rPe,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,Pie))("ngModel",i.ethernetSwitchTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Pie))("ngModel",i.ethernetSwitchTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(5),t.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function oPe(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 aPe=function(r){return{shadowed:r}},l2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 sPe(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 lPe(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 uPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function cPe(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 dPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,cPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function fPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,dPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}l2.\u0275fac=function(r){return new(r||l2)(t.Y36(fr),t.Y36(or),t.Y36(su),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc),t.Y36(ur))},l2.\u0275cmp=t.Xpm({type:l2,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,tPe,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,iPe,34,13,"div",7),t.qZA(),t.YNc(9,oPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,aPe,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu,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 u2=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,H.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}();u2.\u0275fac=function(r){return new(r||u2)(t.Y36(fr),t.Y36(or),t.Y36(su))},u2.\u0275cmp=t.Xpm({type:u2,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,sPe,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,lPe,3,1,"button",7),t.qZA()()(),t.YNc(10,uPe,1,0,"app-empty-templates-list",8),t.YNc(11,fPe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 QG=(0,H.Z)(function n(){(0,F.Z)(this,n)}),id=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.Z)(this,n)}return(0,H.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 pPe(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,F.Z)(this,n),this._elementRef=r}return(0,H.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,H.Z)(function n(r){(0,F.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 mPe=0,bm_NUMBER="number",bm_EDIT="edit",bm_DONE="done",bm_ERROR="error",Rie=new t.OlP("STEPPER_GLOBAL_OPTIONS"),lb=function(){function n(r,e){(0,F.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,H.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(Rie,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,pPe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var Cm=function(){function n(r,e,i){(0,F.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=mPe++}return(0,H.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,qn.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 c2=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._stepper=r,this.type="submit"});c2.\u0275fac=function(r){return new(r||c2)(t.Y36(Cm))},c2.\u0275dir=t.lG2({type:c2,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 d2=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._stepper=r,this.type="button"});d2.\u0275fac=function(r){return new(r||d2)(t.Y36(Cm))},d2.\u0275dir=t.lG2({type:d2,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,H.Z)(function n(){(0,F.Z)(this,n)});function _Pe(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 gPe(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 vPe(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 yPe(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 bPe(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 CPe(n,r){if(1&n&&(t.ynx(0,9),t.YNc(1,gPe,2,1,"span",10),t.YNc(2,vPe,2,1,"span",11),t.YNc(3,yPe,2,1,"span",11),t.YNc(4,bPe,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 wPe(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 kPe(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 TPe(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 MPe(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 SPe(n,r){}function EPe(n,r){if(1&n&&(t.Hsn(0),t.YNc(1,SPe,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 DPe(n,r){1&n&&t._UZ(0,"div",11)}var Lie=function(r,e){return{step:r,i:e}};function APe(n,r){if(1&n&&(t.ynx(0),t.GkF(1,9),t.YNc(2,DPe,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,Lie,e,i)),t.xp6(1),t.Q6J("ngIf",!o)}}var Zie=function(r){return{animationDuration:r}},Nie=function(r,e){return{value:r,params:e}};function OPe(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,Nie,a._getAnimationDirection(o),t.VKq(6,Zie,a._getAnimationDuration())))("id",a._getStepContentId(o)),t.uIk("aria-labelledby",a._getStepLabelId(o)),t.xp6(1),t.Q6J("ngTemplateOutlet",i.content)}}function IPe(n,r){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5),t.YNc(2,APe,3,6,"ng-container",6),t.qZA(),t.TgZ(3,"div",7),t.YNc(4,OPe,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 PPe(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,Lie,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,Nie,s._getAnimationDirection(o),t.VKq(13,Zie,s._getAnimationDuration())))("id",s._getStepContentId(o)),t.uIk("aria-labelledby",s._getStepLabelId(o)),t.xp6(2),t.Q6J("ngTemplateOutlet",i.content)}}function RPe(n,r){if(1&n&&(t.ynx(0),t.YNc(1,PPe,6,18,"div",14),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.steps)}}function LPe(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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,H.Z)(function n(){(0,F.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 NPe={provide:km,deps:[[new t.FiY,new t.tp0,km]],useFactory:function ZPe(n){return n||new km}},BPe=(0,Gt.pj)(function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){return(0,F.Z)(this,e),r.call(this,i)}return(0,H.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,F.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,H.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}(BPe);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,_Pe,1,2,"ng-container",2),t.YNc(4,CPe,5,4,"ng-container",3),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,wPe,2,1,"div",5),t.YNc(7,kPe,2,1,"div",5),t.YNc(8,TPe,2,1,"div",6),t.YNc(9,MPe,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:[se.O5,se.tP,se.RF,se.n9,se.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 Uie={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"}})])},f2=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.templateRef=r});f2.\u0275fac=function(r){return new(r||f2)(t.Y36(t.Rgc))},f2.\u0275dir=t.lG2({type:f2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var p2=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._template=r});p2.\u0275fac=function(r){return new(r||p2)(t.Y36(t.Rgc))},p2.\u0275dir=t.lG2({type:p2,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,F.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=xa.w.EMPTY,l}return(0,H.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(Rie,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,p2,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,EPe,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,F.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,H.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,f2,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,IPe,5,2,"div",1),t.YNc(2,RPe,2,1,"ng-container",2),t.BQk(),t.YNc(3,LPe,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:[se.sg,se.O5,se.tP,se.RF,se.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:[Uie.horizontalStepTransition,Uie.verticalStepTransition]},changeDetection:0});var Ik=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(c2);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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(d2);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,H.Z)(function n(){(0,F.Z)(this,n)});function FPe(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:[NPe,Gt.rD],imports:[Gt.BQ,se.ez,ao.eL,pm,Ak,Og,Gt.si,Gt.BQ]});var Hie=function(){return{standalone:!0}};function UPe(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,FPe,2,2,"mat-option",24),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,Hie))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.dockerImages)}}function HPe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",16),t._UZ(2,"input",32),t.qZA()())}function jPe(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 h2=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.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 QG,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,H.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 GPe(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()()}}h2.\u0275fac=function(r){return new(r||h2)(t.Y36(fr),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))},h2.\u0275cmp=t.Xpm({type:h2,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,UPe,2,4,"mat-select",13),t.YNc(20,HPe,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,jPe,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,Hie))("ngModel",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(3),t.Q6J("ngModel",e.dockerTemplate.environment))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],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,e,i,o,a,s){(0,F.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,H.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 zPe(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 WPe(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 VPe(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 YPe(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," ")}}m2.\u0275fac=function(r){return new(r||m2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},m2.\u0275cmp=t.Xpm({type:m2,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,GPe,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Dn,Kn],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 KPe(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,WPe,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,VPe,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,YPe,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 qPe(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 JPe=function(r){return{shadowed:r}},_2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 QPe(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 XPe(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 $Pe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function e3e(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 t3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,e3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.dockerTemplates)}}function n3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,t3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}_2.\u0275fac=function(r){return new(r||_2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(Zn),t.Y36(Ip),t.Y36(J.QS),t.Y36(ur))},_2.\u0275cmp=t.Xpm({type:_2,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,zPe,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,KPe,59,32,"div",7),t.qZA(),t.YNc(9,qPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,JPe,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu],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 g2=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,H.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}();g2.\u0275fac=function(r){return new(r||g2)(t.Y36(fr),t.Y36(or),t.Y36(id),t.Y36(ur))},g2.\u0275cmp=t.Xpm({type:g2,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,QPe,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,XPe,3,1,"button",7),t.qZA()()(),t.YNc(10,$Pe,1,0,"app-empty-templates-list",8),t.YNc(11,n3e,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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,F.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,H.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 r3e=["primaryValueBar"],i3e=(0,Gt.pj)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}(),"primary"),o3e=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function a3e(){var n=(0,t.f3M)(se.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var s3e=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),l3e=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,F.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(l3e++);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,H.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=jie((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=jie(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}(i3e);function jie(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(o3e,8),t.Y36(s3e,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(r3e,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:[se.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,H.Z)(function n(){(0,F.Z)(this,n)});Lk.\u0275fac=function(r){return new(r||Lk)},Lk.\u0275mod=t.oAB({type:Lk}),Lk.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,Gt.BQ]});var Tm=function(){function n(r,e,i){(0,F.Z)(this,n),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,H.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(jG),t.Y36(EB),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:[dn,cb],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var XG=(0,H.Z)(function n(){(0,F.Z)(this,n)}),sd=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.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,H.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 u3e(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 c3e(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 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 f3e(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 p3e(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,f3e,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 h3e(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 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," ")}}Mm.\u0275fac=function(r){return new(r||Mm)},Mm.\u0275prov=t.Yz7({token:Mm,factory:Mm.\u0275fac});var Gie=function(){return{standalone:!0}};function _3e(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,m3e,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,Gie)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function g3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,_3e,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 v3e=function(){return[0,1,2,3,4,5,6,7]};function y3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,g3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,v3e)))}function b3e(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 C3e(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,b3e,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,Gie)),t.xp6(1),t.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function w3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,C3e,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 k3e=function(){return[0,1,2,3]};function T3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,w3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,k3e)))}function M3e(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,c3e,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,d3e,2,2,"mat-option",22),t.qZA()(),t.YNc(24,p3e,3,1,"mat-form-field",26),t.qZA(),t.YNc(25,h3e,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,y3e,2,2,"div",33),t.qZA(),t.TgZ(37,"mat-step",34),t.YNc(38,T3e,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 v2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,F.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 XG,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,H.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 S3e(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()()}}v2.\u0275fac=function(r){return new(r||v2)(t.Y36(fr),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))},v2.\u0275cmp=t.Xpm({type:v2,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,u3e,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,M3e,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.hX,kn.R9,dn,Dn,Kn,ti,ri.gD,Gt.ey,od,$d,rs,Ws],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 y2=function(){function n(r,e,i,o,a,s){(0,F.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,H.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 E3e(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 x3e(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 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," ")}}y2.\u0275fac=function(r){return new(r||y2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},y2.\u0275cmp=t.Xpm({type:y2,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,S3e,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],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 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.networkAdapters[o.iosTemplate.chassis][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.networkAdapters[i.iosTemplate.chassis][e])}}var zie=function(){return[0,1,2,3,4,5,6,7]};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,zie)))}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,"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,P3e,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 L3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,R3e,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 Z3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,L3e,2,1,"div",39),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,zie)))}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",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic0=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.wic0)("ngModelOptions",t.DdM(3,Sm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function F3e(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,"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,F3e,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 H3e(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 j3e(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,H3e,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 G3e(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,E3e,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,x3e,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,I3e,2,2,"div",27),t.YNc(67,Z3e,2,2,"div",27),t._UZ(68,"br")(69,"br"),t.TgZ(70,"h6"),t._uU(71,"WICs"),t.qZA(),t.YNc(72,B3e,3,4,"div",27),t.YNc(73,U3e,3,4,"div",27),t.YNc(74,j3e,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 z3e(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 W3e=function(r){return{shadowed:r}},b2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 V3e(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 Y3e(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 K3e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function q3e(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 J3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,q3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iosTemplates)}}function Q3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,J3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}b2.\u0275fac=function(r){return new(r||b2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm),t.Y36(ur))},b2.\u0275cmp=t.Xpm({type:b2,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,G3e,109,44,"div",4),t.qZA(),t.YNc(6,z3e,1,2,"app-symbols-menu",5)),2&r&&(t.Q6J("ngClass",t.VKq(3,W3e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.iosTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},dependencies:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu],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 C2=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,H.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}();C2.\u0275fac=function(r){return new(r||C2)(t.Y36(fr),t.Y36(or),t.Y36(sd),t.Y36(ur))},C2.\u0275cmp=t.Xpm({type:C2,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,V3e,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,Y3e,3,1,"button",7),t.qZA()()(),t.YNc(10,K3e,1,0,"app-empty-templates-list",8),t.YNc(11,Q3e,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 $G=(0,H.Z)(function n(){(0,F.Z)(this,n)}),ld=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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 X3e(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 $3e(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 e6e(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 Wie=function(){return{standalone:!0}};function t6e(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,e6e,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,Wie)),t.xp6(1),t.Q6J("ngForOf",i.iouImages)}}function n6e(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 w2=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.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 $G,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,H.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 r6e(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()()}}w2.\u0275fac=function(r){return new(r||w2)(t.Y36(fr),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))},w2.\u0275cmp=t.Xpm({type:w2,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,X3e,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,$3e,2,2,"mat-option",20),t.qZA()(),t.YNc(29,t6e,3,4,"mat-form-field",21),t.YNc(30,n6e,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,Wie)),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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,dn,Dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],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 k2=function(){function n(r,e,i,o,a,s){(0,F.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,H.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}();k2.\u0275fac=function(r){return new(r||k2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},k2.\u0275cmp=t.Xpm({type:k2,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,r6e,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],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,F.Z)(this,n)}return(0,H.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 i6e(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 o6e(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 a6e(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 s6e(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 l6e(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 Vie=function(){return{standalone:!0}};function u6e(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,o6e,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,a6e,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,s6e,4,1,"mat-form-field",29),t.YNc(42,l6e,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,Vie))("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,Vie))("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 c6e(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 d6e=function(r){return{shadowed:r}},T2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 f6e(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 p6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function h6e(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 m6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,h6e,23,4,"div",15),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iouTemplates)}}function _6e(n,r){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14),t.YNc(2,m6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}T2.\u0275fac=function(r){return new(r||T2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(Zn),t.Y36(Lg),t.Y36(ur),t.Y36(J.QS))},T2.\u0275cmp=t.Xpm({type:T2,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,i6e,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,u6e,63,24,"div",8),t.qZA(),t.YNc(10,c6e,1,2,"app-symbols-menu",9)),2&r&&(t.Q6J("ngClass",t.VKq(4,d6e,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu],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,e,i,o){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,H.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}();M2.\u0275fac=function(r){return new(r||M2)(t.Y36(fr),t.Y36(or),t.Y36(ld),t.Y36(ur))},M2.\u0275cmp=t.Xpm({type:M2,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,f6e,3,1,"button",7),t.qZA()()(),t.YNc(12,p6e,1,0,"app-empty-templates-list",8),t.YNc(13,_6e,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 S2=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.controllerId=""}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();S2.\u0275fac=function(r){return new(r||S2)(t.Y36(fr))},S2.\u0275cmp=t.Xpm({type:S2,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:[Wo,dn,Dn,zs,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 ez=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Gu=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.Z)(this,n)}return(0,H.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:"igb",name:"Intel 82576 Gigabit 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 g6e(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 v6e(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 y6e(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 b6e(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 tz=function(){return{standalone:!0}};function C6e(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,b6e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,tz))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.qemuImages)}}function w6e(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 E2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,F.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 ez,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,H.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 k6e(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()()}}E2.\u0275fac=function(r){return new(r||E2)(t.Y36(fr),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))},E2.\u0275cmp=t.Xpm({type:E2,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,g6e,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,v6e,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,y6e,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,C6e,2,4,"mat-select",26),t.YNc(44,w6e,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,tz)),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,tz)),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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.R9,dn,Dn,Kn,ri.gD,Gt.ey,od,$d,rs,Ws],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 x2=function(){function n(r,e,i,o,a,s){(0,F.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,H.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 T6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter number"),t.qZA())}function M6e(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 S6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Port name"),t.qZA())}function E6e(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 x6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter type"),t.qZA())}function D6e(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 A6e(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,D6e,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 O6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Actions"),t.qZA())}function I6e(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 P6e(n,r){1&n&&t._UZ(0,"tr",17)}function R6e(n,r){1&n&&t._UZ(0,"tr",18)}x2.\u0275fac=function(r){return new(r||x2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(ur),t.Y36(J.QS))},x2.\u0275cmp=t.Xpm({type:x2,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,k6e,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn],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,F.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,H.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,T6e,2,0,"th",2),t.YNc(3,M6e,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,S6e,2,0,"th",2),t.YNc(6,E6e,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,x6e,2,0,"th",2),t.YNc(9,A6e,3,2,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,O6e,2,0,"th",2),t.YNc(12,I6e,4,0,"td",3),t.BQk(),t.YNc(13,P6e,1,0,"tr",7),t.YNc(14,R6e,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:[se.sg,J.JJ,J.On,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ri.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 L6e=["customAdapters"],db=function(){function n(){(0,F.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new t.vpe,this.saveConfigurationEmitter=new t.vpe}return(0,H.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(L6e,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:[dn,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 Z6e=["customAdaptersConfigurator"];function N6e(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 B6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function F6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),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",58),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function H6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function j6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),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",58),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",58),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function W6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),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&&(t.TgZ(0,"mat-option",58),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Y6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),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 K6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",14)(1,"input",59),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 q6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",58),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){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,B6e,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,F6e,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,U6e,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,H6e,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,j6e,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,G6e,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,z6e,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,W6e,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,V6e,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,Y6e,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,K6e,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,q6e,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.qemu_path=a)}),t.qZA()(),t.TgZ(172,"mat-form-field",14)(173,"input",54),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.options=a)}),t.qZA()(),t.TgZ(174,"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(175," Use as a linked base VM "),t.qZA(),t._UZ(176,"br"),t.TgZ(177,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.tpm=a)}),t._uU(178," Enable the Trusted Platform Module (TPM)"),t.qZA(),t._UZ(179,"br"),t.TgZ(180,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.uefi=a)}),t._uU(181," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(182,"mat-expansion-panel")(183,"mat-expansion-panel-header")(184,"mat-panel-title"),t._uU(185," Usage "),t.qZA()(),t.TgZ(186,"mat-form-field",14)(187,"textarea",55),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.usage=a)}),t.qZA()()()(),t.TgZ(188,"div",56)(189,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(190,"Cancel"),t.qZA(),t.TgZ(191,"button",57),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(192,"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.qemu_path),t.xp6(2),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 Q6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",60),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 X6e=function(r){return{shadowed:r}},D2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 $6e(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 eRe(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 tRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function nRe(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 rRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,nRe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.qemuTemplates)}}function iRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,rRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}D2.\u0275fac=function(r){return new(r||D2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(Zn),t.Y36(Em),t.Y36(J.QS),t.Y36(ur))},D2.\u0275cmp=t.Xpm({type:D2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Z6e,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","Custom Qemu binary path",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,N6e,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,J6e,193,52,"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,Q6e,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,X6e,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Y0,lk,uk,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu,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 A2=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,H.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}();A2.\u0275fac=function(r){return new(r||A2)(t.Y36(fr),t.Y36(or),t.Y36(Gu),t.Y36(ur))},A2.\u0275cmp=t.Xpm({type:A2,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,$6e,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,eRe,3,1,"button",7),t.qZA()()(),t.YNc(10,tRe,1,0,"app-empty-templates-list",8),t.YNc(11,iRe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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,F.Z)(this,n),this.httpController=r}return(0,H.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 oRe(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 aRe(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 sRe(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,aRe,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 O2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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}();O2.\u0275fac=function(r){return new(r||O2)(t.Y36(fr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},O2.\u0275cmp=t.Xpm({type:O2,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,oRe,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,sRe,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:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,ti,ri.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,F.Z)(this,n)}return(0,H.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 lRe=["customAdaptersConfigurator"];function uRe(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 cRe(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 dRe(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 fRe(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 pRe(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 hRe(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,cRe,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,dRe,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,fRe,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,pRe,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 mRe(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 _Re=function(r){return{shadowed:r}},I2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 gRe(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/virtualbox/addtemplate")}}function yRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function bRe(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 CRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,bRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.virtualBoxTemplates)}}function wRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,CRe,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(fr),t.Y36(or),t.Y36(xm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng),t.Y36(ur))},I2.\u0275cmp=t.Xpm({type:I2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(lRe,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,uRe,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,hRe,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,mRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,_Re,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu,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 P2=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,H.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}();P2.\u0275fac=function(r){return new(r||P2)(t.Y36(fr),t.Y36(or),t.Y36(xm))},P2.\u0275cmp=t.Xpm({type:P2,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,gRe,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,vRe,3,1,"button",7),t.qZA()()(),t.YNc(10,yRe,1,0,"app-empty-templates-list",8),t.YNc(11,wRe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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,F.Z)(this,n),this.httpController=r}return(0,H.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 kRe(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 TRe(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 MRe=function(){return{standalone:!0}};function SRe(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,TRe,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,MRe))("ngModel",i.vmwareTemplate.linked_clone)}}var R2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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}();R2.\u0275fac=function(r){return new(r||R2)(t.Y36(fr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(Al),t.Y36(ur),t.Y36(J.QS))},R2.\u0275cmp=t.Xpm({type:R2,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,kRe,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,SRe,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:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,ti,ri.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,F.Z)(this,n)}return(0,H.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 ERe=["customAdaptersConfigurator"];function xRe(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 DRe(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 ARe(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 ORe(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 IRe(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 PRe(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,DRe,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,ARe,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,ORe,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,IRe,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 RRe(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 LRe=function(r){return{shadowed:r}},L2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 ZRe(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 NRe(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 BRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function FRe(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 URe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,FRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vmwareTemplates)}}function HRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,URe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}L2.\u0275fac=function(r){return new(r||L2)(t.Y36(fr),t.Y36(or),t.Y36(Dm),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg),t.Y36(ur))},L2.\u0275cmp=t.Xpm({type:L2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ERe,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,xRe,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,PRe,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,RRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,LRe,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,ti,Dl,xl,au,Uu,ri.gD,Gt.ey,Hu,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 Z2=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,H.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}();Z2.\u0275fac=function(r){return new(r||Z2)(t.Y36(fr),t.Y36(or),t.Y36(Dm))},Z2.\u0275cmp=t.Xpm({type:Z2,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,ZRe,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,NRe,3,1,"button",7),t.qZA()()(),t.YNc(10,BRe,1,0,"app-empty-templates-list",8),t.YNc(11,HRe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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,F.Z)(this,n),this.httpController=r}return(0,H.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 jRe(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 N2=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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}();N2.\u0275fac=function(r){return new(r||N2)(t.Y36(fr),t.Y36(or),t.Y36(Am),t.Y36(ur),t.Y36(Zn),t.Y36(Al),t.Y36(J.QS),t.Y36(Qd.X))},N2.\u0275cmp=t.Xpm({type:N2,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,jRe,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,rs,Ws],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,F.Z)(this,n)}return(0,H.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 GRe(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 zRe(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 WRe(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 nz=function(){return{standalone:!0}};function VRe(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,zRe,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,WRe,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,nz))("ngModel",i.vpcsTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(14,nz))("ngModel",i.vpcsTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(15,nz))("ngModel",i.vpcsTemplate.console_auto_start)}}function YRe(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 KRe=function(r){return{shadowed:r}},B2=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 qRe(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 JRe(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 QRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function XRe(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 $Re(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,XRe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vpcsTemplates)}}function eLe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,$Re,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}B2.\u0275fac=function(r){return new(r||B2)(t.Y36(fr),t.Y36(or),t.Y36(Am),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om),t.Y36(ur))},B2.\u0275cmp=t.Xpm({type:B2,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,GRe,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,VRe,28,16,"div",7),t.qZA(),t.YNc(9,YRe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,KRe,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,ti,ri.gD,Gt.ey,Hu],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 F2=function(){function n(r,e,i){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,H.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}();F2.\u0275fac=function(r){return new(r||F2)(t.Y36(fr),t.Y36(or),t.Y36(Am))},F2.\u0275cmp=t.Xpm({type:F2,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,qRe,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,JRe,3,1,"button",7),t.qZA()()(),t.YNc(10,QRe,1,0,"app-empty-templates-list",8),t.YNc(11,eLe,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:[se.sg,se.O5,Wo,Ga,Er,ga,dn,Dn,zs,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 Vs=m(9971);function tLe(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 nLe(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 rLe(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,tLe,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,nLe,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,F.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,H.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(Vs.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,rLe,48,4,"form",0),2&r&&t.Q6J("ngIf",e.export_project_form)},dependencies:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.Q7,J.sg,J.u,kn.KE,dn,Dn,yr,dr,ti,hm.d,ri.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),YB=m(5735),KB=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(YB.o),Im=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(KB);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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(KB);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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(KB);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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(KB);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,H.Z)(function n(){(0,F.Z)(this,n)}),Fk=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Pp=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 Yie(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?Yie(Object(e),!0).forEach(function(i){(0,Yw.Z)(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Yie(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 Ys(n){return n>=48&&n<=57}function Ug(n){return Ys(n)||n>=65&&n<=70||n>=97&&n<=102}function iz(n){return n>=65&&n<=90}function JB(n){return function aLe(n){return iz(n)||function oLe(n){return n>=97&&n<=122}(n)}(n)||function sLe(n){return n>=128}(n)||95===n}function Kie(n){return JB(n)||Ys(n)||45===n}function lLe(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 XB(n,r,e){return 45===n?JB(r)||45===r||Zp(r,e):!!JB(n)||92===n&&Zp(n,r)}function oz(n,r,e){return 43===n||45===n?Ys(r)?2:46===r&&Ys(e)?3:0:46===n?Ys(r)?2:0:Ys(n)?1:0}function qie(n){return 65279===n||65534===n?1:0}for(var az=new Array(128),Hg=0;Hg<az.length;Hg++)az[Hg]=(pb(Hg)?130:Ys(Hg)&&131)||JB(Hg)&&132||lLe(Hg)&&133||Hg||128;function lz(n){return n<128?az[n]:132}function Uk(n,r){return r<n.length?n.charCodeAt(r):0}function uz(n,r,e){return 13===e&&10===Uk(n,r+1)?2:1}function Hk(n,r,e){var i=n.charCodeAt(r);return iz(i)&&(i|=32),i===e}function H2(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(iz(s)&&(s|=32),s!==a)return!1}return!0}function e5(n,r){for(;r<n.length&&pb(n.charCodeAt(r));r++);return r}function cz(n,r){for(;r<n.length&&Ys(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+=uz(n,r,i))}return r}function t5(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(!Kie(e)){if(Zp(e,Uk(n,r+1))){r=jk(n,r)-1;continue}break}}return r}function n5(n,r){var e=n.charCodeAt(r);if((43===e||45===e)&&(e=n.charCodeAt(r+=1)),Ys(e)&&(r=cz(n,r+1),e=n.charCodeAt(r)),46===e&&Ys(n.charCodeAt(r+1))&&(r=cz(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)),Ys(e)&&(r=cz(n,r+1+i+1))}return r}function dz(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 Xie(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 $ie=["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 r5(){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 noe(n){for(var r=n.source,e=r.length,i=r.length>0?qie(r.charCodeAt(0)):0,o=r5(n.lines,e),a=r5(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 pLe=function(){function n(){(0,F.Z)(this,n),this.lines=null,this.columns=null,this.computed=!1}return(0,H.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||noe(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||noe(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,hLe=new Map([[2,22],[21,22],[19,20],[23,24]]),mLe=function(){function n(r,e){(0,F.Z)(this,n),this.setSource(r,e)}return(0,H.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=r5(this.offsetAndType,e.length+1),s=r5(this.balance,e.length+1),l=0,u=0,d=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(C,Z,z){switch(C){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=hLe.get(C),d=u<<24|l}a[l++]=C<<24|z,-1===h&&(h=Z)}),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&&H2(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:$ie[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),n}();function i5(n,r){function e(C){return C<l?n.charCodeAt(C):0}function i(){return XB(e(d=n5(n,d)),e(d+1),e(d+2))?(h=12,void(d=t5(n,d))):37===e(d)?(h=11,void d++):void(h=10)}function o(){var C=d;return d=t5(n,d),H2(n,C,d,"url")&&40===e(d)?34===e(d=e5(n,d+1))||39===e(d)?(h=2,void(d=C+4)):void function s(){for(h=7,d=e5(n,d);d<n.length;d++){var C=n.charCodeAt(d);switch(lz(C)){case 41:return void d++;case 130:return 41===e(d=e5(n,d))||d>=n.length?void(d<n.length&&d++):(d=dz(n,d),void(h=8));case 34:case 39:case 40:case 133:return d=dz(n,d),void(h=8);case 92:if(Zp(C,e(d+1))){d=jk(n,d)-1;break}return d=dz(n,d),void(h=8)}}}():40===e(d)?(h=2,void d++):void(h=1)}function a(C){for(C||(C=e(d++)),h=5;d<n.length;d++){var Z=n.charCodeAt(d);switch(lz(Z)){case C:return void d++;case 130:if(QB(Z))return d+=uz(n,d,Z),void(h=6);break;case 92:if(d===n.length-1)break;var z=e(d+1);QB(z)?d+=uz(n,d+1,z):Zp(Z,z)&&(d=jk(n,d)-1)}}}for(var h,l=(n=String(n||"")).length,u=qie(e(0)),d=u;d<l;){var g=n.charCodeAt(d);switch(lz(g)){case 130:h=13,d=e5(n,d+1);break;case 34:case 39:a();break;case 35:Kie(e(d+1))||Zp(e(d+1),e(d+2))?(h=4,d=t5(n,d+1)):(h=9,d++);break;case 40:h=21,d++;break;case 41:h=22,d++;break;case 43:case 46:oz(g,e(d+1),e(d+2))?i():(h=9,d++);break;case 44:h=18,d++;break;case 45:oz(g,e(d+1),e(d+2))?i():45===e(d+1)&&62===e(d+2)?(h=15,d+=3):XB(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:XB(e(d+1),e(d+2),e(d+3))?(h=3,d=t5(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,F.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,H.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 o5(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 ooe(n,r){var e=n.source,i=n.line,o=n.column;function a(C,Z){return s.slice(C,Z).map(function(z,q){return String(C+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 aoe(n,r,e,i,o){return Object.assign(o5("SyntaxError",n),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return ooe({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(n,"\n")+ooe({source:r,line:i,column:o},2)}})}function _Le(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 soe=function(){};function yLe(n){return function(){return this[n]()}}function hz(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 CLe(n){var r="",e="<unknown>",i=!1,o=soe,a=!1,s=new pLe,l=Object.assign(new mLe,function bLe(n){var r={context:Object.create(null),scope:Object.assign(Object.create(null),n.scope),atrule:hz(n.atrule),pseudo:hz(n.pseudo),node:hz(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]=yLe(n.parseContext[e])}return Vr(Vr({config:r},r),r.node)}(n||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:_Le,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 C=this.tokenIndex;try{return h.call(this)}catch(z){if(a)throw z;var Z=g.call(this,C);return a=!0,o(z,Z),a=!1,Z}},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,C){return H2(r,h,g,C)},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,n5(r,this.tokenStart));return this.eat(h),g},eat:function(h){if(this.tokenType!==h){var g=$ie[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(z){return z.toUpperCase()}),C="".concat(/[[\](){}]/.test(g)?'"'.concat(g,'"'):g," is expected"),Z=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(Z=this.tokenEnd-1,C="Identifier is expected but function found"):C="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),Z++,C="Name is expected");break;case 11:10===this.tokenType&&(Z=this.tokenEnd,C="Percent sign is expected")}this.error(C,Z)}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),C=this.getLastListNode(h);return s.getLocationRange(null!==g?g.loc.start.offset-s.startOffset:this.tokenStart,null!==C?C.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,g){var C=void 0!==g&&g<r.length?s.getLocation(g):this.eof?s.getLocation(function cLe(n,r){for(;r>=0&&pb(n.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new aoe(h||"Unexpected input",r,C.offset,C.line,C.column)}});return Object.assign(function(h,g){r=h,g=g||{},l.setSource(r,i5),s.setSource(r,g.offset,g.line,g.column),e=g.filename||"<unknown>",i=Boolean(g.positions),o="function"==typeof g.onParseError?g.onParseError:soe,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 C=g,Z=C.context,z=void 0===Z?"default":Z,q=C.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=H2(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:aoe,config:l.config})}var wLe=m(3058),coe=new Set(["Atrule","Selector","Declaration"]);var mz=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},doe=[[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],["/","*"]],SLe=doe.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 foe(n){var r=new Set(n.map(function(e){var i=(0,Yn.Z)(e,2),o=i[0],a=i[1];return mz(o)<<16|mz(a)}));return function(e,i,o){var a=mz(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 ELe=foe(doe),poe=foe(SLe);function DLe(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 ALe(n){var r=this;i5(n,function(e,i,o){r.token(e,n.slice(i,o))})}function OLe(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(C){if(!r.has(C.type))throw new Error("Unknown node type: "+C.type);r.get(C.type).call(h,C)},tokenBefore:poe,token:function(C,Z){u=this.tokenBefore(u,C,Z),this.emit(Z,C,!1),9===C&&92===Z.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(C){l+=C},result:function(){return l}};s&&("function"==typeof s.decorator&&(d=s.decorator(d)),s.sourceMap&&(d=function kLe(n){var r=new wLe.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(C){if(C.loc&&C.loc.start&&coe.has(C.type)){var Z=C.loc.start.line,z=C.loc.start.column-1;(i.line!==Z||i.column!==z)&&(i.line=Z,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:C.loc.source,original:i,generated:e}))}d.call(this,C),u&&coe.has(C.type)&&(o.line=s,o.column=l)};var h=n.emit;n.emit=function(C,Z,z){for(var q=0;q<C.length;q++)10===C.charCodeAt(q)?(s++,l=0):l++;h(C,Z,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(C){return d.node(C)},children:DLe,token:function(C,Z){return d.token(C,Z)},tokenize:ALe};return d.node(a),d.result()}}var _z=Object.prototype.hasOwnProperty,j2=function(){};function hoe(n){return"function"==typeof n?n:j2}function moe(n,r){return function(e,i,o){e.type===r&&n.call(this,e,i,o)}}function PLe(n,r){var e=r.structure,i=[];for(var o in e)if(!1!==_z.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 _oe(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 C=g.value,Z=a[C.name];if(!C.nullable||Z)if("list"===C.type){if(r?Z.reduceRight(u,!1):Z.reduce(u,!1))return!0}else if(l(Z))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=d)}}function goe(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 LLe(n){var r=function RLe(n){var r={};for(var e in n.node)if(_z.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]=PLe(0,i)}return r}(n),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)_z.call(r,s)&&null!==r[s]&&(e[s]=_oe(r[s],!1),i[s]=_oe(r[s],!0));var l=goe(e),u=goe(i),d=function(g,C){function Z(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,Z,ae)||q.call(Se,Ce,Ee,Ke)===o)}var z=j2,q=j2,re=e,ae=function(Ee,Ke,st,Ae){return Ee||Z(Ke,st,Ae)},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 C)z=C;else if(C&&(z=hoe(C.enter),q=hoe(C.leave),C.reverse&&(re=i),C.visit)){if(l.hasOwnProperty(C.visit))re=C.reverse?u[C.visit]:l[C.visit];else if(!r.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(r).sort().join(", ")+")");z=moe(z,C.visit),q=moe(q,C.visit)}if(z===j2&&q===j2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");Z(g)};return d.break=o,d.skip=a,d.find=function(h,g){var C=null;return d(h,function(Z,z,q){if(g.call(this,Z,z,q))return C=Z,o}),C},d.findLast=function(h,g){var C=null;return d(h,{reverse:!0,enter:function(z,q,re){if(g.call(this,z,q,re))return C=z,o}}),C},d.findAll=function(h,g){var C=[];return d(h,function(Z,z,q){g.call(this,Z,z,q)&&C.push(Z)}),C},d}function ZLe(n){return n}function gz(n,r,e,i){var o;switch(n.type){case"Group":o=function FLe(n,r,e,i){var o=" "===n.combinator||i?n.combinator:" "+n.combinator+" ",a=n.terms.map(function(s){return gz(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 gz(n.term,r,e,i)+r(function NLe(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 BLe(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 vz(n,r){var e=ZLe,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)),gz(n,e,i,o)}var voe={offset:0,line:1,column:1};function a5(n,r){var e=n&&n.loc&&n.loc[r];return e?"line"in e?G2(e):e:null}function G2(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 z2=function(r,e){var i=o5("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},HLe=function(r,e,i,o){var a=o5("SyntaxMatchError",r),s=function ULe(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="",C=0;C<e.length;C++){var Z=e[C].value;C===i&&(l=Z.length,s=d.length),null!==a&&e[C].node===a&&(C<=i?u++:u=0),d+=Z}return i===e.length||u>1?(h=a5(a||r,"end")||G2(voe,d),g=G2(h)):(h=a5(a,"start")||G2(a5(r,"start")||voe,d.slice(0,s)),g=a5(a,"end")||G2(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?vz(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},s5=new Map,zk=new Map,yz=function jLe(n){if(s5.has(n))return s5.get(n);var r=n.toLowerCase(),e=s5.get(r);if(void 0===e){var i=bz(r,0),o=i?"":boe(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return s5.set(n,e),e},yoe=function GLe(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=bz(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?"":boe(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 bz(n,r){return r=r||0,n.length-r>=2&&45===n.charCodeAt(r)&&45===n.charCodeAt(r+1)}function boe(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 Coe=["initial","inherit","unset","revert","revert-layer"],Wk=!0;function wz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function V2(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(!Ys(n.value.charCodeAt(r)))return 0;return i+1}function kz(n,r,e){var i=!1,o=V2(n,r,e);if(null===(n=e(o)))return r;if(10!==n.type){if(!wz(n,43)&&!wz(n,45))return r;if(i=!0,o=V2(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 Tz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function Y2(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 Y2(n,r+i+1,!1),6;if(!Ug(a)||++i>6)return 0}return i}function u5(n,r,e){if(!n)return 0;for(;Tz(e(r),63);){if(++n>6)return 0;r++}return r}var JLe=["calc(","-moz-calc(","-webkit-calc("],Mz=new Map([[2,22],[21,22],[19,20],[23,24]]);function tf(n,r){return r<n.length?n.charCodeAt(r):0}function Toe(n,r){return H2(n,0,n.length,r)}function Moe(n,r){for(var e=0;e<r.length;e++)if(Toe(n,r[e]))return!0;return!1}function Soe(n,r){return r===n.length-2&&(92===tf(n,r)&&Ys(tf(n,r+1)))}function c5(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&&Moe(r.value,JLe)?function QLe(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=Mz.get(n.type)}o++}while(n=r(o));return o}(r,e):n(r,e,i)}}function Yo(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=n5(r.value,0);if(null!==n){var a=r.value.indexOf("\\",o),s=-1!==a&&Soe(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===n.has(s.toLowerCase()))return 0}return c5(i,r.value,o)?0:1}}function Eoe(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 sZe={"ident-token":Yo(1),"function-token":Yo(2),"at-keyword-token":Yo(3),"hash-token":Yo(4),"string-token":Yo(5),"bad-string-token":Yo(6),"url-token":Yo(7),"bad-url-token":Yo(8),"delim-token":Yo(9),"number-token":Yo(10),"percentage-token":Yo(11),"dimension-token":Yo(12),"whitespace-token":Yo(13),"CDO-token":Yo(14),"CDC-token":Yo(15),"colon-token":Yo(16),"semicolon-token":Yo(17),"comma-token":Yo(18),"[-token":Yo(19),"]-token":Yo(20),"(-token":Yo(21),")-token":Yo(22),"{-token":Yo(23),"}-token":Yo(24)},lZe={string:Yo(5),ident:Yo(1),percentage:dd(function iZe(n,r,e){return null===n||11!==n.type||c5(e,n.value,n.value.length-1)?0:1}),zero:Eoe(),number:dd(function oZe(n,r,e){if(null===n)return 0;var i=n5(n.value,0);return!(i===n.value.length)&&!Soe(n.value,i)||c5(e,n.value,i)?0:1}),integer:dd(function aZe(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(!Ys(tf(n.value,i)))return 0;return c5(e,n.value,i)?0:1}),"custom-ident":function XLe(n){if(null===n||1!==n.type)return 0;var r=n.value.toLowerCase();return Moe(r,Coe)||Toe(r,"default")?0:1},"custom-property-name":function $Le(n){return null===n||1!==n.type||45!==tf(n.value,0)||45!==tf(n.value,1)?0:1},"hex-color":function eZe(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 tZe(n){return null!==n&&4===n.type&&XB(tf(n.value,1),tf(n.value,2),tf(n.value,3))?1:0},"an-plus-b":function WLe(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 kz(r(++e),e,r);case 3:return 45!==n.value.charCodeAt(2)?0:(e=V2(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||wz(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 kz(r(++e),e,r);case 2:return 45!==n.value.charCodeAt(1)?0:(e=V2(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&&Ys(n.value.charCodeAt(a));a++);return a!==o&&Hk(n.value,a,110)?a+1===n.value.length?kz(r(++e),e,r):45!==n.value.charCodeAt(a+1)?0:a+2===n.value.length?(e=V2(r(++e),e,r),Gg(n=r(e),0,Wk,e)):Gg(n,a+2,Wk,e):0}return 0},urange:function qLe(n,r){var e=0;if(null===n||1!==n.type||!Hk(n.value,0,117)||null===(n=r(++e)))return 0;if(Tz(n,43))return null===(n=r(++e))?0:1===n.type?u5(Y2(n,0,!0),++e,r):Tz(n,63)?u5(1,++e,r):0;if(10===n.type){var i=Y2(n,1,!0);return 0===i?0:null===(n=r(++e))?e:12===n.type||10===n.type?function KLe(n,r){return n.value.charCodeAt(0)===r}(n,45)&&Y2(n,1,!1)?e+1:0:u5(i,e,r)}return 12===n.type?u5(Y2(n,1,!0),++e,r):0},"declaration-value":function nZe(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=Mz.get(n.type)}o++}while(n=r(o));return o},"any-value":function rZe(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=Mz.get(n.type)}o++}while(n=r(o));return o}};function cZe(n){return Vr(Vr(Vr({},sZe),lZe),function uZe(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(Eoe(Zm(s))),resolution:dd(Zm(l)),semitones:dd(Zm(u)),time:dd(Zm(d))}}(n))}var dZe=["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"],fZe=["deg","grad","rad","turn"],pZe=["s","ms"],hZe=["hz","khz"],mZe=["dpi","dpcm","dppx","x"],_Ze=["fr"],gZe=["db"],vZe=["st"];function yZe(n,r,e){return Object.assign(o5("SyntaxError",n),{input:r,offset:e,rawMessage:n,message:n+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var MZe=function(){function n(r){(0,F.Z)(this,n),this.str=r,this.pos=0}return(0,H.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 yZe(e,this.str,this.pos)}}]),n}(),K2=new Uint8Array(128).map(function(n,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Noe={" ":1,"&&":2,"||":3,"|":4};function h5(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===K2[e])break}return n.pos===r&&n.error("Expect a keyword"),n.substringToPos(r)}function m5(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 PZe(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 Boe(n){var r,e=null;return n.eat(123),r=m5(n),44===n.charCode()?(n.pos++,125!==n.charCode()&&(e=m5(n))):e=r,n.eat(125),{min:Number(r),max:e?Number(e):0}}function Yk(n,r){var e=function RZe(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=Boe(n):63===n.charCode()?(n.pos++,r={min:0,max:0}):r={min:1,max:0};break;case 123:r=Boe(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 Iz(n){var r=n.peek();return""===r?null:{type:"Token",value:r}}function NZe(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))&&(h5(n),e=function ZZe(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(m5(n)),0!==K2[n.charCode()]&&(r+=Vk(n))),h5(n),n.eat(44),h5(n),8734===n.charCode()?n.peek():(i=1,45===n.charCode()&&(n.peek(),i=-1),e=i*Number(m5(n)),0!==K2[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 FZe(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 Noe[l]-Noe[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 Foe(n){for(var i,r=[],e={},o=null,a=n.pos;i=HZe(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:FZe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function HZe(n){var r=n.charCode();if(r<128&&1===K2[r])return function BZe(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 UZe(n){var r;return n.eat(91),r=Foe(n),n.eat(93),r.explicit=!0,33===n.charCode()&&(n.pos++,r.disallowEmpty=!0),r}(n));case 60:return 39===n.nextCharCode()?function LZe(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):NZe(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:PZe(n)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:h5(n)};case 64:return(r=n.nextCharCode())<128&&1===K2[r]?(n.pos++,{type:"AtKeyword",name:Vk(n)}):Iz(n);case 123:if((r=n.nextCharCode())<48||r>57)return Iz(n);break;default:return Iz(n)}}function Uoe(n){var r=new MZe(n),e=Foe(r);return r.pos!==n.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var q2=function(){};function Hoe(n){return"function"==typeof n?n:q2}var GZe={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 WZe(n,r){return"string"==typeof n?function zZe(n){var r=[];return i5(n,function(e,i,o){return r.push({type:e,value:n.slice(i,o),node:null})}),r}(n):r.generate(n,GZe)}var $i={type:"Match"},Mo={type:"Mismatch"},Pz={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 joe(n){return n.length>2&&40===n.charCodeAt(n.length-2)&&41===n.charCodeAt(n.length-1)}function Goe(n){return"Keyword"===n.type||"AtKeyword"===n.type||"Function"===n.type||"Type"===n.type&&joe(n.name)}function Rz(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(Goe(d)&&(null===l&&u>0&&Goe(r[u-1])&&(s=Rl({type:"Enum",map:l=Object.create(null)},$i,s)),null!==l)){var h=(joe(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,C=function(){var Ce,Se=r[Z];Ce=r.length>1?Rz(n,r.filter(function(Ee){return Ee!==Se}),!1):$i,g=Rl(Se,Ce,g)},Z=r.length-1;Z>=0;Z--)C();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?Rz(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 Lz(n){if("function"==typeof n)return{type:"Generic",fn:n};switch(n.type){case"Group":var r=Rz(n.combinator,n.terms.map(Lz),!1);return n.disallowEmpty&&(r=Rl(r,Pz,Mo)),r;case"Multiplier":return function KZe(n){var r=$i,e=Lz(n.term);if(0===n.max)e=Rl(e,Pz,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 Zz(n,r){return"string"==typeof n&&(n=Uoe(n)),{type:"MatchGraph",match:Lz(n),syntax:r||null,source:n}}var zoe=Object.prototype.hasOwnProperty;function Yoe(n){for(var r=null,e=null,i=n;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Bz(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 Koe(n){return null===n||(18===n.type||2===n.type||21===n.type||19===n.type||23===n.type||function eNe(n){return 9===n.type&&"?"!==n.value}(n))}function qoe(n){return null===n||(22===n.type||20===n.type||24===n.type||9===n.type&&"/"===n.value)}function Joe(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:C,tokenIndex:Se,prev:jn}}function s(Tn){C={nextState:Tn,matchStack:Ee,syntaxStack:g,prev:C}}function l(Tn){Z=a(Tn,Z)}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,C=null,Z=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===C){if(null!==ae&&(Se!==n.length-1||"\\0"!==ae.value&&"\\9"!==ae.value)){r=Mo;break}re="Match";break}if((r=C.nextState)===Pz){if(C.matchStack===Ee){r=Mo;break}r=$i}for(;C.syntaxStack!==g;)h();C=C.prev;break;case"Mismatch":if(null!==z&&!1!==z)(null===Z||Se>Z.tokenIndex)&&(Z=z,z=!1);else if(null===Z){re="Mismatch";break}r=Z.nextState,C=Z.thenStack,g=Z.syntaxStack,Ee=Z.matchStack,Se=Z.tokenIndex,ae=Se<n.length?n[Se]:null,Z=Z.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 Ae=ae.value.toLowerCase();if(-1!==Ae.indexOf("\\")&&(Ae=Ae.replace(/\\[09].*$/,"")),zoe.call(r.map,Ae)){r=r.map[Ae];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=zoe.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,Z)),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].*$/,"")),Bz(Bt,ct)){u(),r=$i;break}}r=Mo;break;case"AtKeyword":case"Function":if(null!==ae&&Bz(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?Koe(Ee.token)?r=Mo:(u(),r=qoe(ae)?Mo:$i):r=Koe(Ee.token)||qoe(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(Bz(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 Qoe(n,r,e){var i=Joe(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=Yoe(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 Xoe(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 tNe(n,r){return Fz(this,n,function(e){return"Type"===e.type&&e.name===r})}function nNe(n,r){return Fz(this,n,function(e){return"Property"===e.type&&e.name===r})}function rNe(n){return Fz(this,n,function(r){return"Keyword"===r.type})}function Fz(n,r,e){var i=Xoe.call(n,r);return null!==i&&i.some(e)}function $oe(n){return"node"in n?n.node:$oe(n.match[0])}function eae(n){return"node"in n?n.node:eae(n.match[n.match.length-1])}function tae(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=$oe(l),d=eae(l);n.syntax.walk(r,function(h,g,C){if(h===u){var Z=new hb;do{if(Z.appendData(g.data),g.data===d)break;g=g.next}while(null!==g);s.push({parent:C,nodes:Z})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var J2=Object.prototype.hasOwnProperty;function Uz(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function nae(n){return Boolean(n)&&Uz(n.offset)&&Uz(n.line)&&Uz(n.column)}function iNe(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!==J2.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(nae(i.loc.start)){if(nae(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)J2.call(r,d)&&!1===J2.call(i,d)&&o(i,"Field `"+n+"."+d+"` is missed")}}function oNe(n,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+n+'"'};for(var a in e)if(!1!==J2.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:iNe(n,i)}}var sNe=Zz(Coe.join(" | "));function Hz(n,r,e){var i={};for(var o in n)n[o].syntax&&(i[o]=e?n[o].syntax:vz(n[o].syntax,{compact:r}));return i}function lNe(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:vz(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&Hz(u.descriptors,r,e)}}return i}function nf(n,r,e){return Vr({matched:n,iterations:e,error:r},U)}function Kk(n,r,e,i){var a,o=WZe(e,n.syntax);return function uNe(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=Qoe(o,n.cssWideKeywordsSyntax,n)),i&&a.match||(a=Qoe(o,r.match,n)).match?nf(a.match,null,a.iterations):nf(null,new HLe(a.reason,r.syntax,e,a),a.iterations))}var rae=function(){function n(r,e,i){if((0,F.Z)(this,n),this.cssWideKeywordsSyntax=sNe,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 aNe(n){var r={};if(n.node)for(var e in n.node)if(J2.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]=oNe(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(cZe(this.units));u<d.length;u++){var h=(0,Yn.Z)(d[u],2),g=h[0],C=h[1];this.addType_(g,C)}}if(r.atrules)for(var Z in r.atrules)this.addAtrule_(Z,r.atrules[Z]);if(r.properties)for(var z in r.properties)this.addProperty_(z,r.properties[z])}}return(0,H.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=Zz(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Uoe(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:Zz(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 z2("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=yz(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new z2("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 z2("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=yz(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(yoe(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 z2("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 z2("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return tae(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return tae(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=yz(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=yoe(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 jZe(n,r,e){var o=q2,a=q2;if("function"==typeof r?o=r:r&&(o=Hoe(r.enter),a=Hoe(r.leave)),o===q2&&a===q2)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 C="Type"===g.type?l.types:l.properties,Z="Type"===g.type?i:o;(!hasOwnProperty.call(C,g.name)||e(l,g.name,Z,C[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:Hz(this.types,!i,e),properties:Hz(this.properties,!i,e),atrules:lNe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),n}();function jz(n,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof n?n+r:r.replace(/^\s*\|\s*/,""):r||null}function iae(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 Gz(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],C=h[1];e[s][g]=Array.isArray(C)?C:[]}break;case"atrules":e[s]=Vr({},n[s]);for(var Z=0,z=Object.entries(l);Z<z.length;Z++){var q=(0,Yn.Z)(z[Z],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?jz(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),Ae=st[0],it=st[1];Ce.descriptors[Ae]=it?jz(Ce.descriptors[Ae],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]=jz(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]),iae(l,["parse"]));break;case"node":e[s]=Vr(Vr({},n[s]),iae(l,["name","structure","parse","generate","walkContext"]))}}return e}function oae(n){var r=CLe(n),e=LLe(n),i=OLe(n),o=function ILe(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 rae(d,l,l.lexer.structure)},tokenize:i5,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(d){var h=Gz({},n);return oae("function"==typeof d?d(h,Object.assign):Gz(h,d))}};return l.lexer=new rae({generic:!0,units:n.units,types:n.types,atrules:n.atrules,properties:n.properties,node:n.node},l),l}var mb=!0;function v5(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++)Ys(this.charCodeAt(e))||this.error("Integer is expected",e)}function qk(n){return v5.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 zz(){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 pNe="AnPlusB",hNe={a:[String,null],b:[String,null]};function aae(){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=zz.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),v5.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=zz.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),v5.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&&Ys(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=zz.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)):(v5.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 mNe(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 sae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function _Ne(){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 gNe="Atrule",vNe="atrule",yNe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function lae(){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),sae):sae.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(_Ne.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:o,block:a}}function bNe(n){this.token(3,"@"+n.name),null!==n.prelude&&this.node(n.prelude),n.block?this.node(n.block):this.token(17,";")}var CNe="AtrulePrelude",wNe="atrulePrelude",kNe={children:[[]]};function uae(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 TNe(n){this.children(n)}function xNe(){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 DNe(){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 ANe="AttributeSelector",ONe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function dae(){var r,n=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=xNe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=DNe.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 INe(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 fae(n){return this.Raw(n,null,!0)}function pae(){return this.parseWithFallback(this.Rule,fae)}function hae(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}function RNe(){if(17===this.tokenType)return hae.call(this,this.tokenIndex);var n=this.parseWithFallback(this.Declaration,hae);return 17===this.tokenType&&this.next(),n}var LNe="Block",ZNe="block",NNe={children:[["Atrule","Rule","Declaration"]]};function mae(n){var r=n?RNe:pae,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),fae));break;default:n&&this.isDelim(38)?i.push(pae.call(this)):i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function BNe(n){var r=this;this.token(23,"{"),this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var FNe="Brackets",UNe={children:[[]]};function _ae(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 HNe(n){this.token(9,"["),this.children(n),this.token(9,"]")}var jNe="CDC",GNe=[];function gae(){var n=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(n,this.tokenStart)}}function zNe(){this.token(15,"--\x3e")}var WNe="CDO",VNe=[];function vae(){var n=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(n,this.tokenStart)}}function YNe(){this.token(14,"\x3c!--")}var qNe="ClassSelector",JNe={name:String};function yae(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function QNe(n){this.token(9,"."),this.token(1,n.name)}var tBe="Combinator",nBe={name:String};function Cae(){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 rBe(n){this.tokenize(n.name)}var aBe="Comment",sBe={value:String};function wae(){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 lBe(n){this.token(25,"/*"+n.value+"*/")}function hBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!0)}function mBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!1)}function _Be(){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 gBe="Declaration",vBe="declaration",yBe={important:[Boolean,String],property:String,value:["Value","Raw"]};function Mae(){var l,n=this.tokenStart,r=this.tokenIndex,e=CBe.call(this),i=bz(e),o=i?this.parseCustomProperty:this.parseValue,a=i?mBe:hBe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(_Be,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=wBe.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 bBe(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 CBe(){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 wBe(){this.eat(9),this.skipSC();var n=this.consume(1);return"important"===n||n}function Vz(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}var TBe="DeclarationList",MBe={children:[["Declaration","Atrule","Rule"]]};function Sae(){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),Vz));break;default:this.isDelim(38)?n.push(this.parseWithFallback(this.Rule,Vz)):n.push(this.parseWithFallback(this.Declaration,Vz))}return{type:"DeclarationList",loc:this.getLocationFromList(n),children:n}}function SBe(n){var r=this;this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")})}var EBe="Dimension",xBe={value:String,unit:String};function Eae(){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 DBe(n){this.token(12,n.value+n.unit)}var ABe="Function",OBe="function",IBe={name:String,children:[[]]};function xae(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 PBe(n){this.token(2,n.name+"("),this.children(n),this.token(22,")")}var RBe="XXX",LBe="Hash",ZBe={value:String};function Dae(){var n=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n+1)}}function NBe(n){this.token(4,"#"+n.value)}var BBe="Identifier",FBe={name:String};function Aae(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function UBe(n){this.token(1,n.name)}var HBe="IdSelector",jBe={name:String};function Oae(){var n=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n+1)}}function GBe(n){this.token(9,"#"+n.name)}var zBe="MediaFeature",WBe={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Iae(){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 VBe(n){this.token(21,"("),this.token(1,n.name),null!==n.value&&(this.token(16,":"),this.node(n.value)),this.token(22,")")}var YBe="MediaQuery",KBe={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Pae(){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 qBe(n){this.children(n)}var JBe="MediaQueryList",QBe={children:[["MediaQuery"]]};function Rae(){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 XBe(n){var r=this;this.children(n,function(){return r.token(18,",")})}var e5e="NestingSelector",t5e={};function Lae(){var n=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(n,this.tokenStart)}}function n5e(){this.token(9,"&")}var r5e="Nth",i5e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Zae(){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 o5e(n){this.node(n.nth),null!==n.selector&&(this.token(1,"of"),this.node(n.selector))}var a5e="Number",s5e={value:String};function Nae(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function l5e(n){this.token(10,n.value)}var u5e="Operator",c5e={value:String};function Bae(){var n=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function d5e(n){this.tokenize(n.value)}var f5e="Parentheses",p5e={children:[[]]};function Fae(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 h5e(n){this.token(21,"("),this.children(n),this.token(22,")")}var m5e="Percentage",_5e={value:String};function Uae(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function g5e(n){this.token(11,n.value+"%")}var v5e="PseudoClassSelector",y5e="function",b5e={name:String,children:[["Raw"],null]};function Hae(){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 C5e(n){this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}var w5e="PseudoElementSelector",k5e="function",T5e={name:String,children:[["Raw"],null]};function jae(){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 M5e(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 Gae(){this.skipSC();for(var n=this.consume(10),r=0;r<n.length;r++){var e=n.charCodeAt(r);!Ys(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 x5e="Ratio",D5e={left:String,right:String};function zae(){var e,n=this.tokenStart,r=Gae.call(this);return this.skipSC(),this.eatDelim(47),e=Gae.call(this),{type:"Ratio",loc:this.getLocation(n,this.tokenStart),left:r,right:e}}function A5e(n){this.token(10,n.left),this.token(9,"/"),this.token(10,n.right)}function O5e(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var I5e="Raw",P5e={value:String};function Wae(n,r,e){var o,i=this.getTokenStart(n);return this.skipUntilBalanced(n,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?O5e.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function R5e(n){this.tokenize(n.value)}function Vae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracket,!0)}function L5e(){var n=this.SelectorList();return"Raw"!==n.type&&!1===this.eof&&23!==this.tokenType&&this.error(),n}var Z5e="Rule",N5e="rule",B5e={prelude:["SelectorList","Raw"],block:["Block"]};function Yae(){var e,i,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(L5e,Vae):Vae.call(this,n),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function F5e(n){this.node(n.prelude),this.node(n.block)}var U5e="Selector",H5e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Kae(){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 j5e(n){this.children(n)}var G5e="SelectorList",z5e="selector",W5e={children:[["Selector","Raw"]]};function qae(){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 V5e(n){var r=this;this.children(n,function(){return r.token(18,",")})}function Xae(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+=Xie(n.substring(u+1,d))}else 13===l&&10===n.charCodeAt(s+1)&&s++}else a+=n[s]}return a}var K5e="String",q5e={value:String};function $ae(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Xae(this.consume(5))}}function J5e(n){this.token(5,function Y5e(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 ese(n){return this.Raw(n,null,!1)}var X5e="StyleSheet",$5e="stylesheet",eFe={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function tse(){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,ese);break;default:e=this.parseWithFallback(this.Rule,ese)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(n,this.tokenStart),children:r}}function tFe(n){this.children(n)}function Kz(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var rFe="TypeSelector",iFe={name:String};function rse(){var n=this.tokenStart;return this.isDelim(124)?(this.next(),Kz.call(this)):(Kz.call(this),this.isDelim(124)&&(this.next(),Kz.call(this))),{type:"TypeSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function oFe(n){this.tokenize(n.name)}function Q2(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 Q2.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 b5(n){for(var r=0;this.isDelim(63);)++r>n&&this.error("Too many question marks"),this.next()}function aFe(n){this.charCodeAt(this.tokenStart)!==n&&this.error((43===n?"Plus sign":"Hyphen minus")+" is expected")}function sFe(){var n=0;switch(this.tokenType){case 10:if(n=Q2.call(this,1,!0),this.isDelim(63)){b5.call(this,6-n);break}if(12===this.tokenType||10===this.tokenType){aFe.call(this,45),Q2.call(this,1,!1);break}break;case 12:(n=Q2.call(this,1,!0))>0&&b5.call(this,6-n);break;default:if(this.eatDelim(43),1===this.tokenType){(n=Q2.call(this,0,!0))>0&&b5.call(this,6-n);break}if(this.isDelim(63)){this.next(),b5.call(this,5);break}this.error("Hex digit or question mark is expected")}}var lFe="UnicodeRange",uFe={value:String};function ase(){var n=this.tokenStart;return this.eatIdent("u"),sFe.call(this),{type:"UnicodeRange",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function cFe(n){this.tokenize(n.value)}var gFe="Url",vFe={value:String};function lse(){var r,n=this.tokenStart;switch(this.tokenType){case 7:r=function mFe(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+=Xie(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=Xae(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 yFe(n){this.token(7,function _Fe(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 bFe="Value",CFe={children:[[]]};function use(){var n=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(n,this.tokenStart),children:r}}function wFe(n){this.children(n)}var kFe=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),TFe="WhiteSpace",MFe={value:String};function cse(){return this.eat(13),kFe}function SFe(n){this.token(13,n.value)}var EFe=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 fse(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 PFe={getNode:fse};var zFe={onWhiteSpace:function jFe(n,r){null!==r.last&&"Combinator"!==r.last.type&&null!==n&&"Combinator"!==n.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function GFe(){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 hse(n){return null!==n&&"Operator"===n.type&&("-"===n.value[n.value.length-1]||"+"===n.value[n.value.length-1])}var YFe={getNode:fse,onWhiteSpace:function(r,e){hse(r)&&(r.value=" "+r.value),hse(e.last)&&(e.last.value+=" ")},expression:function WFe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function VFe(){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}},qFe={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 $Fe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function e4e(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):mse.call(this)}function mse(){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($Fe,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(e4e,this.scope.AtrulePrelude);break;default:break e}n.push(r)}return n}var t4e={parse:{prelude:function(){var r=mse.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)}}},n4e={"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:qFe,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:t4e},_b={parse:function(){return this.createSingleNodeList(this.SelectorList())}},Qz={parse:function(){return this.createSingleNodeList(this.Selector())}},_se={parse:function(){return this.createSingleNodeList(this.Identifier())}},C5={parse:function(){return this.createSingleNodeList(this.Nth())}},i4e={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:n4e,pseudo:{dir:_se,has:_b,lang:_se,matches:_b,is:_b,"-moz-any":_b,"-webkit-any":_b,where:_b,not:_b,"nth-child":C5,"nth-last-child":C5,"nth-last-of-type":C5,"nth-of-type":C5,slotted:Qz,host:Qz,"host-context":Qz},node:at},o4e={node:Ct},fd=function(n){return oae(Gz({},n))}(Vr(Vr(Vr({},EFe),i4e),o4e));fd.tokenize;var Xz=fd.parse,yse=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,F.Z)(this,n)}return(0,H.Z)(n,[{key:"fix",value:function(e){var i=Xz(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"))}})}),yse(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,F.Z)(this,n)}return(0,H.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=Xz(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 yse(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,F.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,H.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 a4e=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Vg=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new a4e;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,F.Z)(this,n),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,H.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 bse=(0,H.Z)(function n(){(0,F.Z)(this,n),this.isSelected=!1,this.isMultiplied=!1}),X2=(0,H.Z)(function n(){(0,F.Z)(this,n)}),gb=function(){function n(r){(0,F.Z)(this,n),this.labelToMapLabel=r}return(0,H.Z)(n,[{key:"convert",value:function(e,i){var o=new X2;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,F.Z)(this,n),this.linkNodeToMapLinkNode=r}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=this,o=new bse;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,H.Z)(function n(){(0,F.Z)(this,n)}),Bm=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 s4e=(0,H.Z)(function n(){(0,F.Z)(this,n)}),vb=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new s4e;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 l4e=(0,H.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,F.Z)(this,n),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),Fm=function(){function n(){(0,F.Z)(this,n),this.layers={}}return(0,H.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 l4e,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,F.Z)(this,n),this.LINK_WIDTH=2}return(0,H.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,F.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,H.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 w5=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.x=r,this.y=e}),Cse=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.width=r,this.height=e}),u4e=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.x=r,this.y=e,this.k=i}),Ks=function(){function n(){(0,F.Z)(this,n),this.centerZeroZeroPoint=!0,this.size=new Cse(0,0),this.transformation=new u4e(0,0,1)}return(0,H.Z)(n,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new w5(this.size.width/2,this.size.height/2):new w5(0,0)}}]),n}();Ks.\u0275fac=function(r){return new(r||Ks)},Ks.\u0275prov=t.Yz7({token:Ks,factory:Ks.\u0275fac});var Hp=function(){function n(){(0,F.Z)(this,n),this.changesDetected=new t.vpe,this.hasBeenDrawn=!1}return(0,H.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,F.Z)(this,n)}return(0,H.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 Cse(o,a)}}]),n}();qg.\u0275fac=function(r){return new(r||qg)},qg.\u0275prov=t.Yz7({token:qg,factory:qg.\u0275fac});var rf=(0,H.Z)(function n(){(0,F.Z)(this,n),this.isReadOnly=!1});rf.\u0275fac=function(r){return new(r||rf)},rf.\u0275prov=t.Yz7({token:rf,factory:rf.\u0275fac});var $z=(0,H.Z)(function n(){(0,F.Z)(this,n)}),c4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,H.Z)(e)}($z),d4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,H.Z)(e)}($z),f4e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,H.Z)(e)}($z),k5=function(){function n(){(0,F.Z)(this,n),this.start=new t.vpe,this.drag=new t.vpe,this.end=new t.vpe}return(0,H.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 c4e(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 d4e(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 f4e(s);l.dx=Ln.x-i.x,l.dy=Ln.y-i.y,e.end.emit(l)})}}]),n}(),p4e=(0,H.Z)(function n(r,e,i){(0,F.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(p4e),h4e=(0,H.Z)(function n(r,e,i,o,a){(0,F.Z)(this,n),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),m4e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.x=r,this.y=e}),_4e=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.datum=r,this.x=e,this.y=i}),g4e=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.savedText=r,this.x=e,this.y=i}),v4e=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.textDrawingId=r,this.editedText=e,this.textElement=i}),y4e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.event=r,this.drawing=e}),Qk=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.event=r,this.link=e}),b4e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.event=r,this.interfaceLabel=e}),C4e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.event=r,this.label=e}),Ll=function(){function n(){(0,F.Z)(this,n),this.selection={},this.selected=new t.vpe,this.unselected=new t.vpe}return(0,H.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,F.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new k5,this.enabled=!0}return(0,H.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,C){event.preventDefault(),o.onContextMenu.emit(new b4e(event,g))});h.select("text.interface_label").text(function(g){return g.label.text}).attr("style",function(g){var C=i.cssFixer.fix(g.label.style);return C=i.fontFixer.fixStyles(C)}).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 C=Ci(this),z=h.select('text[interface_label_id="'.concat(g.id,'"]')).node().getBBox();C.attr("width",z.width+4),C.attr("height",z.height+4),C.attr("x",z.x-2),C.attr("y",z.y-2),C.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 wse=(0,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this.x=r,this.y=e,this.width=i,this.height=o}),Jg=(0,H.Z)(function n(){(0,F.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,F.Z)(this,n),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new On.xQ,this.contextMenuOpened=new t.vpe,this.enabled=!1}return(0,H.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 wse(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(Ks),t.LFG(Jg))},jp.\u0275prov=t.Yz7({token:jp,factory:jp.\u0275fac});var Qg=function(){function n(r){(0,F.Z)(this,n),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Une().scaleExtent([.5,8])}return(0,H.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(Ks))},Qg.\u0275prov=t.Yz7({token:Qg,factory:Qg.\u0275fac});var w4e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.event=r,this.node=e}),kse=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(w4e),Gp=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new k5}return(0,H.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 C4e(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,H.Z)(function n(){(0,F.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,F.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,H.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:"getConsoleContextMenuAction",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,F.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,H.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 _4e(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 kse(Ln,u))}).on("dblclick",function(u,d){Ln.preventDefault(),o.onContextConsoleMenu.emit(new kse(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,F.Z)(this,n),this.nodeWidget=r,this.mapSettings=e,this.draggable=new k5}return(0,H.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 k4e=(0,H.Z)(function n(){(0,F.Z)(this,n)}),$g=function(){function n(){(0,F.Z)(this,n),this.drawingLine=new k4e,this.drawing=!1,this.data={}}return(0,H.Z)(n,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new w5(e,i),this.drawingLine.end=new w5(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=DN(),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 Tse=(0,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this.x=r,this.y=e,this.status=i,this.port=o}),yb=function(){function n(r){(0,F.Z)(this,n),this._mapSettingsService=r,this.mapSettingsService=r}return(0,H.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,C=a.nodes.find(function(Pt){return Pt.nodeId===a.target.id}).label.text;u=[new Tse(d.x,d.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,g),new Tse(h.x,h.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.target.status,C)]}}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 Z=s.selectAll("rect.status_started").data(u.filter(function(Pt){return"started"===Pt.status})),z=Z.enter().append("rect");Z.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),Z.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 Ae=s.selectAll("text.status_suspended_label").data(u.filter(function(Pt){return"suspended"===Pt.status})),it=Ae.enter().append("text");Ae.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"),Ae.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 Mse=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),T4e=(0,H.Z)(function n(r,e,i){(0,F.Z)(this,n),this.source=r,this.target=e,this.style=i}),ev=function(){function n(){(0,F.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,H.Z)(n,[{key:"linktoEthernetLink",value:function(e){return new T4e([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 Mse.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 M4e=(0,H.Z)(function n(r,e,i,o,a){(0,F.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,F.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,H.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 M4e([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 Mse.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,F.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,H.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,F.Z)(this,n),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,H.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 S4e=(0,H.Z)(function n(){(0,F.Z)(this,n)}),ea=(0,H.Z)(function n(){(0,F.Z)(this,n)}),E4e=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,10)),i}}]),n}(),T5=(0,H.Z)(function n(){(0,F.Z)(this,n)}),x4e=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new T5,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,H.Z)(function n(){(0,F.Z)(this,n)}),D4e=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,H.Z)(function n(){(0,F.Z)(this,n)}),A4e=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,0)),i}}]),n}(),Cb=(0,H.Z)(function n(){(0,F.Z)(this,n)}),O4e=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,F.Z)(this,n),this.parser=new DOMParser,this.elementParsers={text:new O4e,image:new x4e,rect:new A4e,line:new D4e,ellipse:new E4e}}return(0,H.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,F.Z)(this,n),this.fontFixer=r}return(0,H.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),C=[];return g.font_family&&C.push('font-family: "'.concat(h.font_family,'"')),g.font_size&&C.push("font-size: ".concat(h.font_size,"pt")),g.font_weight&&C.push("font-weight: ".concat(h.font_weight)),C.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,F.Z)(this,n)}return(0,H.Z)(n,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof T5?[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,F.Z)(this,n)}return(0,H.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,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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,F.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,H.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,F.Z)(this,n),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new k5,this.draggingEnabled=!1,this.resizingFinished=new t.vpe,this.onContextMenu=new t.vpe,this.svgToDrawingConverter=new Wp}return(0,H.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(Ae){return Ae.drawings.forEach(function(it){try{it.element=i.svgToDrawingConverter.convert(it.svg)}catch(ft){}}),Ae.drawings},function(Ae){return Ae.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(Ae){return Ae.id}).on("contextmenu",function(Ae){Ln.preventDefault(),i.onContextMenu.emit(new y4e(Ln,Ae))}),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,C=gg().on("start",function(Ae){document.body.style.cursor="ns-resize",d=Ae.y}).on("drag",function(Ae){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),Ae.element.height+u<0?(g=!1,l=d,Ae.element.height=Math.abs(Ae.element.height+it.dy)):(Ae.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+=u,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+u/2<0?1:Ae.element.cy+=u/2,Ae.element.ry=Ae.element.ry+u/2<0?1:Ae.element.ry+=u/2))):Ae.element.height+it.dy<0?(g=!0,l=d,Ae.element.height=Math.abs(Ae.element.height+it.dy)):(Ae.element.height+=it.dy,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+it.dy/2<0?1:Ae.element.cy+=it.dy/2,Ae.element.ry=Ae.element.ry+it.dy/2<0?1:Ae.element.ry+=it.dy/2)),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Z=gg().on("start",function(Ae){l=Ln.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+Ae.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Ae){var it=Ln;g?Ae.element.height+it.dy<0?(g=!1,l=h,Ae.element.height=Math.abs(Ae.element.height+it.dy)):(Ae.element.height+=it.dy,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+it.dy/2<0?1:Ae.element.cy+=it.dy/2,Ae.element.ry=Ae.element.ry+it.dy/2<0?1:Ae.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),Ae.element.height+u<0?(l=h,g=!0,Ae.element.height=Math.abs(Ae.element.height+it.dy)):(Ae.y=it.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+=u,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+u/2<0?1:Ae.element.cy+=u/2,Ae.element.ry=Ae.element.ry+u/2<0?1:Ae.element.ry+=u/2))),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Se=!1,Ce=gg().on("start",function(Ae){z=Ln.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),ae=z+Ae.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Ae){var it=Ln;Se?Ae.element.width+it.dx<0?(z=ae,Se=!1,Ae.element.width=Math.abs(Ae.element.width+it.dx)):(Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+it.dx/2<0?1:Ae.element.cx+=it.dx/2,Ae.element.rx=Ae.element.rx+it.dx/2<0?1:Ae.element.rx+=it.dx/2),Ae.element.width=Ae.element.width+it.dx<0?1:Ae.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),Ae.element.width+q<0?(z=ae,Se=!0,Ae.element.width=Math.abs(Ae.element.width+it.dx)):(Ae.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+=q,Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+q/2<0?1:Ae.element.cx+=q/2,Ae.element.rx=Ae.element.rx+q/2<0?1:Ae.element.rx+=q/2))),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Ee=gg().on("start",function(Ae){document.body.style.cursor="ew-resize",re=Ae.x}).on("drag",function(Ae){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),Ae.element.width+q<0?(z=re,Se=!1,Ae.element.width=Math.abs(Ae.element.width+it.dx)):(Ae.x=it.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+=q,Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+q/2<0?1:Ae.element.cx+=q/2,Ae.element.rx=Ae.element.rx+q/2<0?1:Ae.element.rx+=q/2))):Ae.element.width+it.dx<0?(z=re,Se=!0,Ae.element.width=Math.abs(Ae.element.width+it.dx)):(Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+it.dx/2<0?1:Ae.element.cx+=it.dx/2,Ae.element.rx=Ae.element.rx+it.dx/2<0?1:Ae.element.rx+=it.dx/2),Ae.element.width=Ae.element.width+it.dx<0?1:Ae.element.width+=it.dx),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Ke=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ae){var it=Ln;Ae.element.width+=it.dx,Ae.element.height+=it.dy,Ae.element.x2+=it.dx,Ae.element.y2+=it.dy,i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),st=gg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ae){var it=Ln;Ae.element.width+=it.dx,Ae.element.height+=it.dy,Ae.element.x1+=it.dx,Ae.element.y1+=it.dy,i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))});s.select("line.bottom").call(C),s.select("line.top").call(Z),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 S4e;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(Ks),t.LFG(rf))},Vp.\u0275prov=t.Yz7({token:Vp,factory:Vp.\u0275fac});var Eb=function(){function n(r,e,i){(0,F.Z)(this,n),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,H.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,F.Z)(this,n),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,H.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,F.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,H.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,F.Z)(this,n),this.context=r,this.scaleChangeEmitter=new t.vpe,this.currentScale=1}return(0,H.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(Ks))},sf.\u0275prov=t.Yz7({token:sf,factory:sf.\u0275fac});var Zl=(0,H.Z)(function n(){(0,F.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 $2=function(){function n(r,e){(0,F.Z)(this,n),this.drawingsEventSource=r,this.context=e}return(0,H.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 m4e(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}();$2.\u0275fac=function(r){return new(r||$2)(t.Y36(Zl),t.Y36(Ks))},$2.\u0275cmp=t.Xpm({type:$2,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var eA=function(){function n(r,e){(0,F.Z)(this,n),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new h4e(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),n}();eA.\u0275fac=function(r){return new(r||eA)(t.Y36(Vp),t.Y36(Zl))},eA.\u0275cmp=t.Xpm({type:eA,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,F.Z)(this,n),this.httpController=r}return(0,H.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),P4e=["temporaryTextElement"],tA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,F.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,H.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 g4e(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 C=g.value;d.push({property:C.split(": ")[0],value:C.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var Z={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"};Z=e.fontFixer.fix(Z),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",Z.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(Z.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",Z.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 C=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new v4e(e.editingDrawingId,C.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}();tA.\u0275fac=function(r){return new(r||tA)(t.Y36(Zl),t.Y36(Yp),t.Y36(Ks),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))},tA.\u0275cmp=t.Xpm({type:tA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(P4e,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,F.Z)(this,n)}return(0,H.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 nA=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(i){var o=e.graphDataManager.getNodes().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),a=e.graphDataManager.getLinks().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),s=e.graphDataManager.getDrawings().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),l=e.graphDataManager.getNodes().filter(function(C){if(void 0===C.label)return!1;var Z=C.x+C.label.x,z=C.y+C.label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.label}),u=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.source||2!=C.nodes.length||void 0===C.nodes[0].label)return!1;var Z=C.source.x+C.nodes[0].label.x,z=C.source.y+C.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.nodes[0]}),d=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.target||2!=C.nodes.length||void 0===C.nodes[1].label)return!1;var Z=C.target.x+C.nodes[1].label.x,z=C.target.y+C.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.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}();nA.\u0275fac=function(r){return new(r||nA)(t.Y36(Jg),t.Y36(Up),t.Y36(xb),t.Y36(Ll))},nA.\u0275cmp=t.Xpm({type:nA,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){}});var rA=function(){function n(r,e){(0,F.Z)(this,n),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,H.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}();rA.\u0275fac=function(r){return new(r||rA)(t.Y36(Ll),t.Y36(Hp))},rA.\u0275cmp=t.Xpm({type:rA,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){}});var hd=(0,H.Z)(function n(){(0,F.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 iA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,F.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,H.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 X2&&0===a.filter(function(s){return s instanceof X2&&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 X2}).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 X2}).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}();iA.\u0275fac=function(r){return new(r||iA)(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))},iA.\u0275cmp=t.Xpm({type:iA,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var oA=function(){function n(r,e){(0,F.Z)(this,n),this.linksWidget=r,this.linksEventSource=e}return(0,H.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}();oA.\u0275fac=function(r){return new(r||oA)(t.Y36(Um),t.Y36(hd))},oA.\u0275cmp=t.Xpm({type:oA,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var jm=(0,H.Z)(function n(){(0,F.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 aA=function(){function n(r,e,i){(0,F.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,H.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}();aA.\u0275fac=function(r){return new(r||aA)(t.Y36(t.SBq),t.Y36(jm),t.Y36(Ks))},aA.\u0275dir=t.lG2({type:aA,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&t.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var sA=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,H.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}();sA.\u0275fac=function(r){return new(r||sA)(t.Y36(t.SBq),t.Y36(jm),t.Y36(Ks),t.Y36(sf))},sA.\u0275dir=t.lG2({type:sA,selectors:[["","zoomingCanvas",""]]});var R4e=["svg"],L4e=["textEditor"],Xk=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z){(0,F.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=C,this.mapSettingsService=Z,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,H.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(Ks),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(R4e,5),t.Gf(L4e,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:[$2,eA,tA,nA,rA,iA,oA,aA,sA],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var Z4e=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 N4e(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 B4e(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,F.Z)(this,n),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,H.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,N4e,5,0,"div",0),t.YNc(3,B4e,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:[se.O5,dn,dr]});var Ku=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function F4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function U4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}function H4e(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 j4e=function(r){return{"is-invalid":r}},eT=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.Z)(n,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,this.projectNameValidator.get],[Z4e(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])},function(i){e.toasterService.error("Cannot create new project"),console.log(i)})}},{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 G4e(n,r){}eT.\u0275fac=function(r){return new(r||eT)(t.Y36(cr),t.Y36(ur),t.Y36(Gr),t.Y36(Vs.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,F4e,2,0,"mat-error",4),t.YNc(6,U4e,2,0,"mat-error",4),t.YNc(7,H4e,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,j4e,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var z4e={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})]))])},lA=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;return(0,F.Z)(this,e),(Z=r.call(this,i,o,a,s,l,u,d,C))._changeDetectorRef=g,Z._animationState="void",Z._animationStateChanged=new t.vpe,Z._breakpointSubscription=h.observe([nd.u3.Medium,nd.u3.Large,nd.u3.XLarge]).subscribe(function(){Z._toggleClass("mat-bottom-sheet-container-medium",h.isMatched(nd.u3.Medium)),Z._toggleClass("mat-bottom-sheet-container-large",h.isMatched(nd.u3.Large)),Z._toggleClass("mat-bottom-sheet-container-xlarge",h.isMatched(nd.u3.XLarge))}),Z}return(0,H.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);lA.\u0275fac=function(r){return new(r||lA)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(se.K0,8),t.Y36(JD),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Li.Iu),t.Y36(nd.Yg),t.Y36(t.sBO),t.Y36(Yr.tE))},lA.\u0275cmp=t.Xpm({type:lA,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,G4e,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:[z4e.bottomSheetState]}});var Db=(0,H.Z)(function n(){(0,F.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 W4e=new t.OlP("MatBottomSheetData"),V4e=(0,H.Z)(function n(){(0,F.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}),M5=function(){function n(r,e,i){var o=this;(0,F.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,H.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}(),Y4e=new t.OlP("mat-bottom-sheet-default-options"),lf=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._overlay=r,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=e.get(vm)}return(0,H.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 V4e),i);return this._dialog.open(e,Object.assign(Object.assign({},a),{disableClose:!0,maxWidth:"100%",container:lA,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 M5(u,a,h),[{provide:M5,useValue:s},{provide:W4e,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(Y4e,8))},lf.\u0275prov=t.Yz7({token:lf,factory:lf.\u0275fac,providedIn:Db});var K4e=function(r){return{lightTheme:r}},md=function(){function n(r,e){(0,F.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,H.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(M5),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,K4e,e.isLightThemeEnabled)),t.xp6(2),t.Oqu(e.message))},dependencies:[se.mk,dn],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,F.Z)(this,n)}return(0,H.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 eW(){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 Sse=/[&<>"']/,J4e=new RegExp(Sse.source,"g"),Ese=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Q4e=new RegExp(Ese.source,"g"),X4e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xse=function(r){return X4e[r]};function Nl(n,r){if(r){if(Sse.test(n))return n.replace(J4e,xse)}else if(Ese.test(n))return n.replace(Q4e,xse);return n}var $4e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Dse(n){return n.replace($4e,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 e8e=/(^|[^\[])\^/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(e8e,"$1"),n=n.replace(o,a),e},getRegex:function(){return new RegExp(n,r)}};return e}var t8e=/[^\w:]/g,n8e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ase(n,r,e){if(n){var i;try{i=decodeURIComponent(Dse(e)).replace(t8e,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!n8e.test(e)&&(e=function a8e(n,r){S5[" "+n]||(r8e.test(n)?S5[" "+n]=n+"/":S5[" "+n]=x5(n,"/",!0));var e=-1===(n=S5[" "+n]).indexOf(":");return"//"===r.substring(0,2)?e?r:n.replace(i8e,"$1")+r:"/"===r.charAt(0)?e?r:n.replace(o8e,"$1")+r:n+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var S5={},r8e=/^[^:]+:\/*[^/]*$/,i8e=/^([^:]+:)[\s\S]*$/,o8e=/^([^:]+:\/*[^/]*)[\s\S]*$/;var E5={exec:function(){}};function Ose(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 x5(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 Ise(n,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=n),r>>=1,n+=n;return e+n}function Pse(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 D5=function(){function n(r){(0,F.Z)(this,n),this.options=r||ov}return(0,H.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:x5(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function u8e(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=x5(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,C,Z,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)}),C=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(C)&&(o+=C+"\n",e=e.substring(C.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),"}(?:```|~~~)")),Ae=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));e&&(C=Z=e.split("\n",1)[0],this.options.pedantic&&(C=C.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(st.test(C)||Ae.test(C)||Ee.test(C)||Ke.test(e)));){if(C.search(/[^ ]/)>=l||!C.trim())z+="\n"+C.slice(l);else{if(d||g.search(/[^ ]/)>=4||st.test(g)||Ae.test(g)||Ke.test(g))break;z+="\n"+C}!d&&!C.trim()&&(d=!0),o+=Z+"\n",e=e.substring(Z.length+1),g=C.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:Ose(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]=Ose(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=x5(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function s8e(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)),Pse(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 Pse(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\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\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,C="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(C.lastIndex=0,i=i.slice(-1*e.length+l);null!=(a=C.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 Z=e.slice(0,l+a.index+(a[0].length-u.length)+d);if(Math.min(l,d)%2){var z=Z.slice(1,-1);return{type:"em",raw:Z,text:z,tokens:this.lexer.inlineTokens(z)}}var q=Z.slice(2,-2);return{type:"strong",raw:Z,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:E5,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:E5,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:E5,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:E5,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function c8e(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 Rse(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,F.Z)(this,n),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||ov,this.options.tokenizer=this.options.tokenizer||new D5,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,H.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,C,Z){return C+" ".repeat(Z.length)});for(var a,s,l,u,h,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 0;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),0;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),0;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),0;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),0;if((a=i.tokenizer.table(e))||(a=i.tokenizer.lheading(e)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startBlock){var z,C=1/0,Z=e.slice(1);i.options.extensions.startBlock.forEach(function(re){"number"==typeof(z=re.call({lexer:this},Z))&&z>=0&&(C=Math.min(C,z))}),C<1/0&&C>=0&&(l=e.substring(0,C+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),0;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),0;if(e){var q="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(q),1;throw new Error(q)}};e&&(0===(h=d())||1!==h););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 C=Object.keys(this.tokens.links);if(C.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(u));)C.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+Ise("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)+"["+Ise("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 z,Z=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 0;if(a=i.tokenizer.escape(e))return e=e.substring(a.raw.length),o.push(a),0;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),0;if(a=i.tokenizer.link(e))return e=e.substring(a.raw.length),o.push(a),0;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),0;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,Rse))||!i.state.inLink&&(a=i.tokenizer.url(e,Rse)))return e=e.substring(a.raw.length),o.push(a),0;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,c8e))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),0;if(e){var Ce="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(Ce),1;throw new Error(Ce)}};e&&(0===(z=Z())||1!==z););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}(),A5=function(){function n(r){(0,F.Z)(this,n),this.options=r||ov}return(0,H.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=Ase(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=Ase(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}(),tW=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),nW=function(){function n(){(0,F.Z)(this,n),this.seen={}}return(0,H.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,F.Z)(this,n),this.options=r||ov,this.options.renderer=this.options.renderer||new A5,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new tW,this.slugger=new nW}return(0,H.Z)(n,[{key:"parse",value:function(e){var a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,Ee,Ke,st,Ae,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!==(Ae=this.options.extensions.renderers[z.type].call({parser:this},z))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(z.type)))o+=Ae||"";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,Dse(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(C="",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(C+=this.renderer.tablerow(g),Z="",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]});Z+=this.renderer.tablerow(g)}o+=this.renderer.table(C,Z);continue;case"blockquote":Z=this.parse(z.tokens),o+=this.renderer.blockquote(Z);continue;case"list":for(q=z.ordered,re=z.start,ae=z.loose,u=z.items.length,Z="",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),Z+=this.renderer.listitem(Se,Ke,Ee);o+=this.renderer.list(Z,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(Z=z.tokens?this.parseInline(z.tokens):z.text;a+1<it&&"text"===e[a+1].type;)Z+="\n"+((z=e[++a]).tokens?this.parseInline(z.tokens):z.text);o+=i?this.renderer.paragraph(Z):Z;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}(),uA=function(){function n(r){(0,F.Z)(this,n),this.options=r||ov}return(0,H.Z)(n,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),n}();function Lse(n,r){return function(e,i,o){"function"==typeof i&&(o=i,i=null);var a=Vr({},i),s=function d8e(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 l8e(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(Z){return s(Z)}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(Z){"code"===Z.type&&(h++,setTimeout(function(){l(Z.text,Z.lang,function(z,q){if(z)return d(z);null!=q&&q!==Z.text&&(Z.text=q,Z.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(Z){return n(Z,i)}).then(function(Z){return i.walkTokens?Promise.all(Nr.walkTokens(Z,i.walkTokens)).then(function(){return Z}):Z}).then(function(Z){return r(Z,i)}).then(function(Z){return i.hooks?i.hooks.postprocess(Z):Z}).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));var g=n(e,i);i.walkTokens&&Nr.walkTokens(g,i.walkTokens);var C=r(g,i);return i.hooks&&(C=i.hooks.postprocess(C)),C}catch(Z){return s(Z)}}}function Nr(n,r,e){return Lse(tT.lex,nT.parse)(n,r,e)}(0,Yw.Z)(uA,"passThroughHooks",new Set(["preprocess","postprocess"])),Nr.options=Nr.setOptions=function(n){return Nr.defaults=Vr(Vr({},Nr.defaults),n),function q4e(n){ov=n}(Nr.defaults),Nr},Nr.getDefaults=eW,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 A5,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 D5,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 C=Nr.defaults.hooks||new uA,Z=function(ae){var Se=C[ae];uA.passThroughHooks.has(ae)?C[ae]=function(Ce){if(Nr.defaults.async)return Promise.resolve(o.hooks[ae].call(C,Ce)).then(function(Ke){return Se.call(C,Ke)});var Ee=o.hooks[ae].call(C,Ce);return Se.call(C,Ee)}:C[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(C,Ee);return!1===st&&(st=Se.apply(C,Ee)),st}};for(var z in o.hooks)Z(z);a.hooks=C}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 C,g=(0,An.Z)(l.rows);try{for(g.s();!(C=g.n()).done;){var q,Z=C.value,z=(0,An.Z)(Z);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=Lse(tT.lexInline,nT.parseInline),Nr.Parser=nT,Nr.parser=nT.parse,Nr.Renderer=A5,Nr.TextRenderer=tW,Nr.Lexer=tT,Nr.lexer=tT.lex,Nr.Tokenizer=D5,Nr.Slugger=nW,Nr.Hooks=uA,Nr.parse=Nr;var f8e=Nr.options,p8e=Nr.setOptions,h8e=Nr.use,m8e=Nr.walkTokens,_8e=Nr.parseInline,g8e=Nr,v8e=nT.parse,y8e=tT.lex,cA=function(){function n(r,e){(0,F.Z)(this,n),this.elementRef=r,this.renderer=e}return(0,H.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 b8e(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)}}cA.\u0275fac=function(r){return new(r||cA)(t.Y36(t.SBq),t.Y36(t.Qsj))},cA.\u0275dir=t.lG2({type:cA,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[t.TTD]});var dA=function(){function n(r){(0,F.Z)(this,n),this.projectService=r,this.markdown=""}return(0,H.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}();dA.\u0275fac=function(r){return new(r||dA)(t.Y36(Vs.Y))},dA.\u0275cmp=t.Xpm({type:dA,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,b8e,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:[se.O5,J.Fj,J.JJ,J.On,Kn,Fi.SP,Fi.uX,cA],styles:[".textWrapper{height:500px!important;overflow-y:scroll}.editorWrapper{background-color:#fff;color:#000;height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var C8e=["editor"];function w8e(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 k8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Name"),t.qZA())}function T8e(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 M8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Value"),t.qZA())}function S8e(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 E8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Actions"),t.qZA())}function x8e(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 D8e(n,r){1&n&&t._UZ(0,"tr",34)}function A8e(n,r){1&n&&t._UZ(0,"tr",35)}var O5=function(){return{standalone:!0}},fA=function(){function n(r,e,i,o,a){(0,F.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,H.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 O8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function I8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}fA.\u0275fac=function(r){return new(r||fA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Vs.Y),t.Y36(Zn),t.Y36(uf))},fA.\u0275cmp=t.Xpm({type:fA,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(C8e,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,w8e,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,k8e,2,0,"th",18),t.YNc(36,T8e,2,1,"td",19),t.BQk(),t.ynx(37,20),t.YNc(38,M8e,2,0,"th",18),t.YNc(39,S8e,2,1,"td",19),t.BQk(),t.ynx(40,21),t.YNc(41,E8e,2,0,"th",18),t.YNc(42,x8e,4,0,"td",19),t.BQk(),t.YNc(43,D8e,1,0,"tr",22),t.YNc(44,A8e,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,O5))("ngModel",e.project.auto_open),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,O5))("ngModel",e.project.auto_start),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,O5))("ngModel",e.auto_close),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,O5))("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:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,ti,mi,Fi.SP,Fi.uX,dA],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 P8e=function(r){return{empty:r}},R8e=function(r){return{"is-invalid":r}},rT=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.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,H.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(Vs.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,O8e,2,0,"mat-error",8),t.YNc(11,I8e,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,P8e,!e.isDeleteVisible)),t.xp6(1),t.Q6J("ngClass",t.VKq(14,R8e,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,Mp,kn.TO,kn.KE,dn,Dn,Kn,yr,dr,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 L8e=function(r){return{lightTheme:r}},iT=function(){function n(r,e){(0,F.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,H.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 Z8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function N8e(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(M5),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,L8e,e.isLightThemeEnabled)),t.xp6(2),t.hij("Do you want to navigate to ",e.projectMessage,"?"))},dependencies:[se.mk,dn],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 B8e=function(r){return{"is-invalid":r}},pA=function(){function n(r,e,i,o,a,s){(0,F.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,H.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}();pA.\u0275fac=function(r){return new(r||pA)(t.Y36(cr),t.Y36(Vs.Y),t.Y36(za.G),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ku))},pA.\u0275cmp=t.Xpm({type:pA,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,Z8e,2,0,"mat-error",4),t.YNc(6,N8e,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,B8e,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Fr=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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 F8e(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 hA=function(){function n(r,e){(0,F.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,H.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}();hA.\u0275fac=function(r){return new(r||hA)(t.Y36(Fr),t.Y36(Zn))},hA.\u0275cmp=t.Xpm({type:hA,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,F8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStoppedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var mA=function(){function n(r,e){(0,F.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,H.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}();mA.\u0275fac=function(r){return new(r||mA)(t.Y36(Fr),t.Y36(Zn))},mA.\u0275cmp=t.Xpm({type:mA,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 _A=function(){function n(r,e){(0,F.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,H.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 U8e(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()()}}_A.\u0275fac=function(r){return new(r||_A)(t.Y36(Fr),t.Y36(Zn))},_A.\u0275cmp=t.Xpm({type:_A,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 gA=function(){function n(r){(0,F.Z)(this,n),this.nodeService=r}return(0,H.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}();gA.\u0275fac=function(r){return new(r||gA)(t.Y36(Fr))},gA.\u0275cmp=t.Xpm({type:gA,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,U8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var ya=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(YB.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,F.Z)(this,n),this.httpController=r,this.svgToDrawingConverter=e}return(0,H.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 vA=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,H.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}();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-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 yA=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,H.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}();yA.\u0275fac=function(r){return new(r||yA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},yA.\u0275cmp=t.Xpm({type:yA,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,F.Z)(this,n)}return(0,H.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,F.Z)(this,n)}return(0,H.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 oT=function(){return{standalone:!0}};function H8e(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,oT))("ngModel",i.element.fill)}}function j8e(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 G8e(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.width=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.width)}}function z8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.height=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,oT))("ngModel",i.element.height)}}function W8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",17),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,oT))("ngModel",i.element.rx)}}var bA=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.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,H.Z)(n,[{key:"ngOnInit",value:function(){var e,i;this.element=new V8e,this.drawing.element instanceof af||this.drawing.element instanceof ea?(this.element.fill=this.drawing.element.fill,this.element.width=this.drawing.element.width,this.element.height=this.drawing.element.height,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.width=this.element.width,this.drawing.element.height=this.element.height,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}();bA.\u0275fac=function(r){return new(r||bA)(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))},bA.\u0275cmp=t.Xpm({type:bA,selectors:[["app-style-editor"]],decls:22,vars:12,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","Width","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Height","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["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,H8e,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,j8e,2,2,"mat-option",8),t.qZA()(),t.YNc(12,G8e,2,3,"mat-form-field",3),t.YNc(13,z8e,2,3,"mat-form-field",3),t.YNc(14,W8e,2,3,"mat-form-field",3),t.TgZ(15,"mat-form-field",4),t._UZ(16,"input",9),t.qZA()()(),t.TgZ(17,"div",10)(18,"button",11),t.NdJ("click",function(){return e.onNoClick()}),t._uU(19,"Cancel"),t.qZA(),t.TgZ(20,"button",12),t.NdJ("click",function(){return e.onYesClick()}),t._uU(21,"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(10,oT))("ngModel",e.element.stroke),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(11,oT))("ngModel",e.element.stroke_dasharray),t.xp6(1),t.Q6J("ngForOf",e.borderTypes),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.width),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.height),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.rx))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ri.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 V8e=(0,H.Z)(function n(){(0,F.Z)(this,n)});function Y8e(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 CA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r,this.isImageDrawing=!1}return(0,H.Z)(n,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof T5}},{key:"editStyle",value:function(){var i=this.dialog.open(bA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),n}();function K8e(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," ")}}CA.\u0275fac=function(r){return new(r||CA)(t.Y36(Gr))},CA.\u0275cmp=t.Xpm({type:CA,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,Y8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.isImageDrawing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var wA=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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}();wA.\u0275fac=function(r){return new(r||wA)(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))},wA.\u0275cmp=t.Xpm({type:wA,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,K8e,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:[se.sg,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ri.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 kA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(wA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();kA.\u0275fac=function(r){return new(r||kA)(t.Y36(Gr))},kA.\u0275cmp=t.Xpm({type:kA,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 q8e=["textArea"],TA=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z){(0,F.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=C,this.rotationValidator=Z,this.fontFixer=z}return(0,H.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}();TA.\u0275fac=function(r){return new(r||TA)(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))},TA.\u0275cmp=t.Xpm({type:TA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(q8e,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,dn,Kn,yr,dr],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 MA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(TA,{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}();MA.\u0275fac=function(r){return new(r||MA)(t.Y36(Gr))},MA.\u0275cmp=t.Xpm({type:MA,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 SA=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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}();SA.\u0275fac=function(r){return new(r||SA)(t.Y36(za.G),t.Y36(ya),t.Y36(Hm.F),t.Y36(Fr),t.Y36(Wa),t.Y36(pl),t.Y36(lf))},SA.\u0275cmp=t.Xpm({type:SA,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 EA=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,H.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 J8e(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," ")}}EA.\u0275fac=function(r){return new(r||EA)(t.Y36(Fr),t.Y36(za.G),t.Y36(Wa),t.Y36(ya),t.Y36(Zn))},EA.\u0275cmp=t.Xpm({type:EA,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 xA=function(){function n(r){(0,F.Z)(this,n),this.dialogRef=r}return(0,H.Z)(n,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();function Q8e(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])}}xA.\u0275fac=function(r){return new(r||xA)(t.Y36(cr))},xA.\u0275cmp=t.Xpm({type:xA,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,J8e,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:[se.sg,dn,yr,dr],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var DA=function(){function n(r,e,i){(0,F.Z)(this,n),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,H.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(xA,{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}();DA.\u0275fac=function(r){return new(r||DA)(t.Y36(cr),t.Y36(pl),t.Y36(Gr))},DA.\u0275cmp=t.Xpm({type:DA,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,Q8e,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:[se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Kn,yr,dr,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 AA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(DA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();AA.\u0275fac=function(r){return new(r||AA)(t.Y36(Gr))},AA.\u0275cmp=t.Xpm({type:AA,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,F.Z)(this,n)}return(0,H.Z)(n,[{key:"startCapture",value:function(e,i,o,a){location.assign("gns3+pcap://".concat(e.host,":").concat(e.port,"?protocol=").concat(e.protocol.slice(0,-1),"&project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&project=").concat(i.name,"&name=").concat(a))}}]),n}();function X8e(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 $8e=function(){return{standalone:!0}},OA=function(){function n(r,e,i,o,a,s){(0,F.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,H.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 eUe(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()()}}OA.\u0275fac=function(r){return new(r||OA)(t.Y36(cr),t.Y36(pl),t.Y36(J.QS),t.Y36(Zn),t.Y36(za.G),t.Y36(sv))},OA.\u0275cmp=t.Xpm({type:OA,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,X8e,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,$8e))("ngModel",e.startProgram))},dependencies:[se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,dr,ti,ri.gD,Gt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var IA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"startCapture",value:function(){var i=this.dialog.open(OA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),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.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()()}}IA.\u0275fac=function(r){return new(r||IA)(t.Y36(Gr))},IA.\u0275cmp=t.Xpm({type:IA,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,eUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var PA=function(){function n(r){(0,F.Z)(this,n),this.linkService=r}return(0,H.Z)(n,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),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.resumeLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Resume"),t.qZA()()}}PA.\u0275fac=function(r){return new(r||PA)(t.Y36(pl))},PA.\u0275cmp=t.Xpm({type:PA,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,tUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var RA=function(){function n(r){(0,F.Z)(this,n),this.linkService=r}return(0,H.Z)(n,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();function rUe(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()()}}RA.\u0275fac=function(r){return new(r||RA)(t.Y36(pl))},RA.\u0275cmp=t.Xpm({type:RA,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,nUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.suspend)},dependencies:[se.O5,Er,Dn],encapsulation:2});var LA=function(){function n(r){(0,F.Z)(this,n),this.linkService=r}return(0,H.Z)(n,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();LA.\u0275fac=function(r){return new(r||LA)(t.Y36(pl))},LA.\u0275cmp=t.Xpm({type:LA,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,rUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.suspend)},dependencies:[se.O5,Er,Dn],encapsulation:2});var Gm=m(9449),ZA=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,H.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}();ZA.\u0275fac=function(r){return new(r||ZA)(t.Y36(ul),t.Y36(or),t.Y36(Gm.g),t.Y36(Zn),t.Y36(Fr))},ZA.\u0275cmp=t.Xpm({type:ZA,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,F.Z)(this,n)}return(0,H.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 iUe(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 NA=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,H.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}();NA.\u0275fac=function(r){return new(r||NA)(t.Y36(cr),t.Y36(Ab))},NA.\u0275cmp=t.Xpm({type:NA,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,iUe,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:[se.sg,dn,yr,dr,Fi.SP,Fi.uX],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var BA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"showNode",value:function(){var i=this.dialog.open(NA,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),n}();function oUe(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 aUe(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)}}BA.\u0275fac=function(r){return new(r||BA)(t.Y36(Gr))},BA.\u0275cmp=t.Xpm({type:BA,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 FA=function(){function n(r,e,i){(0,F.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,H.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 sUe(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()()}}FA.\u0275fac=function(r){return new(r||FA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},FA.\u0275cmp=t.Xpm({type:FA,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,oUe,3,1,"div",1),t.YNc(3,aUe,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:[se.O5,J.Fj,J.JJ,J.On,dn,yr,dr,Fi.SP,Fi.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var UA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"editConfig",value:function(){var i=this.dialog.open(FA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),n}();UA.\u0275fac=function(r){return new(r||UA)(t.Y36(Gr))},UA.\u0275cmp=t.Xpm({type:UA,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,sUe,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:[se.O5,Er,Dn],encapsulation:2});var HA=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,H.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}();HA.\u0275fac=function(r){return new(r||HA)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa))},HA.\u0275cmp=t.Xpm({type:HA,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 aT=function(){function n(r){(0,F.Z)(this,n),this.dialogRef=r}return(0,H.Z)(n,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),n}();function lUe(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()()}}aT.\u0275fac=function(r){return new(r||aT)(t.Y36(cr))},aT.\u0275cmp=t.Xpm({type:aT,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:[dn,yr],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var jA=function(){function n(r,e){(0,F.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,H.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(aT,{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}();jA.\u0275fac=function(r){return new(r||jA)(t.Y36(Fr),t.Y36(Gr))},jA.\u0275cmp=t.Xpm({type:jA,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,lUe,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:[se.O5,Er,Dn],encapsulation:2});var uUe=["fileInput"],GA=function(){function n(r,e,i){(0,F.Z)(this,n),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,H.Z)(n,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open(aT,{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}();GA.\u0275fac=function(r){return new(r||GA)(t.Y36(Fr),t.Y36(Zn),t.Y36(Gr))},GA.\u0275cmp=t.Xpm({type:GA,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(uUe,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 uT,P5,Zse=m(1396),sT={UKNOWN:"Unknown"},rW={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:sT.UKNOWN},I5={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")},lT={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:sT.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"},Nse=[lv.PS4,lv.CHROME_BOOK,lv.MAC,lv.DELL,lv.ASUS,lv.UNKNOWN],cUe={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:sT.UKNOWN},dUe={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:sT.UKNOWN.toLowerCase()},Bse={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/},pUe=Object.assign(Object.assign(Object.assign(Object.assign({},I5),lT),Bse),{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/]}}]}}),iW={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)/},oW={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/},hUe=Object.keys(iW).reduce(function(n,r){return n[r]=iW[r],n},{}),Fse=Object.keys(oW).reduce(function(n,r){return n[rW[r]]=oW[r],n},{}),Kp=Object.freeze({__proto__:null,GENERAL:sT,BROWSERS:rW,MOBILES_RE:I5,TABLETS_RE:lT,DEVICES:lv,DESKTOP_DEVICES:Nse,OS:cUe,OS_VERSIONS:dUe,OS_RE:Bse,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:pUe,OS_VERSIONS_RE_MAP:iW,BROWSER_VERSIONS_RE_MAP:oW,OS_VERSIONS_RE:hUe,BROWSER_VERSIONS_RE:Fse}),mUe=function(){function n(){(0,F.Z)(this,n)}return(0,H.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"}(uT||(uT={})),function(n){n.Portrait="portrait",n.Landscape="landscape"}(P5||(P5={}));var aW="iPad",Ob=function(){function n(r){(0,F.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 mUe,this.deviceType="",this.orientation="",(0,se.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,H.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,se.NF)(e.platformId)&&(e.reTree.test(e.userAgent,lT[aW])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[Kp[l.const][d]]=aW,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!==rW.UNKNOWN){var a=Fse[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?P5.Landscape:P5.Portrait:this.orientation=sT.UKNOWN,this.deviceType=this.isTablet()?uT.Tablet:this.isMobile(this.userAgent)?uT.Mobile:this.isDesktop(this.userAgent)?uT.Desktop:uT.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(I5).find(function(a){return e.reTree.test(i,I5[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,se.NF)(this.platformId)&&(this.reTree.test(this.userAgent,lT[aW])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(lT).find(function(a){return!!e.reTree.test(i,lT[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))&&Nse.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 zA=function(){function n(r,e,i){(0,F.Z)(this,n),this.toasterService=r,this.nodeService=e,this.deviceService=i}return(0,H.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,o=this.node.console_host;if(Zse.IPv6.isValid(o)&&(o="[".concat(o,"]")),"telnet"===this.node.console_type)i="gns3+telnet://".concat(o,":").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(o,":").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(o,":").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(o,":").concat(this.node.console),window.open(i);this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.")}console.log("Opening external console using "+e.browser+" browser"),"Firefox"===e.browser?this.openUriUsingFirefox(i):location.assign(i)}catch(a){this.toasterService.error(a)}}}}]),n}();zA.\u0275fac=function(r){return new(r||zA)(t.Y36(Zn),t.Y36(Fr),t.Y36(Ob))},zA.\u0275cmp=t.Xpm({type:zA,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 WA=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.nodeService=e}return(0,H.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}();WA.\u0275fac=function(r){return new(r||WA)(t.Y36(cr),t.Y36(Fr))},WA.\u0275cmp=t.Xpm({type:WA,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:[dn,yr,dr,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 VA=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(WA,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function _Ue(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()()}}VA.\u0275fac=function(r){return new(r||VA)(t.Y36(Gr))},VA.\u0275cmp=t.Xpm({type:VA,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 YA=function(){function n(r){(0,F.Z)(this,n),this.nodeService=r,this.filteredNodes=[]}return(0,H.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 gUe(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()()}}YA.\u0275fac=function(r){return new(r||YA)(t.Y36(Fr))},YA.\u0275cmp=t.Xpm({type:YA,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,_Ue,5,0,"button",0),2&r&&t.Q6J("ngIf",e.filteredNodes.length>0)},dependencies:[se.O5,Er,Dn],encapsulation:2});var KA=function(){function n(r){(0,F.Z)(this,n),this.nodeService=r}return(0,H.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 vUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function yUe(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 bUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function CUe(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 wUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Actions"),t.qZA())}function kUe(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 TUe(n,r){1&n&&t._UZ(0,"tr",31)}function MUe(n,r){1&n&&t._UZ(0,"tr",32)}function SUe(n,r){if(1&n&&(t.TgZ(0,"table",19),t.ynx(1,20),t.YNc(2,vUe,2,0,"th",21),t.YNc(3,yUe,2,1,"td",22),t.BQk(),t.ynx(4,23),t.YNc(5,bUe,2,0,"th",21),t.YNc(6,CUe,2,1,"td",22),t.BQk(),t.ynx(7,24),t.YNc(8,wUe,2,0,"th",21),t.YNc(9,kUe,4,0,"td",22),t.BQk(),t.YNc(10,TUe,1,0,"tr",25),t.YNc(11,MUe,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)}}KA.\u0275fac=function(r){return new(r||KA)(t.Y36(Fr))},KA.\u0275cmp=t.Xpm({type:KA,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,gUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[se.O5,Er,Dn],encapsulation:2});var qA=function(){function n(r,e,i,o){(0,F.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,H.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 EUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Name"),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.name)}}function DUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Local port"),t.qZA())}function AUe(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 OUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function IUe(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 PUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Remote port"),t.qZA())}function RUe(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 LUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function ZUe(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 NUe(n,r){1&n&&t._UZ(0,"tr",22)}function BUe(n,r){1&n&&t._UZ(0,"tr",23)}function FUe(n,r){if(1&n&&(t.TgZ(0,"table",8),t.ynx(1,9),t.YNc(2,EUe,2,0,"th",10),t.YNc(3,xUe,2,1,"td",11),t.BQk(),t.ynx(4,12),t.YNc(5,DUe,2,0,"th",10),t.YNc(6,AUe,2,1,"td",11),t.BQk(),t.ynx(7,13),t.YNc(8,OUe,2,0,"th",10),t.YNc(9,IUe,2,1,"td",11),t.BQk(),t.ynx(10,14),t.YNc(11,PUe,2,0,"th",10),t.YNc(12,RUe,2,1,"td",11),t.BQk(),t.ynx(13,15),t.YNc(14,LUe,2,0,"th",10),t.YNc(15,ZUe,4,0,"td",11),t.BQk(),t.YNc(16,NUe,1,0,"tr",16),t.YNc(17,BUe,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 UUe(n,r){1&n&&t._UZ(0,"br")}qA.\u0275fac=function(r){return new(r||qA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},qA.\u0275cmp=t.Xpm({type:qA,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,SUe,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:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,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 JA=function(){function n(r){(0,F.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,H.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}();JA.\u0275fac=function(r){return new(r||JA)(t.Y36(kc))},JA.\u0275cmp=t.Xpm({type:JA,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,FUe,18,3,"table",0),t.YNc(1,UUe,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:[se.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,dn,Dn,Kn,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 HUe=["udpTunnels"];function jUe(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 GUe(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 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 WUe(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 VUe=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.YNc(2,jUe,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,GUe,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,zUe,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,WUe,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,VUe))("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 QA=function(){function n(r,e,i,o,a){(0,F.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,H.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 KUe(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 qUe(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,KUe,6,2,"mat-list-item",8),t.qZA()()()),2&n){var e=t.oxw();t.xp6(8),t.Q6J("ngForOf",e.adapters)}}QA.\u0275fac=function(r){return new(r||QA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},QA.\u0275cmp=t.Xpm({type:QA,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(HUe,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,YUe,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.gD,Gt.ey,Fi.SP,Fi.uX,JA],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 XA=function(){function n(r,e,i,o,a){(0,F.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,H.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}();XA.\u0275fac=function(r){return new(r||XA)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ip))},XA.\u0275cmp=t.Xpm({type:XA,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,qUe,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:[se.sg,se.O5,J.Fj,J.JJ,J.On,dn,Kn,yr,dr,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 JUe(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 $A=function(){function n(r,e,i){(0,F.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,H.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 QUe(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 XUe(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," ")}}$A.\u0275fac=function(r){return new(r||$A)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn))},$A.\u0275cmp=t.Xpm({type:$A,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,JUe,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:[se.O5,J.Fj,J.JJ,J.On,dn,Kn,yr,dr],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var sW=function(){return{standalone:!0}};function $Ue(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,QUe,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,XUe,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,sW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(21,sW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(22,sW))("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 eO=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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(XA,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open($A,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 e7e(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 t7e(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)}}eO.\u0275fac=function(r){return new(r||eO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ip),t.Y36(uf),t.Y36(Gr))},eO.\u0275cmp=t.Xpm({type:eO,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,$Ue,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.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 n7e=function(){return{standalone:!0}};function r7e(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,e7e,2,2,"mat-option",14),t.qZA()()(),t.YNc(8,t7e,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,n7e))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngIf",i.node.properties)}}var tO=function(){function n(r,e,i,o,a){(0,F.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,H.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}();tO.\u0275fac=function(r){return new(r||tO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(kc))},tO.\u0275cmp=t.Xpm({type:tO,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,r7e,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.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 i7e=function(){return{standalone:!0}},nO=function(){function n(r,e,i,o,a){(0,F.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,H.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 o7e(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 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",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,o7e,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)}}nO.\u0275fac=function(r){return new(r||nO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},nO.\u0275cmp=t.Xpm({type:nO,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,i7e)))},dependencies:[J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr],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,F.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,H.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 s7e(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 l7e(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 u7e(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 c7e(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,s7e,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,l7e,4,1,"mat-form-field",17),t.YNc(15,u7e,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)}}rO.\u0275fac=function(r){return new(r||rO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Mm))},rO.\u0275cmp=t.Xpm({type:rO,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,a7e,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.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,a){(0,F.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,H.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}();iO.\u0275fac=function(r){return new(r||iO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Lg))},iO.\u0275cmp=t.Xpm({type:iO,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,c7e,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.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 oO=function(){function n(r,e,i,o){(0,F.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,H.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 d7e(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 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&&(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 h7e(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 m7e(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 _7e(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,f7e,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,p7e,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,h7e,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,m7e,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 g7e(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 v7e(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 y7e(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,v7e,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)}}oO.\u0275fac=function(r){return new(r||oO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},oO.\u0275cmp=t.Xpm({type:oO,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,dn,di,Kn,yr,dr],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 aO=function(){function n(r,e,i,o,a){(0,F.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,H.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}();aO.\u0275fac=function(r){return new(r||aO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu))},aO.\u0275cmp=t.Xpm({type:aO,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,d7e,2,2,"mat-option",9),t.qZA()(),t.YNc(12,_7e,15,8,"div",10),t.YNc(13,g7e,6,0,"div",10),t.YNc(14,y7e,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ri.gD,Gt.ey,rs,Ws],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 b7e=["customAdapters"];function C7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function w7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function k7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function T7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),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",50),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",50),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&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function x7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function D7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function A7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function O7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function I7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),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,"mat-form-field",11)(1,"input",51),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 R7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var L7e=function(){return{standalone:!0}};function Z7e(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,C7e,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,w7e,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,k7e,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,T7e,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,M7e,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,S7e,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,E7e,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,x7e,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,D7e,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,A7e,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,O7e,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,I7e,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,P7e,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,R7e,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.qemu_path=a)}),t.qZA()(),t.TgZ(136,"mat-form-field",11)(137,"input",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.options=a)}),t.qZA()(),t._UZ(138,"br"),t.TgZ(139,"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(140," Enable the Trusted Platform Module (TPM) "),t.qZA(),t._UZ(141,"br"),t.TgZ(142,"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(143," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(144,"mat-tab",48)(145,"mat-form-field",11)(146,"textarea",49),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(48,L7e)),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.qemu_path),t.xp6(2),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 sO=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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(aO,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 N7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function B7e(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 F7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function U7e(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 H7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Actions"),t.qZA())}function j7e(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 G7e(n,r){1&n&&t._UZ(0,"tr",28)}function z7e(n,r){1&n&&t._UZ(0,"tr",29)}function W7e(n,r){if(1&n&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,N7e,2,0,"th",18),t.YNc(3,B7e,2,1,"td",19),t.BQk(),t.ynx(4,20),t.YNc(5,F7e,2,0,"th",18),t.YNc(6,U7e,2,1,"td",19),t.BQk(),t.ynx(7,21),t.YNc(8,H7e,2,0,"th",18),t.YNc(9,j7e,4,0,"td",19),t.BQk(),t.YNc(10,G7e,1,0,"tr",22),t.YNc(11,z7e,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)}}sO.\u0275fac=function(r){return new(r||sO)(t.Y36(Gr),t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Gu),t.Y36(Em))},sO.\u0275cmp=t.Xpm({type:sO,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(b7e,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","Qemu binary path",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,Z7e,147,49,"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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Y0,lk,uk,Kn,yr,dr,ti,ri.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 lO=function(){function n(r,e,i,o){(0,F.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,H.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}();lO.\u0275fac=function(r){return new(r||lO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},lO.\u0275cmp=t.Xpm({type:lO,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,W7e,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:[se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,dr,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 V7e=["customAdapters"];function Y7e(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 K7e(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 lW=function(){return{standalone:!0}};function q7e(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,Y7e,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,K7e,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,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("ngModel",i.node.properties.ram),t.xp6(4),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(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,F.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,H.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}();uO.\u0275fac=function(r){return new(r||uO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Ng))},uO.\u0275cmp=t.Xpm({type:uO,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(V7e,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,q7e,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:[se.sg,se.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,dn,di,Kn,yr,dr,ti,ri.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 J7e=["customAdapters"];function Q7e(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 X7e(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 uW=function(){return{standalone:!0}};function $7e(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,Q7e,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,X7e,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,uW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,uW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(19,uW))("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 cO=function(){function n(r,e,i,o,a){(0,F.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,H.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 e9e(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," ")}}cO.\u0275fac=function(r){return new(r||cO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Bg))},cO.\u0275cmp=t.Xpm({type:cO,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(J7e,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,$7e,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ti,ri.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 Use=function(){return{standalone:!0}},dO=function(){function n(r,e,i,o,a){(0,F.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,H.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}();dO.\u0275fac=function(r){return new(r||dO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS),t.Y36(Om))},dO.\u0275cmp=t.Xpm({type:dO,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,e9e,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,Use))("ngModel",e.node.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(9,Use))("ngModel",e.node.console_auto_start))},dependencies:[se.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,di,Kn,yr,dr,ti,ri.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 fO=function(){function n(r){(0,F.Z)(this,n),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,H.Z)(n,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(dO,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(nO,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(tO,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(QA,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(rO,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(iO,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(sO,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(uO,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(cO,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(eO,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(oO,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(lO,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(qA,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),n}();function t9e(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()()}}fO.\u0275fac=function(r){return new(r||fO)(t.Y36(Gr))},fO.\u0275cmp=t.Xpm({type:fO,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 pO=function(){function n(r){(0,F.Z)(this,n),this.packetCaptureService=r}return(0,H.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}();pO.\u0275fac=function(r){return new(r||pO)(t.Y36(sv))},pO.\u0275cmp=t.Xpm({type:pO,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,t9e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[se.O5,Er,Dn],encapsulation:2});var hO=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,H.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}();hO.\u0275fac=function(r){return new(r||hO)(t.Y36(za.G),t.Y36(ya),t.Y36(Fr),t.Y36(Wa),t.Y36(Vs.Y))},hO.\u0275cmp=t.Xpm({type:hO,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 mO=function(){function n(r,e){(0,F.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,H.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}();mO.\u0275fac=function(r){return new(r||mO)(t.Y36(za.G),t.Y36(Fr))},mO.\u0275cmp=t.Xpm({type:mO,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 _O=function(){function n(r,e){(0,F.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,H.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}();_O.\u0275fac=function(r){return new(r||_O)(t.Y36(za.G),t.Y36(Fr))},_O.\u0275cmp=t.Xpm({type:_O,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 gO=function(){function n(r){(0,F.Z)(this,n),this.electronService=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),n}();gO.\u0275fac=function(r){return new(r||gO)(t.Y36(ul))},gO.\u0275cmp=t.Xpm({type:gO,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 cu=function(){function n(r,e,i){(0,F.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,H.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?token=").concat(e.authToken)}},{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}();cu.\u0275fac=function(r){return new(r||cu)(t.LFG(ur),t.LFG(Zn),t.LFG(fl))},cu.\u0275prov=t.Yz7({token:cu,factory:cu.\u0275fac});var vO=function(){function n(r){(0,F.Z)(this,n),this.nodeConsoleService=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),n}();vO.\u0275fac=function(r){return new(r||vO)(t.Y36(cu))},vO.\u0275cmp=t.Xpm({type:vO,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 yO=function(){function n(r){(0,F.Z)(this,n),this.nodeConsoleService=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),n}();yO.\u0275fac=function(r){return new(r||yO)(t.Y36(cu))},yO.\u0275cmp=t.Xpm({type:yO,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 bO=function(){function n(r,e,i,o){(0,F.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,H.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}();bO.\u0275fac=function(r){return new(r||bO)(t.Y36(cr),t.Y36(Fr),t.Y36(Zn),t.Y36(J.QS))},bO.\u0275cmp=t.Xpm({type:bO,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,dn,di,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var CO=function(){function n(r){(0,F.Z)(this,n),this.dialog=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(bO,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function n9e(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 r9e(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 i9e(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 o9e(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 a9e(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 s9e(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 l9e(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 u9e(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 c9e(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 d9e(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 f9e(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 p9e(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 h9e(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 m9e(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 _9e(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 g9e(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 v9e(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 y9e(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 b9e(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 C9e(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 w9e(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 k9e(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 T9e(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 M9e(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 S9e(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 E9e(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 x9e(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 D9e(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 A9e(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 O9e(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 I9e(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 P9e(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 R9e(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 L9e(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 Z9e(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 N9e(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)}}CO.\u0275fac=function(r){return new(r||CO)(t.Y36(Gr))},CO.\u0275cmp=t.Xpm({type:CO,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 cT=function(){function n(r,e,i,o){(0,F.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,H.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 B9e(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 F9e(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,B9e,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 U9e(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 H9e(n,r){if(1&n&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,F9e,3,8,"mat-form-field",14),t.YNc(4,U9e,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 j9e(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 G9e(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)}}cT.\u0275fac=function(r){return new(r||cT)(t.Y36(Dr),t.Y36(t.sBO),t.Y36(ul),t.Y36(Vs.Y))},cT.\u0275cmp=t.Xpm({type:cT,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,n9e,1,2,"app-show-node-action",4),t.YNc(5,r9e,1,2,"app-config-node-action",4),t.YNc(6,i9e,1,2,"app-start-node-action",5),t.YNc(7,o9e,1,2,"app-suspend-node-action",5),t.YNc(8,a9e,1,2,"app-stop-node-action",5),t.YNc(9,s9e,1,2,"app-reload-node-action",5),t.YNc(10,l9e,1,2,"app-http-console-action",5),t.YNc(11,u9e,1,2,"app-http-console-new-tab-action",5),t.YNc(12,c9e,1,2,"app-console-device-action",5),t.YNc(13,d9e,1,2,"app-console-device-action-browser",4),t.YNc(14,f9e,1,2,"app-open-file-explorer-action",4),t.YNc(15,p9e,1,2,"app-isolate-node-action",4),t.YNc(16,h9e,1,2,"app-unisolate-node-action",4),t.YNc(17,m9e,1,2,"app-change-hostname-action",4),t.YNc(18,_9e,1,2,"app-change-symbol-action",4),t.YNc(19,g9e,1,4,"app-duplicate-action",6),t.YNc(20,v9e,1,3,"app-edit-style-action",7),t.YNc(21,y9e,1,7,"app-edit-text-action",8),t.YNc(22,b9e,1,3,"app-edit-config-action",9),t.YNc(23,C9e,1,2,"app-export-config-action",4),t.YNc(24,w9e,1,2,"app-import-config-action",4),t.YNc(25,k9e,1,3,"app-move-layer-up-action",10),t.YNc(26,T9e,1,3,"app-move-layer-down-action",10),t.YNc(27,M9e,1,3,"app-bring-to-front-action",10),t.YNc(28,S9e,1,3,"app-start-capture-action",11),t.YNc(29,E9e,1,2,"app-stop-capture-action",12),t.YNc(30,x9e,1,3,"app-start-capture-on-started-link-action",11),t.YNc(31,D9e,1,3,"app-packet-filters-action",11),t.YNc(32,A9e,1,2,"app-resume-link-action",12),t.YNc(33,O9e,1,2,"app-suspend-link-action",12),t.YNc(34,I9e,1,2,"app-reset-link-action",12),t.YNc(35,P9e,1,3,"app-edit-link-style-action",11),t.YNc(36,R9e,1,3,"app-lock-action",10),t.YNc(37,L9e,1,4,"app-delete-action",13),t.YNc(38,Z9e,1,2,"app-align-horizontally-action",5),t.YNc(39,N9e,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:[se.O5,Ga,ga,hA,mA,_A,gA,vA,yA,CA,kA,MA,SA,EA,AA,IA,PA,RA,LA,ZA,BA,UA,HA,jA,GA,zA,VA,YA,KA,fO,pO,hO,mO,_O,gO,vO,yO,CO],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,H.Z)(function n(){(0,F.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 W9e={provide:zm,deps:[[new t.FiY,new t.tp0,zm]],useFactory:function z9e(n){return n||new zm}},Y9e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),K9e=(0,Gt.Id)((0,Gt.dB)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}())),R5=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;if((0,F.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,H.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}(K9e);R5.\u0275fac=function(r){t.$Z()},R5.\u0275dir=t.lG2({type:R5,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,F.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,H.Z)(e)}(R5);gd.\u0275fac=function(r){return new(r||gd)(t.Y36(zm),t.Y36(t.sBO),t.Y36(Y9e,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,H9e,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,j9e,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,G9e,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:[se.sg,se.O5,dn,kn.KE,ri.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 dT=(0,H.Z)(function n(){(0,F.Z)(this,n)});dT.\u0275fac=function(r){return new(r||dT)},dT.\u0275mod=t.oAB({type:dT}),dT.\u0275inj=t.cJS({providers:[W9e],imports:[se.ez,pm,ri.LD,G0,Gt.BQ]});var q9e=m(1452),fT=function(){function n(r){(0,F.Z)(this,n),this.dialogRef=r}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function J9e(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 Q9e(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,"")}}fT.\u0275fac=function(r){return new(r||fT)(t.Y36(cr))},fT.\u0275cmp=t.Xpm({type:fT,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:[dn,dr]});var wO=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();wO.\u0275fac=function(r){return new(r||wO)(t.Y36(cr),t.Y36(ko))},wO.\u0275cmp=t.Xpm({type:wO,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,J9e,2,1,"div",3),t.YNc(11,Q9e,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:[se.O5,dn,yr,lu,dr],encapsulation:2});var X9e=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 $9e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is required"),t.qZA())}function eHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is incorrect"),t.qZA())}function tHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template with this name exists"),t.qZA())}var nHe=function(r){return{"is-invalid":r}},uv=function(){function n(r,e,i,o,a,s,l,u){(0,F.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,H.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],[X9e(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,$9e,2,0,"mat-error",4),t.YNc(6,eHe,2,0,"mat-error",4),t.YNc(7,tHe,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,nHe,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Ib=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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 iHe(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 Hse=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),aHe=(0,Gt.dB)((0,Gt.Id)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}())),qu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.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,H.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 sHe(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}(aHe);qu.\u0275fac=function(r){return new(r||qu)(t.Y36(Hse,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,pT={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,H.Z)(function n(){(0,F.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 uHe={provide:Wm,deps:[[new t.FiY,new t.tp0,Wm]],useFactory:function lHe(n){return n||new Wm}},cHe=(0,Gt.Id)(function(){return(0,H.Z)(function n(){(0,F.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,F.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,H.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}(cHe);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(Hse,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,iHe,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:[se.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:[pT.indicator,pT.leftPointer,pT.rightPointer,pT.arrowOpacity,pT.arrowPosition,pT.allowChildren]},changeDetection:0});var hT=(0,H.Z)(function n(){(0,F.Z)(this,n)});hT.\u0275fac=function(r){return new(r||hT)},hT.\u0275mod=t.oAB({type:hT}),hT.\u0275inj=t.cJS({providers:[uHe],imports:[se.ez,Gt.BQ]});var kO=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();kO.\u0275fac=function(r){return new(r||kO)},kO.\u0275pipe=t.Yjl({name:"datasourcefilter",type:kO,pure:!0});var dHe=["stepper"];function fHe(n,r){1&n&&t._uU(0,"Please select how you want to create new template")}function pHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw();t.Oqu(e.actionTitle)}}function hHe(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 mHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function _He(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 gHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Emulator "),t.qZA())}function vHe(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 yHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Vendor "),t.qZA())}function bHe(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 CHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function wHe(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 kHe(n,r){1&n&&t._UZ(0,"mat-header-row")}function THe(n,r){1&n&&t._UZ(0,"mat-row")}function MHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw(2);t.Oqu(e.secondActionTitle)}}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,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 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,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 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,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 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,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 BHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function FHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function UHe(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,FHe,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 HHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function jHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function GHe(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,HHe,3,0,"span",32),t.YNc(5,jHe,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 zHe(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,xHe,12,4,"div",44),t.YNc(8,OHe,12,4,"div",44),t.YNc(9,RHe,12,4,"div",44),t.YNc(10,NHe,12,4,"div",44),t.YNc(11,UHe,12,4,"div",44),t.YNc(12,GHe,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 WHe(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,zHe,13,8,"div",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.versions)}}function VHe(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 YHe(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 KHe(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,YHe,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 qHe(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 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,qHe,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 QHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step"),t.YNc(1,MHe,1,1,"ng-template",3),t.TgZ(2,"mat-card",9),t.YNc(3,WHe,9,1,"div",32),t.YNc(4,VHe,3,0,"div",32),t.YNc(5,KHe,9,1,"div",32),t.YNc(6,JHe,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 XHe=function(){return{standalone:!0}},$He=function(){return[5,10,20,50,100]},mT=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q){(0,F.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=C,this.progressService=Z,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,H.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(C){return C.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?cW(o.name,a.name,s):"emulator"===e.active?cW(o.emulator,a.emulator,s):"vendor"===e.active?cW(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(wO,{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(fT,{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),l=(e.target.files[0],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.onloadend(void 0)}},{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(fT,{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 $G;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 XG;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 QG;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 ez;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 q9e.ArrayBuffer,u=new FileReader,d=0;function h(g){var C=Math.min(e.size,g+s);u.readAsArrayBuffer(e.slice(g,C))}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 cW(n,r,e){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}mT.\u0275fac=function(r){return new(r||mT)(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))},mT.\u0275cmp=t.Xpm({type:mT,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(gd,7),t.Gf(dHe,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,fHe,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,pHe,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,hHe,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,mHe,2,0,"mat-header-cell",18),t.YNc(30,_He,2,1,"mat-cell",19),t.BQk(),t.ynx(31,20),t.YNc(32,gHe,2,0,"mat-header-cell",18),t.YNc(33,vHe,2,1,"mat-cell",19),t.BQk(),t.ynx(34,21),t.YNc(35,yHe,2,0,"mat-header-cell",18),t.YNc(36,bHe,2,1,"mat-cell",19),t.BQk(),t.ynx(37,22),t.YNc(38,CHe,2,0,"mat-header-cell",18),t.YNc(39,wHe,7,0,"mat-cell",23),t.BQk(),t.YNc(40,kHe,1,0,"mat-header-row",24),t.YNc(41,THe,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,QHe,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,XHe))("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,$He)),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:[se.sg,se.O5,J.Fj,J.JJ,J.On,Mp,kn.KE,gd,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,yr,mm,Oa,qu,ri.gD,Gt.ey,mi,od,wm,$d,Ik,Pk,rs,Ws,kO],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 eje=m(2033),tje='<?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",jse="untitled";function rje(){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 oje(n,r){function e(s){for(var u,d,l=getComputedStyle(s),h="",g=0,C=l.length;g<C;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 aje(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 sje=function ije(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?oje(n,rje()):"internal"===i&&aje(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:tje+o};return s};function uje(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 dje=function cje(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jse,e=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));uje("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var hje=function(r,e,i){return dje(sje(r,i),e||function lje(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()||jse}(r))};function mje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Name for screenshot is required"),t.qZA())}function _je(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Entered name is incorrect"),t.qZA())}var gje=function(r){return{"is-invalid":r}},TO=function(){function n(r,e,i,o,a){(0,F.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,H.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}();TO.\u0275fac=function(r){return new(r||TO)(t.Y36(cr),t.Y36(Zn),t.Y36(J.QS),t.Y36(ul),t.Y36(Ob))},TO.\u0275cmp=t.Xpm({type:TO,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,mje,2,0,"mat-error",7),t.YNc(11,_je,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,gje,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr,rs,Ws],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var MO=function(){function n(r,e){(0,F.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,H.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}();MO.\u0275fac=function(r){return new(r||MO)(t.Y36(ko),t.Y36(cr))},MO.\u0275cmp=t.Xpm({type:MO,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:[dn,Ig,lu,dr,hm.d]});var Rb=function(){function n(){(0,F.Z)(this,n)}return(0,H.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,F.Z)(this,n)}return(0,H.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,F.Z)(this,n)}return(0,H.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,F.Z)(this,n)}return(0,H.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,F.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,H.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 SO=function(){function n(r,e,i,o,a){(0,F.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,H.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}();SO.\u0275fac=function(r){return new(r||SO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d))},SO.\u0275cmp=t.Xpm({type:SO,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 Gse=function(r){return{selected:r}};function vje(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,Gse,i.drawTools.isLineChosen))}}function yje(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,Gse,i.drawTools.isLineChosen))}}var bje=function(r,e){return{unmarkedLight:r,marked:e}},Cje=function(r){return{unmarkedLight:r}},_T=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.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,H.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(TO,{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,C;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,C=g.firstChild,eje.saveSvgAsPng(C,"".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(),hje(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(MO,{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}();_T.\u0275fac=function(r){return new(r||_T)(t.Y36(Yp),t.Y36(fl),t.Y36(Wa),t.Y36(Op),t.Y36(Gr),t.Y36(wc.f),t.Y36(Vs.Y),t.Y36(Fr),t.Y36(za.G),t.Y36(ya))},_T.\u0275cmp=t.Xpm({type:_T,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,vje,3,3,"button",7),t.YNc(15,yje,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,bje,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),t.xp6(1),t.Oqu(e.lock),t.xp6(2),t.Q6J("ngClass",t.VKq(14,Cje,!e.isLocked&&e.isLightThemeEnabled)),t.xp6(2),t.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},dependencies:[se.mk,se.O5,dn,Dn,mi,SO],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 wje=["text"],EO=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,H.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}();EO.\u0275fac=function(r){return new(r||EO)(t.Y36(cr),t.Y36(Vs.Y),t.Y36(t.SBq),t.Y36(t.Qsj))},EO.\u0275cmp=t.Xpm({type:EO,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(wje,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:[dn,yr,dr],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var fv=function(){function n(r,e,i){(0,F.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,H.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 kje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Tje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),qp=function(){function n(r,e,i){(0,F.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,H.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 Tje;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 Mje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),pv=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new Mje;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,F.Z)(this,n),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=this,o=new kje;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 Sje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Bb=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new Sje;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 Eje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),xje=(0,H.Z)(function n(){(0,F.Z)(this,n)}),hv=function(){function n(r){(0,F.Z)(this,n),this.mapLabelToLabel=r}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new xje;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,F.Z)(this,n),this.mapLinkNodeToMapLinkNode=r}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=this,o=new Eje;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 Z5=m(9740),Ub=function(){function n(r){(0,F.Z)(this,n),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,H.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,F.Z)(this,n)}return(0,H.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 zse=(0,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this.x=r,this.y=e,this.dx=i,this.dy=o}),gT=function(){function n(r){(0,F.Z)(this,n),this.elementRef=r,this.dragging=new t.vpe,this.dragged=new t.vpe}return(0,H.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),C=g[0];g[1];return C}).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragging.emit(new zse(e.item.x,e.item.y,-g,-C))}).skipUntil(o.take(1).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragged.emit(new zse(e.item.x,e.item.y,-g,-C))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),n}();gT.\u0275fac=function(r){return new(r||gT)(t.Y36(t.SBq))},gT.\u0275cmp=t.Xpm({type:gT,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 Oje=["label"],Ije=["image"],vT=function(){function n(r,e,i,o,a,s){(0,F.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,H.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}();vT.NODE_LABEL_MARGIN=3,vT.\u0275fac=function(r){return new(r||vT)(t.Y36(Sc),t.Y36(os),t.Y36(Dr),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(pd))},vT.\u0275cmp=t.Xpm({type:vT,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Oje,5),t.Gf(Ije,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:[gT],changeDetection:0});var Rje=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}(),Lje=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 Nje(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 Bje(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 Fje(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Nje,1,2,"circle",1),t.YNc(2,Bje,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 yT=function(){function n(r,e){(0,F.Z)(this,n),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,H.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}();yT.STOPPED_STATUS_RECT_WIDTH=10,yT.\u0275fac=function(r){return new(r||yT)(t.Y36(t.SBq),t.Y36(t.sBO))},yT.\u0275cmp=t.Xpm({type:yT,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,Fje,3,2,"g",0),2&r&&t.Q6J("ngIf",e.status&&e.point&&e.direction)},dependencies:[se.O5]});var Uje=["textSvg"],xO=function(){function n(r,e,i,o){(0,F.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,H.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}();xO.\u0275fac=function(r){return new(r||xO)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Dr),t.Y36(Sc))},xO.\u0275cmp=t.Xpm({type:xO,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Uje,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 jje=["path"];function zje(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 Wje(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 Vje(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 Yje(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 DO=function(){function n(r,e){(0,F.Z)(this,n),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new Rje,this.serialLinkStrategy=new Lje}return(0,H.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}();DO.\u0275fac=function(r){return new(r||DO)(t.Y36(Fp),t.Y36(t.sBO))},DO.\u0275cmp=t.Xpm({type:DO,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(jje,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,zje,2,1,"path",1),t.YNc(2,Wje,2,1,"path",2),t._UZ(3,"g",3)(4,"g",3),t.YNc(5,Vje,1,6,"g",4),t.YNc(6,Yje,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:[se.O5,yT,xO]});var AO=function(){function n(r){(0,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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}();AO.\u0275fac=function(r){return new(r||AO)(t.Y36(Yu))},AO.\u0275cmp=t.Xpm({type:AO,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 OO=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();OO.\u0275fac=function(r){return new(r||OO)},OO.\u0275cmp=t.Xpm({type:OO,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 IO=function(){function n(r){(0,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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}();IO.\u0275fac=function(r){return new(r||IO)(t.Y36(Yu))},IO.\u0275cmp=t.Xpm({type:IO,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 PO=function(){function n(r){(0,F.Z)(this,n),this.qtDasharrayFixer=r}return(0,H.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}();PO.\u0275fac=function(r){return new(r||PO)(t.Y36(Yu))},PO.\u0275cmp=t.Xpm({type:PO,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 Xje=["text"];function eGe(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 bT=function(){function n(r,e){(0,F.Z)(this,n),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,H.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}();bT.MARGIN=4,bT.\u0275fac=function(r){return new(r||bT)(t.Y36(os),t.Y36(Dr))},bT.\u0275cmp=t.Xpm({type:bT,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Xje,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,eGe,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:[se.sg]});function nGe(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 rGe(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 iGe(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 oGe(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 aGe(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 RO=function(){function n(r,e,i){(0,F.Z)(this,n),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,H.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 T5:"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}();RO.\u0275fac=function(r){return new(r||RO)(t.Y36(Wp),t.Y36(Zl),t.Y36(t.sBO))},RO.\u0275cmp=t.Xpm({type:RO,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,nGe,1,1,"g",1),t.YNc(2,rGe,1,1,"g",2),t.YNc(3,iGe,1,1,"g",3),t.YNc(4,oGe,1,1,"g",4),t.YNc(5,aGe,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:[se.O5,AO,OO,IO,PO,bT,gT]});function lGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",2)),2&n){var e=t.oxw();t.uIk("d",e.d)}}var LO=function(){function n(r){(0,F.Z)(this,n),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new t.vpe}return(0,H.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),C=g[0];g[1];return C}).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 wse(o,a,s,l))}}]),n}();LO.\u0275fac=function(r){return new(r||LO)(t.Y36(t.sBO))},LO.\u0275cmp=t.Xpm({type:LO,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,lGe,1,1,"path",1),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",e.visible))},dependencies:[se.O5]});var uGe=["svg"];function cGe(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 dGe(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 fGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",14)),2&n){var e=r.$implicit;t.Q6J("app-drawing",e)}}function pGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g")(1,"g",6),t.YNc(2,cGe,1,2,"g",7),t.qZA(),t.TgZ(3,"g",8),t.YNc(4,dGe,1,2,"g",9),t.qZA(),t.TgZ(5,"g",10),t.YNc(6,fGe,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 ZO=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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 Ks;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}();ZO.\u0275fac=function(r){return new(r||ZO)(t.Y36(Up),t.Y36(Ks),t.Y36(Hp),t.Y36(qg),t.Y36(t.sBO),t.Y36(Fm),t.Y36(iv))},ZO.\u0275cmp=t.Xpm({type:ZO,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(uGe,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,pGe,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:[se.sg,vT,DO,RO,LO],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var jb=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.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:[dn,yr,lu,dr,cb]});var hGe=(0,H.Z)(function n(){(0,F.Z)(this,n)}),Ym=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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 NO=function(){function n(r,e,i,o,a,s){var l=this;(0,F.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new hGe,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,H.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}();NO.\u0275fac=function(r){return new(r||NO)(t.Y36(cr),t.Y36(J.QS),t.Y36(Zn),t.Y36(Ym),t.Y36(za.G),t.Y36(ko))},NO.\u0275cmp=t.Xpm({type:NO,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:[Wo,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,dn,Kn,yr,lu,dr],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,F.Z)(this,n),this.dialog=r}return(0,H.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 BO=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(NO,{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}();BO.\u0275fac=function(r){return new(r||BO)(t.Y36(Gr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},BO.\u0275cmp=t.Xpm({type:BO,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:[dn,Dn,mi]});var FO=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 mGe(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," ")}}function _Ge(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.name," ")}}function gGe(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," ")}}function vGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",19),t.NdJ("valueChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedTemplate.compute_id=a)}),t.YNc(1,gGe,2,2,"mat-option",8),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("value",i.selectedTemplate.compute_id),t.xp6(1),t.Q6J("ngForOf",i.nodeControllers)}}FO.\u0275fac=function(r){return new(r||FO)},FO.\u0275pipe=t.Yjl({name:"templatefilter",type:FO,pure:!0});var dW=function(){return{standalone:!0}},UO=function(){function n(r,e,i,o,a,s){(0,F.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,H.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}();UO.\u0275fac=function(r){return new(r||UO)(t.Y36(cr),t.Y36(Xd),t.Y36(J.QS),t.Y36(ko),t.Y36(Zn),t.Y36(uf))},UO.\u0275cmp=t.Xpm({type:UO,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name","ngDefaultControl","",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose controller for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose controller for node",3,"value","valueChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Add a node"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to template preferences "),t.qZA()(),t.TgZ(5,"div",3)(6,"div",0)(7,"h6"),t._uU(8,"Template"),t.qZA()(),t.TgZ(9,"mat-form-field",4)(10,"input",5),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(11,"mat-form-field",6)(12,"mat-select",7),t.NdJ("selectionChange",function(o){return e.filterTemplates(o)})("ngModelChange",function(o){return e.selectedType=o}),t.YNc(13,mGe,2,2,"mat-option",8),t.qZA()(),t.TgZ(14,"mat-form-field",6)(15,"mat-select",9),t.NdJ("selectionChange",function(o){return e.chooseTemplate(o)})("ngModelChange",function(o){return e.selectedTemplate=o}),t.YNc(16,_Ge,2,2,"mat-option",8),t.ALo(17,"templatefilter"),t.qZA()(),t.TgZ(18,"div",0)(19,"h6"),t._uU(20,"Configuration"),t.qZA()(),t.TgZ(21,"form",10)(22,"mat-form-field",6),t._UZ(23,"input",11),t.qZA()(),t.YNc(24,vGe,2,2,"mat-select",12),t.TgZ(25,"div",0)(26,"h6"),t._uU(27,"Position"),t.qZA()(),t.TgZ(28,"form",10),t._uU(29," Left:\xa0 "),t.TgZ(30,"mat-form-field"),t._UZ(31,"input",13),t.qZA(),t._uU(32," Top:\xa0 "),t.TgZ(33,"mat-form-field"),t._UZ(34,"input",14),t.qZA()()(),t.TgZ(35,"div",15)(36,"button",16),t.NdJ("click",function(){return e.onNoClick()}),t._uU(37,"Close"),t.qZA(),t.TgZ(38,"button",17),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add "),t.qZA()()),2&r&&(t.xp6(3),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(15,dW)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,dW))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,dW))("ngModel",e.selectedTemplate),t.xp6(1),t.Q6J("ngForOf",t.xi3(17,12,e.filteredTemplates,e.searchText)),t.xp6(5),t.Q6J("formGroup",e.configurationForm),t.xp6(3),t.Q6J("ngIf",e.selectedTemplate),t.xp6(4),t.Q6J("formGroup",e.positionForm))},dependencies:[se.sg,se.O5,Wo,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,dn,Kn,yr,lu,dr,ri.gD,Gt.ey,FO],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 yGe(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 N5=function(r,e){return{templateText:r,lightTemplateText:e}};function bGe(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,N5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+1].name)}}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+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,N5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+2].name)}}function wGe(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,N5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+3].name)}}function kGe(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,bGe,5,6,"span",18),t.YNc(7,CGe,5,6,"span",18),t.YNc(8,wGe,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,N5,!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 TGe(n,r){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,kGe,9,9,"span",12),t.qZA()),2&n){var e=r.index;t.xp6(1),t.Q6J("ngIf",e%4==0)}}var Wse=function(){return{standalone:!0}},HO=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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(UO,{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}();HO.\u0275fac=function(r){return new(r||HO)(t.Y36(Gr),t.Y36(Xd),t.Y36(sf),t.Y36(Op),t.Y36(Dr),t.Y36(wc.f),t.Y36(Li.Xj))},HO.\u0275cmp=t.Xpm({type:HO,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,yGe,2,2,"mat-option",7),t.qZA()(),t.TgZ(15,"div",8)(16,"div",9),t.YNc(17,TGe,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,Wse)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Wse))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(3),t.Q6J("ngForOf",e.filteredTemplates)}},dependencies:[se.mk,se.sg,se.O5,J.Fj,J.JJ,J.On,kn.KE,Ga,Er,ga,GE,dn,Dn,Kn,Oa,ri.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,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function SGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",10),t.qZA())}function EGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",11),t.qZA())}function xGe(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,SGe,2,0,"svg",7),t.YNc(2,EGe,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 DGe(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,xGe,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 CT=function(){function n(r,e){(0,F.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new t.vpe}return(0,H.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}();CT.\u0275fac=function(r){return new(r||CT)(t.Y36(Dr),t.Y36(t.sBO))},CT.\u0275cmp=t.Xpm({type:CT,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,DGe,5,8,"div",0),2&r&&t.Q6J("ngIf",e.node)},dependencies:[se.sg,se.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 jO=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,H.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}();jO.\u0275fac=function(r){return new(r||jO)(t.Y36($g),t.Y36(pd),t.Y36(hd),t.Y36(Vm),t.Y36(Yg),t.Y36(Vg))},jO.\u0275cmp=t.Xpm({type:jO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(CT,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:[CT]});var GO=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,H.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}();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-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var zO=function(){function n(r,e,i,o,a,s){(0,F.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,H.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}();zO.\u0275fac=function(r){return new(r||zO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(dv),t.Y36(_d),t.Y36(Ks))},zO.\u0275cmp=t.Xpm({type:zO,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){}});var WO=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,H.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}();WO.\u0275fac=function(r){return new(r||WO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl),t.Y36(_d))},WO.\u0275cmp=t.Xpm({type:WO,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var VO=function(){function n(r,e,i){(0,F.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,H.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}();VO.\u0275fac=function(r){return new(r||VO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd))},VO.\u0275cmp=t.Xpm({type:VO,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var YO=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,H.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}();YO.\u0275fac=function(r){return new(r||YO)(t.Y36(za.G),t.Y36(Fr),t.Y36(pd),t.Y36(qp))},YO.\u0275cmp=t.Xpm({type:YO,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var KO=function(){function n(r,e,i){(0,F.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,H.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}();KO.\u0275fac=function(r){return new(r||KO)(t.Y36(Wa),t.Y36(ya),t.Y36(Zl))},KO.\u0275cmp=t.Xpm({type:KO,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var qO=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,H.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,C=0,Z=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,C=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),Z=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),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=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),C=Math.floor(e.targetNode.width/2)-Math.round(u)-5,Z=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),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=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,C,Z).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}();qO.\u0275fac=function(r){return new(r||qO)(t.Y36(Vs.Y),t.Y36(pl),t.Y36(Hm.F),t.Y36(hd),t.Y36(Vm),t.Y36(pv))},qO.\u0275cmp=t.Xpm({type:qO,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var JO=function(){function n(r,e,i){(0,F.Z)(this,n),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,H.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}();JO.\u0275fac=function(r){return new(r||JO)(t.Y36(pl),t.Y36(Hm.F),t.Y36(hd))},JO.\u0275cmp=t.Xpm({type:JO,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var QO=function(){function n(r,e){(0,F.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,H.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:[dn,Ig,lu,dr,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 XO=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.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,H.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}();XO.\u0275fac=function(r){return new(r||XO)(t.Y36(Fr),t.Y36(cu),t.Y36(za.G),t.Y36(Zn),t.Y36(or),t.Y36(Gm.g),t.Y36(fl),t.Y36(ul),t.Y36(Gr))},XO.\u0275cmp=t.Xpm({type:XO,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:[dn,Dn,mi],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var $O=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,H.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 ez).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 $G).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 XG).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 QG).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(C){return C.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}();$O.\u0275fac=function(r){return new(r||$O)(t.Y36(Zn),t.Y36(id),t.Y36(Gu),t.Y36(ld),t.Y36(sd))},$O.\u0275cmp=t.Xpm({type:$O,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){}});var Vse=m(4147).i8,_v=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(YB.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 AGe=["console"];function OGe(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 B5=function(r){return{lightTheme:r}},eI=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.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=Vse,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,H.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(s){return s.name.valueOf()===i[1].valueOf()});if(o)if(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."))});else if(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."))});else if(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."))});else if(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."))});else if(this.regexConsole.test(this.command))if("started"===o.status){this.showCommand("Launching console for node ".concat(i[1],"..."));var a=o.console_host;Zse.IPv6.isValid(a)&&(a="[".concat(a,"]")),"telnet"===o.console_type?location.assign("gns3+telnet://".concat(a,":").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(a,":").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(a,":").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(a,":").concat(o.console)):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")}else this.showCommand("This node must be started before a console can be opened.");else this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o)));else 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}();eI.\u0275fac=function(r){return new(r||eI)(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(cu),t.Y36(t.sBO))},eI.\u0275cmp=t.Xpm({type:eI,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(AGe,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,OGe,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,B5,e.isLightThemeEnabled))("matMenuTriggerFor",i),t.xp6(16),t.Q6J("ngClass",t.VKq(10,B5,e.isLightThemeEnabled))("ngStyle",e.style),t.xp6(2),t.Q6J("ngForOf",e.filteredEvents),t.xp6(1),t.Q6J("ngClass",t.VKq(12,B5,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("ngClass",t.VKq(14,B5,e.isLightThemeEnabled))("ngModel",e.command)}},dependencies:[se.mk,se.sg,se.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 Yse=m(4793),Kse=m(986),qse=m(9162),IGe=["terminal"],tI=function(){function n(r,e){(0,F.Z)(this,n),this.consoleService=r,this.themeService=e,this.term=new Yse.Terminal,this.fitAddon=new qse.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,H.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 Kse.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 PGe(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 RGe(n,r){1&n&&(t.TgZ(0,"div",11),t._uU(1,"GNS3 console"),t.qZA())}tI.\u0275fac=function(r){return new(r||tI)(t.Y36(cu),t.Y36(wc.f))},tI.\u0275cmp=t.Xpm({type:tI,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(IGe,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 nI=function(r){return{lightThemeConsoleHeader:r}};function LGe(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,nI,o.isLightThemeEnabled))}}function ZGe(n,r){if(1&n&&(t.TgZ(0,"mat-tab",12),t.YNc(1,LGe,5,4,"ng-template",4),t.qZA()),2&n){var e=t.oxw();t.Q6J("label",e.tab)}}function NGe(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,nI,i.isLightThemeEnabled))}}function BGe(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,nI,i.isLightThemeEnabled))}}function FGe(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 UGe=function(r){return{lightTheme:r}},HGe=function(){return{right:!0,left:!0,bottom:!0,top:!0}},rI=function(){function n(r,e,i){(0,F.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,H.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}();rI.\u0275fac=function(r){return new(r||rI)(t.Y36(cu),t.Y36(wc.f),t.Y36(fl))},rI.\u0275cmp=t.Xpm({type:rI,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,PGe,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,RGe,2,0,"ng-template",4),t.qZA(),t.YNc(6,ZGe,2,1,"mat-tab",5),t.qZA(),t.YNc(7,NGe,3,3,"button",6),t.YNc(8,BGe,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,FGe,2,4,"div",9),t.qZA()),2&r&&(t.Q6J("ngIf",e.isDraggingEnabled),t.xp6(1),t.Q6J("ngClass",t.VKq(16,UGe,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",t.DdM(18,HGe))("enableGhostResize",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(19,nI,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,nI,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:[se.mk,se.sg,se.O5,se.PC,qY.E$,dn,Dn,Fi.SP,Fi.uD,Fi.uX,eI,tI],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 jGe=["topologySummaryContainer"];function GGe(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 zGe(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 WGe(n,r){1&n&&t._UZ(0,"mat-icon",39)}function VGe(n,r){1&n&&t._UZ(0,"mat-icon",40)}var F5=function(r){return{lightTheme:r}},YGe=function(r){return{selected:r}};function KGe(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,F5,i.isLightThemeEnabled)),t.xp6(1),t.Q6J("controller",i.controller)("project",i.project),t.xp6(1),t.Q6J("ngClass",t.VKq(7,YGe,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function qGe(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 JGe(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 QGe(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 XGe=function(r,e){return{unmarkedLight:r,marked:e}},$Ge=function(){return["/controllers"]},eze=function(r){return["/controller",r,"projects"]},tze=function(r){return["/controller",r,"image-manager"]},nze=function(r){return{visible:r}};function rze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.YNc(1,GGe,1,10,"app-d3-map",3),t.YNc(2,zGe,1,11,"app-experimental-map",4),t.TgZ(3,"div",5)(4,"button",6),t.YNc(5,WGe,1,0,"mat-icon",7),t.YNc(6,VGe,1,0,"mat-icon",8),t.qZA(),t.TgZ(7,"div",9),t.YNc(8,KGe,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,qGe,2,2,"div",31),t.qZA(),t._UZ(139,"app-progress"),t.YNc(140,JGe,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,QGe,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,F5,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,F5,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,XGe,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(60,$Ge)),t.xp6(5),t.Q6J("routerLink",t.VKq(61,eze,s.controller.id)),t.xp6(5),t.MGl("routerLink","/controller/",s.controller.id,"/preferences"),t.xp6(5),t.Q6J("routerLink",t.VKq(63,tze,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,F5,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,nze,!s.isConsoleVisible)),t.xp6(1),t.Q6J("ngIf",s.project)}}function ize(n,r){}var iI=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,Ee,Ke,st,Ae,it,ft,bt,$e,Pe,ct,Bt,Ht,Pt,Tn,jn,zn,ar,kr,_r,Wr,Hr,Kr,Ho,tr,br,Mn,gn,nr){(0,F.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=C,this.interfaceLabelWidget=Z,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=Ae,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=br,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,H.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 C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(g){var C=e.mapNodeToNode.convert(g.node);e.contextMenu.openMenuForNode(C,g.event.pageY,g.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(g){var C=e.mapDrawingToDrawing.convert(g.drawing);e.contextMenu.openMenuForDrawing(C,g.event.pageY,g.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(g){var C=e.mapLabelToLabel.convert(g.label),Z=e.nodes.find(function(z){return z.node_id===g.label.nodeId});e.contextMenu.openMenuForLabel(C,Z,g.event.screenY-60,g.event.screenX)}),d=this.interfaceLabelWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkNodeToLinkNode.convert(g.interfaceLabel),Z=e.links.find(function(z){return z.link_id===g.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(C,Z,g.event.pageY,g.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(g){var C=e.selectionManager.getSelected();if(!(C.length<2)&&g instanceof MouseEvent){var Z=[],z=[],q=[],re=[];C.forEach(function(ae){ae instanceof Nm?Z.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 bse&&re.push(e.mapLinkToLink.convert(ae))}),e.contextMenu.openMenuForListOfElements(Z,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 oze;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 aze;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 C=g.sort(function(it,ft){return it.left-ft.left})[0],Z=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];C&&l?(e=l.left<C.left?l.left:C.left,i=u.right>Z.right?u.right:Z.right,o=d.top<z.top?d.top:z.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!C?(e=l.left,i=u.right,o=d.top,a=h.bottom):C&&!l?(e=C.left,i=Z.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,Ae=1/Math.max(Ke,st);Ae!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Ae),this.project.scene_width=this.project.scene_width*Ae,this.project.scene_height=this.project.scene_height*Ae,st<Ce?(this.scrollX=e*Ae-(ae-Ce*Ae)/2+this.project.scene_width/2,this.scrollY=o*Ae+this.project.scene_height/2):(this.scrollX=e*Ae+this.project.scene_width/2,this.scrollY=o*Ae-(Se-Ee*Ae)/2+this.project.scene_height/2)):(this.scrollX=e*Ae+this.project.scene_width/2,this.scrollY=o*Ae+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(pA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(fA,{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(mT,{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(EO,{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}();iI.\u0275fac=function(r){return new(r||iI)(t.Y36(fr),t.Y36(or),t.Y36(Vs.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(Z5.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(cu),t.Y36(Op),t.Y36(t.sBO),t.Y36(t.s_b))},iI.\u0275cmp=t.Xpm({type:iI,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(cT,5),t.Gf(Xk,5),t.Gf(_T,5),t.Gf(jGe,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,rze,151,69,"div",0),t.YNc(1,ize,0,0,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",e.project)},dependencies:[se.mk,se.O5,Wo,J.JJ,J.On,Xk,ZO,Ga,Er,ga,dn,Dn,ti,mi,BO,cT,HO,z0,jO,GO,zO,WO,VO,YO,KO,qO,JO,XO,_T,$O,rI],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 oze=(0,H.Z)(function n(){(0,F.Z)(this,n)}),aze=(0,H.Z)(function n(){(0,F.Z)(this,n)}),oI=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.projectService=e}return(0,H.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 sze(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 lze(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,sze,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 uze(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 cze(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,"")}}oI.\u0275fac=function(r){return new(r||oI)(t.Y36(cr),t.Y36(Vs.Y))},oI.\u0275cmp=t.Xpm({type:oI,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,dn,Kn,yr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var dze=function(r){return{"deleted-error-text":r}};function fze(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,cze,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,dze,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function pze(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,fze,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function hze(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 mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,pze,4,1,"div",0),t.YNc(3,hze,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 aI=function(){function n(r,e,i,o){(0,F.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,H.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,qn.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 _ze(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 gze(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 vze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",26),t._uU(1," Name "),t.qZA())}aI.\u0275fac=function(r){return new(r||aI)(t.Y36(ko),t.Y36(cr),t.Y36(Vs.Y),t.Y36(Zn))},aI.\u0275cmp=t.Xpm({type:aI,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,lze,12,1,"div",0),t.YNc(1,uze,5,0,"div",0),t.YNc(2,mze,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:[se.mk,se.sg,se.O5,dn,Ig,yr,lu,dr,ou]});var yze=function(r,e){return["/controller",r,"project",e]};function bze(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,yze,i.controller.id,e.project_id)),t.xp6(1),t.Oqu(e.name)}}function Cze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",28),t._uU(1," Actions "),t.qZA())}function wze(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 kze(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 Tze(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,wze,3,0,"button",30),t.YNc(2,kze,3,0,"button",31),t.YNc(3,Tze,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 Sze(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 Eze(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell",28),t.YNc(1,Sze,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 xze(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 Dze(n,r){if(1&n&&(t.TgZ(0,"mat-cell",28),t.YNc(1,xze,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 Aze(n,r){1&n&&t._UZ(0,"mat-header-row")}function Oze(n,r){1&n&&t._UZ(0,"mat-row")}var Ize=function(){return{standalone:!0}},wT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.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 Pze,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new Si.Ov(!0,[])}return(0,H.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 Rze(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(oI,{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(aI,{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}();wT.\u0275fac=function(r){return new(r||wT)(t.Y36(fr),t.Y36(Vs.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(Z5.p))},wT.\u0275cmp=t.Xpm({type:wT,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,_ze,2,2,"mat-header-cell",13),t.YNc(19,gze,2,1,"mat-cell",14),t.BQk(),t.ynx(20,15),t.YNc(21,vze,2,0,"mat-header-cell",16),t.YNc(22,bze,3,5,"mat-cell",14),t.BQk(),t.ynx(23,17),t.YNc(24,Cze,2,0,"mat-header-cell",18),t.YNc(25,Mze,7,3,"mat-cell",19),t.BQk(),t.ynx(26,20),t.YNc(27,Eze,2,1,"mat-header-cell",18),t.YNc(28,Dze,2,1,"mat-cell",21),t.BQk(),t.YNc(29,Aze,1,0,"mat-header-row",22),t.YNc(30,Oze,1,0,"mat-row",23),t.qZA()()()()),2&r&&(t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(8,Ize)),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 Pze=function(){function n(){(0,F.Z)(this,n),this.dataChange=new Wi.X([])}return(0,H.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}(),Rze=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,H.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 Lze(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function Zze(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 sI=function(){function n(r,e,i,o,a){(0,F.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,H.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(C){C.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}();sI.\u0275fac=function(r){return new(r||sI)(t.Y36(cr),t.Y36(ul),t.Y36(or),t.Y36(Zn),t.Y36(ko))},sI.\u0275cmp=t.Xpm({type:sI,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,Lze,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,Zze,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,lu,dr,ri.gD,Gt.ey],encapsulation:2});var gv=function(){function n(r){var e=this;(0,F.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,H.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 fW=m(5887);function Nze(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 Bze(n,r){1&n&&t._UZ(0,"mat-divider")}var kT=function(){function n(r,e,i,o){(0,F.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,H.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(C){for(;;)switch(C.prev=C.next){case 0:return(d=new wB).host=l.host,d.port=l.port,C.next=5,this.versionService.get(d).toPromise().catch(function(Z){return null});case 5:C.sent&&o.push(d);case 7:case"end":return C.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 fW.Observable.of(null)}))}),new fW.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 wB;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return fW.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 Fze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," ID "),t.qZA())}function Uze(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 Hze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}kT.\u0275fac=function(r){return new(r||kT)(t.Y36(gm),t.Y36(or),t.Y36(Dp),t.Y36(fr))},kT.\u0275cmp=t.Xpm({type:kT,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,Nze,11,2,"mat-card",0),t.YNc(1,Bze,1,0,"mat-divider",1)),2&r&&(t.Q6J("ngIf",e.discoveredController),t.xp6(1),t.Q6J("ngIf",e.discoveredController))},dependencies:[se.O5,dn,di,Y0,PD,hm.d]});var jze=function(r){return["/controller",r,"login"]};function Gze(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,jze,e.id)),t.xp6(1),t.Oqu(e.name)}}function zze(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 Wze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,Gze,2,4,"a",20),t.YNc(2,zze,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 Vze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Location "),t.qZA())}function Yze(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 Kze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Host "),t.qZA())}function qze(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 Jze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Port "),t.qZA())}function Qze(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 Xze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function $ze(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 eWe(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 tWe(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 nWe(n,r){1&n&&t._UZ(0,"mat-spinner",36),2&n&&t.Q6J("diameter",24)}function rWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",23),t.YNc(1,$ze,3,0,"button",24),t.YNc(2,eWe,3,0,"button",25),t.YNc(3,tWe,3,0,"button",26),t.YNc(4,nWe,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 iWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function oWe(n,r){1&n&&t._UZ(0,"mat-row")}function aWe(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 lI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.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,H.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 sWe(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(sI,{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}();lI.\u0275fac=function(r){return new(r||lI)(t.Y36(Gr),t.Y36(or),t.Y36(Dp),t.Y36(gv),t.Y36(t.sBO),t.Y36(ul),t.Y36(fG),t.Y36(lf),t.Y36(fr),t.Y36(ur))},lI.\u0275cmp=t.Xpm({type:lI,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,Fze,2,0,"mat-header-cell",7),t.YNc(11,Uze,2,1,"mat-cell",8),t.BQk(),t.ynx(12,9),t.YNc(13,Hze,2,0,"mat-header-cell",7),t.YNc(14,Wze,3,2,"mat-cell",8),t.BQk(),t.ynx(15,10),t.YNc(16,Vze,2,0,"mat-header-cell",7),t.YNc(17,Yze,2,1,"mat-cell",8),t.BQk(),t.ynx(18,11),t.YNc(19,Kze,2,0,"mat-header-cell",7),t.YNc(20,qze,2,1,"mat-cell",8),t.BQk(),t.ynx(21,12),t.YNc(22,Jze,2,0,"mat-header-cell",7),t.YNc(23,Qze,2,1,"mat-cell",8),t.BQk(),t.ynx(24,13),t.YNc(25,Xze,2,0,"mat-header-cell",7),t.YNc(26,rWe,8,4,"mat-cell",14),t.BQk(),t.YNc(27,iWe,1,0,"mat-header-row",15),t.YNc(28,oWe,1,0,"mat-row",16),t.qZA()(),t.TgZ(29,"div",17),t.YNc(30,aWe,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:[se.O5,Gs,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,mi,kT],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 sWe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,H.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,F.Z)(this,n),this.electronService=r}return(0,H.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,F.Z)(this,n),this.defaultConsoleService=r,this.settingsService=e}return(0,H.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 uI=function(){function n(r,e,i){(0,F.Z)(this,n),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new J.nJ({command:new J.p4("")})}return(0,H.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}();uI.\u0275fac=function(r){return new(r||uI)(t.Y36(ur),t.Y36(vv),t.Y36(Zn))},uI.\u0275cmp=t.Xpm({type:uI,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,dn,di,Kn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var zb=function(){function n(r){(0,F.Z)(this,n),this.httpClient=r}return(0,H.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 cI=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,H.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}();cI.\u0275fac=function(r){return new(r||cI)(t.Y36(Gm.g),t.Y36(Zn),t.Y36(vv),t.Y36(wc.f),t.Y36(fl),t.Y36(zb))},cI.\u0275cmp=t.Xpm({type:cI,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,dn,ti,Dl,xl,au,Uu,BD],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var dI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();dI.\u0275fac=function(r){return new(r||dI)},dI.\u0275pipe=t.Yjl({name:"datefilter",type:dI,pure:!0});var fI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 lWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Name "),t.qZA())}function uWe(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 cWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Date "),t.qZA())}function dWe(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 fWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function pWe(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 hWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function mWe(n,r){1&n&&t._UZ(0,"mat-row")}fI.\u0275fac=function(r){return new(r||fI)},fI.\u0275pipe=t.Yjl({name:"namefilter",type:fI,pure:!0});var pI=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,H.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 gWe(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 _We(n,r,e){return(n<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),n}();pI.\u0275fac=function(r){return new(r||pI)(t.Y36(fr),t.Y36(Ym),t.Y36(mv),t.Y36(Zn))},pI.\u0275cmp=t.Xpm({type:pI,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,lWe,2,0,"mat-header-cell",10),t.YNc(14,uWe,2,1,"mat-cell",11),t.BQk(),t.ynx(15,12),t.YNc(16,cWe,2,0,"mat-header-cell",10),t.YNc(17,dWe,3,3,"mat-cell",11),t.BQk(),t.ynx(18,13),t.YNc(19,fWe,2,0,"mat-header-cell",14),t.YNc(20,pWe,7,0,"mat-cell",15),t.BQk(),t.YNc(21,hWe,1,0,"mat-header-row",16),t.YNc(22,mWe,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,dn,di,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,qu,cf,mi,dI,fI],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var Jse=new t.OlP("MatChipRemove"),Qse=new t.OlP("MatChipAvatar"),Xse=new t.OlP("MatChipTrailingIcon"),yWe=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r}),bWe=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)(yWe),"primary"),-1),TT=(0,H.Z)(function n(){(0,F.Z)(this,n)});TT.\u0275fac=function(r){return new(r||TT)},TT.\u0275dir=t.lG2({type:TT,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:Qse,useExisting:TT}])]});var MT=(0,H.Z)(function n(){(0,F.Z)(this,n)});MT.\u0275fac=function(r){return new(r||MT)},MT.\u0275dir=t.lG2({type:MT,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:Xse,useExisting:MT}])]});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,F.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,lD.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,H.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}(bWe);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(se.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,Xse,5),t.Suo(i,Jse,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 ST=function(){function n(r,e){(0,F.Z)(this,n),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,H.Z)(n,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),n}();ST.\u0275fac=function(r){return new(r||ST)(t.Y36(yv),t.Y36(t.SBq))},ST.\u0275dir=t.lG2({type:ST,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:Jse,useExisting:ST}])]});var $se=new t.OlP("mat-chips-default-options"),CWe=0,hI=function(){function n(r,e){(0,F.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(CWe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,H.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}();hI.\u0275fac=function(r){return new(r||hI)(t.Y36(t.SBq),t.Y36($se))},hI.\u0275dir=t.lG2({type:hI,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 wWe=(0,Gt.FD)(function(){return(0,H.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),kWe=0,TWe=(0,H.Z)(function n(r,e){(0,F.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,F.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(kWe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(g,C){return g===C},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,lD.Z)(h)),h}return(0,H.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 TWe(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}(wWe);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 ET=(0,H.Z)(function n(){(0,F.Z)(this,n)});ET.\u0275fac=function(r){return new(r||ET)},ET.\u0275mod=t.oAB({type:ET}),ET.\u0275inj=t.cJS({providers:[Gt.rD,{provide:$se,useValue:{separatorKeyCodes:[Tr.K5]}}],imports:[Gt.BQ]});var MWe=function(){return["Load average","(last 1 minute)"]},SWe=function(){return["Load average","(last 5 minutes)"]},EWe=function(){return["Load average","(last 15 minutes)"]},mI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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 xWe(n,r){1&n&&(t.TgZ(0,"div"),t._uU(1,"Statistics not loaded"),t.qZA())}function DWe(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)}}mI.\u0275fac=function(r){return new(r||mI)},mI.\u0275cmp=t.Xpm({type:mI,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,SWe))("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,EWe))("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:[di,Wb,yv,sD],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 _I=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,H.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}();_I.\u0275fac=function(r){return new(r||_I)(t.Y36(fr),t.Y36(Qd.X),t.Y36(or),t.Y36(Zn))},_I.\u0275cmp=t.Xpm({type:_I,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,xWe,2,0,"div",0),t.YNc(1,DWe,3,2,"div",1)),2&r&&(t.Q6J("ngIf",!e.computeStatistics.length),t.xp6(1),t.Q6J("ngForOf",e.computeStatistics))},dependencies:[se.sg,se.O5,mI]});var gI=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.controllerId=""}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();gI.\u0275fac=function(r){return new(r||gI)(t.Y36(fr))},gI.\u0275cmp=t.Xpm({type:gI,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:[_I]});var AWe=["terminal"],xT=function(){function n(r,e,i,o,a){(0,F.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 Yse.Terminal,this.fitAddon=new qse.FitAddon}return(0,H.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 Kse.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}();xT.\u0275fac=function(r){return new(r||xT)(t.Y36(cu),t.Y36(or),t.Y36(fr),t.Y36(ni),t.Y36(Fr))},xT.\u0275cmp=t.Xpm({type:xT,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(AWe,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,F.Z)(this,n),this.consoleService=r,this.bottomSheet=e}return(0,H.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(cu),t.LFG(lf))},Vb.\u0275prov=t.Yz7({token:Vb,factory:Vb.\u0275fac});var Ur=function(){function n(r,e,i){(0,F.Z)(this,n),this.controllerService=r,this.loginService=e,this.router=i}return(0,H.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 OWe=["*",[["mat-toolbar-row"]]],PWe=(0,Gt.pj)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}()),vI=(0,H.Z)(function n(){(0,F.Z)(this,n)});vI.\u0275fac=function(r){return new(r||vI)},vI.\u0275dir=t.lG2({type:vI,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var yI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,H.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}(PWe);yI.\u0275fac=function(r){return new(r||yI)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(se.K0))},yI.\u0275cmp=t.Xpm({type:yI,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,vI,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(OWe),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 DT=(0,H.Z)(function n(){(0,F.Z)(this,n)});function RWe(n,r){1&n&&(t.TgZ(0,"button",16),t._UZ(1,"mat-icon",17),t.qZA())}function LWe(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 ZWe(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 NWe(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 BWe(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)}}DT.\u0275fac=function(r){return new(r||DT)},DT.\u0275mod=t.oAB({type:DT}),DT.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var FWe=function(r){return["controller",r,"systemstatus"]},UWe=function(r){return["controller",r,"settings"]},HWe=function(r){return["controller",r,"management","users"]},jWe=function(r){return["controller",r,"help"]},GWe=function(r){return["/controller",r,"loggeduser"]},zWe=function(){return["/controllers"]},WWe=function(r){return["/controller",r,"projects"]},VWe=function(r){return["controller",r,"preferences"]},YWe=function(r){return["controller",r,"image-manager"]};function KWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-toolbar",3),t.YNc(1,RWe,2,0,"button",4),t.YNc(2,LWe,2,1,"button",5),t.YNc(3,ZWe,2,0,"button",6),t.YNc(4,NWe,2,0,"button",6),t._UZ(5,"span",7),t.YNc(6,BWe,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,FWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(26,UWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(28,HWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(30,jWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(32,GWe,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,zWe)),t.xp6(5),t.Q6J("routerLink",t.VKq(35,WWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(37,VWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(39,YWe,i.controllerId))}}var bI=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,F.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=Vse,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new xa.w,this.router.events.subscribe(function(C){C instanceof Jd&&(g.controllerId=g.route.children[0].snapshot.paramMap.get("controller_id"),g.getData())})}return(0,H.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("".concat(e.protocol,"//").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(mT,{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}();bI.\u0275fac=function(r){return new(r||bI)(t.Y36(ul),t.Y36(Z5.p),t.Y36(gv),t.Y36(Zn),t.Y36(El),t.Y36(Gr),t.Y36(ur),t.Y36(fr),t.Y36(or),t.Y36(Vs.Y))},bI.\u0275cmp=t.Xpm({type:bI,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,KWe,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:[se.O5,fm,Wo,Ga,Er,ga,dn,yI,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,F.Z)(this,n),this.controllerService=r}return(0,H.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 ele=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}))}},tle=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 nle(n){n.get("password").value===n.get("confirmPassword").value||n.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var Bl=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.Z)(this,n),this.httpController=r}return(0,H.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 qWe=["panel"];function JWe(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 XWe=0,$We=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.source=r,this.option=e}),eVe=(0,Gt.Kr)(function(){return(0,H.Z)(function n(){(0,F.Z)(this,n)})}()),rle=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function tVe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});var CI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.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(XWe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l._autoSelectActiveOption=!!a.autoSelectActiveOption,l}return(0,H.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 $We(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}(eVe);CI.\u0275fac=function(r){return new(r||CI)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(rle),t.Y36(bi.t4))},CI.\u0275dir=t.lG2({type:CI,viewQuery:function(r,e){var i;(1&r&&(t.Gf(t.Rgc,7),t.Gf(qWe,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,F.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,H.Z)(e)}(CI);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,JWe,3,4,"ng-template"))},dependencies:[se.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 ile=new t.OlP("mat-autocomplete-scroll-strategy");var rVe={provide:ile,deps:[Li.aV],useFactory:function nVe(n){return function(){return n.scrollStrategies.reposition()}}},iVe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return Qp}),multi:!0};var wI=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,F.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(){C._canOpenOnNextFocus=C._document.activeElement!==C._element.nativeElement||C.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,uD.P)(function(){var Z=C.autocomplete?C.autocomplete.options:null;return Z?Z.changes.pipe((0,Oo.O)(Z),(0,Io.w)(function(){return Gi.T.apply(void 0,(0,cn.Z)(Z.map(function(z){return z.onSelectionChange})))})):C._zone.onStable.pipe((0,Ri.q)(1),(0,Io.w)(function(){return C.optionSelections}))}),this._scrollStrategy=s}return(0,H.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,qn.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,qG.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}();wI.\u0275fac=function(r){return new(r||wI)(t.Y36(t.SBq),t.Y36(Li.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ile),t.Y36(nl.Is,8),t.Y36(kn.G_,9),t.Y36(se.K0,8),t.Y36(sa.rL),t.Y36(rle,8))},wI.\u0275dir=t.lG2({type:wI,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,F.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,H.Z)(e)}(wI);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([iVe]),t.qOj]});var kI=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.elementRef=r});kI.\u0275fac=function(r){return new(r||kI)(t.Y36(t.SBq))},kI.\u0275dir=t.lG2({type:kI});var TI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(kI);TI.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(TI)))(e||TI)}}(),TI.\u0275dir=t.lG2({type:TI,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[t.qOj]});var AT=(0,H.Z)(function n(){(0,F.Z)(this,n)});function oVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required"),t.qZA())}function aVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect"),t.qZA())}function sVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists"),t.qZA())}function lVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required"),t.qZA())}function uVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid"),t.qZA())}function cVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"A password between 6 and 100 characters is required."),t.qZA())}function dVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}function fVe(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 pVe(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)}}AT.\u0275fac=function(r){return new(r||AT)},AT.\u0275mod=t.oAB({type:AT}),AT.\u0275inj=t.cJS({providers:[rVe],imports:[Li.U8,Gt.Ng,Gt.BQ,se.ez,sa.ZD,Gt.Ng,Gt.BQ]});var MI=function(){function n(r,e,i,o){(0,F.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,H.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_-]+$")],[ele(this.controller,this.userService)]),full_name:new J.p4,email:new J.p4(null,[J.kI.email,J.kI.required],[tle(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:[nle]}),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 hVe(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:"","")}}MI.\u0275fac=function(r){return new(r||MI)(t.Y36(cr),t.Y36(Bl),t.Y36(Zn),t.Y36(Ec))},MI.\u0275cmp=t.Xpm({type:MI,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,oVe,2,0,"mat-error",4),t.YNc(6,aVe,2,0,"mat-error",4),t.YNc(7,sVe,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,lVe,2,0,"mat-error",4),t.YNc(13,uVe,2,0,"mat-error",4),t.qZA(),t.TgZ(14,"mat-form-field",2),t._UZ(15,"input",7),t.YNc(16,cVe,2,0,"mat-error",4),t.qZA(),t.TgZ(17,"mat-form-field",2),t._UZ(18,"input",8),t.YNc(19,dVe,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,fVe,2,2,"mat-option",14),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div",15),t.YNc(34,pVe,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:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,dn,Dn,Kn,yr,dr,ti,hm.d,Gt.ey,Jp,Qp,se.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 OT=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();OT.\u0275fac=function(r){return new(r||OT)(t.Y36(cr),t.Y36(ko))},OT.\u0275cmp=t.Xpm({type:OT,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,hVe,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:[se.sg,dn,yr,dr],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var SI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();SI.\u0275fac=function(r){return new(r||SI)},SI.\u0275pipe=t.Yjl({name:"userFilter",type:SI,pure:!0});var mVe=["usersPaginator"],_Ve=["usersSort"];function gVe(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 vVe(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 yVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Username"),t.qZA())}var bVe=function(r,e){return["/controller",r,"management","users",e]};function CVe(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,bVe,i.controller.id,e.user_id))("matTooltip",e.username),t.xp6(1),t.Oqu(e.username)}}function wVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Full Name"),t.qZA())}function kVe(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 TVe(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 SVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Active"),t.qZA())}function EVe(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 xVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Login"),t.qZA())}function DVe(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 AVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Update"),t.qZA())}function OVe(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 IVe(n,r){1&n&&t._UZ(0,"mat-header-cell",33)}function PVe(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 RVe(n,r){1&n&&t._UZ(0,"mat-header-row")}function LVe(n,r){1&n&&t._UZ(0,"mat-row")}var ZVe=function(){return{standalone:!0}},NVe=function(){return[5,10,20]};function BVe(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,gVe,2,2,"mat-header-cell",15),t.YNc(20,vVe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,yVe,2,0,"mat-header-cell",18),t.YNc(23,CVe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,wVe,2,0,"mat-header-cell",18),t.YNc(26,kVe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,TVe,2,0,"mat-header-cell",18),t.YNc(29,MVe,3,2,"mat-cell",19),t.BQk(),t.ynx(30,22),t.YNc(31,SVe,2,0,"mat-header-cell",23),t.YNc(32,EVe,2,1,"mat-cell",24),t.BQk(),t.ynx(33,25),t.YNc(34,xVe,2,0,"mat-header-cell",18),t.YNc(35,DVe,2,1,"mat-cell",26),t.BQk(),t.ynx(36,27),t.YNc(37,AVe,2,0,"mat-header-cell",18),t.YNc(38,OVe,2,1,"mat-cell",26),t.BQk(),t.ynx(39,28),t.YNc(40,IVe,1,0,"mat-header-cell",15),t.YNc(41,PVe,4,0,"mat-cell",16),t.BQk(),t.YNc(42,RVe,1,0,"mat-header-row",29),t.YNc(43,LVe,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,ZVe)),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,NVe))}}function FVe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var EI=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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(MI,{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(OT,{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(OT,{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 UVe(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," ")}}EI.\u0275fac=function(r){return new(r||EI)(t.Y36(fr),t.Y36(ur),t.Y36(Bl),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},EI.\u0275cmp=t.Xpm({type:EI,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(mVe,5),t.Gf(_Ve,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,BVe,46,12,"div",0),t.YNc(1,FVe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,SI],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 xI=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,H.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}();xI.\u0275fac=function(r){return new(r||xI)(t.Y36(fr),t.Y36(or),t.Y36(Bl),t.Y36(Zn))},xI.\u0275cmp=t.Xpm({type:xI,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,UVe,12,3,"mat-card",5),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("ngIf",e.user))},dependencies:[se.O5,dn,di,mm,Oa],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var bv=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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 HVe(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 jVe(n,r){1&n&&(t.TgZ(0,"h5"),t._uU(1,"Please Select image"),t.qZA())}function GVe(n,r){1&n&&(t.TgZ(0,"p",17),t._uU(1,"Uploaded image details"),t.qZA())}function zVe(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 WVe(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 VVe(n,r){1&n&&t._UZ(0,"mat-progress-bar",26),2&n&&t.Q6J("value",0)}function YVe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,WVe,1,1,"mat-progress-bar",25),t.YNc(2,VVe,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 KVe(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 qVe(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 JVe=function(r){return{"uploaded-error-text":r}};function QVe(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),t._uU(3),t.qZA()(),t.YNc(4,YVe,3,5,"div",23),t.YNc(5,KVe,2,4,"div",23),t.YNc(6,qVe,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,JVe,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 XVe(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 $Ve(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"div",12),t.YNc(3,jVe,2,0,"h5",0),t.YNc(4,GVe,2,0,"p",13),t.qZA(),t.YNc(5,zVe,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,QVe,7,13,"div",15),t.YNc(11,XVe,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 DI=function(){function n(r,e,i,o,a){(0,F.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,H.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 eYe(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 tYe(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,eYe,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 nYe(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 rYe(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,"")}}DI.\u0275fac=function(r){return new(r||DI)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn),t.Y36(ad))},DI.\u0275cmp=t.Xpm({type:DI,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,HVe,18,3,"div",0),t.YNc(1,$Ve,12,8,"div",0)),2&r&&(t.Q6J("ngIf",!e.isInstallAppliance),t.xp6(1),t.Q6J("ngIf",e.isInstallAppliance))},dependencies:[se.mk,se.sg,se.O5,Mp,dn,Dn,lu,dr,cb,rs,Ws],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 iYe=function(r){return{"deleted-error-text":r}};function oYe(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,rYe,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,iYe,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function aYe(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,oYe,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function sYe(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 lYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,aYe,4,1,"div",0),t.YNc(3,sYe,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 AI=function(){function n(r,e,i,o){(0,F.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,H.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,qn.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}();AI.\u0275fac=function(r){return new(r||AI)(t.Y36(ko),t.Y36(cr),t.Y36(bv),t.Y36(Zn))},AI.\u0275cmp=t.Xpm({type:AI,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,tYe,12,1,"div",0),t.YNc(1,nYe,5,0,"div",0),t.YNc(2,lYe,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:[se.mk,se.sg,se.O5,dn,Ig,yr,lu,dr,ou],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var uYe=function(){function n(){(0,F.Z)(this,n),this.dataChange=new Wi.X([])}return(0,H.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),n}(),cYe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,H.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 dYe(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 fYe(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 pYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," File Name "),t.qZA())}function hYe(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 mYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Type "),t.qZA())}function _Ye(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 gYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Size "),t.qZA())}function vYe(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 yYe(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 bYe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell"),t.YNc(1,yYe,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 CYe(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 wYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,CYe,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 kYe(n,r){1&n&&t._UZ(0,"mat-header-row")}function TYe(n,r){1&n&&t._UZ(0,"mat-row")}var OI=function(){function n(r,e,i,o,a,s,l){(0,F.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 uYe,this.isAllDelete=!1,this.selection=new Si.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,H.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 cYe(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(DI,{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(AI,{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 SYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}OI.\u0275fac=function(r){return new(r||OI)(t.Y36(bv),t.Y36(El),t.Y36(fr),t.Y36(or),t.Y36(gm),t.Y36(Gr),t.Y36(Zn))},OI.\u0275cmp=t.Xpm({type:OI,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,dYe,2,2,"mat-header-cell",11),t.YNc(18,fYe,2,1,"mat-cell",12),t.BQk(),t.ynx(19,13),t.YNc(20,pYe,2,0,"mat-header-cell",11),t.YNc(21,hYe,3,1,"mat-cell",12),t.BQk(),t.ynx(22,14),t.YNc(23,mYe,2,0,"mat-header-cell",11),t.YNc(24,_Ye,2,1,"mat-cell",12),t.BQk(),t.ynx(25,15),t.YNc(26,gYe,2,0,"mat-header-cell",11),t.YNc(27,vYe,2,1,"mat-cell",12),t.BQk(),t.ynx(28,16),t.YNc(29,bYe,2,1,"mat-header-cell",11),t.YNc(30,wYe,2,1,"mat-cell",12),t.BQk(),t.YNc(31,kYe,1,0,"mat-header-row",17),t.YNc(32,TYe,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:[se.O5,dn,Dn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,Oa,kT],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 II=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,H.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:[nle]})}},{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}();II.\u0275fac=function(r){return new(r||II)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Zn))},II.\u0275cmp=t.Xpm({type:II,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,SYe,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:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var df=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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,F.Z)(this,n),this.httpController=r}return(0,H.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 EYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required "),t.qZA())}function xYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect "),t.qZA())}function DYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists "),t.qZA())}function AYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required "),t.qZA())}function OYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid "),t.qZA())}function IYe(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 PYe=function(r,e){return["/controller",r,"management","groups",e]};function RYe(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,PYe,i.controller.id,e.user_group_id)),t.xp6(1),t.Oqu(e.name)}}function LYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Endpoint "),t.qZA())}function ZYe(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 NYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Role "),t.qZA())}function BYe(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 FYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Propagate "),t.qZA())}function UYe(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 HYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Allowed "),t.qZA())}function jYe(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 GYe(n,r){1&n&&t._UZ(0,"tr",36)}function zYe(n,r){1&n&&t._UZ(0,"tr",37)}var WYe=function(r){return["/controller",r,"management","users"]},PI=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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_-]+$")],[ele(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],[tle(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(II,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),n}();PI.\u0275fac=function(r){return new(r||PI)(t.Y36(Bl),t.Y36(Zn),t.Y36(fr),t.Y36(ur),t.Y36(Gr),t.Y36(df),t.Y36(ff))},PI.\u0275cmp=t.Xpm({type:PI,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,EYe,2,0,"mat-error",12),t.YNc(16,xYe,2,0,"mat-error",12),t.YNc(17,DYe,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,AYe,2,0,"mat-error",12),t.YNc(23,OYe,2,0,"mat-error",12),t.YNc(24,IYe,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,RYe,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,LYe,2,0,"th",26),t.YNc(53,ZYe,2,1,"td",27),t.BQk(),t.ynx(54,28),t.YNc(55,NYe,2,0,"th",26),t.YNc(56,BYe,2,1,"td",27),t.BQk(),t.ynx(57,29),t.YNc(58,FYe,2,0,"th",26),t.YNc(59,UYe,2,1,"td",27),t.BQk(),t.ynx(60,30),t.YNc(61,HYe,2,0,"th",26),t.YNc(62,jYe,2,1,"td",27),t.BQk(),t.YNc(63,GYe,1,0,"tr",31),t.YNc(64,zYe,1,0,"tr",32),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(19,WYe,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:[se.sg,se.O5,Wo,Gs,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,dr,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 IT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.userService=e}return(0,H.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 VYe(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)," ")}}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 RI=function(){function n(r,e,i){(0,F.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,H.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}();RI.\u0275fac=function(r){return new(r||RI)(t.Y36(fr),t.Y36(ur),t.Y36(or))},RI.\u0275cmp=t.Xpm({type:RI,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,VYe,3,3,"a",1),t.qZA(),t._UZ(2,"router-outlet")),2&r&&(t.xp6(1),t.Q6J("ngForOf",e.links))},dependencies:[se.sg,fm,Gs,nk,Fi.BU,Fi.Nj]});var PT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.userService=e}return(0,H.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}();PT.\u0275fac=function(r){return new(r||PT)(t.LFG(or),t.LFG(Bl))},PT.\u0275prov=t.Yz7({token:PT,factory:PT.\u0275fac,providedIn:"root"});var YYe=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 o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Yb=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function KYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is required"),t.qZA())}function qYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is incorrect"),t.qZA())}function JYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group with this name exists"),t.qZA())}function QYe(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 XYe(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 $Ye=function(r){return{"is-invalid":r}},LI=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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],[YYe(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 eKe(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)}}LI.\u0275fac=function(r){return new(r||LI)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Yb),t.Y36(Ec),t.Y36(Bl),t.Y36(Zn))},LI.\u0275cmp=t.Xpm({type:LI,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,KYe,2,0,"mat-error",4),t.YNc(6,qYe,2,0,"mat-error",4),t.YNc(7,JYe,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,QYe,2,3,"mat-option",9),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"div",10),t.YNc(19,XYe,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,$Ye,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:[se.mk,se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,dn,Dn,Kn,yr,dr,Gt.ey,Jp,Qp,se.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 ZI=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();ZI.\u0275fac=function(r){return new(r||ZI)(t.Y36(cr),t.Y36(ko))},ZI.\u0275cmp=t.Xpm({type:ZI,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,eKe,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:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var NI=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();NI.\u0275fac=function(r){return new(r||NI)},NI.\u0275pipe=t.Yjl({name:"groupFilter",type:NI,pure:!0});var tKe=["groupsPaginator"],nKe=["groupsSort"];function rKe(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 iKe(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 oKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Name"),t.qZA())}function aKe(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 sKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Creation date"),t.qZA())}function lKe(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 uKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Last update"),t.qZA())}function cKe(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 dKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," is built-in"),t.qZA())}function fKe(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 pKe(n,r){1&n&&t._UZ(0,"th",35)}function hKe(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 mKe(n,r){1&n&&t._UZ(0,"tr",37)}function _Ke(n,r){1&n&&t._UZ(0,"tr",38)}var gKe=function(){return{standalone:!0}},vKe=function(){return[5,10,20]};function yKe(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,rKe,2,2,"th",14),t.YNc(18,iKe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,oKe,2,0,"th",17),t.YNc(21,aKe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,sKe,2,0,"th",17),t.YNc(24,lKe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,uKe,2,0,"th",17),t.YNc(27,cKe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,dKe,2,0,"th",17),t.YNc(30,fKe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,pKe,1,0,"th",23),t.YNc(33,hKe,4,0,"td",18),t.BQk(),t.YNc(34,mKe,1,0,"tr",24),t.YNc(35,_Ke,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,gKe)),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,vKe))}}function bKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",39),t.qZA())}var BI=function(){function n(r,e,i,o,a){(0,F.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,H.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(LI,{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(ZI,{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 CKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," role name is required "),t.qZA())}function wKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," Role name is incorrect "),t.qZA())}BI.\u0275fac=function(r){return new(r||BI)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(Ec),t.Y36(Gr))},BI.\u0275cmp=t.Xpm({type:BI,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(tKe,5),t.Gf(nKe,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,yKe,38,12,"div",0),t.YNc(1,bKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,NI],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 kKe=function(r){return{"is-invalid":r}},FI=function(){function n(r,e,i){(0,F.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,H.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 TKe(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)}}FI.\u0275fac=function(r){return new(r||FI)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS))},FI.\u0275cmp=t.Xpm({type:FI,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,CKe,2,0,"mat-error",3),t.YNc(6,wKe,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,kKe,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var UI=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();UI.\u0275fac=function(r){return new(r||UI)(t.Y36(cr),t.Y36(ko))},UI.\u0275cmp=t.Xpm({type:UI,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,TKe,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:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var HI=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();HI.\u0275fac=function(r){return new(r||HI)},HI.\u0275pipe=t.Yjl({name:"roleFilter",type:HI,pure:!0});var MKe=["rolesPaginator"],SKe=["rolesSort"];function EKe(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 xKe(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 DKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Name"),t.qZA())}var AKe=function(r,e){return["/controller",r,"management","roles",e]};function OKe(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,AKe,i.controller.id,e.role_id))("matTooltip",e.name),t.xp6(1),t.Oqu(e.name)}}function IKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Description"),t.qZA())}function PKe(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 RKe(n,r){1&n&&t._UZ(0,"mat-header-cell",26)}function LKe(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 ZKe(n,r){1&n&&t._UZ(0,"mat-header-row")}function NKe(n,r){1&n&&t._UZ(0,"mat-row")}var BKe=function(){return{standalone:!0}},FKe=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,"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,EKe,2,2,"mat-header-cell",15),t.YNc(20,xKe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,DKe,2,0,"mat-header-cell",18),t.YNc(23,OKe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,IKe,2,0,"mat-header-cell",18),t.YNc(26,PKe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,RKe,1,0,"mat-header-cell",15),t.YNc(29,LKe,4,0,"mat-cell",16),t.BQk(),t.YNc(30,ZKe,1,0,"mat-header-row",22),t.YNc(31,NKe,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,BKe)),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,FKe))}}function HKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",33),t.qZA())}var jI=function(){function n(r,e,i,o,a,s,l){(0,F.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,H.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(FI,{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(UI,{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 jKe(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 GKe(n,r){1&n&&t._UZ(0,"mat-spinner")}function zKe(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,jKe,2,0,"mat-icon",6),t.YNc(6,GKe,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)}}jI.\u0275fac=function(r){return new(r||jI)(t.Y36(fr),t.Y36(ur),t.Y36(ff),t.Y36(El),t.Y36(or),t.Y36(Gr),t.Y36(Zn))},jI.\u0275cmp=t.Xpm({type:jI,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(MKe,5),t.Gf(SKe,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,UKe,34,12,"div",0),t.YNc(1,HKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,mi,HI],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 GI=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new Wi.X([]),this.displayedUsers=new Wi.X([]),this.loading=!1}return(0,H.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}();GI.\u0275fac=function(r){return new(r||GI)(t.Y36(cr),t.Y36(ko),t.Y36(Bl),t.Y36(Ec),t.Y36(Zn))},GI.\u0275cmp=t.Xpm({type:GI,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,zKe,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:[se.sg,se.O5,J.Fj,J.JJ,J.On,kn.KE,kn.hX,Dn,Kn,ou,se.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 RT,zI=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),n}();zI.\u0275fac=function(r){return new(r||zI)(t.Y36(cr),t.Y36(ko))},zI.\u0275cmp=t.Xpm({type:zI,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:[dn],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"}(RT||(RT={}));var WI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();WI.\u0275fac=function(r){return new(r||WI)},WI.\u0275pipe=t.Yjl({name:"paginator",type:WI,pure:!0});var VI=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();VI.\u0275fac=function(r){return new(r||VI)},VI.\u0275pipe=t.Yjl({name:"membersFilter",type:VI,pure:!0});var WKe=function(r,e){return["/controller",r,"management","users",e]};function VKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"a",30)(2,"div"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-icon",14),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.Q6J("routerLink",t.WLB(2,WKe,o.controller.id,i.user_id)),t.xp6(2),t.Oqu(i.username)}}function YKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Endpoint "),t.qZA())}function KKe(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.Oqu(e.endpoint_name)}}function qKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Role "),t.qZA())}function JKe(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.role_name," ")}}function QKe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Propagate "),t.qZA())}function XKe(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.propagate," ")}}function $Ke(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Allowed "),t.qZA())}function eqe(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.allowed," ")}}function tqe(n,r){1&n&&t._UZ(0,"tr",33)}function nqe(n,r){1&n&&t._UZ(0,"tr",34)}var rqe=function(r){return["/controller",r,"management","groups"]},iqe=function(){return[5,20,50,100]},YI=function(){function n(r,e,i,o,a,s){var l=this;(0,F.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.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=new J.nJ({groupname:new J.p4(l.group.name,[J.kI.required])})})}return(0,H.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.group.name=this.editGroupForm.get("groupname").value,console.log(this.editGroupForm.get("groupname")),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(GI,{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(zI,{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}();YI.\u0275fac=function(r){return new(r||YI)(t.Y36(fr),t.Y36(Gr),t.Y36(Ec),t.Y36(Zn),t.Y36(df),t.Y36(ff))},YI.\u0275cmp=t.Xpm({type:YI,selectors:[["app-group-details"]],decls:59,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"],[1,"input-field",3,"formGroup"],["matInput","","type","text","formControlName","groupname"],["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,"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,"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,"form",7)(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Group name:"),t.qZA(),t._UZ(16,"input",8),t.qZA()()(),t.TgZ(17,"div")(18,"mat-checkbox",9),t._uU(19,"Is built-in"),t.qZA()(),t.TgZ(20,"div",10)(21,"button",11),t.NdJ("click",function(){return e.onUpdate()}),t._uU(22," Update Group "),t.qZA()()(),t.TgZ(23,"div")(24,"div"),t._uU(25),t.qZA(),t.TgZ(26,"div"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.qZA()()(),t.TgZ(30,"mat-tab",12)(31,"div",13)(32,"div")(33,"mat-icon",14),t.NdJ("click",function(){return e.openAddUserDialog()}),t._uU(34,"person_add"),t.qZA()(),t.TgZ(35,"div",15)(36,"mat-form-field")(37,"input",16),t.NdJ("ngModelChange",function(o){return e.searchMembers=o}),t.qZA()()(),t.YNc(38,VKe,6,5,"div",17),t.ALo(39,"paginator"),t.ALo(40,"membersFilter"),t.TgZ(41,"mat-paginator",18),t.NdJ("page",function(o){return e.pageEvent=o}),t.qZA()()(),t.TgZ(42,"mat-tab",19)(43,"div",20)(44,"table",21),t.ynx(45,22),t.YNc(46,YKe,2,0,"th",23),t.YNc(47,KKe,2,1,"td",24),t.BQk(),t.ynx(48,25),t.YNc(49,qKe,2,0,"th",23),t.YNc(50,JKe,2,1,"td",24),t.BQk(),t.ynx(51,26),t.YNc(52,QKe,2,0,"th",23),t.YNc(53,XKe,2,1,"td",24),t.BQk(),t.ynx(54,27),t.YNc(55,$Ke,2,0,"th",23),t.YNc(56,eqe,2,1,"td",24),t.BQk(),t.YNc(57,tqe,1,0,"tr",28),t.YNc(58,nqe,1,0,"tr",29),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(21,rqe,e.controller.id)),t.xp6(4),t.hij("Group ",e.group.name,""),t.xp6(5),t.Q6J("formGroup",e.editGroupForm),t.xp6(6),t.Q6J("checked",e.group.is_builtin),t.xp6(3),t.Q6J("disabled",!e.editGroupForm.valid||e.group.is_builtin),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(39,15,t.xi3(40,18,e.members,e.searchMembers),e.pageEvent)),t.xp6(3),t.Q6J("length",e.members.length)("pageSizeOptions",t.DdM(23,iqe)),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:[se.sg,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,gd,dn,U0,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,dr,ti,mi,Fi.SP,Fi.uX,WI,VI],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 LT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,H.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}();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,e){(0,F.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,H.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}();ZT.\u0275fac=function(r){return new(r||ZT)(t.LFG(or),t.LFG(Ec))},ZT.\u0275prov=t.Yz7({token:ZT,factory:ZT.\u0275fac,providedIn:"root"});var NT=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/privileges")}}]),n}();NT.\u0275fac=function(r){return new(r||NT)(t.LFG(ho.zw))},NT.\u0275prov=t.Yz7({token:NT,factory:NT.\u0275fac,providedIn:"root"});var ole=function(){function n(r){(0,F.Z)(this,n),this.ownedPrivileges=r,this.change={add:new Set,delete:new Set}}return(0,H.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}(),KI=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"transform",value:function(e){if(e){var i={};e.forEach(function(h){var g=h.name.split("."),C=(0,Yn.Z)(g,2),Z=C[0],z=C[1];i.hasOwnProperty(Z)?i[Z].push({verb:z,privilege:h}):i[Z]=[{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 oqe(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 aqe(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 sqe(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 lqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,oqe,3,0,"button",5),t.YNc(2,aqe,2,0,"button",6),t.YNc(3,sqe,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)}}KI.\u0275fac=function(r){return new(r||KI)},KI.\u0275pipe=t.Yjl({name:"groupPrivileges",type:KI,pure:!0});var uqe=function(r,e){return{add:r,delete:e}};function cqe(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,uqe,o.changer.isAdded(i.privilege.privilege_id),o.changer.isDeleted(i.privilege.privilege_id))),t.xp6(1),t.hij(" ",i.verb,"")}}function dqe(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,cqe,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 fqe=function(r){return{box:r}};function pqe(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,fqe,i.ownedPrivilegesList.includes(e.privilege.privilege_id))),t.xp6(1),t.Oqu(e.verb)}}function hqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,pqe,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 mqe(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,hqe,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 _qe(n,r){if(1&n&&t.YNc(0,mqe,5,2,"div",21),2&n){var e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngIf",i.ownedPrivilegesName.includes(e.key))}}function gqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,dqe,6,2,"div",12),t.YNc(2,_qe,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 ale=".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}",qI=function(){function n(){(0,F.Z)(this,n),this.disable=!0,this.privileges=[],this.update=new t.vpe,this.ownedPrivilegesName=[],this.ownedPrivilegesList=[],this.changer=new ole(this.ownedPrivilegesList),this.editModeState=!1}return(0,H.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 ole(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}();qI.\u0275fac=function(r){return new(r||qI)},qI.\u0275cmp=t.Xpm({type:qI,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,lqe,4,3,"div",3),t.qZA(),t.YNc(5,gqe,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:[se.mk,se.sg,se.O5,dn,Dn,ti,KI],styles:[ale,ale]});var vqe=function(r){return["/controller",r,"management","roles"]},JI=function(){function n(r,e,i,o,a){var s=this;(0,F.Z)(this,n),this.roleService=r,this.toastService=e,this.route=i,this.privilegeService=o,this.fb=a,this.$role=new Wi.X({role_id:"",description:"",updated_at:"",is_builtin:!1,privileges:[],name:"",created_at:""}),this.$ownedPrivilegesId=this.$role.pipe((0,$n.U)(function(l){return l.privileges})),this.$role.subscribe(function(l){s.editRoleForm=a.group({rolename:[l.name],description:[l.description]})})}return(0,H.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,i=this.$role.value;i.name=this.editRoleForm.get("rolename").value,i.description=this.editRoleForm.get("description").value,this.roleService.update(this.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}();JI.\u0275fac=function(r){return new(r||JI)(t.Y36(ff),t.Y36(Zn),t.Y36(fr),t.Y36(NT),t.Y36(J.qu))},JI.\u0275cmp=t.Xpm({type:JI,selectors:[["app-role-detail"]],decls:45,vars:34,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"],[3,"formGroup"],["matInput","","type","text","formControlName","rolename"],["matInput","","type","text","formControlName","description"],["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;(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,"form",8)(12,"div")(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Role name:"),t.qZA(),t._UZ(16,"input",9),t.qZA()(),t.TgZ(17,"div")(18,"mat-form-field")(19,"mat-label"),t._uU(20,"Description:"),t.qZA(),t._UZ(21,"input",10),t.qZA()()(),t.TgZ(22,"div"),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div"),t._uU(26),t.ALo(27,"async"),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.ALo(30,"async"),t.qZA(),t.TgZ(31,"div")(32,"mat-checkbox",11),t.ALo(33,"async"),t._uU(34,"Is built-in"),t.qZA()(),t.TgZ(35,"div",12)(36,"button",13),t.NdJ("click",function(){return e.onUpdate()}),t.ALo(37,"async"),t.ALo(38,"async"),t._uU(39," Update Role "),t.qZA()()(),t._UZ(40,"mat-divider",14),t.TgZ(41,"app-privilege",15),t.NdJ("update",function(g){return e.onPrivilegesUpdate(g)}),t.ALo(42,"async"),t.ALo(43,"async"),t.ALo(44,"async"),t.qZA()()()()),2&r)&&(t.xp6(3),t.Q6J("routerLink",t.VKq(32,vqe,e.controller.id)),t.xp6(4),t.hij("Role ",null==(i=t.lcZ(8,12,e.$role))?null:i.name,""),t.xp6(4),t.Q6J("formGroup",e.editRoleForm),t.xp6(12),t.hij("Creation date: ",null==(o=t.lcZ(24,14,e.$role))?null:o.created_at,""),t.xp6(3),t.hij("Last update Date: ",null==(a=t.lcZ(27,16,e.$role))?null:a.updated_at,""),t.xp6(3),t.hij("UUID: ",null==(s=t.lcZ(30,18,e.$role))?null:s.role_id,""),t.xp6(3),t.Q6J("checked",null==(l=t.lcZ(33,20,e.$role))?null:l.is_builtin),t.xp6(4),t.Q6J("disabled",!t.lcZ(37,22,e.editRoleForm.valueChanges)&&e.editRoleForm.valid||(null==(u=t.lcZ(38,24,e.$role))?null:u.is_builtin)),t.xp6(4),t.Q6J("vertical",!0),t.xp6(1),t.Q6J("disable",null==(d=t.lcZ(42,26,e.$role))?null:d.is_builtin)("ownedPrivilege",t.lcZ(43,28,e.$ownedPrivilegesId))("privileges",t.lcZ(44,30,e.privileges)))},dependencies:[Gs,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,kn.hX,dn,U0,Dn,Kn,dr,ti,hm.d,mi,qI,se.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 sle,BT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.roleService=e}return(0,H.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}();BT.\u0275fac=function(r){return new(r||BT)(t.LFG(or),t.LFG(ff))},BT.\u0275prov=t.Yz7({token:BT,factory:BT.\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"}(sle||(sle={}));var yqe=function(){function n(){(0,F.Z)(this,n),this.expansionModel=new Si.Ov(!0)}return(0,H.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}(),bqe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this)).getChildren=i,a.options=o,a.options&&(a.trackBy=a.options.trackBy),a}return(0,H.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(C){d.e(C)}finally{d.f()}})}}]),e}(yqe),U5=new t.OlP("CDK_TREE_NODE_OUTLET_NODE"),Xp=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this._node=e});Xp.\u0275fac=function(r){return new(r||Xp)(t.Y36(t.s_b),t.Y36(U5,8))},Xp.\u0275dir=t.lG2({type:Xp,selectors:[["","cdkTreeNodeOutlet",""]]});var Cqe=(0,H.Z)(function n(r){(0,F.Z)(this,n),this.$implicit=r}),Km=(0,H.Z)(function n(r){(0,F.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,F.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new On.xQ,this._levels=new Map,this.viewChange=new Wi.X({start:0,end:Number.MAX_VALUE})}return(0,H.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,qn.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),du.mostRecentTreeNode&&(du.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 du=function(){function n(r,e){(0,F.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,H.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 wqe(n){for(var r=n.parentElement;r&&!kqe(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 kqe(n){var r=n.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}du.mostRecentTreeNode=null,du.\u0275fac=function(r){return new(r||du)(t.Y36(t.SBq),t.Y36(Ju))},du.\u0275dir=t.lG2({type:du,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,F.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,H.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}(du);$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:du,useExisting:$p},{provide:U5,useExisting:$p}]),t.qOj]});var Tqe=/([A-Za-z%]+)$/,Kb=function(){function n(r,e,i,o){var a=this;(0,F.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,H.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(Tqe);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(du),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,F.Z)(this,n),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,H.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(du))},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,H.Z)(function n(){(0,F.Z)(this,n)});qb.\u0275fac=function(r){return new(r||qb)},qb.\u0275mod=t.oAB({type:qb}),qb.\u0275inj=t.cJS({});var Mqe=function(){function n(r){(0,F.Z)(this,n),this.endpoints=r}return(0,H.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 Sqe(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,F.Z)(this,n),this.autocompleteControl=new J.p4,this.onSelection=new t.vpe}return(0,H.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 Eqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function xqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Dqe(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,Eqe,3,0,"div",25),t.YNc(6,xqe,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 Aqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function Oqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Iqe(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,Aqe,3,0,"div",25),t.YNc(8,Oqe,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 Pqe(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 Rqe(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 Lqe(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 Zqe(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 Nqe(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,Sqe,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:[se.sg,J.Fj,J.JJ,J.oH,kn.KE,kn.hX,Kn,Gt.ey,Jp,Qp,se.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var XI=function(){function n(r,e,i,o,a,s,l){(0,F.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(RT),this.TREE_DATA=[],this.treeControl=new bqe(function(h){return h.children}),this.hasChild=function(h,g){return!!g.children&&g.children.length>0},this.endpoints=l.endpoints;var d=new Mqe(this.endpoints).buildTreeFromEndpoints();this.treeDataSource=new Si.P3(d),console.log(d)}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addAceForm=new J.nJ({type:new J.p4(RT.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===RT.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===RT.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 Bqe(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," ")}}XI.\u0275fac=function(r){return new(r||XI)(t.Y36(cr),t.Y36(df),t.Y36(Bl),t.Y36(Ec),t.Y36(ff),t.Y36(Zn),t.Y36(ko))},XI.\u0275cmp=t.Xpm({type:XI,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,Dqe,7,5,"cdk-nested-tree-node",4),t.YNc(6,Iqe,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,Pqe,2,2,"mat-option",10),t.qZA()(),t.YNc(13,Rqe,1,4,"app-autocomplete",11),t.YNc(14,Lqe,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,Zqe,2,0,"button",17),t.YNc(23,Nqe,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:[se.sg,se.O5,J._Y,J.JJ,J.JL,J.sg,J.u,dn,Dn,yr,dr,ti,hm.d,ri.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 FT=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();FT.\u0275fac=function(r){return new(r||FT)(t.Y36(cr),t.Y36(ko))},FT.\u0275cmp=t.Xpm({type:FT,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,Bqe,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:[se.sg,dn,yr,dr]});var $I=function(){function n(){(0,F.Z)(this,n)}return(0,H.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(C){return[u,d,h,g].includes(C.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}();$I.\u0275fac=function(r){return new(r||$I)},$I.\u0275pipe=t.Yjl({name:"aceFilter",type:$I,pure:!0});var Fqe=["acesPaginator"],Uqe=["acesSort"];function Hqe(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 jqe(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 Gqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Path"),t.qZA())}function zqe(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 Wqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"User/Group"),t.qZA())}function Vqe(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 Yqe(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 Kqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,Vqe,2,1,"div",37),t.YNc(2,Yqe,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 qqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Role"),t.qZA())}function Jqe(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 Qqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Propagate"),t.qZA())}function Xqe(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 $qe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Allowed"),t.qZA())}function eJe(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 tJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Created"),t.qZA())}function nJe(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 rJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Last update"),t.qZA())}function iJe(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 oJe(n,r){1&n&&t._UZ(0,"th",39)}function aJe(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 sJe(n,r){1&n&&t._UZ(0,"tr",41)}function lJe(n,r){1&n&&t._UZ(0,"tr",42)}var uJe=function(){return{standalone:!0}},cJe=function(){return[5,10,20]};function dJe(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,Hqe,2,2,"th",14),t.YNc(18,jqe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,Gqe,2,0,"th",17),t.YNc(21,zqe,2,1,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,Wqe,2,0,"th",17),t.YNc(24,Kqe,4,2,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,qqe,2,0,"th",17),t.YNc(27,Jqe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,Qqe,2,0,"th",17),t.YNc(30,Xqe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,$qe,2,0,"th",17),t.YNc(33,eJe,2,1,"td",18),t.BQk(),t.ynx(34,23),t.YNc(35,tJe,2,0,"th",17),t.YNc(36,nJe,2,1,"td",18),t.BQk(),t.ynx(37,24),t.YNc(38,rJe,2,0,"th",17),t.YNc(39,iJe,2,1,"td",18),t.BQk(),t.ynx(40,25),t.YNc(41,oJe,1,0,"th",26),t.YNc(42,aJe,4,0,"td",18),t.BQk(),t.YNc(43,sJe,1,0,"tr",27),t.YNc(44,lJe,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,uJe)),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,cJe))}}function fJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var eP=function(){function n(r,e,i,o,a){(0,F.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,H.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(XI,{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(FT,{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(FT,{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}();eP.\u0275fac=function(r){return new(r||eP)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(df),t.Y36(Gr))},eP.\u0275cmp=t.Xpm({type:eP,selectors:[["app-acl-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Fqe,5),t.Gf(Uqe,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,dJe,47,13,"div",0),t.YNc(1,fJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,$I],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,F.Z)(this,n)}return(0,H.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 pJe=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,F.Z)(this,n),this.httpController=r,this.projectService=e}return(0,H.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(C){d.e(C)}finally{d.f()}}}catch(C){s.e(C)}finally{s.f()}return a}))}}]),n}();function hJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is required"),t.qZA())}function mJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is incorrect"),t.qZA())}function _Je(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(Vs.Y))},qm.\u0275prov=t.Yz7({token:qm,factory:qm.\u0275fac,providedIn:"root"});var gJe=function(r){return{"is-invalid":r}},tP=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.poolNameValidator=o,this.resourcePoolsService=a,this.toasterService=s}return(0,H.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],[pJe(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 vJe(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)}}tP.\u0275fac=function(r){return new(r||tP)(t.Y36(cr),t.Y36(ko),t.Y36(J.QS),t.Y36(Jb),t.Y36(qm),t.Y36(Zn))},tP.\u0275cmp=t.Xpm({type:tP,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,hJe,2,0,"mat-error",4),t.YNc(6,mJe,2,0,"mat-error",4),t.YNc(7,_Je,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,gJe,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:[se.mk,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,Kn,yr,dr],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 nP=function(){function n(r,e){(0,F.Z)(this,n),this.dialogRef=r,this.data=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();nP.\u0275fac=function(r){return new(r||nP)(t.Y36(cr),t.Y36(ko))},nP.\u0275cmp=t.Xpm({type:nP,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,vJe,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:[se.sg,dn,yr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var rP=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();rP.\u0275fac=function(r){return new(r||rP)},rP.\u0275pipe=t.Yjl({name:"resourcePoolsFilter",type:rP,pure:!0});var yJe=["resourcePoolsPaginator"],bJe=["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 wJe(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 kJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Name"),t.qZA())}function TJe(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/pools/",e.resource_pool_id,""),t.xp6(1),t.Oqu(e.name)}}function MJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Creation date"),t.qZA())}function SJe(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 EJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Last update"),t.qZA())}function xJe(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 DJe(n,r){1&n&&t._UZ(0,"th",34)}function AJe(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 OJe(n,r){1&n&&t._UZ(0,"tr",36)}function IJe(n,r){1&n&&t._UZ(0,"tr",37)}var PJe=function(){return{standalone:!0}},RJe=function(){return[5,10,20]};function LJe(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,wJe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,kJe,2,0,"th",17),t.YNc(21,TJe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,MJe,2,0,"th",17),t.YNc(24,SJe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,EJe,2,0,"th",17),t.YNc(27,xJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,DJe,1,0,"th",22),t.YNc(30,AJe,4,0,"td",18),t.BQk(),t.YNc(31,OJe,1,0,"tr",23),t.YNc(32,IJe,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,PJe)),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,RJe))}}function ZJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",38),t.qZA())}var iP=function(){function n(r,e,i,o,a){(0,F.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,H.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(tP,{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(nP,{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}();iP.\u0275fac=function(r){return new(r||iP)(t.Y36(fr),t.Y36(or),t.Y36(Zn),t.Y36(qm),t.Y36(Gr))},iP.\u0275cmp=t.Xpm({type:iP,selectors:[["app-resource-pools-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(yJe,5),t.Gf(bJe,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,LJe,35,12,"div",0),t.YNc(1,ZJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,gd,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ou,ti,qu,cf,rP],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 oP=function(){function n(r,e){(0,F.Z)(this,n),this.data=r,this.dialogRef=e}return(0,H.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();function NJe(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 BJe(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)}}oP.\u0275fac=function(r){return new(r||oP)(t.Y36(Cie),t.Y36(cr))},oP.\u0275cmp=t.Xpm({type:oP,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:[dn],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 FJe=function(r){return["/controller",r,"management","pools"]},aP=function(){function n(r,e,i,o){(0,F.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,H.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(oP,{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}();aP.\u0275fac=function(r){return new(r||aP)(t.Y36(Zn),t.Y36(fr),t.Y36(qm),t.Y36(Gr))},aP.\u0275cmp=t.Xpm({type:aP,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,NJe,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,BJe,7,1,"div",20),t.qZA()()()()),2&r){var i=t.MAs(30);t.xp6(3),t.Q6J("routerLink",t.VKq(13,FJe,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:[se.sg,Gs,J.Fj,J.JJ,J.On,J.oH,kn.KE,kn.hX,dn,U0,Dn,Kn,dr,hm.d,Gt.ey,mi,Jp,Qp,se.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 UT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.resourcePoolsService=e}return(0,H.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}();UT.\u0275fac=function(r){return new(r||UT)(t.LFG(or),t.LFG(qm))},UT.\u0275prov=t.Yz7({token:UT,factory:UT.\u0275fac,providedIn:"root"});var HT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,H.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}();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 jT=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,H.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}();jT.\u0275fac=function(r){return new(r||jT)(t.LFG(or),t.LFG(df))},jT.\u0275prov=t.Yz7({token:jT,factory:jT.\u0275fac,providedIn:"root"});var UJe=[{path:"",component:bI,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:lI},{path:"bundled",component:DD},{path:"controller/:controller_id/login",component:GD},{path:"controller/:controller_id/loggeduser",component:xI},{path:"controller/:controller_id/image-manager",component:OI},{path:"controller/:controller_id/projects",component:wT,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/help",component:FD},{path:"controller/:controller_id/settings",component:cI},{path:"controller/:controller_id/settings/console",component:uI},{path:"controller/:controller_id/management/users/:user_id",component:PI,canActivate:[Ur],resolve:{user:IT,groups:PT,aces:jT,controller:vd}},{path:"controller/:controller_id/management/pools/:pool_id",component:aP,canActivate:[Ur],resolve:{pool:UT,controller:vd}},{path:"installed-software",component:jD},{path:"controller/:controller_id/systemstatus",component:gI,canActivate:[Ur]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:RD,canActivate:[Ur]},{path:"controller/:controller_id/project/:project_id/snapshots",component:pI,canActivate:[Ur],resolve:{controller:vd}},{path:"controller/:controller_id/preferences",component:S2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin",component:WD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:a2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:i2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:o2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:u2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:s2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:l2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:r2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:YD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:qD,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates",component:C2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:v2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:b2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:y2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates",component:A2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:x2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:D2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:E2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates",component:F2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:B2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:N2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:P2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:I2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:O2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates",component:Z2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:L2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:R2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates",component:g2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:_2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:m2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:h2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates",component:M2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:T2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:k2,canActivate:[Ur]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:w2,canActivate:[Ur]},{path:"controller/:controller_id/management",component:RI,children:[{path:"users",component:EI},{path:"groups",component:BI},{path:"roles",component:jI},{path:"pools",component:iP},{path:"ACL",component:eP}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:YI,resolve:{members:LT,controller:vd,group:ZT,aces:HT}},{path:"controller/:controller_id/management/roles/:role_id",component:JI,resolve:{role:BT,controller:vd}}]},{path:"controller/:controller_id/project/:project_id",component:iI,canActivate:[Ur],canDeactivate:[Vb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:xT,canActivate:[Ur]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:xT,canActivate:[Ur]},{path:"**",component:zD}],GT=(0,H.Z)(function n(){(0,F.Z)(this,n)});GT.\u0275fac=function(r){return new(r||GT)},GT.\u0275mod=t.oAB({type:GT}),GT.\u0275inj=t.cJS({imports:[F0.forRoot(UJe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"}),F0]});var HJe=function(r,e){return{dark:r,light:e}},sP=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,F.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,H.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 lB?this.progressService.activate():(e instanceof Jd||e instanceof _D||e instanceof bG)&&this.progressService.deactivate()}}]),n}();sP.\u0275fac=function(r){return new(r||sP)(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))},sP.\u0275cmp=t.Xpm({type:sP,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,HJe,e.darkThemeEnabled,!e.darkThemeEnabled))},dependencies:[se.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 jJe=(0,H.Z)(function n(){(0,F.Z)(this,n)}),zT=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i=new jJe;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();zT.\u0275fac=function(r){return new(r||zT)},zT.\u0275prov=t.Yz7({token:zT,factory:zT.\u0275fac});var WT=function(){function n(){(0,F.Z)(this,n)}return(0,H.Z)(n,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return Xz(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}();WT.\u0275fac=function(r){return new(r||WT)},WT.\u0275prov=t.Yz7({token:WT,factory:WT.\u0275fac});var GJe=[iv,Um,zp,Xg,Gp,Vp,$g,jp,Qg,Eb,nv,yb,of,Mb,wb,Tb,kb,rv,Sb],VT=(0,H.Z)(function n(){(0,F.Z)(this,n)});VT.\u0275fac=function(r){return new(r||VT)},VT.\u0275mod=t.oAB({type:VT}),VT.\u0275inj=t.cJS({providers:[Sc,os,dv,Rb,Lb,Zb,Nb,Fp,Wp,Yu,Fm,Hp,qg,Ks,Zl,pd,hd,jm,_d,Bm,Wg,Kg,gb,Bb,qp,hv,Fb,Vm,pv,zT,Yg,Vg,vb,Up,Im,Pm,Rm,Lm,Jg,rf,Pp,WT,ev,tv].concat((0,cn.Z)(GJe)),imports:[se.ez,Pg,Og]});var Qb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(YB.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 pW=function(n,r){return(pW=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 lP(n,r){function e(){this.constructor=n}pW(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 fu(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(fu(arguments[r]));return n}var ba=m(7312),lle=Object.prototype.toString;function hW(n){switch(lle.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return wv(n,Error)}}function YT(n,r){return lle.call(n)==="[object "+r+"]"}function ule(n){return YT(n,"ErrorEvent")}function cle(n){return YT(n,"DOMError")}function KT(n){return YT(n,"String")}function mW(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function qT(n){return YT(n,"Object")}function j5(n){return"undefined"!=typeof Event&&wv(n,Event)}function _W(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function wv(n,r){try{return n instanceof r}catch(e){return!1}}function gW(n,r){try{for(var e=n,a=[],s=0,l=0,d=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=qJe(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 qJe(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)&&KT(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 uP(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function dle(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 vW(n,r){return!!KT(n)&&(function VJe(n){return YT(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{fle(o,i)}catch(a){}n[r]=o}}function G5(n,r,e){Object.defineProperty(n,r,{value:e,writable:!0,configurable:!0})}function fle(n,r){var e=r.prototype||{};n.prototype=r.prototype=e,G5(n,"__sentry_original__",r)}function yW(n){return n.__sentry_original__}function ple(n){var r=n;if(hW(n))r=In({message:n.message,name:n.name,stack:n.stack},mle(n));else if(j5(n)){var e=n;r=In({type:e.type,target:hle(e.target),currentTarget:hle(e.currentTarget)},mle(e)),"undefined"!=typeof CustomEvent&&wv(n,CustomEvent)&&(r.detail=e.detail)}return r}function hle(n){try{return function WJe(n){return"undefined"!=typeof Element&&wv(n,Element)}(n)?gW(n):Object.prototype.toString.call(n)}catch(r){return"<unknown>"}}function mle(n){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}function XJe(n,r){void 0===r&&(r=40);var e=Object.keys(ple(n));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return uP(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:uP(o,r)}return""}function bW(n){var r,e;if(qT(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]=bW(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(bW):n}function JT(){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 CW(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 _le(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=_le(n);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function wW(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 cP(n,r){var e=_le(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 gle(n){if(n&&n.__sentry_captured__)return!0;try{G5(n,"__sentry_captured__",!0)}catch(r){}return!1}var _i,QT=m(3169),XT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eQe=(0,ba.R)(),tQe="Sentry Logger ",z5=["debug","info","warn","error","log","assert"];function vle(n){var r=(0,ba.R)();if(!("console"in r))return n();var e=r.console,i={};z5.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 yle(){var n=!1,r={enable:function(){n=!0},disable:function(){n=!1}};return XT?z5.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&vle(function(){var a;(a=eQe.console)[e].apply(a,as([tQe+"["+e+"]:"],i))})}}):z5.forEach(function(e){r[e]=function(){}}),r}_i=XT?(0,ba.Y)("logger",yle):yle();var nQe=m(3295),ble="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $b(n){return new kv(function(r){r(n)})}function dP(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(_W(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}(),W5=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)):qT(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,QT.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(wle(),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);_W(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 wle(){return(0,ba.Y)("globalEventProcessors",function(){return[]})}function kW(n){wle().push(n)}var rQe=function(){function n(r){this.errors=0,this.sid=JT(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,QT.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,QT.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:JT()),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 bW({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}(),MW=function(){function n(r,e,i){void 0===e&&(e=new W5),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=W5.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:JT(),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:JT(),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:JT();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,QT.yW)(),C=In({timestamp:g},r),Z=u?vle(function(){return u(C,e)}):C;null!==Z&&o.addBreadcrumb(Z,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=kle(this);try{r(this)}finally{kle(e)}},n.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return ble&&_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 rQe(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=fP(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);ble&&_i.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function fP(){var n=(0,ba.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function kle(n){var r=fP(),e=Tv(r);return SW(r,n),e}function pu(){var n=fP();return(!Tle(n)||Tv(n).isOlderThan(4))&&SW(n,new MW),(0,nQe.KV)()?function oQe(n){try{var r=fP().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return Tv(n);if(!Tle(e)||Tv(e).isOlderThan(4)){var i=Tv(n).getStackTop();SW(e,new MW(i.client,W5.clone(i.scope)))}return Tv(e)}catch(o){return Tv(n)}}(n):Tv(n)}function Tle(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function Tv(n){return(0,ba.Y)("hub",function(){return new MW},n)}function SW(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=pu();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 Mle(n,r){return Qu("captureException",n,{captureContext:r,originalException:n,syntheticException:new Error("Sentry syntheticException")})}function aQe(n){Qu("withScope",n)}var ss="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,sQe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],lQe=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 uQe(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||[],sQe),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(a._options,l);return function cQe(n,r){return r.ignoreInternal&&function mQe(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 dQe(n,r){return!(!r||!r.length)&&function hQe(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 vW(e,i)})})}(n,r.ignoreErrors)?(ss&&_i.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Xb(n)),!0):function fQe(n,r){if(!r||!r.length)return!1;var e=V5(n);return!!e&&r.some(function(i){return vW(e,i)})}(n,r.denyUrls)?(ss&&_i.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+V5(n)),!0):!function pQe(n,r){if(!r||!r.length)return!0;var e=V5(n);return!e||r.some(function(i){return vW(e,i)})}(n,r.allowUrls)&&(ss&&_i.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Xb(n)+".\nUrl: "+V5(n)),!0)}(i,u)?null:i}}return i})},n.id="InboundFilters",n}();function Sle(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 V5(n){try{if(n.stacktrace)return Sle(n.stacktrace.frames);var r;try{r=n.exception.values[0].stacktrace.frames}catch(e){}return r?Sle(r):null}catch(e){return ss&&_i.error("Cannot extract url for event "+Xb(n)),null}}var Ele,_Qe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Ele=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=yW(this)||this;return Ele.apply(i,r)}},n.id="FunctionToString",n}();function bQe(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 EW="<anonymous>";function Mv(n){try{return n&&"function"==typeof n&&n.name||EW}catch(r){return EW}}function Y5(){if(!("fetch"in(0,ba.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function xW(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function wQe(){if(!Y5())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var K5,ua=(0,ba.R)(),pP={},xle={};function TQe(n){if(!xle[n])switch(xle[n]=!0,n){case"console":!function MQe(){"console"in ua&&z5.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 RQe(){if("document"in ua){var n=pf.bind(null,"dom"),r=Dle(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=Dle(n);h.handler=g,o.call(this,a,g,l)}h.refCount+=1}catch(C){}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 DQe(){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:KT(e[0])?e[0].toUpperCase():e[0],url:e[1]};KT(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 SQe(){!function CQe(){if(!Y5())return!1;var n=(0,ba.R)();if(xW(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=xW(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){XT&&_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:EQe(r),url:xQe(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 AQe(){if(!function kQe(){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=K5,l=String(a);K5=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=K5;if(K5=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 LQe(){DW=ua.onerror,ua.onerror=function(n,r,e,i,o){return pf("error",{column:i,error:o,line:e,msg:n,url:r}),!!DW&&DW.apply(this,arguments)}}();break;case"unhandledrejection":!function ZQe(){AW=ua.onunhandledrejection,ua.onunhandledrejection=function(n){return pf("unhandledrejection",n),!AW||AW.apply(this,arguments)}}();break;default:return void(XT&&_i.warn("unknown instrumentation type:",n))}}function Sv(n,r){pP[n]=pP[n]||[],pP[n].push(r),TQe(n)}function pf(n,r){var e,i;if(n&&pP[n])try{for(var o=Jm(pP[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){XT&&_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 EQe(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 xQe(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 q5,J5;function Dle(n,r){return void 0===r&&(r=!1),function(e){if(e&&J5!==e&&!function PQe(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===q5||function IQe(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(e){}return!1}(J5,e))&&(n({event:e,name:i,global:r}),J5=e),clearTimeout(q5),q5=ua.setTimeout(function(){q5=void 0},1e3)}}}var DW=null;var AW=null;var NQe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function BQe(n,r){return n.__proto__=r,n}:function FQe(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,NQe(o,i.prototype),o}return lP(r,n),r}(Error),UQe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hP(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 Ole(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 Q5(n){var r="string"==typeof n?function jQe(n){var r=UQe.exec(n);if(!r)throw new Cs("Invalid Sentry Dsn: "+n);var e=fu(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="",C=e[5],Z=C.split("/");if(Z.length>1&&(g=Z.slice(0,-1).join("/"),C=Z.pop()),C){var z=C.match(/^\d+/);z&&(C=z[0])}return Ole({host:l,pass:s,path:g,projectId:C,port:d,protocol:i,publicKey:o})}(n):Ole(n);return function GQe(n){if(XT){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 HQe(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 Ple("",n,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function Ile(n,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=eC(n,r);return function YQe(n){return function VQe(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>e?Ile(n,r-1,e):i}function Ple(n,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function zQe(){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=fu(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 KJe(n){return"number"==typeof n&&n!=n}(r))return r;var d=function WQe(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 YJe(n){return qT(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,C=hW(r)||j5(r)?ple(r):r;for(var Z in C)if(Object.prototype.hasOwnProperty.call(C,Z)){if(g>=i){h[Z]="[MaxProperties ~]";break}var z=C[Z];h[Z]=Ple(Z,z,e-1,i,o),g+=1}return l(r),h}var Rle=[];function Lle(n){return n.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function JQe(n){var r={};return function KQe(n){var r=n.defaultIntegrations&&as(n.defaultIntegrations)||[],e=n.integrations,i=as(Lle(r));Array.isArray(e)?i=as(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),Lle(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 qQe(n){-1===Rle.indexOf(n.name)&&(n.setupOnce(kW,pu),Rle.push(n.name),ss&&_i.log("Integration installed: "+n.name))}(e)}),G5(r,"initialized",!0),r}var Zle="Not capturing exception because it's already been captured.",QQe=function(){function n(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=Q5(e.dsn))}return n.prototype.captureException=function(r,e,i){var o=this;if(!gle(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(Zle)},n.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=mW(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&&gle(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(Zle)},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=JQe(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 C="ok"===r.status;(C&&0===r.errors||C&&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:JT()),timestamp:r.timestamp||(0,QT.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var g=e;i&&i.captureContext&&(g=W5.clone(g).update(i.captureContext));var C=$b(h);return g&&(C=g.applyToEvent(h,i)),C.then(function(Z){return Z&&(Z.sdkProcessingMetadata=In(In({},Z.sdkProcessingMetadata),{normalizeDepth:eC(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(Z,l,d):Z})},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=uP(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=uP(u.value,l));var d=r.request;d&&d.url&&(d.url=uP(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,C){u.recordLostEvent&&u.recordLostEvent(g,C)}if(!this._isEnabled())return dP(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"),dP(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 XQe(n){var r="`beforeSend` method has to return `null` or a valid event.";if(_W(n))return n.then(function(e){if(!qT(e)&&null!==e)throw new Cs(r);return e},function(e){throw new Cs("beforeSend rejected with "+e)});if(!qT(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 C=i&&i.getSession&&i.getSession();return!h&&C&&o._updateSessionFromEvent(C,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=Q5(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 OW(this._dsnObject)},n.prototype.getStoreEndpoint=function(){return Ule(this._dsnObject)},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return IW(this._dsnObject)},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return mP(this._dsnObject,this._tunnel)}}();function X5(n,r,e){return{initDsn:n,metadata:r||{},dsn:Q5(n),tunnel:e}}function OW(n){var r=n.protocol?n.protocol+":":"",e=n.port?":"+n.port:"";return r+"//"+n.host+e+(n.path?"/"+n.path:"")+"/api/"}function Ble(n,r){return""+OW(n)+n.projectId+"/"+r+"/"}function Fle(n){return function QJe(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:n.publicKey,sentry_version:"7"})}function Ule(n){return Ble(n,"store")}function IW(n){return Ule(n)+"?"+Fle(n)}function mP(n,r){return r||function $Qe(n){return Ble(n,"envelope")}(n)+"?"+Fle(n)}function $5(n,r){return void 0===r&&(r=[]),[n,r]}function eF(n){var r=fu(n,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=fu(s,2),u=l[0],d=l[1],h=mW(d)?String(d):JSON.stringify(d);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function PW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function Hle(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 jle(n,r){var e=PW(r),o="aggregates"in n?"sessions":"session";return[$5(In(In({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hP(r.dsn)}),[[{type:o},n]]),o]}var eh,oXe=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}(),aXe=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 rXe(n,r){var e=PW(r),i=n.type||"event",a=(n.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return Hle(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,$5(In(In({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hP(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},n]])}(r,X5(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=fu(jle(r,X5(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 oXe},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 _P(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 fXe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pXe=/\((\S*)(?::(\d+))(?::(\d+))\)/,mXe=[30,function(r){var e=fXe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=pXe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=fu(Gle(e[1]||"?",e[2]),2),s=a[0];return _P(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],_Xe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gXe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yXe=[50,function(r){var e,i=_Xe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=gXe.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=fu(Gle(l,s),2))[0],_P(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],bXe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wXe=[40,function(r){var e=bXe.exec(r);return e?_P(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],kXe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,MXe=[10,function(r){var e=kXe.exec(r);return e?_P(e[2],e[3]||"?",+e[1]):void 0}],SXe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,xXe=[20,function(r){var e=SXe.exec(r);return e?_P(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],Gle=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 zle(n){var r=LW(n),e={type:n&&n.name,value:IXe(n)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function RW(n){return{exception:{values:[zle(n)]}}}function LW(n){var r=n.stacktrace||n.stack||"",e=function OXe(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(AXe.test(n.message))return 1}return 0}(n);try{return function yQe(){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 C=g.value;try{for(var Z=(l=void 0,Jm(e)),z=Z.next();!z.done;z=Z.next()){var re=(0,z.value)(C);if(re){d.push(re);break}}}catch(ae){l={error:ae}}finally{try{z&&!z.done&&(u=Z.return)&&u.call(Z)}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 bQe(d)}}(MXe,xXe,mXe,wXe,yXe)(r,e)}catch(i){}return[]}var AXe=/Minified React error #\d+;/i;function IXe(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function ZW(n,r,e,i){var o;if(ule(n)&&n.error)return RW(n.error);if(cle(n)||function zJe(n){return YT(n,"DOMException")}(n)){var s=n;if("stack"in n)o=RW(n);else{var l=s.name||(cle(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;wW(o=NW(u,r,e),u)}return"code"in s&&(o.tags=In(In({},o.tags),{"DOMException.code":""+s.code})),o}return hW(n)?RW(n):qT(n)||j5(n)?(o=function DXe(n,r,e){var i={exception:{values:[{type:j5(n)?n.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+XJe(n)}]},extra:{__serialized__:Ile(n)}};if(r){var o=LW(r);o.length&&(i.stacktrace={frames:o})}return i}(n,r,i),cP(o,{synthetic:!0}),o):(wW(o=NW(n,r,e),""+n,void 0),cP(o,{synthetic:!0}),o)}function NW(n,r,e){var i={message:n};if(e&&r){var o=LW(r);o.length&&(i.stacktrace={frames:o})}return i}function Wle(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 dP(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 BW(n,r){return n[r]||n.all||0}function Vle(n,r,e){return void 0===e&&(e=Date.now()),BW(n,r)>e}function Yle(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 Z=g.value.split(":",2),z=parseInt(Z[0],10),q=1e3*(isNaN(z)?60:z);if(Z[1])try{for(var re=(a=void 0,Jm(Z[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 ZXe(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 Kle(n){return n>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown"}function qle(n,r,e){void 0===e&&(e=Wle(n.bufferSize||30));var i={};return{send:function a(s){var l=function tXe(n){var r=fu(n,2),e=fu(r[1],1);return fu(e[0],1)[0].type}(s),u="event"===l?"error":l,d={category:u,body:eF(s)};return Vle(i,u)?dP({status:"rate_limit",reason:Jle(i,u)}):e.add(function(){return r(d).then(function(C){var Z=C.body,z=C.headers,q=C.reason,ae=Kle(C.statusCode);return z&&(i=Yle(i,z)),"success"===ae?$b({status:ae,reason:q}):dP({status:ae,reason:q||Z||("rate_limit"===ae?Jle(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Jle(n,r){return"Too many "+r+" requests, backing off until: "+new Date(BW(n,r)).toISOString()}var tF,yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hf=(0,ba.R)();function FW(){if(tF)return tF;if(xW(hf.fetch))return tF=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 tF=r.bind(hf)}function FXe(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):Y5()?function BXe(n){n.then(null,function(r){console.error(r)})}(FW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function UW(n){return"event"===n?"error":n}var HW=(0,ba.R)(),Qle=function(){function n(r){var e=this;this.options=r,this._buffer=Wle(30),this._rateLimits={},this._outcomes={},this._api=X5(r.dsn,r._metadata,r.tunnel),this.url=IW(this._api.dsn),this.options.sendClientReports&&HW.document&&HW.document.addEventListener("visibilitychange",function(){"hidden"===HW.document.visibilityState&&e._flushOutcomes()})}return n.prototype.sendEvent=function(r){return this._sendRequest(function iXe(n,r){var d,e=PW(r),i=n.type||"event",o="transaction"===i||!!r.tunnel,s=(n.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;Hle(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?mP(r.dsn,r.tunnel):IW(r.dsn)};if(o){var z=$5(In(In({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:hP(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},g.body]]);g.body=eF(z)}return g}(r,this._api),r)},n.prototype.sendSession=function(r){return this._sendRequest(function nXe(n,r){var e=fu(jle(n,r),2),i=e[0],o=e[1];return{body:eF(i),type:o,url:mP(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=UW(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=mP(this._api.dsn,this._api.tunnel),o=function HXe(n,r,e){return $5(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,QT.yW)(),discarded_events:n}]])}(Object.keys(r).map(function(a){var s=fu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&hP(this._api.dsn));try{FXe(e,eF(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=Kle(i.status);this._rateLimits=Yle(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=UW(r);return new Date(BW(this._rateLimits,e))},n.prototype._isRateLimited=function(r){var e=UW(r);return Vle(this._rateLimits,e)},n}(),jXe=function(n){function r(e,i){void 0===i&&(i=FW());var o=n.call(this,e)||this;return o._fetch=i,o}return lP(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:wQe()?"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 WXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return lP(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),VXe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return lP(r,n),r.prototype.eventFromException=function(e,i){return function PXe(n,r,e){var o=ZW(n,r&&r.syntheticException||void 0,e);return cP(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 RXe(n,r,e,i){void 0===r&&(r=eh.Info);var a=NW(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=X5(e.dsn,e._metadata,e.tunnel),o=mP(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(Y5()){var a=In({},e.fetchParameters);return this._newTransport=function UXe(n,r){return void 0===r&&(r=FW()),qle({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 jXe(e)}return this._newTransport=function zXe(n){return qle({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 WXe(e)},r}(aXe),nF=(0,ba.R)(),jW=0;function Xle(){return jW>0}function YXe(){jW+=1,setTimeout(function(){jW-=1})}function eM(n,r,e){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(yW(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 eM(h,r)});return n.apply(this,d)}catch(h){throw YXe(),aQe(function(g){g.addEventProcessor(function(C){return r.mechanism&&(wW(C,void 0,void 0),cP(C,r.mechanism)),C.extra=In(In({},C.extra),{arguments:u}),C}),Mle(h)}),h}};try{for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}catch(l){}fle(o,n),G5(n,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return n.name}})}catch(l){}return o}function KXe(n){if(void 0===n&&(n={}),nF.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=nF.document.createElement("script");r.async=!0,r.src=function eXe(n,r){var e=Q5(n),i=OW(e)+"embed/error-page/",o="dsn="+hP(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=nF.document.head||nF.document.body;e&&e.appendChild(r)}}var qXe=["fatal","error","warning","log","info","debug","critical"];function QXe(n){return"warn"===n?eh.Warning:function JXe(n){return-1!==qXe.indexOf(n)}(n)?n:eh.Log}var $le=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||pu().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",$Xe),this._options.dom&&Sv("dom",function XXe(n){function r(e){var i,o="object"==typeof n?n.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?gW(e.event.target,o):gW(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&pu().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",e$e),this._options.fetch&&Sv("fetch",t$e),this._options.history&&Sv("history",n$e)},n.id="Breadcrumbs",n}();function $Xe(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:QXe(n.level),message:dle(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(dle(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}pu().addBreadcrumb(r,{input:n.args,level:n.level})}function e$e(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;pu().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:n.xhr,input:a})}else;}function t$e(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?pu().addBreadcrumb({category:"fetch",data:n.fetchData,level:eh.Error,type:"http"},{data:n.error,input:n.args}):pu().addBreadcrumb({category:"fetch",data:In(In({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))}function n$e(n){var r=(0,ba.R)(),e=n.from,i=n.to,o=CW(r.location.href),a=CW(e),s=CW(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),pu().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var r$e=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,VXe,e)||this}return lP(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"));KXe(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($le);i&&i.addSentryBreadcrumb(e),n.prototype._sendEvent.call(this,e)},r}(QQe),i$e=["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"],o$e=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",eue),this._options.setInterval&&Fl(r,"setInterval",eue),this._options.requestAnimationFrame&&Fl(r,"requestAnimationFrame",a$e),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Fl(XMLHttpRequest.prototype,"send",s$e);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:i$e).forEach(l$e)},n.id="TryCatch",n}();function eue(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=eM(i,{mechanism:{data:{function:Mv(n)},handled:!0,type:"instrument"}}),n.apply(this,r)}}function a$e(n){return function(r){return n.apply(this,[eM(r,{mechanism:{data:{function:"requestAnimationFrame",handler:Mv(n)},handled:!0,type:"instrument"}})])}}function s$e(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=yW(s);return u&&(l.mechanism.data.handler=Mv(u)),eM(s,l)})}),n.apply(this,r)}}function l$e(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=eM(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:Mv(a),target:n},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,eM(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 GW=function(){function n(r){this.name=n.id,this._installFunc={onerror:u$e,onunhandledrejection:c$e},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]&&(p$e(e),i(),this._installFunc[e]=void 0)}},n.id="GlobalHandlers",n}();function u$e(){Sv("error",function(n){var r=fu(rue(),2),e=r[0],i=r[1];if(e.getIntegration(GW)){var o=n.msg,a=n.url,s=n.line,l=n.column,u=n.error;if(!(Xle()||u&&u.__sentry_own_request__)){var d=void 0===u&&KT(o)?function f$e(n,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=ule(n)?n.message:n,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),tue({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):tue(ZW(u||o,void 0,i,!1),a,s,l);d.level=eh.Error,nue(e,u,d,"onerror")}}})}function c$e(){Sv("unhandledrejection",function(n){var r=fu(rue(),2),e=r[0],i=r[1];if(e.getIntegration(GW)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(s){}if(Xle()||o&&o.__sentry_own_request__)return!0;var a=mW(o)?function d$e(n){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n)}]}}}(o):ZW(o,void 0,i,!0);a.level=eh.Error,nue(e,o,a,"onunhandledrejection")}})}function tue(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=KT(r)&&r.length>0?r:function JJe(){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 p$e(n){yd&&_i.log("Global Handler attached: "+n)}function nue(n,r,e,i){cP(e,{handled:!1,type:i}),n.captureEvent(e,{originalException:r})}function rue(){var n=pu(),r=n.getClient();return[n,r&&r.getOptions().attachStacktrace]}var _$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(){kW(function(r,e){var i=pu().getIntegration(n);return i?function g$e(n,r,e,i){if(!(e.exception&&e.exception.values&&i&&wv(i.originalException,Error)))return e;var o=iue(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 iue(n,r,e,i){if(void 0===i&&(i=[]),!wv(r[e],Error)||i.length+1>=n)return i;var o=zle(r[e]);return iue(n,r[e],e,as([o],i))}var v$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 y$e(n,r){return!!r&&!(!function b$e(n,r){var e=n.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!aue(n,r)||!oue(n,r))}(n,r)&&!function C$e(n,r){var e=sue(r),i=sue(n);return!!(e&&i&&e.type===i.type&&e.value===i.value&&aue(n,r)&&oue(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 oue(n,r){var e=lue(n),i=lue(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 aue(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 sue(n){return n.exception&&n.exception.values&&n.exception.values[0]}function lue(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)(),w$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){kW(function(r){if(pu().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}(),k$e=[new lQe,new _Qe,new o$e,new $le,new GW,new _$e,new v$e,new w$e];function uue(n){n.startSession({ignoreDuration:!0}),n.captureSession()}!function T$e(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=k$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 gQe(n,r){!0===r.debug&&(ss?_i.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=pu(),i=e.getScope();i&&i.update(r.initialScope);var o=new n(r);e.bindClient(o)}(r$e,n),n.autoSessionTracking&&function M$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=pu();!e.captureSession||(uue(e),Sv("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||uue(pu())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var tM=function(){function n(r){(0,F.Z)(this,n),this.injector=r}return(0,H.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";Mle(i);ja.N.production||console.error(i)}}]),n}();tM.\u0275fac=function(r){return new(r||tM)(t.LFG(t.zs3))},tM.\u0275prov=t.Yz7({token:tM,factory:tM.\u0275fac});var nC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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}(tM);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 gP=function(){function n(){(0,F.Z)(this,n)}return(0,H.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}();gP.\u0275fac=function(r){return new(r||gP)},gP.\u0275pipe=t.Yjl({name:"projectsfilter",type:gP,pure:!0});var cue=["*"],E$e=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],A$e=function(){function n(){(0,F.Z)(this,n),this.columnIndex=0,this.rowIndex=0}return(0,H.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 O$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}(),O$e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.row=r,this.col=e}),due=new t.OlP("MAT_GRID_LIST"),vP=function(){function n(r,e){(0,F.Z)(this,n),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,H.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}();vP.\u0275fac=function(r){return new(r||vP)(t.Y36(t.SBq),t.Y36(due,8))},vP.\u0275cmp=t.Xpm({type:vP,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:cue,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 rF=function(){function n(r){(0,F.Z)(this,n),this._element=r}return(0,H.Z)(n,[{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}}]),n}();rF.\u0275fac=function(r){return new(r||rF)(t.Y36(t.SBq))},rF.\u0275cmp=t.Xpm({type:rF,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$e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var iF=(0,H.Z)(function n(){(0,F.Z)(this,n)});iF.\u0275fac=function(r){return new(r||iF)},iF.\u0275dir=t.lG2({type:iF,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var oF=(0,H.Z)(function n(){(0,F.Z)(this,n)});oF.\u0275fac=function(r){return new(r||oF)},oF.\u0275dir=t.lG2({type:oF,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var aF=(0,H.Z)(function n(){(0,F.Z)(this,n)});aF.\u0275fac=function(r){return new(r||aF)},aF.\u0275dir=t.lG2({type:aF,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var I$e=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,zW=function(){function n(){(0,F.Z)(this,n),this._rows=0,this._rowspan=0}return(0,H.Z)(n,[{key:"init",value:function(e,i,o,a){this._gutterSize=fue(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}(),P$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,H.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=fue(this.fixedRowHeight),I$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}(zW),R$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,H.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}(zW),L$e=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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}(zW);function rC(n){return"calc(".concat(n,")")}function fue(n){return n.match(/([A-Za-z%]+)$/)?n:"".concat(n,"px")}var yP=function(){function n(r,e){(0,F.Z)(this,n),this._element=r,this._dir=e,this._gutter="1px"}return(0,H.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 L$e:e&&e.indexOf(":")>-1?this._tileStyler=new R$e(e):this._tileStyler=new P$e(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new A$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}();yP.\u0275fac=function(r){return new(r||yP)(t.Y36(t.SBq),t.Y36(nl.Is,8))},yP.\u0275cmp=t.Xpm({type:yP,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,vP,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:due,useExisting:yP}])],ngContentSelectors:cue,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 nM=(0,H.Z)(function n(){(0,F.Z)(this,n)});nM.\u0275fac=function(r){return new(r||nM)},nM.\u0275mod=t.oAB({type:nM}),nM.\u0275inj=t.cJS({imports:[Gt.uc,Gt.BQ,Gt.uc,Gt.BQ]});var rM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,H.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)(du)));rM.\u0275fac=function(r){return new(r||rM)(t.Y36(t.SBq),t.Y36(Ju),t.$8M("tabindex"))},rM.\u0275dir=t.lG2({type:rM,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:du,useExisting:rM}]),t.qOj]});var iC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,H.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:du,useExisting:Ev},{provide:U5,useExisting:Ev}]),t.qOj]});var oC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,H.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this._node=e});xv.\u0275fac=function(r){return new(r||xv)(t.Y36(t.s_b),t.Y36(U5,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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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,F.Z)(this,e),r.apply(this,arguments)}return(0,H.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 iM=(0,H.Z)(function n(){(0,F.Z)(this,n)});iM.\u0275fac=function(r){return new(r||iM)},iM.\u0275mod=t.oAB({type:iM}),iM.\u0275inj=t.cJS({imports:[qb,Gt.BQ,Gt.BQ]});Si.o2,Si.o2;var B$e=[dT,pm,Pg,ck,DT,Og,kn.lN,dk,bk,Sk,Lk,ak,W0,ob,mk,gk,hT,ri.LD,G0,Rk,kk,nM,Fi.Nh,iM,Db,ET],lC=(0,H.Z)(function n(r,e){(0,F.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 oM=function(){function n(r){(0,F.Z)(this,n),this.httpController=r}return(0,H.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}();oM.\u0275fac=function(r){return new(r||oM)(t.LFG(ho.zw))},oM.\u0275prov=t.Yz7({token:oM,factory:oM.\u0275fac});var aM=function(){function n(r,e){(0,F.Z)(this,n),this.controllerService=r,this.loginService=e}return(0,H.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}();aM.\u0275fac=function(r){return new(r||aM)(t.LFG(or),t.LFG(_m))},aM.\u0275prov=t.Yz7({token:aM,factory:aM.\u0275fac});var F$e=["input"],U$e=function(r){return{enterDuration:r}},j$e=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),G$e=0,z$e={provide:J.JU,useExisting:(0,t.Gpc)(function(){return bP}),multi:!0},W$e=(0,H.Z)(function n(r,e){(0,F.Z)(this,n),this.source=r,this.checked=e}),V$e=(0,Gt.sb)((0,Gt.pj)((0,Gt.Kr)((0,Gt.Id)(function(){return(0,H.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}())))),sF=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,F.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(++G$e),h}return(0,H.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}(V$e);sF.\u0275fac=function(r){t.$Z()},sF.\u0275dir=t.lG2({type:sF,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 bP=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){return(0,F.Z)(this,e),r.call(this,i,o,a,s,l,u,"mat-slide-toggle-")}return(0,H.Z)(e,[{key:"_createChangeEvent",value:function(o){return new W$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}(sF);bP.\u0275fac=function(r){return new(r||bP)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(j$e),t.Y36(t.QbO,8))},bP.\u0275cmp=t.Xpm({type:bP,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(F$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([z$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,U$e,e._noopAnimations?0:150))}},dependencies:[Gt.wG,HB.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 Y$e={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return sM}),multi:!0},sM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,H.Z)(e)}(J.Zs);sM.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(sM)))(e||sM)}}(),sM.\u0275dir=t.lG2({type:sM,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([Y$e]),t.qOj]});var uC=(0,H.Z)(function n(){(0,F.Z)(this,n)});uC.\u0275fac=function(r){return new(r||uC)},uC.\u0275mod=t.oAB({type:uC}),uC.\u0275inj=t.cJS({});var lM=(0,H.Z)(function n(){(0,F.Z)(this,n)});lM.\u0275fac=function(r){return new(r||lM)},lM.\u0275mod=t.oAB({type:lM}),lM.\u0275inj=t.cJS({imports:[uC,Gt.si,Gt.BQ,HB.Q8,uC,Gt.BQ]});var uM=(0,H.Z)(function n(r){(0,F.Z)(this,n),this._googleAnalyticsService=r});uM.\u0275fac=function(r){return new(r||uM)(t.LFG(lC))},uM.\u0275mod=t.oAB({type:uM,bootstrap:[sP]}),uM.\u0275inj=t.cJS({providers:[Gm.g,{provide:t.qLn,useClass:nC},{provide:fc.TP,useClass:aM,multi:!0},gm,cG,Vs.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,oM,Gu,Am,Al,xm,su,sd,$0,X0,Q0,Mm,Em,Ng,Om,kc,Dm,Bg,id,Ip,ld,Lg,Z5.p,gv,sf,vv,Gb,Ub,uf,av,fl,Ab,Qd.X,sv,Hb,wc.f,lC,cu,vd,Ur,Vb,ni,Ib,zb,_m,Bl],imports:[na,fc.JF,GT,J.u5,J.UX,V1,Qf,VT,Vw,Ww,pc,kn.lN,Pg,qY.ym,Q1,J_,jne,B$e,Gw.forRoot(),Li.U8,lM,ob,AT,J0,qb]}),t.B6R(wT,function(){return[se.O5,Gs,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,dn,Dn,Kn,bo,wo,Zo,mo,Co,No,Ro,Lo,Bo,Fo,ti,qu,cf,mi]},function(){return[gP]}),ja.N.production&&(0,t.G48)(),wa().bootstrapModule(uM).then(function(n){!function ra(n){return So(ca,new Yi(n)),n}(n.injector.get(t.z2F).components[0])}).catch(function(n){return console.log(n)})},7312:function(De,K,m){"use strict";m.d(K,{R:function(){return A},Y:function(){return U}});var G=m(3295),W={};function A(){return(0,G.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:W}function U(R,P,E){var D=E||A(),j=D.__SENTRY__=D.__SENTRY__||{};return j[R]||(j[R]=P())}},3295:function(De,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(R,P){return R.require(P)}m.d(K,{l$:function(){return A},KV:function(){return W}}),De=m.hmd(De)},3169:function(De,K,m){"use strict";m.d(K,{ph:function(){return j},yW:function(){return D}});var G=m(7312),W=m(3295);De=m.hmd(De);var A={nowSeconds:function(){return Date.now()/1e3}};var P=(0,W.KV)()?function R(){try{return(0,W.l$)(De,"perf_hooks").performance}catch(S){return}}():function U(){var O=(0,G.R)().performance;if(O&&O.now)return{now:function(){return O.now()},timeOrigin:Date.now()-O.now()}}(),E=void 0===P?A:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},D=A.nowSeconds.bind(A),j=E.nowSeconds.bind(E);!function(){var O=(0,G.R)().performance;if(O&&O.now){var S=36e5,y=O.now(),T=Date.now(),M=O.timeOrigin?Math.abs(O.timeOrigin+y-T):S,x=M<S,N=O.timing&&O.timing.navigationStart,X="number"==typeof N?Math.abs(N+y-T):S;return x||X<S?M<=X?("timeOrigin",O.timeOrigin):("navigationStart",N):("dateNow",T)}"none"}()},2072:function(De,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),U=m(9808),R=m(5e3),P=m(8929),E=m(6787),D=m(8896),j=m(7451),L=m(3753),v=m(2994),k=m(8117),b=m(1059),O=m(4850),S=m(7545),y=m(7568),T=m(7625),M=m(1709),x=m(2986),N=m(519),B=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 R.vpe,this.resizing=new R.vpe,this.resizeEnd=new R.vpe,this.mouseup=new P.xQ,this.mousedown=new P.xQ,this.mousemove=new P.xQ,this.destroy$=new P.xQ,this.resizeEdges$=new P.xQ,this.pointerEventListeners=$t.getInstance(_t,Ve)}return(0,A.Z)(rt,[{key:"ngOnInit",value:function(){var ht,_t=this,Ct=(0,E.T)(this.pointerEventListeners.pointerDown,this.mousedown),Ve=(0,E.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,v.b)(function(F){var qe=F.event;if(ht)try{qe.preventDefault()}catch(Be){}}),(0,k.B)()),at=(0,E.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,b.O)(this.resizeEdges),(0,O.U)(function(){return _t.resizeEdges&&Object.keys(_t.resizeEdges).some(function(F){return!!_t.resizeEdges[F]})}),(0,S.w)(function(F){return F?Ve:D.E}),(0,y.e)(this.mouseMoveThrottleMS),(0,T.R)(this.destroy$)).subscribe(function(F){var se=pe({clientX:F.clientX,clientY:F.clientY,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision}),t=Wt();if(!ht){var Lt=ue(se,t);_t.renderer.setStyle(_t.elm.nativeElement,"cursor",Lt)}_t.setElementClass(_t.elm,"resize-left-hover",!0===se.left),_t.setElementClass(_t.elm,"resize-right-hover",!0===se.right),_t.setElementClass(_t.elm,"resize-top-hover",!0===se.top),_t.setElementClass(_t.elm,"resize-bottom-hover",!0===se.bottom)}),Ct.pipe((0,M.zg)(function(F){function qe(t){return{clientX:t.clientX-F.clientX,clientY:t.clientY-F.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 se(t,Lt){return{x:Math.ceil(t.clientX/Lt.x),y:Math.ceil(t.clientY/Lt.y)}}return(0,E.T)(Ve.pipe((0,x.q)(1)).pipe((0,O.U)(function(t){return[,t]})),Ve.pipe((0,N.G)())).pipe((0,O.U)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];return[zt&&qe(zt),qe(an)]})).pipe((0,B.h)(function(t){var Lt=(0,G.Z)(t,2),zt=Lt[0],an=Lt[1];if(!zt)return!0;var Qt=Be(),vn=se(zt,Qt),Vt=se(an,Qt);return vn.x!==Vt.x||vn.y!==Vt.y})).pipe((0,O.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,T.R)((0,E.T)(at,Ct)))})).pipe((0,B.h)(function(){return!!ht})).pipe((0,O.U)(function(F){var qe=F.clientX,Be=F.clientY;return V(ht.startingRect,ht.edges,qe,Be)})).pipe((0,B.h)(function(F){return _t.allowNegativeResizes||!!(F.height&&F.width&&F.height>0&&F.width>0)})).pipe((0,B.h)(function(F){return!_t.validateResize||_t.validateResize({rectangle:F,edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:F})})}),(0,T.R)(this.destroy$)).subscribe(function(F){ht&&ht.clonedNode&&(_t.renderer.setStyle(ht.clonedNode,"height","".concat(F.height,"px")),_t.renderer.setStyle(ht.clonedNode,"width","".concat(F.width,"px")),_t.renderer.setStyle(ht.clonedNode,"top","".concat(F.top,"px")),_t.renderer.setStyle(ht.clonedNode,"left","".concat(F.left,"px"))),_t.resizing.observers.length>0&&_t.zone.run(function(){_t.resizing.emit({edges:de({edges:ht.edges,initialRectangle:ht.startingRect,newRectangle:F}),rectangle:F})}),ht.currentRect=F}),Ct.pipe((0,O.U)(function(F){var qe=F.clientX,Be=F.clientY;return F.edges||pe({clientX:qe,clientY:Be,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision})})).pipe((0,B.h)(function(F){return Object.keys(F).length>0}),(0,T.R)(this.destroy$)).subscribe(function(F){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:F,startingRect:qe,currentRect:qe};var Be=Wt(),se=ue(ht.edges,Be);_t.renderer.setStyle(document.body,"cursor",se),_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:F,initialRectangle:qe,newRectangle:qe}),rectangle:V(qe,{},0,0)})})}),at.pipe((0,T.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,U.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)(R.Y36(R.Lbi),R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b))},Ze.\u0275dir=R.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:[R.TTD]}),Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:R.tBr,args:[R.Lbi]}]},{type:R.Qsj},{type:R.SBq},{type:R.R0b}]},Ze.propDecorators={validateResize:[{type:R.IIB}],resizeEdges:[{type:R.IIB}],enableGhostResize:[{type:R.IIB}],resizeSnapGrid:[{type:R.IIB}],resizeCursors:[{type:R.IIB}],resizeCursorPrecision:[{type:R.IIB}],ghostElementPositioning:[{type:R.IIB}],allowNegativeResizes:[{type:R.IIB}],mouseMoveThrottleMS:[{type:R.IIB}],resizeStart:[{type:R.r_U}],resizing:[{type:R.r_U}],resizeEnd:[{type:R.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,k.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,k.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,k.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 P.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,E.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,L.R)(this.element.nativeElement,_t).pipe((0,T.R)(this.destroy$))}}]),rt}();Ft.\u0275fac=function(Ot){return new(Ot||Ft)(R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b),R.Y36(Ze,8))},Ft.\u0275dir=R.lG2({type:Ft,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Ft.ctorParameters=function(){return[{type:R.Qsj},{type:R.SBq},{type:R.R0b},{type:Ze,decorators:[{type:R.FiY}]}]},Ft.propDecorators={resizeEdges:[{type:R.IIB}],resizableContainer:[{type:R.IIB}]};var pn=(0,A.Z)(function rt(){(0,W.Z)(this,rt)});pn.\u0275fac=function(Ot){return new(Ot||pn)},pn.\u0275mod=R.oAB({type:pn}),pn.\u0275inj=R.cJS({})},1396:function(De){!function(K){"use strict";var m="(0?\\d+|0x[a-f0-9]+)",G={fourOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),threeOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),twoOctet:new RegExp("^".concat(m,"\\.").concat(m,"$"),"i"),longValue:new RegExp("^".concat(m,"$"),"i")},W=new RegExp("^0[0-7]+$","i"),A=new RegExp("^0x[a-f0-9]+$","i"),U="%[0-9a-z]{1,}",R="(?:[0-9a-f]+::?)+",P={zoneIndex:new RegExp(U,"i"),native:new RegExp("^(::)?(".concat(R,")?([0-9a-f]+)?(::)?(").concat(U,")?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(U,")?)$"),"i"),transitional:new RegExp("^((?:".concat(R,")|(?:::)(?:").concat(R,")?)").concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(U,")?$"),"i")};function E(k,b){if(k.indexOf("::")!==k.lastIndexOf("::"))return null;var T,M,O=0,S=-1,y=(k.match(P.zoneIndex)||[])[0];for(y&&(y=y.substring(1),k=k.replace(/%.+$/,""));(S=k.indexOf(":",S+1))>=0;)O++;if("::"===k.substr(0,2)&&O--,"::"===k.substr(-2,2)&&O--,O>b)return null;for(M=b-O,T=":";M--;)T+="0:";return":"===(k=k.replace("::",T))[0]&&(k=k.slice(1)),":"===k[k.length-1]&&(k=k.slice(0,-1)),{parts:b=function(){for(var x=k.split(":"),N=[],B=0;B<x.length;B++)N.push(parseInt(x[B],16));return N}(),zoneId:y}}function D(k,b,O,S){if(k.length!==b.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var T,y=0;S>0;){if((T=O-S)<0&&(T=0),k[y]>>T!=b[y]>>T)return!1;S-=O,y+=1}return!0}function j(k){if(A.test(k))return parseInt(k,16);if("0"===k[0]&&!isNaN(parseInt(k[1],10))){if(W.test(k))return parseInt(k,8);throw new Error("ipaddr: cannot parse ".concat(k," as octal"))}return parseInt(k,10)}function L(k,b){for(;k.length<b;)k="0".concat(k);return k}var v={};v.IPv4=function(){function k(b){if(4!==b.length)throw new Error("ipaddr: ipv4 octet count should be 4");var O,S;for(O=0;O<b.length;O++)if(!(0<=(S=b[O])&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=b}return k.prototype.SpecialRanges={unspecified:[[new k([0,0,0,0]),8]],broadcast:[[new k([255,255,255,255]),32]],multicast:[[new k([224,0,0,0]),4]],linkLocal:[[new k([169,254,0,0]),16]],loopback:[[new k([127,0,0,0]),8]],carrierGradeNat:[[new k([100,64,0,0]),10]],private:[[new k([10,0,0,0]),8],[new k([172,16,0,0]),12],[new k([192,168,0,0]),16]],reserved:[[new k([192,0,0,0]),24],[new k([192,0,2,0]),24],[new k([192,88,99,0]),24],[new k([198,18,0,0]),15],[new k([198,51,100,0]),24],[new k([203,0,113,0]),24],[new k([240,0,0,0]),4]]},k.prototype.kind=function(){return"ipv4"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv4"!==b.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return D(this.octets,b.octets,8,O)},k.prototype.prefixLengthFromSubnetMask=function(){var y,T,M,b=0,O=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(y=3;y>=0;y-=1){if(!((T=this.octets[y])in S))return null;if(M=S[T],O&&0!==M)return null;8!==M&&(O=!0),b+=M}return 32-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){return this.octets.slice(0)},k.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse("::ffff:".concat(this.toString()))},k.prototype.toNormalizedString=function(){return this.toString()},k.prototype.toString=function(){return this.octets.join(".")},k}(),v.IPv4.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<4;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(k){return null!==this.parser(k)},v.IPv4.isValid=function(k){try{return new this(this.parser(k)),!0}catch(b){return!1}},v.IPv4.isValidFourPartDecimal=function(k){return!(!v.IPv4.isValid(k)||!k.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<4;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(k){var b=this.parser(k);if(null===b)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(b)},v.IPv4.parseCIDR=function(k){var b;if(b=k.match(/^(.+)\/(\d+)$/)){var O=parseInt(b[2]);if(O>=0&&O<=32){var S=[this.parse(b[1]),O];return Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(k){var b,O,S;if(b=k.match(G.fourOctet))return function(){for(var y=b.slice(1,6),T=[],M=0;M<y.length;M++)O=y[M],T.push(j(O));return T}();if(b=k.match(G.longValue)){if((S=j(b[1]))>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return function(){var T,y=[];for(T=0;T<=24;T+=8)y.push(S>>T&255);return y}().reverse()}return(b=k.match(G.twoOctet))?function(){var y=b.slice(1,4),T=[];if((S=j(y[1]))>16777215||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(S>>16&255),T.push(S>>8&255),T.push(255&S),T}():(b=k.match(G.threeOctet))?function(){var y=b.slice(1,5),T=[];if((S=j(y[2]))>65535||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(j(y[1])),T.push(S>>8&255),T.push(255&S),T}():null},v.IPv4.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var b=[0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<4&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.IPv6=function(){function k(b,O){var S,y;if(16===b.length)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(b[S]<<8|b[S+1]);else{if(8!==b.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=b}for(S=0;S<this.parts.length;S++)if(!(0<=(y=this.parts[S])&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");O&&(this.zoneId=O)}return k.prototype.SpecialRanges={unspecified:[new k([0,0,0,0,0,0,0,0]),128],linkLocal:[new k([65152,0,0,0,0,0,0,0]),10],multicast:[new k([65280,0,0,0,0,0,0,0]),8],loopback:[new k([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new k([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new k([0,0,0,0,0,65535,0,0]),96],rfc6145:[new k([0,0,0,0,65535,0,0,0]),96],rfc6052:[new k([100,65435,0,0,0,0,0,0]),96],"6to4":[new k([8194,0,0,0,0,0,0,0]),16],teredo:[new k([8193,0,0,0,0,0,0,0]),32],reserved:[[new k([8193,3512,0,0,0,0,0,0]),32]],benchmarking:[new k([8193,2,0,0,0,0,0,0]),48],amt:[new k([8193,3,0,0,0,0,0,0]),32],as112v6:[new k([8193,4,274,0,0,0,0,0]),48],deprecated:[new k([8193,16,0,0,0,0,0,0]),28],orchid2:[new k([8193,32,0,0,0,0,0,0]),28]},k.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},k.prototype.kind=function(){return"ipv6"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv6"!==b.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return D(this.parts,b.parts,16,O)},k.prototype.prefixLengthFromSubnetMask=function(){for(var y,T,b=0,O=!1,S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},M=7;M>=0;M-=1){if(!((y=this.parts[M])in S))return null;if(T=S[y],O&&0!==T)return null;16!==T&&(O=!0),b+=T}return 128-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){for(var b,O=[],S=this.parts,y=0;y<S.length;y++)b=S[y],O.push(b>>8),O.push(255&b);return O},k.prototype.toFixedLengthString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(L(this.parts[y].toString(16),4));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var b=this.parts.slice(-2),O=b[0],S=b[1];return new v.IPv4([O>>8,255&O,S>>8,255&S])},k.prototype.toNormalizedString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(this.parts[y].toString(16));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toRFC5952String=function(){for(var T,b=/((^|:)(0(:|$)){2,})/g,O=this.toNormalizedString(),S=0,y=-1;T=b.exec(O);)T[0].length>y&&(S=T.index,y=T[0].length);return y<0?O:"".concat(O.substring(0,S),"::").concat(O.substring(S+y))},k.prototype.toString=function(){return this.toRFC5952String()},k}(),v.IPv6.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<16;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.isIPv6=function(k){return null!==this.parser(k)},v.IPv6.isValid=function(k){if("string"==typeof k&&-1===k.indexOf(":"))return!1;try{var b=this.parser(k);return new this(b.parts,b.zoneId),!0}catch(O){return!1}},v.IPv6.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<16;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.parse=function(k){var b=this.parser(k);if(null===b.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(b.parts,b.zoneId)},v.IPv6.parseCIDR=function(k){var b,O,S;if((O=k.match(/^(.+)\/(\d+)$/))&&((b=parseInt(O[2]))>=0&&b<=128))return S=[this.parse(O[1]),b],Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(k){var b,O,S,y,T,M;if(S=k.match(P.deprecatedTransitional))return this.parser("::ffff:".concat(S[1]));if(P.native.test(k))return E(k,8);if((S=k.match(P.transitional))&&(M=S[6]||"",(b=E(S[1].slice(0,-1)+M,6)).parts)){for(T=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],O=0;O<T.length;O++)if(!(0<=(y=T[O])&&y<=255))return null;return b.parts.push(T[0]<<8|T[1]),b.parts.push(T[2]<<8|T[3]),{parts:b.parts,zoneId:b.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<16&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.fromByteArray=function(k){var b=k.length;if(4===b)return new v.IPv4(k);if(16===b)return new v.IPv6(k);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(k){return v.IPv6.isValid(k)||v.IPv4.isValid(k)},v.parse=function(k){if(v.IPv6.isValid(k))return v.IPv6.parse(k);if(v.IPv4.isValid(k))return v.IPv4.parse(k);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(k){try{return v.IPv6.parseCIDR(k)}catch(b){try{return v.IPv4.parseCIDR(k)}catch(O){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(k){var b=this.parse(k);return"ipv6"===b.kind()&&b.isIPv4MappedAddress()?b.toIPv4Address():b},v.subnetMatch=function(k,b,O){var S,y,T,M;for(y in null==O&&(O="unicast"),b)if(Object.prototype.hasOwnProperty.call(b,y))for((T=b[y])[0]&&!(T[0]instanceof Array)&&(T=[T]),S=0;S<T.length;S++)if(M=T[S],k.kind()===M[0].kind()&&k.match.apply(k,M))return y;return O},De.exports?De.exports=v:K.ipaddr=v}(this)},7521:function(De,K,m){var G;!function(W,A,U){if(W){for(var j,R={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"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},D={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},L=1;L<20;++L)R[111+L]="f"+L;for(L=0;L<=9;++L)R[L+96]=L.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)&&(R[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=$,De.exports&&(De.exports=$),void 0!==(G=function(){return $}.call(K,m,K,De))&&(De.exports=G)}function v(V,Q,te){V.addEventListener?V.addEventListener(Q,te,!1):V.attachEvent("on"+Q,te)}function k(V){if("keypress"==V.type){var Q=String.fromCharCode(V.which);return V.shiftKey||(Q=Q.toLowerCase()),Q}return R[V.which]?R[V.which]:P[V.which]?P[V.which]:String.fromCharCode(V.which).toLowerCase()}function b(V,Q){return V.sort().join(",")===Q.sort().join(",")}function T(V){return"shift"==V||"ctrl"==V||"alt"==V||"meta"==V}function x(V,Q,te){return te||(te=function M(){if(!j)for(var V in j={},R)V>95&&V<112||R.hasOwnProperty(V)&&(j[R[V]]=V);return j}()[V]?"keydown":"keypress"),"keypress"==te&&Q.length&&(te="keydown"),te}function B(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],D[be]&&(be=D[be]),Q&&"keypress"!=Q&&E[be]&&(be=E[be],fe.push("shift")),T(be)&&fe.push(be);return{key:be,modifiers:fe,action:Q=x(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&&T(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||b(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 S(V){V.preventDefault?V.preventDefault():V.returnValue=!1}(Ze),function y(V){V.stopPropagation?V.stopPropagation():V.cancelBubble=!0}(Ze))}function ot(Rt){"number"!=typeof Rt.which&&(Rt.which=Rt.keyCode);var Ze=k(Rt);if(Ze){if("keyup"==Rt.type&&pe===Ze)return void(pe=!1);Q.handleKey(Ze,function O(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=k(Ve)),setTimeout(de,10)}te[Rt]=0;for(var Ot=0;Ot<Ze.length;++Ot){var Ct=Ot+1===Ze.length?rt:pn(Ft||B(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=B(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&&!T(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(De,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 U=m(4822);K.Subscription=U.Subscription,K.ReplaySubject=U.ReplaySubject,K.BehaviorSubject=U.BehaviorSubject,K.Notification=U.Notification,K.EmptyError=U.EmptyError,K.ArgumentOutOfRangeError=U.ArgumentOutOfRangeError,K.ObjectUnsubscribedError=U.ObjectUnsubscribedError,K.UnsubscriptionError=U.UnsubscriptionError,K.pipe=U.pipe;var R=m(9594);K.TestScheduler=R.TestScheduler;var P=m(4822);K.Subscriber=P.Subscriber,K.AsyncSubject=P.AsyncSubject,K.ConnectableObservable=P.ConnectableObservable,K.TimeoutError=P.TimeoutError,K.VirtualTimeScheduler=P.VirtualTimeScheduler;var E=m(8679);K.AjaxResponse=E.AjaxResponse,K.AjaxError=E.AjaxError,K.AjaxTimeoutError=E.AjaxTimeoutError;var D=m(4822),j=m(5718),L=m(5718);K.TimeInterval=L.TimeInterval,K.Timestamp=L.Timestamp;var v=m(6650);K.operators=v;var k={asap:D.asapScheduler,queue:D.queueScheduler,animationFrame:D.animationFrameScheduler,async:D.asyncScheduler};K.Scheduler=k;var b={rxSubscriber:j.rxSubscriber,observable:j.observable,iterator:j.iterator};K.Symbol=b},5010:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindCallback=G.bindCallback},9471:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindNodeCallback=G.bindNodeCallback},2687:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.combineLatest=G.combineLatest},2750:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.concat=G.concat},2977:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.defer=G.defer},8173:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8679);G.Observable.ajax=W.ajax},1357:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2301);G.Observable.webSocket=W.webSocket},2925:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.empty=G.empty},2231:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.forkJoin=G.forkJoin},1897:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.from=G.from},7026:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEvent=G.fromEvent},6187:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEventPattern=G.fromEventPattern},1562:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromPromise=G.from},9470:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.generate=G.generate},4641:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.if=G.iif},3408:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.interval=G.interval},7975:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.merge=G.merge},3518:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.of=G.of},9566:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.onErrorResumeNext=G.onErrorResumeNext},6839:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.pairs=G.pairs},6034:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.race=G.race},1672:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.range=G.range},987:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.timer=G.timer},1216:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.using=G.using},5991:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.zip=G.zip},9982:function(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1604);G.Observable.prototype.partition=W.partition},3373:function(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.auditTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.auditTime(U,R)(this)}},2792:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferCount=function W(A,U){return void 0===U&&(U=null),G.bufferCount(A,U)(this)}},4283:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.bufferTime=function U(R){var P=arguments.length,E=G.asyncScheduler;W.isScheduler(arguments[arguments.length-1])&&(E=arguments[arguments.length-1],P--);var D=null;P>=2&&(D=arguments[1]);var j=Number.POSITIVE_INFINITY;return P>=3&&(j=arguments[2]),A.bufferTime(R,D,j,E)(this)}},1028:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferToggle=function W(A,U){return G.bufferToggle(A,U)(this)}},188:function(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718);K.combineLatest=function A(){for(var U=[],R=0;R<arguments.length;R++)U[R]=arguments[R];var P=null;return"function"==typeof U[U.length-1]&&(P=U.pop()),1===U.length&&W.isArray(U[0])&&(U=U[0].slice()),this.lift.call(G.of.apply(void 0,[this].concat(U)),new W.CombineLatestOperator(P))}},9075:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.concat=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.concat.apply(void 0,[this].concat(A)))}},6979:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatAll=function W(){return G.concatAll()(this)}},3268:function(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.debounceTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.debounceTime(U,R)(this)}},2448:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.delay=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.delay(U,R)(this)}},7607:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.delayWhen=function W(A,U){return G.delayWhen(A,U)(this)}},5395:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.dematerialize=function W(){return G.dematerialize()(this)}},9440:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinct=function W(A,U){return G.distinct(A,U)(this)}},3943:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilChanged=function W(A,U){return G.distinctUntilChanged(A,U)(this)}},9749:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilKeyChanged=function W(A,U){return G.distinctUntilKeyChanged(A,U)(this)}},6764:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._do=function W(A,U,R){return G.tap(A,U,R)(this)}},3833:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.elementAt=function W(A,U){return G.elementAt.apply(void 0,arguments)(this)}},8648:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.every=function W(A,U){return G.every(A,U)(this)}},14:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaust=function W(){return G.exhaust()(this)}},4768:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.expand=function W(A,U,R){return void 0===U&&(U=Number.POSITIVE_INFINITY),void 0===R&&(R=void 0),U=(U||0)<1?Number.POSITIVE_INFINITY:U,G.expand(A,U,R)(this)}},1973:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.filter=function W(A,U){return G.filter(A,U)(this)}},5032:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.find=function W(A,U){return G.find(A,U)(this)}},5286:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.findIndex=function W(A,U){return G.findIndex(A,U)(this)}},9311:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.first=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.first.apply(void 0,A)(this)}},6595:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.groupBy=function W(A,U,R,P){return G.groupBy(A,U,R,P)(this)}},5783:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.ignoreElements=function W(){return G.ignoreElements()(this)}},6866:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.isEmpty=function W(){return G.isEmpty()(this)}},1409:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.last=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.last.apply(void 0,A)(this)}},5953:function(De,K){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.letProto=function m(G){return G(this)}},8137:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.map=function W(A,U){return G.map(A,U)(this)}},1234:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.materialize=function W(){return G.materialize()(this)}},8821:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.merge=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.merge.apply(void 0,[this].concat(A)))}},9883:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMap=function W(A,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),G.mergeMap(A,U)(this)}},6881:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMapTo=function W(A,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),G.mergeMapTo(A,U)(this)}},8589:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeScan=function W(A,U,R){return void 0===R&&(R=Number.POSITIVE_INFINITY),G.mergeScan(A,U,R)(this)}},1348:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.multicast=function W(A,U){return G.multicast(A,U)(this)}},386:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.observeOn=function W(A,U){return void 0===U&&(U=0),G.observeOn(A,U)(this)}},8394:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.onErrorResumeNext=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.onErrorResumeNext.apply(void 0,A)(this)}},400:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pairwise=function W(){return G.pairwise()(this)}},1604:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.partition=function W(A,U){return G.partition(A,U)(this)}},9782:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pluck=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.pluck.apply(void 0,A)(this)}},7437:function(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishLast=function W(){return G.publishLast()(this)}},397:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishReplay=function W(A,U,R,P){return G.publishReplay(A,U,R,P)(this)}},9023:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.race=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.race.apply(void 0,A)(this)}},345:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.reduce=function W(A,U){return arguments.length>=2?G.reduce(A,U)(this):G.reduce(A)(this)}},2085:function(De,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(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.sampleTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.sampleTime(U,R)(this)}},8305:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.scan=function W(A,U){return arguments.length>=2?G.scan(A,U)(this):G.scan(A)(this)}},1289:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sequenceEqual=function W(A,U){return G.sequenceEqual(A,U)(this)}},896:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.share=function W(){return G.share()(this)}},4791:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.shareReplay=function W(A,U,R){return A&&"object"==typeof A?G.shareReplay(A)(this):G.shareReplay(A,U,R)(this)}},6462:function(De,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(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.startWith=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.startWith.apply(void 0,A)(this)}},1112:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.subscribeOn=function W(A,U){return void 0===U&&(U=0),G.subscribeOn(A,U)(this)}},761:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._switch=function W(){return G.switchAll()(this)}},3573:function(De,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(De,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(De,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(De,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(De,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(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650),W=m(5718);K.throttle=function A(U,R){return void 0===R&&(R=W.defaultThrottleConfig),G.throttle(U,R)(this)}},4630:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.throttleTime=function U(R,P,E){return void 0===P&&(P=G.asyncScheduler),void 0===E&&(E=W.defaultThrottleConfig),A.throttleTime(R,P,E)(this)}},3578:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeInterval=function A(U){return void 0===U&&(U=G.asyncScheduler),W.timeInterval(U)(this)}},7945:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeout=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.timeout(U,R)(this)}},3060:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeoutWith=function A(U,R,P){return void 0===P&&(P=G.asyncScheduler),W.timeoutWith(U,R,P)(this)}},1265:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timestamp=function A(U){return void 0===U&&(U=G.asyncScheduler),W.timestamp(U)(this)}},2561:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.toArray=function W(){return G.toArray()(this)}},9766:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowCount=function W(A,U){return void 0===U&&(U=0),G.windowCount(A,U)(this)}},1868:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.windowTime=function U(R){var P=G.asyncScheduler,E=null,D=Number.POSITIVE_INFINITY;return W.isScheduler(arguments[3])&&(P=arguments[3]),W.isScheduler(arguments[2])?P=arguments[2]:W.isNumeric(arguments[2])&&(D=Number(arguments[2])),W.isScheduler(arguments[1])?P=arguments[1]:W.isNumeric(arguments[1])&&(E=Number(arguments[1])),A.windowTime(R,E,D,P)(this)}},30:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowToggle=function W(A,U){return G.windowToggle(A,U)(this)}},9687:function(De,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(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.withLatestFrom=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.withLatestFrom.apply(void 0,A)(this)}},2357:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.zipProto=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.zip.apply(void 0,[this].concat(A)))}},7381:function(De,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(De,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(De,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(De,K,m){"use strict";m.r(K),m.d(K,{ArgumentOutOfRangeError:function(){return X.W},AsyncSubject:function(){return D.c},BehaviorSubject:function(){return P.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 T.P},NotificationKind:function(){return T.W},ObjectUnsubscribedError:function(){return V.N},Observable:function(){return G.y},ReplaySubject:function(){return E.t},Scheduler:function(){return O.b},Subject:function(){return R.xQ},Subscriber:function(){return y.L},Subscription:function(){return S.w},TimeoutError:function(){return te.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return b.h},VirtualTimeScheduler:function(){return b.y},animationFrame:function(){return k.r},animationFrameScheduler:function(){return k.Z},asap:function(){return j.e},asapScheduler:function(){return j.E},async:function(){return L.P},asyncScheduler:function(){return L.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 H.F},isObservable:function(){return B.b},merge:function(){return F.T},never:function(){return Be},noop:function(){return x.Z},observable:function(){return U.L},of:function(){return se.of},onErrorResumeNext:function(){return t},pairs:function(){return Lt},partition:function(){return Vt},pipe:function(){return M.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),U=m(3821),R=m(8929),P=m(591),E=m(839),D=m(2185),j=m(9931),L=m(353),v=m(341),k=m(352),b=m(9027),O=m(2221),S=m(4096),y=m(3489),T=m(9312),M=m(4843),x=m(7876),N=m(5379),B=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 D.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 D.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 D.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 D.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 H=m(1715),F=m(6787),qe=new G.y(x.Z);function Be(){return qe}var se=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 S.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(De,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return T.iM},AjaxObservable:function(){return T.i6},AjaxResponse:function(){return T.vD},AjaxSubscriber:function(){return T.de},AjaxTimeoutError:function(){return T.cw},AnonymousSubject:function(){return R.ug},ArgumentOutOfRangeError:function(){return fe.W},CombineLatestOperator:function(){return x.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 U.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return B.e},Subscriber:function(){return E.L},TimeInterval:function(){return $.R},TimeoutError:function(){return je.W},Timestamp:function(){return X.E},UnsubscriptionError:function(){return ot.B},WebSocketSubject:function(){return M.p},ajax:function(){return S.h},ajaxDelete:function(){return T._c},ajaxGet:function(){return T.Ck},ajaxGetJSON:function(){return T.uX},ajaxPatch:function(){return T.YB},ajaxPost:function(){return T.tB},ajaxPut:function(){return T.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 O},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 H.J},rxSubscriber:function(){return te.b},subscribeTo:function(){return F.s},subscribeToArray:function(){return qe.V},subscribeToIterable:function(){return k.u},subscribeToObservable:function(){return Be.h},subscribeToPromise:function(){return j.A},subscribeToResult:function(){return se.D},toSubscriber:function(){return t.Y},tryCatch:function(){return an},webSocket:function(){return y.j}});var G=m(2830),W=m(1869),A=m(826),U=m(2221),R=m(8929),P=m(5283),E=m(3489),D=m(7451),j=m(3445),L=m(8687);function v(Qt,vn){return vn?(0,L.c)(Qt,vn):new D.y((0,j.A)(Qt))}var k=m(3720),b=m(6389);function O(Qt,vn){if(!Qt)throw new Error("Iterable cannot be null");return vn?(0,b.Q)(Qt,vn):new D.y((0,k.u)(Qt))}var Lt,S=m(8059),y=m(7623),T=m(8452),M=m(2741),x=m(6053),N=m(3103),B=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),H=m(797),F=m(3071),qe=m(3650),Be=m(1810),se=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(De,K,m){"use strict";m.d(K,{c:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(4096),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(){var b;return(0,G.Z)(this,k),(b=v.apply(this,arguments)).value=null,b.hasNext=!1,b.hasCompleted=!1,b}return(0,W.Z)(k,[{key:"_subscribe",value:function(O){return this.hasError?(O.error(this.thrownError),D.w.EMPTY):this.hasCompleted&&this.hasNext?(O.next(this.value),O.complete(),D.w.EMPTY):(0,A.Z)((0,U.Z)(k.prototype),"_subscribe",this).call(this,O)}},{key:"next",value:function(O){this.hasCompleted||(this.value=O,this.hasNext=!0)}},{key:"error",value:function(O){this.hasCompleted||(0,A.Z)((0,U.Z)(k.prototype),"error",this).call(this,O)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,A.Z)((0,U.Z)(k.prototype),"next",this).call(this,this.value),(0,A.Z)((0,U.Z)(k.prototype),"complete",this).call(this)}}]),k}(E.xQ)},591:function(De,K,m){"use strict";m.d(K,{X:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(5279),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(b){var O;return(0,G.Z)(this,k),(O=v.call(this))._value=b,O}return(0,W.Z)(k,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(O){var S=(0,A.Z)((0,U.Z)(k.prototype),"_subscribe",this).call(this,O);return S&&!S.closed&&O.next(this._value),S}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D.N;return this._value}},{key:"next",value:function(O){(0,A.Z)((0,U.Z)(k.prototype),"next",this).call(this,this._value=O)}}]),k}(E.xQ)},1869:function(De,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(L,v,k){var b;return(0,G.Z)(this,j),(b=D.call(this)).parent=L,b.outerValue=v,b.outerIndex=k,b.index=0,b}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(De,K,m){"use strict";m.d(K,{P:function(){return E},W:function(){return P}});var P,D,G=m(5671),W=m(3144),A=m(8896),U=m(1086),R=m(1737);(D=P||(P={})).NEXT="N",D.ERROR="E",D.COMPLETE="C";var E=function(){function D(j,L,v){(0,G.Z)(this,D),this.kind=j,this.value=L,this.error=v,this.hasValue="N"===j}return(0,W.Z)(D,[{key:"observe",value:function(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}},{key:"do",value:function(L,v,k){switch(this.kind){case"N":return L&&L(this.value);case"E":return v&&v(this.error);case"C":return k&&k()}}},{key:"accept",value:function(L,v,k){return L&&"function"==typeof L.next?this.observe(L):this.do(L,v,k)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,U.of)(this.value);case"E":return(0,R._)(this.error);case"C":return(0,A.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(L){return void 0!==L?new D("N",L):D.undefinedValueNotification}},{key:"createError",value:function(L){return new D("E",void 0,L)}},{key:"createComplete",value:function(){return D.completeNotification}}]),D}();E.completeNotification=new E("C"),E.undefinedValueNotification=new E("N",void 0)},7451:function(De,K,m){"use strict";m.d(K,{y:function(){return D}});var G=m(5671),W=m(3144),A=m(9476),U=m(5221),R=m(3821),P=m(4843),E=m(2830),D=function(){function L(v){(0,G.Z)(this,L),this._isScalar=!1,v&&(this._subscribe=v)}return(0,W.Z)(L,[{key:"lift",value:function(k){var b=new L;return b.source=this,b.operator=k,b}},{key:"subscribe",value:function(k,b,O){var S=this.operator,y=(0,U.Y)(k,b,O);if(S?y.add(S.call(y,this.source)):y.add(this.source||E.v.useDeprecatedSynchronousErrorHandling&&!y.syncErrorThrowable?this._subscribe(y):this._trySubscribe(y)),E.v.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable&&(y.syncErrorThrowable=!1,y.syncErrorThrown))throw y.syncErrorValue;return y}},{key:"_trySubscribe",value:function(k){try{return this._subscribe(k)}catch(b){E.v.useDeprecatedSynchronousErrorHandling&&(k.syncErrorThrown=!0,k.syncErrorValue=b),(0,A._)(k)?k.error(b):console.warn(b)}}},{key:"forEach",value:function(k,b){var O=this;return new(b=j(b))(function(S,y){var T;T=O.subscribe(function(M){try{k(M)}catch(x){y(x),T&&T.unsubscribe()}},y,S)})}},{key:"_subscribe",value:function(k){var b=this.source;return b&&b.subscribe(k)}},{key:R.L,value:function(){return this}},{key:"pipe",value:function(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];return 0===b.length?this:(0,P.U)(b)(this)}},{key:"toPromise",value:function(k){var b=this;return new(k=j(k))(function(O,S){var y;b.subscribe(function(T){return y=T},function(T){return S(T)},function(){return O(y)})})}}]),L}();function j(L){if(L||(L=E.v.Promise||Promise),!L)throw new Error("no Promise impl found");return L}D.create=function(L){return new D(L)}},3292:function(De,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(2830),W=m(2782),A={closed:!0,next:function(R){},error:function(R){if(G.v.useDeprecatedSynchronousErrorHandling)throw R;(0,W.z)(R)},complete:function(){}}},826:function(De,K,m){"use strict";m.d(K,{L:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(){return(0,G.Z)(this,j),D.apply(this,arguments)}return(0,W.Z)(j,[{key:"notifyNext",value:function(v,k,b,O,S){this.destination.next(k)}},{key:"notifyError",value:function(v,k){this.destination.error(v)}},{key:"notifyComplete",value:function(v){this.destination.complete()}}]),j}(m(3489).L)},839:function(De,K,m){"use strict";m.d(K,{t:function(){return b}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(341),j=m(4096),L=m(7770),v=m(5279),k=m(5283),b=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(){var M,x=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,B=arguments.length>2?arguments[2]:void 0;return(0,G.Z)(this,T),(M=y.call(this)).scheduler=B,M._events=[],M._infiniteTimeWindow=!1,M._bufferSize=x<1?1:x,M._windowTime=N<1?1:N,N===Number.POSITIVE_INFINITY?(M._infiniteTimeWindow=!0,M.next=M.nextInfiniteTimeWindow):M.next=M.nextTimeWindow,M}return(0,W.Z)(T,[{key:"nextInfiniteTimeWindow",value:function(x){if(!this.isStopped){var N=this._events;N.push(x),N.length>this._bufferSize&&N.shift()}(0,A.Z)((0,U.Z)(T.prototype),"next",this).call(this,x)}},{key:"nextTimeWindow",value:function(x){this.isStopped||(this._events.push(new O(this._getNow(),x)),this._trimBufferThenGetEvents()),(0,A.Z)((0,U.Z)(T.prototype),"next",this).call(this,x)}},{key:"_subscribe",value:function(x){var V,N=this._infiniteTimeWindow,B=N?this._events:this._trimBufferThenGetEvents(),X=this.scheduler,$=B.length;if(this.closed)throw new v.N;if(this.isStopped||this.hasError?V=j.w.EMPTY:(this.observers.push(x),V=new k.W(this,x)),X&&x.add(x=new L.ht(x,X)),N)for(var Q=0;Q<$&&!x.closed;Q++)x.next(B[Q]);else for(var te=0;te<$&&!x.closed;te++)x.next(B[te].value);return this.hasError?x.error(this.thrownError):this.isStopped&&x.complete(),V}},{key:"_getNow",value:function(){return(this.scheduler||D.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var x=this._getNow(),N=this._bufferSize,B=this._windowTime,X=this._events,$=X.length,V=0;V<$&&!(x-X[V].time<B);)V++;return $>N&&(V=Math.max(V,$-N)),V>0&&X.splice(0,V),X}}]),T}(E.xQ),O=(0,W.Z)(function S(y,T){(0,G.Z)(this,S),this.time=y,this.value=T})},2221:function(De,K,m){"use strict";m.d(K,{b:function(){return A}});var G=m(5671),W=m(3144),A=function(){function U(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.now;(0,G.Z)(this,U),this.SchedulerAction=R,this.now=P}return(0,W.Z)(U,[{key:"schedule",value:function(P){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(D,E)}}]),U}();A.now=function(){return Date.now()}},8929:function(De,K,m){"use strict";m.d(K,{Yc:function(){return b},ug:function(){return S},xQ:function(){return O}});var G=m(3237),W=m(1120),A=m(3144),U=m(5671),R=m(136),P=m(9388),E=m(7451),D=m(3489),j=m(4096),L=m(5279),v=m(5283),k=m(7668),b=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(x){var N;return(0,U.Z)(this,M),(N=T.call(this,x)).destination=x,N}return(0,A.Z)(M)}(D.L),O=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(){var x;return(0,U.Z)(this,M),(x=T.call(this)).observers=[],x.closed=!1,x.isStopped=!1,x.hasError=!1,x.thrownError=null,x}return(0,A.Z)(M,[{key:k.b,value:function(){return new b(this)}},{key:"lift",value:function(N){var B=new S(this,this);return B.operator=N,B}},{key:"next",value:function(N){if(this.closed)throw new L.N;if(!this.isStopped)for(var B=this.observers,X=B.length,$=B.slice(),V=0;V<X;V++)$[V].next(N)}},{key:"error",value:function(N){if(this.closed)throw new L.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;for(var B=this.observers,X=B.length,$=B.slice(),V=0;V<X;V++)$[V].error(N);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new L.N;this.isStopped=!0;for(var N=this.observers,B=N.length,X=N.slice(),$=0;$<B;$++)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 L.N;return(0,G.Z)((0,W.Z)(M.prototype),"_trySubscribe",this).call(this,N)}},{key:"_subscribe",value:function(N){if(this.closed)throw new L.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 E.y;return N.source=this,N}}]),M}(E.y);O.create=function(y,T){return new S(y,T)};var S=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(x,N){var B;return(0,U.Z)(this,M),(B=T.call(this)).destination=x,B.source=N,B}return(0,A.Z)(M,[{key:"next",value:function(N){var B=this.destination;B&&B.next&&B.next(N)}},{key:"error",value:function(N){var B=this.destination;B&&B.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}}]),M}(O)},5283:function(De,K,m){"use strict";m.d(K,{W:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(L,v){var k;return(0,G.Z)(this,j),(k=D.call(this)).subject=L,k.subscriber=v,k.closed=!1,k}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var v=this.subject,k=v.observers;if(this.subject=null,k&&0!==k.length&&!v.isStopped&&!v.closed){var b=k.indexOf(this.subscriber);-1!==b&&k.splice(b,1)}}}}]),j}(m(4096).w)},3489:function(De,K,m){"use strict";m.d(K,{L:function(){return O}});var G=m(5671),W=m(3144),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(7043),j=m(3292),L=m(4096),v=m(7668),k=m(2830),b=m(2782),O=function(y){(0,P.Z)(M,y);var T=(0,E.Z)(M);function M(x,N,B){var X;switch((0,G.Z)(this,M),(X=T.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(!x){X.destination=j.c;break}if("object"==typeof x){x instanceof M?(X.syncErrorThrowable=x.syncErrorThrowable,X.destination=x,x.add((0,A.Z)(X))):(X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),x));break}default:X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),x,N,B)}return X}return(0,W.Z)(M,[{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,U.Z)((0,R.Z)(M.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,B,X){var $=new M(N,B,X);return $.syncErrorThrowable=!1,$}}]),M}(L.w),S=function(y){(0,P.Z)(M,y);var T=(0,E.Z)(M);function M(x,N,B,X){var $;(0,G.Z)(this,M),($=T.call(this))._parentSubscriber=x;var V,Q=(0,A.Z)($);return(0,D.m)(N)?V=N:N&&(V=N.next,B=N.error,X=N.complete,N!==j.c&&(Q=Object.create(N),(0,D.m)(Q.unsubscribe)&&$.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=$.unsubscribe.bind((0,A.Z)($)))),$._context=Q,$._next=V,$._error=B,$._complete=X,$}return(0,W.Z)(M,[{key:"next",value:function(N){if(!this.isStopped&&this._next){var B=this._parentSubscriber;k.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}},{key:"error",value:function(N){if(!this.isStopped){var B=this._parentSubscriber,X=k.v.useDeprecatedSynchronousErrorHandling;if(this._error)X&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(B.syncErrorThrowable)X?(B.syncErrorValue=N,B.syncErrorThrown=!0):(0,b.z)(N),this.unsubscribe();else{if(this.unsubscribe(),X)throw N;(0,b.z)(N)}}}},{key:"complete",value:function(){var N=this;if(!this.isStopped){var B=this._parentSubscriber;if(this._complete){var X=function(){return N._complete.call(N._context)};k.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?(this.__tryOrSetError(B,X),this.unsubscribe()):(this.__tryOrUnsub(X),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(N,B){try{N.call(this._context,B)}catch(X){if(this.unsubscribe(),k.v.useDeprecatedSynchronousErrorHandling)throw X;(0,b.z)(X)}}},{key:"__tryOrSetError",value:function(N,B,X){if(!k.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,X)}catch($){return k.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=$,N.syncErrorThrown=!0,!0):((0,b.z)($),!0)}return!1}},{key:"_unsubscribe",value:function(){var N=this._parentSubscriber;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}]),M}(O)},4096:function(De,K,m){"use strict";m.d(K,{w:function(){return E}});var j,G=m(5671),W=m(3144),A=m(6688),U=m(7830),R=m(7043),P=m(7964),E=function(){function j(L){(0,G.Z)(this,j),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,L&&(this._ctorUnsubscribe=!0,this._unsubscribe=L)}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){var v;if(!this.closed){var k=this._parentOrParents,b=this._ctorUnsubscribe,O=this._unsubscribe,S=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,k instanceof j)k.remove(this);else if(null!==k)for(var y=0;y<k.length;++y){k[y].remove(this)}if((0,R.m)(O)){b&&(this._unsubscribe=void 0);try{O.call(this)}catch(B){v=B instanceof P.B?D(B.errors):[B]}}if((0,A.k)(S))for(var M=-1,x=S.length;++M<x;){var N=S[M];if((0,U.K)(N))try{N.unsubscribe()}catch(B){v=v||[],B instanceof P.B?v=v.concat(D(B.errors)):v.push(B)}}if(v)throw new P.B(v)}}},{key:"add",value:function(v){var k=v;if(!v)return j.EMPTY;switch(typeof v){case"function":k=new j(v);case"object":if(k===this||k.closed||"function"!=typeof k.unsubscribe)return k;if(this.closed)return k.unsubscribe(),k;if(!(k instanceof j)){var b=k;(k=new j)._subscriptions=[b]}break;default:throw new Error("unrecognized teardown "+v+" added to Subscription.")}var S=k._parentOrParents;if(null===S)k._parentOrParents=this;else if(S instanceof j){if(S===this)return k;k._parentOrParents=[S,this]}else{if(-1!==S.indexOf(this))return k;S.push(this)}var y=this._subscriptions;return null===y?this._subscriptions=[k]:y.push(k),k}},{key:"remove",value:function(v){var k=this._subscriptions;if(k){var b=k.indexOf(v);-1!==b&&k.splice(b,1)}}}]),j}();function D(j){return j.reduce(function(L,v){return L.concat(v instanceof P.B?v.errors:v)},[])}E.EMPTY=((j=new E).closed=!0,j)},2830:function(De,K,m){"use strict";m.d(K,{v:function(){return W}});var G=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){var U=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+U.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=A},get useDeprecatedSynchronousErrorHandling(){return G}}},1177:function(De,K,m){"use strict";m.d(K,{Ds:function(){return L},IY:function(){return D},ft:function(){return k}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(3489),P=m(7451),E=m(3071),D=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(y){var T;return(0,G.Z)(this,S),(T=O.call(this)).parent=y,T}return(0,W.Z)(S,[{key:"_next",value:function(T){this.parent.notifyNext(T)}},{key:"_error",value:function(T){this.parent.notifyError(T),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),S}(R.L),L=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"notifyNext",value:function(T){this.destination.next(T)}},{key:"notifyError",value:function(T){this.destination.error(T)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),S}(R.L);function k(b,O){if(!O.closed){if(b instanceof P.y)return b.subscribe(O);var S;try{S=(0,E.s)(b)(O)}catch(y){O.error(y)}return S}}},1762:function(De,K,m){"use strict";m.d(K,{N:function(){return b},c:function(){return k}});var T,G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(8929),D=m(7451),j=m(3489),L=m(4096),v=m(4327),k=function(T){(0,R.Z)(x,T);var M=(0,P.Z)(x);function x(N,B){var X;return(0,A.Z)(this,x),(X=M.call(this)).source=N,X.subjectFactory=B,X._refCount=0,X._isComplete=!1,X}return(0,U.Z)(x,[{key:"_subscribe",value:function(B){return this.getSubject().subscribe(B)}},{key:"getSubject",value:function(){var B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var B=this._connection;return B||(this._isComplete=!1,(B=this._connection=new L.w).add(this.source.subscribe(new O(this.getSubject(),this))),B.closed&&(this._connection=null,B=L.w.EMPTY)),B}},{key:"refCount",value:function(){return(0,v.x)()(this)}}]),x}(D.y),b={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(T=k.prototype)._subscribe},_isComplete:{value:T._isComplete,writable:!0},getSubject:{value:T.getSubject},connect:{value:T.connect},refCount:{value:T.refCount}},O=function(T){(0,R.Z)(x,T);var M=(0,P.Z)(x);function x(N,B){var X;return(0,A.Z)(this,x),(X=M.call(this,N)).connectable=B,X}return(0,U.Z)(x,[{key:"_error",value:function(B){this._unsubscribe(),(0,G.Z)((0,W.Z)(x.prototype),"_error",this).call(this,B)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,G.Z)((0,W.Z)(x.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var B=this.connectable;if(B){this.connectable=null;var X=B._connection;B._refCount=0,B._subject=null,B._connection=null,X&&X.unsubscribe()}}}]),x}(E.Yc);j.L},3837:function(De,K,m){"use strict";m.d(K,{e:function(){return D}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(7451),P=m(9931),E=m(4241),D=function(j){(0,A.Z)(v,j);var L=(0,U.Z)(v);function v(k){var b,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,G.Z)(this,v),(b=L.call(this)).source=k,b.delayTime=O,b.scheduler=S,(!(0,E.k)(O)||O<0)&&(b.delayTime=0),(!S||"function"!=typeof S.schedule)&&(b.scheduler=P.e),b}return(0,W.Z)(v,[{key:"_subscribe",value:function(b){var O=this.delayTime,S=this.source;return this.scheduler.schedule(v.dispatch,O,{source:S,subscriber:b})}}],[{key:"create",value:function(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new v(b,O,S)}},{key:"dispatch",value:function(b){var O=b.source,S=b.subscriber;return this.add(O.subscribe(S))}}]),v}(R.y)},6053:function(De,K,m){"use strict";m.d(K,{Ms:function(){return k},aj:function(){return v}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(2866),P=m(6688),E=m(826),D=m(9054),j=m(3009),L={};function v(){for(var O=arguments.length,S=new Array(O),y=0;y<O;y++)S[y]=arguments[y];var T=void 0,M=void 0;return(0,R.K)(S[S.length-1])&&(M=S.pop()),"function"==typeof S[S.length-1]&&(T=S.pop()),1===S.length&&(0,P.k)(S[0])&&(S=S[0]),(0,j.n)(S,M).lift(new k(T))}var k=function(){function O(S){(0,A.Z)(this,O),this.resultSelector=S}return(0,U.Z)(O,[{key:"call",value:function(y,T){return T.subscribe(new b(y,this.resultSelector))}}]),O}(),b=function(O){(0,G.Z)(y,O);var S=(0,W.Z)(y);function y(T,M){var x;return(0,A.Z)(this,y),(x=S.call(this,T)).resultSelector=M,x.active=0,x.values=[],x.observables=[],x}return(0,U.Z)(y,[{key:"_next",value:function(M){this.values.push(L),this.observables.push(M)}},{key:"_complete",value:function(){var M=this.observables,x=M.length;if(0===x)this.destination.complete();else{this.active=x,this.toRespond=x;for(var N=0;N<x;N++){var B=M[N];this.add((0,D.D)(this,B,void 0,N))}}}},{key:"notifyComplete",value:function(M){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(M,x,N){var B=this.values,X=B[N],$=this.toRespond?X===L?--this.toRespond:this.toRespond:0;B[N]=x,0===$&&(this.resultSelector?this._tryResultSelector(B):this.destination.next(B.slice()))}},{key:"_tryResultSelector",value:function(M){var x;try{x=this.resultSelector.apply(this,M)}catch(N){return void this.destination.error(N)}this.destination.next(x)}}]),y}(E.L)},1961:function(De,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(De,K,m){"use strict";m.d(K,{P:function(){return U}});var G=m(7451),W=m(3527),A=m(8896);function U(R){return new G.y(function(P){var E;try{E=R()}catch(j){return void P.error(j)}return(E?(0,W.D)(E):(0,A.c)()).subscribe(P)})}},8452:function(De,K,m){"use strict";m.d(K,{Ck:function(){return b},Vk:function(){return y},YB:function(){return T},_c:function(){return S},cw:function(){return pe},de:function(){return B},i6:function(){return N},iM:function(){return V},tB:function(){return O},uX:function(){return x},vD:function(){return X}});var G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(797),D=m(7451),j=m(3489);function b(fe){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new N({method:"GET",url:fe,headers:ue})}function O(fe,ue,de){return new N({method:"POST",url:fe,body:ue,headers:de})}function S(fe,ue){return new N({method:"DELETE",url:fe,headers:ue})}function y(fe,ue,de){return new N({method:"PUT",url:fe,body:ue,headers:de})}function T(fe,ue,de){return new N({method:"PATCH",url:fe,body:ue,headers:de})}var M=(0,m(4850).U)(function(fe,ue){return fe.response});function x(fe,ue){return M(new N({method:"GET",url:fe,responseType:"json",headers:ue}))}var fe,N=function(fe){(0,R.Z)(de,fe);var ue=(0,P.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(E.J.XMLHttpRequest)return new E.J.XMLHttpRequest;if(E.J.XDomainRequest)return new E.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function k(){if(E.J.XMLHttpRequest)return new E.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 E.J.ActiveXObject(fe))break}catch(ge){}return new E.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,U.Z)(de,[{key:"_subscribe",value:function(je){return new B(je,this.request)}}]),de}(D.y);N.create=((fe=function(de){return new N(de)}).get=b,fe.post=O,fe.delete=S,fe.put=y,fe.patch=T,fe.getJSON=x,fe);var B=function(fe){(0,R.Z)(de,fe);var ue=(0,P.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")&&!(E.J.FormData&&je.body instanceof E.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,U.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(E.J.FormData&&je instanceof E.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)},E.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,U.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(De,K,m){"use strict";m.d(K,{p:function(){return O}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(3489),j=m(7451),L=m(4096),v=m(839),k={url:"",deserializer:function(y){return JSON.parse(y.data)},serializer:function(y){return JSON.stringify(y)}},O=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(M,x){var N;if((0,G.Z)(this,T),N=y.call(this),M instanceof j.y)N.destination=x,N.source=M;else{var B=N._config=Object.assign({},k);if(N._output=new E.xQ,"string"==typeof M)B.url=M;else for(var X in M)M.hasOwnProperty(X)&&(B[X]=M[X]);if(!B.WebSocketCtor&&WebSocket)B.WebSocketCtor=WebSocket;else if(!B.WebSocketCtor)throw new Error("no WebSocket constructor can be found");N.destination=new v.t}return N}return(0,W.Z)(T,[{key:"lift",value:function(x){var N=new T(this._config,this.destination);return N.operator=x,N.source=this,N}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new v.t),this._output=new E.xQ}},{key:"multiplex",value:function(x,N,B){var X=this;return new j.y(function($){try{X.next(x())}catch(Q){$.error(Q)}var V=X.subscribe(function(Q){try{B(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 x=this,N=this._config,B=N.WebSocketCtor,X=N.protocol,$=N.url,V=N.binaryType,Q=this._output,te=null;try{te=X?new B($,X):new B($),this._socket=te,V&&(this._socket.binaryType=V)}catch(pe){return void Q.error(pe)}var be=new L.w(function(){x._socket=null,te&&1===te.readyState&&te.close()});te.onopen=function(pe){if(!x._socket)return te.close(),void x._resetState();var ue=x._config.openObserver;ue&&ue.next(pe);var de=x.destination;x.destination=D.L.create(function(ge){if(1===te.readyState)try{var je=x._config.serializer;te.send(je(ge))}catch(ot){x.destination.error(ot)}},function(ge){var je=x._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 }")),x._resetState()},function(){var ge=x._config.closingObserver;ge&&ge.next(void 0),te.close(),x._resetState()}),de&&de instanceof v.t&&be.add(de.subscribe(x.destination))},te.onerror=function(pe){x._resetState(),Q.error(pe)},te.onclose=function(pe){x._resetState();var fe=x._config.closeObserver;fe&&fe.next(pe),pe.wasClean?Q.complete():Q.error(pe)},te.onmessage=function(pe){try{var fe=x._config.deserializer;Q.next(fe(pe))}catch(ue){Q.error(ue)}}}},{key:"_subscribe",value:function(x){var N=this,B=this.source;return B?B.subscribe(x):(this._socket||this._connectSocket(),this._output.subscribe(x),x.add(function(){var X=N._socket;0===N._output.observers.length&&(X&&1===X.readyState&&X.close(),N._resetState())}),x)}},{key:"unsubscribe",value:function(){var x=this._socket;x&&1===x.readyState&&x.close(),this._resetState(),(0,A.Z)((0,U.Z)(T.prototype),"unsubscribe",this).call(this)}}]),T}(E.ug)},8059:function(De,K,m){"use strict";m.d(K,{h:function(){return W}});var W=m(8452).i6.create},7623:function(De,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(De,K,m){"use strict";m.d(K,{E:function(){return W},c:function(){return A}});var G=m(7451),W=new G.y(function(R){return R.complete()});function A(R){return R?function U(R){return new G.y(function(P){return R.schedule(function(){return P.complete()})})}(R):W}},567:function(De,K,m){"use strict";m.d(K,{D:function(){return E}});var G=m(4902),W=m(7451),A=m(6688),U=m(4850),R=m(7830),P=m(3527);function E(){for(var j=arguments.length,L=new Array(j),v=0;v<j;v++)L[v]=arguments[v];if(1===L.length){var k=L[0];if((0,A.k)(k))return D(k,null);if((0,R.K)(k)&&Object.getPrototypeOf(k)===Object.prototype){var b=Object.keys(k);return D(b.map(function(S){return k[S]}),b)}}if("function"==typeof L[L.length-1]){var O=L.pop();return D(L=1===L.length&&(0,A.k)(L[0])?L[0]:L,null).pipe((0,U.U)(function(S){return O.apply(void 0,(0,G.Z)(S))}))}return D(L,null)}function D(j,L){return new W.y(function(v){var k=j.length;if(0!==k)for(var b=new Array(k),O=0,S=0,y=function(x){var N=(0,P.D)(j[x]),B=!1;v.add(N.subscribe({next:function($){B||(B=!0,S++),b[x]=$},error:function($){return v.error($)},complete:function(){(++O===k||!B)&&(S===k&&v.next(L?L.reduce(function($,V,Q){return $[V]=b[Q],$},{}):b),v.complete())}}))},T=0;T<k;T++)y(T);else v.complete()})}},3527:function(De,K,m){"use strict";m.d(K,{D:function(){return U}});var G=m(7451),W=m(3071),A=m(6266);function U(R,P){return P?(0,A.x)(R,P):R instanceof G.y?R:new G.y((0,W.s)(R))}},3009:function(De,K,m){"use strict";m.d(K,{n:function(){return U}});var G=m(7451),W=m(3650),A=m(6454);function U(R,P){return P?(0,A.r)(R,P):new G.y((0,W.V)(R))}},3753:function(De,K,m){"use strict";m.d(K,{R:function(){return E}});var G=m(4902),W=m(7451),A=m(6688),U=m(7043),R=m(4850);Object.prototype.toString;function E(k,b,O,S){return(0,U.m)(O)&&(S=O,O=void 0),S?E(k,b,O).pipe((0,R.U)(function(y){return(0,A.k)(y)?S.apply(void 0,(0,G.Z)(y)):S(y)})):new W.y(function(y){D(k,b,function T(M){arguments.length>1?y.next(Array.prototype.slice.call(arguments)):y.next(M)},y,O)})}function D(k,b,O,S,y){var T;if(function v(k){return k&&"function"==typeof k.addEventListener&&"function"==typeof k.removeEventListener}(k)){var M=k;k.addEventListener(b,O,y),T=function(){return M.removeEventListener(b,O,y)}}else if(function L(k){return k&&"function"==typeof k.on&&"function"==typeof k.off}(k)){var x=k;k.on(b,O),T=function(){return x.off(b,O)}}else if(function j(k){return k&&"function"==typeof k.addListener&&"function"==typeof k.removeListener}(k)){var N=k;k.addListener(b,O),T=function(){return N.removeListener(b,O)}}else{if(!k||!k.length)throw new TypeError("Invalid event target");for(var B=0,X=k.length;B<X;B++)D(k[B],b,O,S,y)}S.add(T)}},1715:function(De,K,m){"use strict";m.d(K,{F:function(){return U}});var G=m(7451),W=m(353),A=m(4241);function U(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.P;return(!(0,A.k)(P)||P<0)&&(P=0),(!E||"function"!=typeof E.schedule)&&(E=W.P),new G.y(function(D){return D.add(E.schedule(R,P,{subscriber:D,counter:0,period:P})),D})}function R(P){var E=P.subscriber,D=P.counter,j=P.period;E.next(D),this.schedule({subscriber:E,counter:D+1,period:j},j)}},6787:function(De,K,m){"use strict";m.d(K,{T:function(){return R}});var G=m(7451),W=m(2866),A=m(9146),U=m(3009);function R(){for(var P=Number.POSITIVE_INFINITY,E=null,D=arguments.length,j=new Array(D),L=0;L<D;L++)j[L]=arguments[L];var v=j[j.length-1];return(0,W.K)(v)?(E=j.pop(),j.length>1&&"number"==typeof j[j.length-1]&&(P=j.pop())):"number"==typeof v&&(P=j.pop()),null===E&&1===j.length&&j[0]instanceof G.y?j[0]:(0,A.J)(P)((0,U.n)(j,E))}},1086:function(De,K,m){"use strict";m.d(K,{of:function(){return U}});var G=m(2866),W=m(3009),A=m(6454);function U(){for(var R=arguments.length,P=new Array(R),E=0;E<R;E++)P[E]=arguments[E];var D=P[P.length-1];return(0,G.K)(D)?(P.pop(),(0,A.r)(P,D)):(0,W.n)(P)}},1946:function(De,K,m){"use strict";m.d(K,{S3:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(6688),P=m(3009),E=m(826),D=m(9054);function j(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];if(1===b.length){if(!(0,R.k)(b[0]))return b[0];b=b[0]}return(0,P.n)(b,void 0).lift(new L)}var L=function(){function k(){(0,A.Z)(this,k)}return(0,U.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O))}}]),k}(),v=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S){var y;return(0,A.Z)(this,O),(y=b.call(this,S)).hasFirst=!1,y.observables=[],y.subscriptions=[],y}return(0,U.Z)(O,[{key:"_next",value:function(y){this.observables.push(y)}},{key:"_complete",value:function(){var y=this.observables,T=y.length;if(0===T)this.destination.complete();else{for(var M=0;M<T&&!this.hasFirst;M++){var x=y[M],N=(0,D.D)(this,x,void 0,M);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}},{key:"notifyNext",value:function(y,T,M){if(!this.hasFirst){this.hasFirst=!0;for(var x=0;x<this.subscriptions.length;x++)if(x!==M){var N=this.subscriptions[x];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(T)}}]),O}(E.L)},3103:function(De,K,m){"use strict";m.d(K,{W:function(){return A},w:function(){return W}});var G=m(7451);function W(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,R=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new G.y(function(E){void 0===R&&(R=U,U=0);var D=0,j=U;if(P)return P.schedule(A,0,{index:D,count:R,start:U,subscriber:E});for(;;){if(D++>=R){E.complete();break}if(E.next(j++),E.closed)break}})}function A(U){var R=U.start,P=U.index,E=U.count,D=U.subscriber;P>=E?D.complete():(D.next(R),!D.closed&&(U.index=P+1,U.start=R+1,this.schedule(U)))}},1737:function(De,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(7451);function W(U,R){return R?new G.y(function(P){return R.schedule(A,0,{error:U,subscriber:P})}):new G.y(function(P){return P.error(U)})}function A(U){var R=U.error;U.subscriber.error(R)}},8723:function(De,K,m){"use strict";m.d(K,{H:function(){return R}});var G=m(7451),W=m(353),A=m(4241),U=m(2866);function R(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,D=arguments.length>1?arguments[1]:void 0,j=arguments.length>2?arguments[2]:void 0,L=-1;return(0,A.k)(D)?L=Number(D)<1?1:Number(D):(0,U.K)(D)&&(j=D),(0,U.K)(j)||(j=W.P),new G.y(function(v){var k=(0,A.k)(E)?E:+E-j.now();return j.schedule(P,k,{index:0,period:L,subscriber:v})})}function P(E){var D=E.index,j=E.period,L=E.subscriber;if(L.next(D),!L.closed){if(-1===j)return L.complete();E.index=D+1,this.schedule(E,j)}}},1746:function(De,K,m){"use strict";m.d(K,{$R:function(){return L},mx:function(){return v}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3009),P=m(6688),E=m(3489),D=m(5430),j=m(1177);function L(){for(var y=arguments.length,T=new Array(y),M=0;M<y;M++)T[M]=arguments[M];var x=T[T.length-1];return"function"==typeof x&&T.pop(),(0,R.n)(T,void 0).lift(new v(x))}var v=function(){function y(T){(0,A.Z)(this,y),this.resultSelector=T}return(0,U.Z)(y,[{key:"call",value:function(M,x){return x.subscribe(new k(M,this.resultSelector))}}]),y}(),k=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(x,N){var B;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,A.Z)(this,M),(B=T.call(this,x)).resultSelector=N,B.iterators=[],B.active=0,B.resultSelector="function"==typeof N?N:void 0,B}return(0,U.Z)(M,[{key:"_next",value:function(N){var B=this.iterators;(0,P.k)(N)?B.push(new O(N)):"function"==typeof N[D.hZ]?B.push(new b(N[D.hZ]())):B.push(new S(this.destination,this,N))}},{key:"_complete",value:function(){var N=this.iterators,B=N.length;if(this.unsubscribe(),0!==B){this.active=B;for(var X=0;X<B;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,B=N.length,X=this.destination,$=0;$<B;$++){var V=N[$];if("function"==typeof V.hasValue&&!V.hasValue())return}for(var Q=!1,te=[],be=0;be<B;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 B;try{B=this.resultSelector.apply(this,N)}catch(X){return void this.destination.error(X)}this.destination.next(B)}}]),M}(E.L),b=function(){function y(T){(0,A.Z)(this,y),this.iterator=T,this.nextResult=T.next()}return(0,U.Z)(y,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var M=this.nextResult;return this.nextResult=this.iterator.next(),M}},{key:"hasCompleted",value:function(){var M=this.nextResult;return Boolean(M&&M.done)}}]),y}(),O=function(){function y(T){(0,A.Z)(this,y),this.array=T,this.index=0,this.length=0,this.length=T.length}return(0,U.Z)(y,[{key:D.hZ,value:function(){return this}},{key:"next",value:function(M){var x=this.index++,N=this.array;return x<this.length?{value:N[x],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}}]),y}(),S=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(x,N,B){var X;return(0,A.Z)(this,M),(X=T.call(this,x)).parent=N,X.observable=B,X.stillUnsubscribed=!0,X.buffer=[],X.isComplete=!1,X}return(0,U.Z)(M,[{key:D.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))}}]),M}(j.Ds)},384:function(De,K,m){"use strict";m.d(K,{U:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177);function P(j){return function(v){return v.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.durationSelector=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.durationSelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).durationSelector=b,O.hasValue=!1,O}return(0,U.Z)(v,[{key:"_next",value:function(b){if(this.value=b,this.hasValue=!0,!this.throttled){var O;try{O=(0,this.durationSelector)(b)}catch(T){return this.destination.error(T)}var y=(0,R.ft)(O,new R.IY(this));!y||y.closed?this.clearThrottle():this.add(this.throttled=y)}}},{key:"clearThrottle",value:function(){var b=this.value,O=this.hasValue,S=this.throttled;S&&(this.remove(S),this.throttled=void 0,S.unsubscribe()),O&&(this.value=void 0,this.hasValue=!1,this.destination.next(b))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),v}(R.Ds)},7568:function(De,K,m){"use strict";m.d(K,{e:function(){return U}});var G=m(353),W=m(384),A=m(8723);function U(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.P;return(0,W.U)(function(){return(0,A.H)(R,P)})}},7221:function(De,K,m){"use strict";m.d(K,{K:function(){return D}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(1177);function D(v){return function(b){var O=new j(v),S=b.lift(O);return O.caught=S}}var j=function(){function v(k){(0,R.Z)(this,v),this.selector=k}return(0,P.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.selector,this.caught))}}]),v}(),L=function(v){(0,A.Z)(b,v);var k=(0,U.Z)(b);function b(O,S,y){var T;return(0,R.Z)(this,b),(T=k.call(this,O)).selector=S,T.caught=y,T}return(0,P.Z)(b,[{key:"error",value:function(S){if(!this.isStopped){var y;try{y=this.selector(S,this.caught)}catch(x){return void(0,G.Z)((0,W.Z)(b.prototype),"error",this).call(this,x)}this._unsubscribeAndRecycle();var T=new E.IY(this);this.add(T);var M=(0,E.ft)(y,T);M!==T&&this.add(M)}}}]),b}(E.Ds)},534:function(De,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(9146);function W(){return(0,G.J)(1)}},1406:function(De,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(1709);function W(A,U){return(0,G.zg)(A,U,1)}},3906:function(De,K,m){"use strict";m.d(K,{Q:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.source=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.source))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.source=O,S.count=0,S.index=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){this.predicate?this._tryPredicate(b):this.count++}},{key:"_tryPredicate",value:function(b){var O;try{O=this.predicate(b,this.index++,this.source)}catch(S){return void this.destination.error(S)}O&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),v}(R.L)},13:function(De,K,m){"use strict";m.d(K,{b:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(353);function E(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(b){return b.lift(new D(v,k))}}var D=function(){function v(k,b){(0,A.Z)(this,v),this.dueTime=k,this.scheduler=b}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.dueTime,this.scheduler))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S,y){var T;return(0,A.Z)(this,b),(T=k.call(this,O)).dueTime=S,T.scheduler=y,T.debouncedSubscription=null,T.lastValue=null,T.hasValue=!1,T}return(0,U.Z)(b,[{key:"_next",value:function(S){this.clearDebounce(),this.lastValue=S,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var S=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(S)}}},{key:"clearDebounce",value:function(){var S=this.debouncedSubscription;null!==S&&(this.remove(S),S.unsubscribe(),this.debouncedSubscription=null)}}]),b}(R.L);function L(v){v.debouncedNext()}},7314:function(De,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.defaultValue=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.defaultValue))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).defaultValue=b,O.isEmpty=!0,O}return(0,U.Z)(v,[{key:"_next",value:function(b){this.isEmpty=!1,this.destination.next(b)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),v}(R.L)},943:function(De,K,m){"use strict";m.d(K,{g:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(353),P=m(2697),E=m(3489),D=m(9312);function j(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P,S=(0,P.J)(b),y=S?+b-O.now():Math.abs(b);return function(T){return T.lift(new L(y,O))}}var L=function(){function b(O,S){(0,A.Z)(this,b),this.delay=O,this.scheduler=S}return(0,U.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new v(S,this.delay,this.scheduler))}}]),b}(),v=function(b){(0,G.Z)(S,b);var O=(0,W.Z)(S);function S(y,T,M){var x;return(0,A.Z)(this,S),(x=O.call(this,y)).delay=T,x.scheduler=M,x.queue=[],x.active=!1,x.errored=!1,x}return(0,U.Z)(S,[{key:"_schedule",value:function(T){this.active=!0,this.destination.add(T.schedule(S.dispatch,this.delay,{source:this,destination:this.destination,scheduler:T}))}},{key:"scheduleNotification",value:function(T){if(!0!==this.errored){var M=this.scheduler,x=new k(M.now()+this.delay,T);this.queue.push(x),!1===this.active&&this._schedule(M)}}},{key:"_next",value:function(T){this.scheduleNotification(D.P.createNext(T))}},{key:"_error",value:function(T){this.errored=!0,this.queue=[],this.destination.error(T),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){for(var M=T.source,x=M.queue,N=T.scheduler,B=T.destination;x.length>0&&x[0].time-N.now()<=0;)x.shift().notification.observe(B);if(x.length>0){var X=Math.max(0,x[0].time-N.now());this.schedule(T,X)}else this.unsubscribe(),M.active=!1}}]),S}(E.L),k=(0,U.Z)(function b(O,S){(0,A.Z)(this,b),this.time=O,this.notification=S})},5778:function(De,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){return function(v){return v.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.compare=L,this.keySelector=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.compare,this.keySelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).keySelector=O,S.hasKey=!1,"function"==typeof b&&(S.compare=b),S}return(0,U.Z)(v,[{key:"compare",value:function(b,O){return b===O}},{key:"_next",value:function(b){var O;try{var S=this.keySelector;O=S?S(b):b}catch(M){return this.destination.error(M)}var y=!1;if(this.hasKey)try{y=(0,this.compare)(this.key,O)}catch(M){return this.destination.error(M)}else this.hasKey=!0;y||(this.key=O,this.destination.next(b))}}]),v}(R.L)},9664:function(De,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){return function(k){return k.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.thisArg=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.thisArg))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.thisArg=O,S.count=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){var O;try{O=this.predicate.call(this.thisArg,b,this.count++)}catch(S){return void this.destination.error(S)}O&&this.destination.next(b)}}]),v}(R.L)},537:function(De,K,m){"use strict";m.d(K,{x:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4096);function E(L){return function(v){return v.lift(new D(L))}}var D=function(){function L(v){(0,A.Z)(this,L),this.callback=v}return(0,U.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.callback))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O){var S;return(0,A.Z)(this,k),(S=v.call(this,b)).add(new P.w(O)),S}return(0,U.Z)(k)}(R.L)},7224:function(De,K,m){"use strict";m.d(K,{P:function(){return E}});var G=m(4450),W=m(9664),A=m(2986),U=m(7314),R=m(4907),P=m(5379);function E(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.q)(1),L?(0,U.d)(j):(0,R.T)(function(){return new G.K}))}}},4002:function(De,K,m){"use strict";m.d(K,{T:function(){return S},v:function(){return v}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(3489),D=m(4096),j=m(7451),L=m(8929);function v(T,M,x,N){return function(B){return B.lift(new k(T,M,x,N))}}var k=function(){function T(M,x,N,B){(0,R.Z)(this,T),this.keySelector=M,this.elementSelector=x,this.durationSelector=N,this.subjectSelector=B}return(0,P.Z)(T,[{key:"call",value:function(x,N){return N.subscribe(new b(x,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),T}(),b=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,B,X,$,V){var Q;return(0,R.Z)(this,x),(Q=M.call(this,N)).keySelector=B,Q.elementSelector=X,Q.durationSelector=$,Q.subjectSelector=V,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,P.Z)(x,[{key:"_next",value:function(B){var X;try{X=this.keySelector(B)}catch($){return void this.error($)}this._group(B,X)}},{key:"_group",value:function(B,X){var $=this.groups;$||($=this.groups=new Map);var Q,V=$.get(X);if(this.elementSelector)try{Q=this.elementSelector(B)}catch(pe){this.error(pe)}else Q=B;if(!V){V=this.subjectSelector?this.subjectSelector():new L.xQ,$.set(X,V);var te=new S(X,V,this);if(this.destination.next(te),this.durationSelector){var be;try{be=this.durationSelector(new S(X,V))}catch(pe){return void this.error(pe)}this.add(be.subscribe(new O(X,V,this)))}}V.closed||V.next(Q)}},{key:"_error",value:function(B){var X=this.groups;X&&(X.forEach(function($,V){$.error(B)}),X.clear()),this.destination.error(B)}},{key:"_complete",value:function(){var B=this.groups;B&&(B.forEach(function(X,$){X.complete()}),B.clear()),this.destination.complete()}},{key:"removeGroup",value:function(B){this.groups.delete(B)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,G.Z)((0,W.Z)(x.prototype),"unsubscribe",this).call(this))}}]),x}(E.L),O=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,B,X){var $;return(0,R.Z)(this,x),($=M.call(this,B)).key=N,$.group=B,$.parent=X,$}return(0,P.Z)(x,[{key:"_next",value:function(B){this.complete()}},{key:"_unsubscribe",value:function(){var B=this.parent,X=this.key;this.key=this.parent=null,B&&B.removeGroup(X)}}]),x}(E.L),S=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,B,X){var $;return(0,R.Z)(this,x),($=M.call(this)).key=N,$.groupSubject=B,$.refCountSubscription=X,$}return(0,P.Z)(x,[{key:"_subscribe",value:function(B){var X=new D.w,$=this.refCountSubscription,V=this.groupSubject;return $&&!$.closed&&X.add(new y($)),X.add(V.subscribe(B)),X}}]),x}(j.y),y=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N){var B;return(0,R.Z)(this,x),(B=M.call(this)).parent=N,N.count++,B}return(0,P.Z)(x,[{key:"unsubscribe",value:function(){var B=this.parent;!B.closed&&!this.closed&&((0,G.Z)((0,W.Z)(x.prototype),"unsubscribe",this).call(this),B.count-=1,0===B.count&&B.attemptedToUnsubscribe&&B.unsubscribe())}}]),x}(D.w)},8127:function(De,K,m){"use strict";m.d(K,{Z:function(){return E}});var G=m(4450),W=m(9664),A=m(2821),U=m(4907),R=m(7314),P=m(5379);function E(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.h)(1),L?(0,R.d)(j):(0,U.T)(function(){return new G.K}))}}},4850:function(De,K,m){"use strict";m.d(K,{U:function(){return E}});var G=m(7326),W=m(136),A=m(9388),U=m(5671),R=m(3144),P=m(3489);function E(L,v){return function(b){if("function"!=typeof L)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new D(L,v))}}var D=function(){function L(v,k){(0,U.Z)(this,L),this.project=v,this.thisArg=k}return(0,R.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.project,this.thisArg))}}]),L}(),j=function(L){(0,W.Z)(k,L);var v=(0,A.Z)(k);function k(b,O,S){var y;return(0,U.Z)(this,k),(y=v.call(this,b)).project=O,y.count=0,y.thisArg=S||(0,G.Z)(y),y}return(0,R.Z)(k,[{key:"_next",value:function(O){var S;try{S=this.project.call(this.thisArg,O,this.count++)}catch(y){return void this.destination.error(y)}this.destination.next(S)}}]),k}(P.L)},7604:function(De,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.value=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.value))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).value=b,O}return(0,U.Z)(v,[{key:"_next",value:function(b){this.destination.next(this.value)}}]),v}(R.L)},9146:function(De,K,m){"use strict";m.d(K,{J:function(){return A}});var G=m(1709),W=m(5379);function A(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,G.zg)(W.y,U)}},1709:function(De,K,m){"use strict";m.d(K,{VS:function(){return v},zg:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(4850),P=m(3527),E=m(1177);function D(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof b?function(S){return S.pipe(D(function(y,T){return(0,P.D)(k(y,T)).pipe((0,R.U)(function(M,x){return b(y,M,T,x)}))},O))}:("number"==typeof b&&(O=b),function(S){return S.lift(new j(k,O))})}var j=function(){function k(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,A.Z)(this,k),this.project=b,this.concurrent=O}return(0,U.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new L(O,this.project,this.concurrent))}}]),k}(),L=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S,y){var T,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,O),(T=b.call(this,S)).project=y,T.concurrent=M,T.hasCompleted=!1,T.buffer=[],T.active=0,T.index=0,T}return(0,U.Z)(O,[{key:"_next",value:function(y){this.active<this.concurrent?this._tryNext(y):this.buffer.push(y)}},{key:"_tryNext",value:function(y){var T,M=this.index++;try{T=this.project(y,M)}catch(x){return void this.destination.error(x)}this.active++,this._innerSub(T)}},{key:"_innerSub",value:function(y){var T=new E.IY(this),M=this.destination;M.add(T);var x=(0,E.ft)(y,T);x!==T&&M.add(x)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(y){this.destination.next(y)}},{key:"notifyComplete",value:function(){var y=this.buffer;this.active--,y.length>0?this._next(y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),O}(E.Ds),v=D},2536:function(De,K,m){"use strict";m.d(K,{O:function(){return U}});var G=m(5671),W=m(3144),A=m(1762);function U(P,E){return function(j){var L;if(L="function"==typeof P?P:function(){return P},"function"==typeof E)return j.lift(new R(L,E));var v=Object.create(j,A.N);return v.source=j,v.subjectFactory=L,v}}var R=function(){function P(E,D){(0,G.Z)(this,P),this.subjectFactory=E,this.selector=D}return(0,W.Z)(P,[{key:"call",value:function(D,j){var L=this.selector,v=this.subjectFactory(),k=L(v).subscribe(D);return k.add(j.subscribe(v)),k}}]),P}()},7770:function(De,K,m){"use strict";m.d(K,{QV:function(){return E},ht:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(9312);function E(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(O){return O.lift(new D(v,k))}}var D=function(){function v(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,A.Z)(this,v),this.scheduler=k,this.delay=b}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.scheduler,this.delay))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,A.Z)(this,b),(y=k.call(this,O)).scheduler=S,y.delay=T,y}return(0,U.Z)(b,[{key:"scheduleMessage",value:function(S){this.destination.add(this.scheduler.schedule(b.dispatch,this.delay,new L(S,this.destination)))}},{key:"_next",value:function(S){this.scheduleMessage(P.P.createNext(S))}},{key:"_error",value:function(S){this.scheduleMessage(P.P.createError(S)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){var y=S.notification,T=S.destination;y.observe(T),this.unsubscribe()}}]),b}(R.L),L=(0,U.Z)(function v(k,b){(0,A.Z)(this,v),this.notification=k,this.destination=b})},519:function(De,K,m){"use strict";m.d(K,{G:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){return function(j){return j.lift(new E)}}var E=function(){function j(){(0,A.Z)(this,j)}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).hasPrev=!1,b}return(0,U.Z)(v,[{key:"_next",value:function(b){var O;this.hasPrev?O=[this.prev,b]:this.hasPrev=!0,this.prev=b,O&&this.destination.next(O)}}]),v}(R.L)},4327:function(De,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){return function(L){return L.lift(new E(L))}}var E=function(){function j(L){(0,A.Z)(this,j),this.connectable=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){var b=this.connectable;b._refCount++;var O=new D(v,b),S=k.subscribe(O);return O.closed||(O.connection=b.connect()),S}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).connectable=b,O}return(0,U.Z)(v,[{key:"_unsubscribe",value:function(){var b=this.connectable;if(b){this.connectable=null;var O=b._refCount;if(O<=0)this.connection=null;else if(b._refCount=O-1,O>1)this.connection=null;else{var S=this.connection,y=b._connection;this.connection=null,y&&(!S||y===S)&&y.unsubscribe()}}else this.connection=null}}]),v}(R.L)},2014:function(De,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){var v=!1;return arguments.length>=2&&(v=!0),function(b){return b.lift(new E(j,L,v))}}var E=function(){function j(L,v){var k=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,A.Z)(this,j),this.accumulator=L,this.seed=v,this.hasSeed=k}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.accumulator,this.seed,this.hasSeed))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O,S){var y;return(0,A.Z)(this,v),(y=L.call(this,k)).accumulator=b,y._seed=O,y.hasSeed=S,y.index=0,y}return(0,U.Z)(v,[{key:"seed",get:function(){return this._seed},set:function(b){this.hasSeed=!0,this._seed=b}},{key:"_next",value:function(b){if(this.hasSeed)return this._tryNext(b);this.seed=b,this.destination.next(b)}},{key:"_tryNext",value:function(b){var S,O=this.index++;try{S=this.accumulator(this.seed,b,O)}catch(y){this.destination.error(y)}this.seed=S,this.destination.next(S)}}]),v}(R.L)},8117:function(De,K,m){"use strict";m.d(K,{B:function(){return R}});var G=m(2536),W=m(4327),A=m(8929);function U(){return new A.xQ}function R(){return function(P){return(0,W.x)()((0,G.O)(U)(P))}}},5154:function(De,K,m){"use strict";m.d(K,{d:function(){return W}});var G=m(839);function W(U,R,P){var E;return E=U&&"object"==typeof U?U:{bufferSize:U,windowTime:R,refCount:!1,scheduler:P},function(D){return D.lift(function A(U){var v,b,R=U.bufferSize,P=void 0===R?Number.POSITIVE_INFINITY:R,E=U.windowTime,D=void 0===E?Number.POSITIVE_INFINITY:E,j=U.refCount,L=U.scheduler,k=0,O=!1,S=!1;return function(T){var M;k++,!v||O?(O=!1,v=new G.t(P,D,L),M=v.subscribe(this),b=T.subscribe({next:function(N){v.next(N)},error:function(N){O=!0,v.error(N)},complete:function(){S=!0,b=void 0,v.complete()}}),S&&(b=void 0)):M=v.subscribe(this),this.add(function(){k--,M.unsubscribe(),M=void 0,b&&!S&&j&&0===k&&(b.unsubscribe(),b=void 0,v=void 0)})}}(E))}}},1307:function(De,K,m){"use strict";m.d(K,{T:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.total=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.total))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).total=b,O.count=0,O}return(0,U.Z)(v,[{key:"_next",value:function(b){++this.count>this.total&&this.destination.next(b)}}]),v}(R.L)},1059:function(De,K,m){"use strict";m.d(K,{O:function(){return A}});var G=m(1961),W=m(2866);function A(){for(var U=arguments.length,R=new Array(U),P=0;P<U;P++)R[P]=arguments[P];var E=R[R.length-1];return(0,W.K)(E)?(R.pop(),function(D){return(0,G.z)(R,D,E)}):function(D){return(0,G.z)(R,D)}}},7545:function(De,K,m){"use strict";m.d(K,{w:function(){return L}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(4850),D=m(3527),j=m(1177);function L(b,O){return"function"==typeof O?function(S){return S.pipe(L(function(y,T){return(0,D.D)(b(y,T)).pipe((0,E.U)(function(M,x){return O(y,M,T,x)}))}))}:function(S){return S.lift(new v(b))}}var v=function(){function b(O){(0,R.Z)(this,b),this.project=O}return(0,P.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new k(S,this.project))}}]),b}(),k=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(y,T){var M;return(0,R.Z)(this,S),(M=O.call(this,y)).project=T,M.index=0,M}return(0,P.Z)(S,[{key:"_next",value:function(T){var M,x=this.index++;try{M=this.project(T,x)}catch(N){return void this.destination.error(N)}this._innerSub(M)}},{key:"_innerSub",value:function(T){var M=this.innerSubscription;M&&M.unsubscribe();var x=new j.IY(this),N=this.destination;N.add(x),this.innerSubscription=(0,j.ft)(T,x),this.innerSubscription!==x&&N.add(this.innerSubscription)}},{key:"_complete",value:function(){var T=this.innerSubscription;(!T||T.closed)&&(0,G.Z)((0,W.Z)(S.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)(S.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(T){this.destination.next(T)}}]),S}(j.Ds)},2986:function(De,K,m){"use strict";m.d(K,{q:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4231),E=m(8896);function D(v){return function(k){return 0===v?(0,E.c)():k.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.count=0,y}return(0,U.Z)(b,[{key:"_next",value:function(S){var y=this.total,T=++this.count;T<=y&&(this.destination.next(S),T===y&&(this.destination.complete(),this.unsubscribe()))}}]),b}(R.L)},2821:function(De,K,m){"use strict";m.d(K,{h:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4231),E=m(8896);function D(v){return function(b){return 0===v?(0,E.c)():b.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.ring=new Array,y.count=0,y}return(0,U.Z)(b,[{key:"_next",value:function(S){var y=this.ring,T=this.total,M=this.count++;y.length<T?y.push(S):y[M%T]=S}},{key:"_complete",value:function(){var S=this.destination,y=this.count;if(y>0)for(var T=this.count>=this.total?this.total:this.count,M=this.ring,x=0;x<T;x++){var N=y++%T;S.next(M[N])}S.complete()}}]),b}(R.L)},7625:function(De,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.notifier=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){var b=new D(v),O=(0,R.ft)(this.notifier,new R.IY(b));return O&&!b.seenValue?(b.add(O),k.subscribe(b)):b}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).seenValue=!1,b}return(0,U.Z)(v,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),v}(R.Ds)},4290:function(De,K,m){"use strict";m.d(K,{o:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){var L=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(v){return v.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.inclusive=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.inclusive))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.inclusive=O,S.index=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){var S,O=this.destination;try{S=this.predicate(b,this.index++)}catch(y){return void O.error(y)}this.nextOrComplete(b,S)}},{key:"nextOrComplete",value:function(b,O){var S=this.destination;Boolean(O)?S.next(b):(this.inclusive&&S.next(b),S.complete())}}]),v}(R.L)},2994:function(De,K,m){"use strict";m.d(K,{b:function(){return j}});var G=m(7326),W=m(136),A=m(9388),U=m(5671),R=m(3144),P=m(3489),E=m(7876),D=m(7043);function j(k,b,O){return function(y){return y.lift(new L(k,b,O))}}var L=function(){function k(b,O,S){(0,U.Z)(this,k),this.nextOrObserver=b,this.error=O,this.complete=S}return(0,R.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O,this.nextOrObserver,this.error,this.complete))}}]),k}(),v=function(k){(0,W.Z)(O,k);var b=(0,A.Z)(O);function O(S,y,T,M){var x;return(0,U.Z)(this,O),(x=b.call(this,S))._tapNext=E.Z,x._tapError=E.Z,x._tapComplete=E.Z,x._tapError=T||E.Z,x._tapComplete=M||E.Z,(0,D.m)(y)?(x._context=(0,G.Z)(x),x._tapNext=y):y&&(x._context=y,x._tapNext=y.next||E.Z,x._tapError=y.error||E.Z,x._tapComplete=y.complete||E.Z),x}return(0,R.Z)(O,[{key:"_next",value:function(y){try{this._tapNext.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.next(y)}},{key:"_error",value:function(y){try{this._tapError.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.error(y)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(y){return void this.destination.error(y)}return this.destination.complete()}}]),O}(P.L)},2444:function(De,K,m){"use strict";m.d(K,{P:function(){return E},d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177),P={leading:!0,trailing:!1};function E(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(k){return k.lift(new D(L,!!v.leading,!!v.trailing))}}var D=function(){function L(v,k,b){(0,A.Z)(this,L),this.durationSelector=v,this.leading=k,this.trailing=b}return(0,U.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.durationSelector,this.leading,this.trailing))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O,S,y){var T;return(0,A.Z)(this,k),(T=v.call(this,b)).destination=b,T.durationSelector=O,T._leading=S,T._trailing=y,T._hasValue=!1,T}return(0,U.Z)(k,[{key:"_next",value:function(O){this._hasValue=!0,this._sendValue=O,this._throttled||(this._leading?this.send():this.throttle(O))}},{key:"send",value:function(){var O=this._hasValue,S=this._sendValue;O&&(this.destination.next(S),this.throttle(S)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(O){var S=this.tryDurationSelector(O);S&&this.add(this._throttled=(0,R.ft)(S,new R.IY(this)))}},{key:"tryDurationSelector",value:function(O){try{return this.durationSelector(O)}catch(S){return this.destination.error(S),null}}},{key:"throttlingDone",value:function(){var O=this._throttled,S=this._trailing;O&&O.unsubscribe(),this._throttled=void 0,S&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),k}(R.Ds)},4907:function(De,K,m){"use strict";m.d(K,{T:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(4450),P=m(3489);function E(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;return function(k){return k.lift(new D(v))}}var D=function(){function v(k){(0,A.Z)(this,v),this.errorFactory=k}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.errorFactory))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).errorFactory=S,y.hasValue=!1,y}return(0,U.Z)(b,[{key:"_next",value:function(S){this.hasValue=!0,this.destination.next(S)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var S;try{S=this.errorFactory()}catch(y){S=y}this.destination.error(S)}}]),b}(P.L);function L(){return new R.K}},3485:function(De,K,m){"use strict";m.d(K,{J:function(){return E},R:function(){return D}});var G=m(3144),W=m(5671),A=m(353),U=m(2014),R=m(8514),P=m(4850);function E(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return function(L){return(0,R.P)(function(){return L.pipe((0,U.R)(function(v,k){var b=v.current;return{value:k,current:j.now(),last:b}},{current:j.now(),value:void 0,last:void 0}),(0,P.U)(function(v){var k=v.current,b=v.last,O=v.value;return new D(O,k-b)}))})}}var D=(0,G.Z)(function j(L,v){(0,W.Z)(this,j),this.value=L,this.interval=v})},7781:function(De,K,m){"use strict";m.d(K,{A:function(){return R},E:function(){return P}});var G=m(3144),W=m(5671),A=m(353),U=m(4850);function R(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return(0,U.U)(function(D){return new P(D,E.now())})}var P=(0,G.Z)(function E(D,j){(0,W.Z)(this,E),this.value=D,this.timestamp=j})},6454:function(De,K,m){"use strict";m.d(K,{r:function(){return A}});var G=m(7451),W=m(4096);function A(U,R){return new G.y(function(P){var E=new W.w,D=0;return E.add(R.schedule(function(){D!==U.length?(P.next(U[D++]),P.closed||E.add(this.schedule())):P.complete()})),E})}},6389:function(De,K,m){"use strict";m.d(K,{Q:function(){return U}});var G=m(7451),W=m(4096),A=m(5430);function U(R,P){if(!R)throw new Error("Iterable cannot be null");return new G.y(function(E){var j,D=new W.w;return D.add(function(){j&&"function"==typeof j.return&&j.return()}),D.add(P.schedule(function(){j=R[A.hZ](),D.add(P.schedule(function(){if(!E.closed){var L,v;try{var k=j.next();L=k.value,v=k.done}catch(b){return void E.error(b)}v?E.complete():(E.next(L),this.schedule())}}))})),D})}},8687:function(De,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(7451),W=m(4096);function A(U,R){return new G.y(function(P){var E=new W.w;return E.add(R.schedule(function(){return U.then(function(D){E.add(R.schedule(function(){P.next(D),E.add(R.schedule(function(){return P.complete()}))}))},function(D){E.add(R.schedule(function(){return P.error(D)}))})})),E})}},6266:function(De,K,m){"use strict";m.d(K,{x:function(){return k}});var G=m(7451),W=m(4096),A=m(3821);var R=m(8687),P=m(6454),E=m(6389),D=m(8845),j=m(8955),L=m(8515),v=m(2198);function k(b,O){if(null!=b){if((0,D.c)(b))return function U(b,O){return new G.y(function(S){var y=new W.w;return y.add(O.schedule(function(){var T=b[A.L]();y.add(T.subscribe({next:function(x){y.add(O.schedule(function(){return S.next(x)}))},error:function(x){y.add(O.schedule(function(){return S.error(x)}))},complete:function(){y.add(O.schedule(function(){return S.complete()}))}}))})),y})}(b,O);if((0,j.t)(b))return(0,R.c)(b,O);if((0,L.z)(b))return(0,P.r)(b,O);if((0,v.T)(b)||"string"==typeof b)return(0,E.Q)(b,O)}throw new TypeError((null!==b&&typeof b||b)+" is not observable")}},6686:function(De,K,m){"use strict";m.d(K,{o:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(v,k){return(0,G.Z)(this,L),j.call(this)}return(0,W.Z)(L,[{key:"schedule",value:function(k){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),L}(m(4096).w),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(v,k){var b;return(0,G.Z)(this,L),(b=j.call(this,v,k)).scheduler=v,b.work=k,b.pending=!1,b}return(0,W.Z)(L,[{key:"schedule",value:function(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=k;var O=this.id,S=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId(S,O,b)),this.pending=!0,this.delay=b,this.id=this.id||this.requestAsyncId(S,this.id,b),this}},{key:"requestAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(k.flush.bind(k,this),O)}},{key:"recycleAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&this.delay===O&&!1===this.pending)return b;clearInterval(b)}},{key:"execute",value:function(k,b){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var O=this._execute(k,b);if(O)return O;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(k,b){var O=!1,S=void 0;try{this.work(k)}catch(y){O=!0,S=!!y&&y||new Error(y)}if(O)return this.unsubscribe(),S}},{key:"_unsubscribe",value:function(){var k=this.id,b=this.scheduler,O=b.actions,S=O.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==S&&O.splice(S,1),null!=k&&(this.id=this.recycleAsyncId(b,k,null)),this.delay=null}}]),L}(P)},198:function(De,K,m){"use strict";m.d(K,{v:function(){return j}});var G=m(5671),W=m(3144),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(2221),j=function(L){(0,P.Z)(k,L);var v=(0,E.Z)(k);function k(b){var O,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.b.now;return(0,G.Z)(this,k),(O=v.call(this,b,function(){return k.delegate&&k.delegate!==(0,A.Z)(O)?k.delegate.now():S()})).actions=[],O.active=!1,O.scheduled=void 0,O}return(0,W.Z)(k,[{key:"schedule",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,y=arguments.length>2?arguments[2]:void 0;return k.delegate&&k.delegate!==this?k.delegate.schedule(O,S,y):(0,U.Z)((0,R.Z)(k.prototype),"schedule",this).call(this,O,S,y)}},{key:"flush",value:function(O){var S=this.actions;if(this.active)S.push(O);else{var y;this.active=!0;do{if(y=O.execute(O.state,O.delay))break}while(O=S.shift());if(this.active=!1,y){for(;O=S.shift();)O.unsubscribe();throw y}}}}]),k}(D.b)},9027:function(De,K,m){"use strict";m.d(K,{h:function(){return L},y:function(){return j}});var G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(6686),j=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(){var O,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,b),(O=k.call(this,S,function(){return O.frame})).maxFrames=y,O.frame=0,O.index=-1,O}return(0,U.Z)(b,[{key:"flush",value:function(){for(var T,M,S=this.actions,y=this.maxFrames;(M=S[0])&&M.delay<=y&&(S.shift(),this.frame=M.delay,!(T=M.execute(M.state,M.delay))););if(T){for(;M=S.shift();)M.unsubscribe();throw T}}}]),b}(m(198).v);j.frameTimeFactor=10;var L=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O.index+=1;return(0,A.Z)(this,b),(y=k.call(this,O,S)).scheduler=O,y.work=S,y.index=T,y.active=!0,y.index=O.index=T,y}return(0,U.Z)(b,[{key:"schedule",value:function(S){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,G.Z)((0,W.Z)(b.prototype),"schedule",this).call(this,S,y);this.active=!1;var T=new b(this.scheduler,this.work);return this.add(T),T.schedule(S,y)}},{key:"requestAsyncId",value:function(S,y){var T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=S.frame+T;var M=S.actions;return M.push(this),M.sort(b.sortActions),!0}},{key:"recycleAsyncId",value:function(S,y){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(S,y){if(!0===this.active)return(0,G.Z)((0,W.Z)(b.prototype),"_execute",this).call(this,S,y)}}],[{key:"sortActions",value:function(S,y){return S.delay===y.delay?S.index===y.index?0:S.index>y.index?1:-1:S.delay>y.delay?1:-1}}]),b}(E.o)},352:function(De,K,m){"use strict";m.d(K,{r:function(){return k},Z:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"requestAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0?(0,A.Z)((0,U.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,x):(T.actions.push(this),T.scheduled||(T.scheduled=requestAnimationFrame(function(){return T.flush(null)})))}},{key:"recycleAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==x&&x>0||null===x&&this.delay>0)return(0,A.Z)((0,U.Z)(S.prototype),"recycleAsyncId",this).call(this,T,M,x);0===T.actions.length&&(cancelAnimationFrame(M),T.scheduled=void 0)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"flush",value:function(T){this.active=!0,this.scheduled=void 0;var x,M=this.actions,N=-1,B=M.length;T=T||M.shift();do{if(x=T.execute(T.state,T.delay))break}while(++N<B&&(T=M.shift()));if(this.active=!1,x){for(;++N<B&&(T=M.shift());)T.unsubscribe();throw x}}}]),S}(m(198).v),v=new L(D),k=v},9931:function(De,K,m){"use strict";m.d(K,{e:function(){return b},E:function(){return k}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(1450),j=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(T,M){var x;return(0,G.Z)(this,y),(x=S.call(this,T,M)).scheduler=T,x.work=M,x}return(0,W.Z)(y,[{key:"requestAsyncId",value:function(M,x){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==N&&N>0?(0,A.Z)((0,U.Z)(y.prototype),"requestAsyncId",this).call(this,M,x,N):(M.actions.push(this),M.scheduled||(M.scheduled=E.H.setImmediate(M.flush.bind(M,null))))}},{key:"recycleAsyncId",value:function(M,x){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,U.Z)(y.prototype),"recycleAsyncId",this).call(this,M,x,N);0===M.actions.length&&(E.H.clearImmediate(x),M.scheduled=void 0)}}]),y}(m(6686).o),v=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(){return(0,G.Z)(this,y),S.apply(this,arguments)}return(0,W.Z)(y,[{key:"flush",value:function(M){this.active=!0,this.scheduled=void 0;var N,x=this.actions,B=-1,X=x.length;M=M||x.shift();do{if(N=M.execute(M.state,M.delay))break}while(++B<X&&(M=x.shift()));if(this.active=!1,N){for(;++B<X&&(M=x.shift());)M.unsubscribe();throw N}}}]),y}(m(198).v),k=new v(j),b=k},353:function(De,K,m){"use strict";m.d(K,{P:function(){return U},z:function(){return A}});var G=m(6686),A=new(m(198).v)(G.o),U=A},341:function(De,K,m){"use strict";m.d(K,{c:function(){return k},N:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"schedule",value:function(T){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M>0?(0,A.Z)((0,U.Z)(S.prototype),"schedule",this).call(this,T,M):(this.delay=M,this.state=T,this.scheduler.flush(this),this)}},{key:"execute",value:function(T,M){return M>0||this.closed?(0,A.Z)((0,U.Z)(S.prototype),"execute",this).call(this,T,M):this._execute(T,M)}},{key:"requestAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0||null===x&&this.delay>0?(0,A.Z)((0,U.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,x):T.flush(this)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S)}(m(198).v),v=new L(D),k=v},5430:function(De,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(De,K,m){"use strict";m.d(K,{L:function(){return G}});var G="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(De,K,m){"use strict";m.d(K,{b:function(){return G}});var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(De,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(De,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(De,K,m){"use strict";m.d(K,{H:function(){return R}});var G=1,W=Promise.resolve(),A={};function U(E){return E in A&&(delete A[E],!0)}var R={setImmediate:function(D){var j=G++;return A[j]=!0,W.then(function(){return U(j)&&D()}),j},clearImmediate:function(D){U(D)}}},5279:function(De,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(De,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(De,K,m){"use strict";m.d(K,{B:function(){return W}});var W=function(){function A(U){return Error.call(this),this.message=U?"".concat(U.length," errors occurred during unsubscription:\n").concat(U.map(function(R,P){return"".concat(P+1,") ").concat(R.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=U,this}return A.prototype=Object.create(Error.prototype),A}()},5128:function(De,K,m){"use strict";function G(W,A){for(var U=0,R=A.length;U<R;U++)for(var P=A[U],E=Object.getOwnPropertyNames(P.prototype),D=0,j=E.length;D<j;D++){var L=E[D];W.prototype[L]=P.prototype[L]}}m.d(K,{e:function(){return G}})},9476:function(De,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(3489);function W(A){for(;A;){var U=A,R=U.closed,P=U.destination,E=U.isStopped;if(R||E)return!1;A=P&&P instanceof G.L?P:null}return!0}},2782:function(De,K,m){"use strict";function G(W){setTimeout(function(){throw W},0)}m.d(K,{z:function(){return G}})},5379:function(De,K,m){"use strict";function G(W){return W}m.d(K,{y:function(){return G}})},6688:function(De,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(De,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(De,K,m){"use strict";function G(W){return W instanceof Date&&!isNaN(+W)}m.d(K,{J:function(){return G}})},7043:function(De,K,m){"use strict";function G(W){return"function"==typeof W}m.d(K,{m:function(){return G}})},8845:function(De,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(De,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(De,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(De,K,m){"use strict";function G(W){return null!==W&&"object"==typeof W}m.d(K,{K:function(){return G}})},4715:function(De,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(De,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(De,K,m){"use strict";function G(W){return W&&"function"==typeof W.schedule}m.d(K,{K:function(){return G}})},7876:function(De,K,m){"use strict";function G(){}m.d(K,{Z:function(){return G}})},5884:function(De,K,m){"use strict";function G(W,A){function U(){return!U.pred.apply(U.thisArg,arguments)}return U.pred=W,U.thisArg=A,U}m.d(K,{f:function(){return G}})},4843:function(De,K,m){"use strict";m.d(K,{U:function(){return A},z:function(){return W}});var G=m(5379);function W(){for(var U=arguments.length,R=new Array(U),P=0;P<U;P++)R[P]=arguments[P];return A(R)}function A(U){return 0===U.length?G.y:1===U.length?U[0]:function(P){return U.reduce(function(E,D){return D(E)},P)}}},797:function(De,K,m){"use strict";m.d(K,{J:function(){return U}});var G="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A="undefined"!=typeof global&&global,U=G||A||W;!function(){if(!U)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(De,K,m){"use strict";m.d(K,{s:function(){return L}});var G=m(3650),W=m(3445),A=m(3720),U=m(1810),R=m(8515),P=m(8955),E=m(7830),D=m(5430),j=m(3821),L=function(k){if(k&&"function"==typeof k[j.L])return(0,U.h)(k);if((0,R.z)(k))return(0,G.V)(k);if((0,P.t)(k))return(0,W.A)(k);if(k&&"function"==typeof k[D.hZ])return(0,A.u)(k);var b=(0,E.K)(k)?"an invalid object":"'".concat(k,"'"),O="You provided ".concat(b," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(O)}},3650:function(De,K,m){"use strict";m.d(K,{V:function(){return G}});var G=function(A){return function(U){for(var R=0,P=A.length;R<P&&!U.closed;R++)U.next(A[R]);U.complete()}}},3720:function(De,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(5430),W=function(U){return function(R){for(var P=U[G.hZ]();;){var E=void 0;try{E=P.next()}catch(D){return R.error(D),R}if(E.done){R.complete();break}if(R.next(E.value),R.closed)break}return"function"==typeof P.return&&R.add(function(){P.return&&P.return()}),R}}},1810:function(De,K,m){"use strict";m.d(K,{h:function(){return W}});var G=m(3821),W=function(U){return function(R){var P=U[G.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(R)}}},3445:function(De,K,m){"use strict";m.d(K,{A:function(){return W}});var G=m(2782),W=function(U){return function(R){return U.then(function(P){R.closed||(R.next(P),R.complete())},function(P){return R.error(P)}).then(null,G.z),R}}},9054:function(De,K,m){"use strict";m.d(K,{D:function(){return U}});var G=m(1869),W=m(3071),A=m(7451);function U(R,P,E,D){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new G.d(R,E,D);if(!j.closed)return P instanceof A.y?P.subscribe(j):(0,W.s)(P)(j)}},5221:function(De,K,m){"use strict";m.d(K,{Y:function(){return U}});var G=m(3489),W=m(7668),A=m(3292);function U(R,P,E){if(R){if(R instanceof G.L)return R;if(R[W.b])return R[W.b]()}return R||P||E?new G.L(R,P,E):new G.L(A.c)}},6650:function(De,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 S},bufferTime:function(){return B},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 se.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 Ko},mergeScan:function(){return ii},min:function(){return xr},multicast:function(){return Yi.O},observeOn:function(){return Eo.QV},onErrorResumeNext:function(){return ca},pairwise:function(){return Ya.G},partition:function(){return Ui},pluck:function(){return qs},publish:function(){return $u},publishBehavior:function(){return Ai},publishLast:function(){return Ki},publishReplay:function(){return en},race:function(){return no},reduce:function(){return Gn},refCount:function(){return Ii.x},repeat:function(){return Jo},repeatWhen:function(){return Rn},retry:function(){return Yn},retryWhen:function(){return Ji},sample:function(){return ai},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 Xo},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 yu},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 bu},timestamp:function(){return le.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 xs},zip:function(){return vl},zipAll:function(){return Ma}});var G=m(384),W=m(7568),A=m(7326),U=m(136),R=m(9388),P=m(5671),E=m(3144),D=m(1177);function j(Ie){return function(_e){return _e.lift(new L(Ie))}}var L=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.closingNotifier=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new v(_e,this.closingNotifier))}}]),Ie}(),v=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).buffer=[],ze.add((0,D.ft)(Te,new D.IY((0,A.Z)(ze)))),ze}return(0,E.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}(D.Ds),k=m(3237),b=m(1120),O=m(3489);function S(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(xe){return xe.lift(new y(Ie,Ge))}}var y=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.bufferSize=Ge,this.startBufferEvery=_e,this.subscriberClass=_e&&Ge!==_e?M:T}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new this.subscriberClass(_e,this.bufferSize,this.startBufferEvery))}}]),Ie}(),T=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).bufferSize=Te,ze.buffer=[],ze}return(0,E.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,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),M=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).bufferSize=Te,mt.startBufferEvery=ze,mt.buffers=[],mt.count=0,mt}return(0,E.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 si=Mt[Rr];si.push(Te),si.length===ze&&(Mt.splice(Rr,1),this.destination.next(si))}}},{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,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),x=m(353),N=m(2866);function B(Ie){var Ge=arguments.length,_e=x.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,P.Z)(this,Ie),this.bufferTimeSpan=Ge,this.bufferCreationInterval=_e,this.maxBufferSize=xe,this.scheduler=Te}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new V(_e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ie}(),$=(0,E.Z)(function Ie(){(0,P.Z)(this,Ie),this.buffer=[]}),V=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,P.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 si={subscriber:(0,A.Z)(wn),context:Rr,bufferTimeSpan:Te};wn.add(Rr.closeAction=Mt.schedule(Q,Te,si))}else{var li={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,li)),wn.add(Mt.schedule(te,ze,$s))}return wn}return(0,E.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],si=Rr.buffer;si.push(Te),si.length==this.maxBufferSize&&(Mt=Rr)}Mt&&this.onBufferFull(Mt)}},{key:"_error",value:function(Te){this.contexts.length=0,(0,k.Z)((0,b.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,k.Z)((0,b.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}(O.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,P.Z)(this,Ie),this.openings=Ge,this.closingSelector=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new je(_e,this.openings,this.closingSelector))}}]),Ie}(),je=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.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,E.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,k.Z)((0,b.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,k.Z)((0,b.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,P.Z)(this,Ie),this.closingSelector=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Tt(_e,this.closingSelector))}}]),Ie}(),Tt=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).closingSelector=Te,ze.subscribing=!1,ze.openBuffer(),ze}return(0,E.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,k.Z)((0,b.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,D.ft)(mt,new D.IY(this))),this.subscribing=!1}}]),_e}(D.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 H(Ie))}}var H=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.durationSelector=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new F(_e,this.durationSelector))}}]),Ie}(),F=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).durationSelector=Te,ze.hasValue=!1,ze}return(0,E.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,D.ft)(ze,new D.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,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,Te)}}}]),_e}(D.Ds),qe=m(13),Be=m(7314),se=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,P.Z)(this,Ie),this.delayDurationSelector=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new an(_e,this.delayDurationSelector))}}]),Ie}(),an=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).delayDurationSelector=Te,ze.completed=!1,ze.delayNotifierSubscriptions=[],ze.index=0,ze}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this)).source=xe,ze.subscriptionDelay=Te,ze}return(0,E.Z)(_e,[{key:"_subscribe",value:function(Te){this.subscriptionDelay.subscribe(new vn(Te,this.source))}}]),_e}(t.y),vn=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this)).parent=xe,ze.source=Te,ze.sourceSubscribed=!1,ze}return(0,E.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}(O.L);function Vt(){return function(Ge){return Ge.lift(new Jt)}}var Jt=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qe(_e))}}]),Ie}(),Qe=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,E.Z)(_e,[{key:"_next",value:function(Te){Te.observe(this.destination)}}]),_e}(O.L);function Fe(Ie,Ge){return function(_e){return _e.lift(new ne(Ie,Ge))}}var ne=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.keySelector=Ge,this.flushes=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ye(_e,this.keySelector,this.flushes))}}]),Ie}(),ye=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).keySelector=Te,mt.values=new Set,ze&&mt.add((0,D.ft)(ze,new D.IY((0,A.Z)(mt)))),mt}return(0,E.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}(D.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,P.Z)(this,Ie),this.predicate=Ge,this.thisArg=_e,this.source=xe}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.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,E.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}(O.L);function At(){return function(Ie){return Ie.lift(new xt)}}var xt=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new tt(_e))}}]),Ie}(),tt=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe){var Te;return(0,P.Z)(this,_e),(Te=Ge.call(this,xe)).hasCompleted=!1,Te.hasSubscription=!1,Te}return(0,E.Z)(_e,[{key:"_next",value:function(Te){this.hasSubscription||(this.hasSubscription=!0,this.add((0,D.ft)(Te,new D.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}(D.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,P.Z)(this,Ie),this.project=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Re(_e,this.project))}}]),Ie}(),Re=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).project=Te,ze.hasSubscription=!1,ze.hasCompleted=!1,ze.index=0,ze}return(0,E.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 D.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,D.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}(D.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,P.Z)(this,Ie),this.project=Ge,this.concurrent=_e,this.scheduler=xe}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new fn(_e,this.project,this.concurrent,this.scheduler))}}]),Ie}(),fn=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.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,E.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(li){ze.error(li)}}else this.buffer.push(Te)}}},{key:"subscribeToProjection",value:function(Te,ze,mt){this.active++,this.destination.add((0,D.ft)(Te,new D.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}(D.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,P.Z)(this,Ie),this.predicate=Ge,this.source=_e,this.yieldIndex=xe,this.thisArg=Te}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.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,E.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}(O.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,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Vn(_e))}}]),Ie}(),Vn=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(){return(0,P.Z)(this,_e),Ge.apply(this,arguments)}return(0,E.Z)(_e,[{key:"_next",value:function(Te){}}]),_e}(O.L);function ir(){return function(Ie){return Ie.lift(new Pr)}}var Pr=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new yi(_e))}}]),Ie}(),yi=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,E.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}(O.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,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ta(_e))}}]),Ie}(),ta=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ge.call(this,xe)}return(0,E.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}(O.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 Ko(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 ii(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,P.Z)(this,Ie),this.accumulator=Ge,this.seed=_e,this.concurrent=xe}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt){var Mt;return(0,P.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,E.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 D.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,D.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}(D.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 Yi=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,P.Z)(this,Ie),this.nextSources=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new da(_e,this.nextSources))}}]),Ie}(),da=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.nextSources=Te,ze}return(0,E.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 D.IY(this),mt=this.destination;mt.add(ze);var Mt=(0,D.ft)(Te,ze);Mt!==ze&&mt.add(Mt)}else this.destination.complete()}}]),_e}(D.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 qs(){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)(oi(Ge,xe))(Te)}}function oi(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 qo=m(8929);function $u(Ie){return Ie?(0,Yi.O)(function(){return new qo.xQ},Ie):(0,Yi.O)(new qo.xQ)}var to=m(591);function Ai(Ie){return function(Ge){return(0,Yi.O)(new to.X(Ie))(Ge)}}var hu=m(2185);function Ki(){return function(Ie){return(0,Yi.O)(new hu.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,Yi.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 qi=m(8896);function Jo(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ge){return 0===Ie?(0,qi.c)():Ie<0?Ge.lift(new Ti(-1,Ge)):Ge.lift(new Ti(Ie-1,Ge))}}var Ti=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.count=Ge,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ro(_e,this.count,this.source))}}]),Ie}(),ro=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,E.Z)(_e,[{key:"complete",value:function(){if(!this.isStopped){var Te=this.source,ze=this.count;if(0===ze)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this);ze>-1&&(this.count=ze-1),Te.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function Rn(Ie){return function(Ge){return Ge.lift(new mu(Ie))}}var mu=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.notifier=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Jr(_e,this.notifier,xe))}}]),Ie}(),Jr=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt.sourceIsBeingSubscribedTo=!0,mt}return(0,E.Z)(_e,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,k.Z)((0,b.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,k.Z)((0,b.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,k.Z)((0,b.Z)(_e.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Te,this}},{key:"subscribeToRetries",value:function(){var Te;this.notifications=new qo.xQ;try{Te=(0,this.notifier)(this.notifications)}catch(mt){return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this)}this.retries=Te,this.retriesSubscription=(0,D.ft)(Te,new D.IY(this))}}]),_e}(D.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,P.Z)(this,Ie),this.count=Ge,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new cn(_e,this.count,this.source))}}]),Ie}(),cn=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).count=Te,mt.source=ze,mt}return(0,E.Z)(_e,[{key:"error",value:function(Te){if(!this.isStopped){var ze=this.source,mt=this.count;if(0===mt)return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,Te);mt>-1&&(this.count=mt-1),ze.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function Ji(Ie){return function(Ge){return Ge.lift(new Oi(Ie,Ge))}}var Oi=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.notifier=Ge,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qi(_e,this.notifier,this.source))}}]),Ie}(),Qi=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).notifier=Te,mt.source=ze,mt}return(0,E.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 qo.xQ;try{mt=(0,this.notifier)(ze)}catch(Rr){return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,Rr)}Mt=(0,D.ft)(mt,new D.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}(D.Ds),Ii=m(4327);function ai(Ie){return function(Ge){return Ge.lift(new Mi(Ie))}}var Mi=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.notifier=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){var Te=new Hi(_e),ze=xe.subscribe(Te);return ze.add((0,D.ft)(this.notifier,new D.IY(Te))),ze}}]),Ie}(),Hi=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ge.apply(this,arguments)).hasValue=!1,xe}return(0,E.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}(D.Ds);function hr(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return function(_e){return _e.lift(new co(Ie,Ge))}}var co=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.period=Ge,this.scheduler=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new fa(_e,this.period,this.scheduler))}}]),Ie}(),fa=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.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,E.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}(O.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,P.Z)(this,Ie),this.compareTo=Ge,this.comparator=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ia(_e,this.compareTo,this.comparator))}}]),Ie}(),ia=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.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,E.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(si){this.destination.error(si)}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}(O.L),hl=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).parent=Te,ze}return(0,E.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}(O.L),Ka=m(8117),qa=m(5154),Qo=m(4450);function Xo(Ie){return function(Ge){return Ge.lift(new _u(Ie,Ge))}}var _u=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.predicate=Ge,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ec(_e,this.predicate,this.source))}}]),Ie}(),ec=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).predicate=Te,mt.source=ze,mt.seenValue=!1,mt.index=0,mt}return(0,E.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 Qo.K)}}]),_e}(O.L),xc=m(1307);function Br(Ie){return function(Ge){return Ge.lift(new gu(Ie))}}var gu=function(){function Ie(Ge){if((0,P.Z)(this,Ie),this._skipCount=Ge,this._skipCount<0)throw new lt.W}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return 0===this._skipCount?xe.subscribe(new O.L(_e)):xe.subscribe(new ml(_e,this._skipCount))}}]),Ie}(),ml=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe))._skipCount=Te,ze._count=0,ze._ring=new Array(Te),ze}return(0,E.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}(O.L);function mf(Ie){return function(Ge){return Ge.lift(new _l(Ie))}}var _l=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.notifier=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new vu(_e,this.notifier))}}]),Ie}(),vu=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).hasValue=!1;var mt=new D.IY((0,A.Z)(ze));ze.add(mt),ze.innerSubscription=mt;var Mt=(0,D.ft)(Te,mt);return Mt!==mt&&(ze.add(Mt),ze.innerSubscription=Mt),ze}return(0,E.Z)(_e,[{key:"_next",value:function(Te){this.hasValue&&(0,k.Z)((0,b.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}(D.Ds);function po(Ie){return function(Ge){return Ge.lift(new ks(Ie))}}var ks=function(){function Ie(Ge){(0,P.Z)(this,Ie),this.predicate=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ul(_e,this.predicate))}}]),Ie}(),Ul=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).predicate=Te,ze.skipping=!0,ze.index=0,ze}return(0,E.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}(O.L),Dc=m(1059),xo=m(3837);function yu(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new Js(Ie,Ge))}}var Js=function(){function Ie(Ge,_e){(0,P.Z)(this,Ie),this.scheduler=Ge,this.delay=_e}return(0,E.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]:x.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,P.Z)(this,Ie),this.duration=Ge,this.scheduler=_e,this.leading=xe,this.trailing=Te}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.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,E.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}(O.L);function Ov(Ie){Ie.subscriber.clearThrottle()}var ih=m(3485),_f=m(854),Ss=m(2697);function bu(Ie,Ge){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.P;return function(xe){var Te=(0,Ss.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,P.Z)(this,Ie),this.waitFor=Ge,this.absoluteTimeout=_e,this.withObservable=xe,this.scheduler=Te}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;return(0,P.Z)(this,_e),(wn=Ge.call(this,xe)).absoluteTimeout=Te,wn.waitFor=ze,wn.withObservable=mt,wn.scheduler=Mt,wn.scheduleTimeout(),wn}return(0,E.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,k.Z)((0,b.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,D.ft)(ze,new D.IY(Te)))}}]),_e}(D.Ds),we=m(1737);function ke(Ie){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return bu(Ie,(0,we._)(new _f.W),Ge)}var le=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,P.Z)(this,Ie),this.windowBoundaries=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){var Te=new Pn(_e),ze=xe.subscribe(Te);return ze.closed||Te.add((0,D.ft)(this.windowBoundaries,new D.IY(Te))),ze}}]),Ie}(),Pn=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe){var Te;return(0,P.Z)(this,_e),(Te=Ge.call(this,xe)).window=new qo.xQ,xe.next(Te.window),Te}return(0,E.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 qo.xQ;ze.next(mt)}}]),_e}(D.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,P.Z)(this,Ie),this.windowSize=Ge,this.startWindowEvery=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new tc(_e,this.windowSize,this.startWindowEvery))}}]),Ie}(),tc=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.Z)(this,_e),(mt=Ge.call(this,xe)).destination=xe,mt.windowSize=Te,mt.startWindowEvery=ze,mt.windows=[new qo.xQ],mt.count=0,xe.next(mt.windows[0]),mt}return(0,E.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,si=0;si<Rr&&!this.closed;si++)wn[si].next(Te);var li=this.count-Mt+1;if(li>=0&&li%ze==0&&!this.closed&&wn.shift().complete(),++this.count%ze==0&&!this.closed){var $s=new qo.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}(O.L),Go=m(4241);function Xs(Ie){var Ge=x.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 $o(Ie,_e,xe,Ge))}}var $o=function(){function Ie(Ge,_e,xe,Te){(0,P.Z)(this,Ie),this.windowTimeSpan=Ge,this.windowCreationInterval=_e,this.maxWindowSize=xe,this.scheduler=Te}return(0,E.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,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ge.apply(this,arguments))._numberOfNextedValues=0,xe}return(0,E.Z)(_e,[{key:"next",value:function(Te){this._numberOfNextedValues++,(0,k.Z)((0,b.Z)(_e.prototype),"next",this).call(this,Te)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),_e}(qo.xQ),nc=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze,mt,Mt){var wn;(0,P.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 si={subscriber:(0,A.Z)(wn),window:Rr,context:null},li={windowTimeSpan:Te,windowCreationInterval:ze,subscriber:(0,A.Z)(wn),scheduler:Mt};wn.add(Mt.schedule($m,Te,si)),wn.add(Mt.schedule(cs,ze,li))}else{var $s={subscriber:(0,A.Z)(wn),window:Rr,windowTimeSpan:Te};wn.add(Mt.schedule(Ta,Te,$s))}return wn}return(0,E.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}(O.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,P.Z)(this,Ie),this.openings=Ge,this.closingSelector=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new t_(_e,this.openings,this.closingSelector))}}]),Ie}(),t_=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;return(0,P.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,E.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,k.Z)((0,b.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,k.Z)((0,b.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 li=new qo.xQ,$s=new pe.w,gf={window:li,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(li)}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,P.Z)(this,Ie),this.closingSelector=Ge}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Es(_e,this.closingSelector))}}]),Ie}(),Es=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te){var ze;return(0,P.Z)(this,_e),(ze=Ge.call(this,xe)).destination=xe,ze.closingSelector=Te,ze.openWindow(),ze}return(0,E.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 qo.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 xs(){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,P.Z)(this,Ie),this.observables=Ge,this.project=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Cd(_e,this.observables,this.project))}}]),Ie}(),Cd=function(Ie){(0,U.Z)(_e,Ie);var Ge=(0,R.Z)(_e);function _e(xe,Te,ze){var mt;(0,P.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 si=Te[Rr];mt.add((0,fe.D)((0,A.Z)(mt),si,void 0,Rr))}return mt}return(0,E.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(De,K,m){"use strict";m.r(K),m.d(K,{TestScheduler:function(){return x}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(7451),D=m(9312),j=m(4096),L=(0,W.Z)(function N(B){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,G.Z)(this,N),this.subscribedFrame=B,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 L(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(X){var $=this.subscriptions,V=$[X];$[X]=new L(V.subscribedFrame,this.scheduler.now())}}]),N}(),k=m(5128),b=function(N){(0,R.Z)(X,N);var B=(0,P.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=B.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}(E.y);(0,k.e)(b,[v]);var S=function(N){(0,R.Z)(X,N);var B=(0,P.Z)(X);function X($,V){var Q;return(0,G.Z)(this,X),(Q=B.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,U.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,k.e)(S,[v]);var y=m(9027),T=m(198),x=function(N){(0,R.Z)(X,N);var B=(0,P.Z)(X);function X($){var V;return(0,G.Z)(this,X),(V=B.call(this,y.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 b(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 S(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:D.P.createNext(pe)})},function(pe){be.push({frame:te.frame-Q,notification:D.P.createError(pe)})},function(){be.push({frame:te.frame-Q,notification:D.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 E.y&&(St=Q.materializeInnerObservable(St,Q.frame)),be.push({frame:Q.frame,notification:D.P.createNext(St)})},function(ot){be.push({frame:Q.frame,notification:D.P.createError(ot)})},function(){be.push({frame:Q.frame,notification:D.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,U.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,T.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,T.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 L(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 L(fe):new L(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 b?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=D.P.createComplete(),Ft(1);break;case"#":pn=D.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=D.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}(y.y)},2301:function(De,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(De,K,m){"use strict";m(5772)},2033:function(De,K){"use strict";var m,G;!function(){var W=K||{};m=[],void 0!==(G=function(){return W}.apply(K,m))&&(De.exports=G),W.default=W;var A="http://www.w3.org/2000/xmlns/",R="http://www.w3.org/2000/svg",E=/url\(["']?(.+?)["']?\)/,D={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},L=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))})},b=function(fe){var ue=Object.keys(D).filter(function(de){return fe.indexOf("."+de)>0}).map(function(de){return D[de]});return ue?ue[0]:(console.error("Unknown font format for "+fe+". Fonts may not be working correctly."),"application/octet-stream")},S=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},M=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})},B=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(E,'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(E),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:b(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){L(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 B(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||S(fe,ue,"width"),height:ge||S(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",R),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?R:"http://www.w3.org/1999/xhtml")}),!rt)return te(pe,fe).then(function(Wt){var H=document.createElement("style");H.setAttribute("type","text/css"),H.innerHTML="<![CDATA[\n"+Wt+"\n]]>";var F=document.createElement("defs");F.appendChild(H),Ot.insertBefore(F,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 L(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){L(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(M(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=M(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(De,K,m){var G=m(2472),W=Object.prototype.hasOwnProperty,A="undefined"!=typeof Map;function U(){this._array=[],this._set=A?new Map:Object.create(null)}U.fromArray=function(P,E){for(var D=new U,j=0,L=P.length;j<L;j++)D.add(P[j],E);return D},U.prototype.size=function(){return A?this._set.size:Object.getOwnPropertyNames(this._set).length},U.prototype.add=function(P,E){var D=A?P:G.toSetString(P),j=A?this.has(P):W.call(this._set,D),L=this._array.length;(!j||E)&&this._array.push(P),j||(A?this._set.set(P,L):this._set[D]=L)},U.prototype.has=function(P){if(A)return this._set.has(P);var E=G.toSetString(P);return W.call(this._set,E)},U.prototype.indexOf=function(P){if(A){var E=this._set.get(P);if(E>=0)return E}else{var D=G.toSetString(P);if(W.call(this._set,D))return this._set[D]}throw new Error('"'+P+'" is not in the set.')},U.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw new Error("No element indexed by "+P)},U.prototype.toArray=function(){return this._array.slice()},K.I=U},3357:function(De,K,m){var G=m(5773);K.encode=function(j){var v,L="",k=function P(D){return D<0?1+(-D<<1):0+(D<<1)}(j);do{v=31&k,(k>>>=5)>0&&(v|=32),L+=G.encode(v)}while(k>0);return L},K.decode=function(j,L,v){var S,y,k=j.length,b=0,O=0;do{if(L>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(y=G.decode(j.charCodeAt(L++))))throw new Error("Invalid base64 digit: "+j.charAt(L-1));S=!!(32&y),b+=(y&=31)<<O,O+=5}while(S);v.value=function E(D){var L=D>>1;return 1==(1&D)?-L:L}(b),v.rest=L}},5773:function(De,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(De,K,m){var G=m(2472);function A(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}A.prototype.unsortedForEach=function(R,P){this._array.forEach(R,P)},A.prototype.add=function(R){!function W(U,R){var P=U.generatedLine,E=R.generatedLine,D=U.generatedColumn,j=R.generatedColumn;return E>P||E==P&&j>=D||G.compareByGeneratedPositionsInflated(U,R)<=0}(this._last,R)?(this._sorted=!1,this._array.push(R)):(this._last=R,this._array.push(R))},A.prototype.toArray=function(){return this._sorted||(this._array.sort(G.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},K.H=A},3058:function(De,K,m){var G=m(3357),W=m(2472),A=m(6842).I,U=m(1490).H;function R(P){P||(P={}),this._file=W.getArg(P,"file",null),this._sourceRoot=W.getArg(P,"sourceRoot",null),this._skipValidation=W.getArg(P,"skipValidation",!1),this._sources=new A,this._names=new A,this._mappings=new U,this._sourcesContents=null}R.prototype._version=3,R.fromSourceMap=function(E){var D=E.sourceRoot,j=new R({file:E.file,sourceRoot:D});return E.eachMapping(function(L){var v={generated:{line:L.generatedLine,column:L.generatedColumn}};null!=L.source&&(v.source=L.source,null!=D&&(v.source=W.relative(D,v.source)),v.original={line:L.originalLine,column:L.originalColumn},null!=L.name&&(v.name=L.name)),j.addMapping(v)}),E.sources.forEach(function(L){var v=L;null!==D&&(v=W.relative(D,L)),j._sources.has(v)||j._sources.add(v);var k=E.sourceContentFor(L);null!=k&&j.setSourceContent(L,k)}),j},R.prototype.addMapping=function(E){var D=W.getArg(E,"generated"),j=W.getArg(E,"original",null),L=W.getArg(E,"source",null),v=W.getArg(E,"name",null);this._skipValidation||this._validateMapping(D,j,L,v),null!=L&&(L=String(L),this._sources.has(L)||this._sources.add(L)),null!=v&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:D.line,generatedColumn:D.column,originalLine:null!=j&&j.line,originalColumn:null!=j&&j.column,source:L,name:v})},R.prototype.setSourceContent=function(E,D){var j=E;null!=this._sourceRoot&&(j=W.relative(this._sourceRoot,j)),null!=D?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(j)]=D):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(j)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},R.prototype.applySourceMap=function(E,D,j){var L=D;if(null==D){if(null==E.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');L=E.file}var v=this._sourceRoot;null!=v&&(L=W.relative(v,L));var k=new A,b=new A;this._mappings.unsortedForEach(function(O){if(O.source===L&&null!=O.originalLine){var S=E.originalPositionFor({line:O.originalLine,column:O.originalColumn});null!=S.source&&(O.source=S.source,null!=j&&(O.source=W.join(j,O.source)),null!=v&&(O.source=W.relative(v,O.source)),O.originalLine=S.line,O.originalColumn=S.column,null!=S.name&&(O.name=S.name))}var y=O.source;null!=y&&!k.has(y)&&k.add(y);var T=O.name;null!=T&&!b.has(T)&&b.add(T)},this),this._sources=k,this._names=b,E.sources.forEach(function(O){var S=E.sourceContentFor(O);null!=S&&(null!=j&&(O=W.join(j,O)),null!=v&&(O=W.relative(v,O)),this.setSourceContent(O,S))},this)},R.prototype._validateMapping=function(E,D,j,L){if(D&&"number"!=typeof D.line&&"number"!=typeof D.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(!(E&&"line"in E&&"column"in E&&E.line>0&&E.column>=0)||D||j||L){if(E&&"line"in E&&"column"in E&&D&&"line"in D&&"column"in D&&E.line>0&&E.column>=0&&D.line>0&&D.column>=0&&j)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:E,source:j,original:D,name:L}))}},R.prototype._serializeMappings=function(){for(var O,S,y,T,E=0,D=1,j=0,L=0,v=0,k=0,b="",M=this._mappings.toArray(),x=0,N=M.length;x<N;x++){if(O="",(S=M[x]).generatedLine!==D)for(E=0;S.generatedLine!==D;)O+=";",D++;else if(x>0){if(!W.compareByGeneratedPositionsInflated(S,M[x-1]))continue;O+=","}O+=G.encode(S.generatedColumn-E),E=S.generatedColumn,null!=S.source&&(T=this._sources.indexOf(S.source),O+=G.encode(T-k),k=T,O+=G.encode(S.originalLine-1-L),L=S.originalLine-1,O+=G.encode(S.originalColumn-j),j=S.originalColumn,null!=S.name&&(y=this._names.indexOf(S.name),O+=G.encode(y-v),v=y)),b+=O}return b},R.prototype._generateSourcesContent=function(E,D){return E.map(function(j){if(!this._sourcesContents)return null;null!=D&&(j=W.relative(D,j));var L=W.toSetString(j);return Object.prototype.hasOwnProperty.call(this._sourcesContents,L)?this._sourcesContents[L]:null},this)},R.prototype.toJSON=function(){var E={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(E.file=this._file),null!=this._sourceRoot&&(E.sourceRoot=this._sourceRoot),this._sourcesContents&&(E.sourcesContent=this._generateSourcesContent(E.sources,E.sourceRoot)),E},R.prototype.toString=function(){return JSON.stringify(this.toJSON())},K.h=R},2472:function(De,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 U($){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=U;var E=function P($){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,U(te)):Q});function D($,V){""===$&&($="."),""===V&&(V=".");var Q=A(V),te=A($);if(te&&($=te.path||"/"),Q&&!Q.scheme)return te&&(Q.scheme=te.scheme),U(Q);if(Q||V.match(W))return V;if(te&&!te.host&&!te.path)return te.host=V,U(te);var be="/"===V.charAt(0)?V:E($.replace(/\/+$/,"")+"/"+V);return te?(te.path=be,U(te)):be}K.normalize=E,K.join=D,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 L=!("__proto__"in Object.create(null));function v($){return $}function O($){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 x($,V){return $===V?0:null===$?1:null===V?-1:$>V?1:-1}K.toSetString=L?v:function k($){return O($)?"$"+$:$},K.fromSetString=L?v:function b($){return O($)?$.slice(1):$},K.compareByOriginalPositions=function S($,V,Q){var te=x($.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:x($.name,V.name)},K.compareByOriginalPositionsNoSource=function y($,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:x($.name,V.name)},K.compareByGeneratedPositionsDeflated=function T($,V,Q){var te=$.generatedLine-V.generatedLine;return 0!==te||(0!==(te=$.generatedColumn-V.generatedColumn)||Q)||0!==(te=x($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:x($.name,V.name)},K.compareByGeneratedPositionsDeflatedNoLine=function M($,V,Q){var te=$.generatedColumn-V.generatedColumn;return 0!==te||Q||0!==(te=x($.source,V.source))||0!==(te=$.originalLine-V.originalLine)||0!==(te=$.originalColumn-V.originalColumn)?te:x($.name,V.name)},K.compareByGeneratedPositionsInflated=function N($,V){var Q=$.generatedLine-V.generatedLine;return 0!==Q||0!==(Q=$.generatedColumn-V.generatedColumn)||0!==(Q=x($.source,V.source))||0!==(Q=$.originalLine-V.originalLine)||0!==(Q=$.originalColumn-V.originalColumn)?Q:x($.name,V.name)},K.parseSourceMapInput=function B($){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=D(U(te),V)}return E(V)}},1452:function(De){De.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(y,T){var M=y[0],x=y[1],N=y[2],B=y[3];x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&N|~x&B)+T[0]-680876936|0)<<7|M>>>25)+x|0)&x|~M&N)+T[1]-389564586|0)<<12|B>>>20)+M|0)&M|~B&x)+T[2]+606105819|0)<<17|N>>>15)+B|0)&B|~N&M)+T[3]-1044525330|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&N|~x&B)+T[4]-176418897|0)<<7|M>>>25)+x|0)&x|~M&N)+T[5]+1200080426|0)<<12|B>>>20)+M|0)&M|~B&x)+T[6]-1473231341|0)<<17|N>>>15)+B|0)&B|~N&M)+T[7]-45705983|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&N|~x&B)+T[8]+1770035416|0)<<7|M>>>25)+x|0)&x|~M&N)+T[9]-1958414417|0)<<12|B>>>20)+M|0)&M|~B&x)+T[10]-42063|0)<<17|N>>>15)+B|0)&B|~N&M)+T[11]-1990404162|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&N|~x&B)+T[12]+1804603682|0)<<7|M>>>25)+x|0)&x|~M&N)+T[13]-40341101|0)<<12|B>>>20)+M|0)&M|~B&x)+T[14]-1502002290|0)<<17|N>>>15)+B|0)&B|~N&M)+T[15]+1236535329|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&B|N&~B)+T[1]-165796510|0)<<5|M>>>27)+x|0)&N|x&~N)+T[6]-1069501632|0)<<9|B>>>23)+M|0)&x|M&~x)+T[11]+643717713|0)<<14|N>>>18)+B|0)&M|B&~M)+T[0]-373897302|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&B|N&~B)+T[5]-701558691|0)<<5|M>>>27)+x|0)&N|x&~N)+T[10]+38016083|0)<<9|B>>>23)+M|0)&x|M&~x)+T[15]-660478335|0)<<14|N>>>18)+B|0)&M|B&~M)+T[4]-405537848|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&B|N&~B)+T[9]+568446438|0)<<5|M>>>27)+x|0)&N|x&~N)+T[14]-1019803690|0)<<9|B>>>23)+M|0)&x|M&~x)+T[3]-187363961|0)<<14|N>>>18)+B|0)&M|B&~M)+T[8]+1163531501|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x&B|N&~B)+T[13]-1444681467|0)<<5|M>>>27)+x|0)&N|x&~N)+T[2]-51403784|0)<<9|B>>>23)+M|0)&x|M&~x)+T[7]+1735328473|0)<<14|N>>>18)+B|0)&M|B&~M)+T[12]-1926607734|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x^N^B)+T[5]-378558|0)<<4|M>>>28)+x|0)^x^N)+T[8]-2022574463|0)<<11|B>>>21)+M|0)^M^x)+T[11]+1839030562|0)<<16|N>>>16)+B|0)^B^M)+T[14]-35309556|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x^N^B)+T[1]-1530992060|0)<<4|M>>>28)+x|0)^x^N)+T[4]+1272893353|0)<<11|B>>>21)+M|0)^M^x)+T[7]-155497632|0)<<16|N>>>16)+B|0)^B^M)+T[10]-1094730640|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x^N^B)+T[13]+681279174|0)<<4|M>>>28)+x|0)^x^N)+T[0]-358537222|0)<<11|B>>>21)+M|0)^M^x)+T[3]-722521979|0)<<16|N>>>16)+B|0)^B^M)+T[6]+76029189|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((B=((B+=((M=((M+=(x^N^B)+T[9]-640364487|0)<<4|M>>>28)+x|0)^x^N)+T[12]-421815835|0)<<11|B>>>21)+M|0)^M^x)+T[15]+530742520|0)<<16|N>>>16)+B|0)^B^M)+T[2]-995338651|0)<<23|x>>>9)+N|0,x=((x+=((B=((B+=(x^((M=((M+=(N^(x|~B))+T[0]-198630844|0)<<6|M>>>26)+x|0)|~N))+T[7]+1126891415|0)<<10|B>>>22)+M|0)^((N=((N+=(M^(B|~x))+T[14]-1416354905|0)<<15|N>>>17)+B|0)|~M))+T[5]-57434055|0)<<21|x>>>11)+N|0,x=((x+=((B=((B+=(x^((M=((M+=(N^(x|~B))+T[12]+1700485571|0)<<6|M>>>26)+x|0)|~N))+T[3]-1894986606|0)<<10|B>>>22)+M|0)^((N=((N+=(M^(B|~x))+T[10]-1051523|0)<<15|N>>>17)+B|0)|~M))+T[1]-2054922799|0)<<21|x>>>11)+N|0,x=((x+=((B=((B+=(x^((M=((M+=(N^(x|~B))+T[8]+1873313359|0)<<6|M>>>26)+x|0)|~N))+T[15]-30611744|0)<<10|B>>>22)+M|0)^((N=((N+=(M^(B|~x))+T[6]-1560198380|0)<<15|N>>>17)+B|0)|~M))+T[13]+1309151649|0)<<21|x>>>11)+N|0,x=((x+=((B=((B+=(x^((M=((M+=(N^(x|~B))+T[4]-145523070|0)<<6|M>>>26)+x|0)|~N))+T[11]-1120210379|0)<<10|B>>>22)+M|0)^((N=((N+=(M^(B|~x))+T[2]+718787259|0)<<15|N>>>17)+B|0)|~M))+T[9]-343485551|0)<<21|x>>>11)+N|0,y[0]=M+y[0]|0,y[1]=x+y[1]|0,y[2]=N+y[2]|0,y[3]=B+y[3]|0}function U(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y.charCodeAt(M)+(y.charCodeAt(M+1)<<8)+(y.charCodeAt(M+2)<<16)+(y.charCodeAt(M+3)<<24);return T}function R(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y[M]+(y[M+1]<<8)+(y[M+2]<<16)+(y[M+3]<<24);return T}function P(y){var x,N,B,X,$,V,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=T;x+=64)A(M,U(y.substring(x-64,x)));for(N=(y=y.substring(x-64)).length,B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<N;x+=1)B[x>>2]|=y.charCodeAt(x)<<(x%4<<3);if(B[x>>2]|=128<<(x%4<<3),x>55)for(A(M,B),x=0;x<16;x+=1)B[x]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,B[14]=$,B[15]=V,A(M,B),M}function E(y){var x,N,B,X,$,V,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=T;x+=64)A(M,R(y.subarray(x-64,x)));for(N=(y=x-64<T?y.subarray(x-64):new Uint8Array(0)).length,B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<N;x+=1)B[x>>2]|=y[x]<<(x%4<<3);if(B[x>>2]|=128<<(x%4<<3),x>55)for(A(M,B),x=0;x<16;x+=1)B[x]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),V=parseInt(X[1],16)||0,B[14]=$,B[15]=V,A(M,B),M}function D(y){var M,T="";for(M=0;M<4;M+=1)T+=G[y>>8*M+4&15]+G[y>>8*M&15];return T}function j(y){var T;for(T=0;T<y.length;T+=1)y[T]=D(y[T]);return y.join("")}function L(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function v(y,T){var B,M=y.length,x=new ArrayBuffer(M),N=new Uint8Array(x);for(B=0;B<M;B+=1)N[B]=y.charCodeAt(B);return T?N:x}function k(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function b(y,T,M){var x=new Uint8Array(y.byteLength+T.byteLength);return x.set(new Uint8Array(y)),x.set(new Uint8Array(T),y.byteLength),M?x:x.buffer}function O(y){var x,T=[],M=y.length;for(x=0;x<M-1;x+=2)T.push(parseInt(y.substr(x,2),16));return String.fromCharCode.apply(String,T)}function S(){this.reset()}return j(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function y(T,M){return(T=0|T||0)<0?Math.max(T+M,0):Math.min(T,M)}ArrayBuffer.prototype.slice=function(T,M){var X,$,V,Q,x=this.byteLength,N=y(T,x),B=x;return M!==K&&(B=y(M,x)),N>B?new ArrayBuffer(0):(X=B-N,$=new ArrayBuffer(X),V=new Uint8Array($),Q=new Uint8Array(this,N,X),V.set(Q),$)}}(),S.prototype.append=function(y){return this.appendBinary(L(y)),this},S.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var M,T=this._buff.length;for(M=64;M<=T;M+=64)A(this._hash,U(this._buff.substring(M-64,M)));return this._buff=this._buff.substring(M-64),this},S.prototype.end=function(y){var x,B,T=this._buff,M=T.length,N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(x=0;x<M;x+=1)N[x>>2]|=T.charCodeAt(x)<<(x%4<<3);return this._finish(N,M),B=j(this._hash),y&&(B=O(B)),this.reset(),B},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(y,T){var x,N,B,M=T;if(y[M>>2]|=128<<(M%4<<3),M>55)for(A(this._hash,y),M=0;M<16;M+=1)y[M]=0;x=(x=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(x[2],16),B=parseInt(x[1],16)||0,y[14]=N,y[15]=B,A(this._hash,y)},S.hash=function(y,T){return S.hashBinary(L(y),T)},S.hashBinary=function(y,T){var x=j(P(y));return T?O(x):x},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(y){var x,T=b(this._buff.buffer,y,!0),M=T.length;for(this._length+=y.byteLength,x=64;x<=M;x+=64)A(this._hash,R(T.subarray(x-64,x)));return this._buff=x-64<M?new Uint8Array(T.buffer.slice(x-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(y){var N,B,T=this._buff,M=T.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(N=0;N<M;N+=1)x[N>>2]|=T[N]<<(N%4<<3);return this._finish(x,M),B=j(this._hash),y&&(B=O(B)),this.reset(),B},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var y=S.prototype.getState.call(this);return y.buff=k(y.buff),y},S.ArrayBuffer.prototype.setState=function(y){return y.buff=v(y.buff,!0),S.prototype.setState.call(this,y)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(y,T){var x=j(E(new Uint8Array(y)));return T?O(x):x},S}()},986:function(De){window,De.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,U){G.o(W,A)||Object.defineProperty(W,A,{enumerable:!0,get:U})},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 U=Object.create(null);if(G.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:W}),2&A&&"string"!=typeof W)for(var R in W)G.d(U,R,function(P){return W[P]}.bind(null,R));return U},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 U(R,P){this._disposables=[],this._socket=R,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return U.prototype.activate=function(R){var P=this;this._disposables.push(A(this._socket,"message",function(E){var D=E.data;R.write("string"==typeof D?D:new Uint8Array(D))})),this._bidirectional&&(this._disposables.push(R.onData(function(E){return P._sendData(E)})),this._disposables.push(R.onBinary(function(E){return P._sendBinary(E)}))),this._disposables.push(A(this._socket,"close",function(){return P.dispose()})),this._disposables.push(A(this._socket,"error",function(){return P.dispose()}))},U.prototype.dispose=function(){this._disposables.forEach(function(R){return R.dispose()})},U.prototype._sendData=function(R){1===this._socket.readyState&&this._socket.send(R)},U.prototype._sendBinary=function(R){if(1===this._socket.readyState){for(var P=new Uint8Array(R.length),E=0;E<R.length;++E)P[E]=255&R.charCodeAt(E);this._socket.send(P)}},U}();function A(U,R,P){return U.addEventListener(R,P),{dispose:function(){P&&U.removeEventListener(R,P)}}}m.AttachAddon=W}])},9162:function(De){self,De.exports=function(){"use strict";var K={775:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.FitAddon=void 0;var U=function(){function R(){}return R.prototype.activate=function(P){this._terminal=P},R.prototype.dispose=function(){},R.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var E=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(E._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},R.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var P=this._terminal._core;if(0!==P._renderService.dimensions.actualCellWidth&&0!==P._renderService.dimensions.actualCellHeight){var E=window.getComputedStyle(this._terminal.element.parentElement),D=parseInt(E.getPropertyValue("height")),j=Math.max(0,parseInt(E.getPropertyValue("width"))),L=window.getComputedStyle(this._terminal.element),v=D-(parseInt(L.getPropertyValue("padding-top"))+parseInt(L.getPropertyValue("padding-bottom"))),k=j-(parseInt(L.getPropertyValue("padding-right"))+parseInt(L.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(k/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(v/P._renderService.dimensions.actualCellHeight))}}}},R}();A.FitAddon=U}},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(De){self,De.exports=function(){"use strict";var K={4567:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.AccessibilityManager=void 0;var E=U(9042),D=U(6114),j=U(9924),L=U(3656),v=U(844),k=U(5596),b=U(9631),O=function(S){function y(T,M){var x=S.call(this)||this;x._terminal=T,x._renderService=M,x._liveRegionLineCount=0,x._charsToConsume=[],x._charsToAnnounce="",x._accessibilityTreeRoot=document.createElement("div"),x._accessibilityTreeRoot.classList.add("xterm-accessibility"),x._accessibilityTreeRoot.tabIndex=0,x._rowContainer=document.createElement("div"),x._rowContainer.setAttribute("role","list"),x._rowContainer.classList.add("xterm-accessibility-tree"),x._rowElements=[];for(var N=0;N<x._terminal.rows;N++)x._rowElements[N]=x._createAccessibilityTreeNode(),x._rowContainer.appendChild(x._rowElements[N]);if(x._topBoundaryFocusListener=function(B){return x._onBoundaryFocus(B,0)},x._bottomBoundaryFocusListener=function(B){return x._onBoundaryFocus(B,1)},x._rowElements[0].addEventListener("focus",x._topBoundaryFocusListener),x._rowElements[x._rowElements.length-1].addEventListener("focus",x._bottomBoundaryFocusListener),x._refreshRowsDimensions(),x._accessibilityTreeRoot.appendChild(x._rowContainer),x._renderRowsDebouncer=new j.TimeBasedDebouncer(x._renderRows.bind(x)),x._refreshRows(),x._liveRegion=document.createElement("div"),x._liveRegion.classList.add("live-region"),x._liveRegion.setAttribute("aria-live","assertive"),x._accessibilityTreeRoot.appendChild(x._liveRegion),!x._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return x._terminal.element.insertAdjacentElement("afterbegin",x._accessibilityTreeRoot),x.register(x._renderRowsDebouncer),x.register(x._terminal.onResize(function(B){return x._onResize(B.rows)})),x.register(x._terminal.onRender(function(B){return x._refreshRows(B.start,B.end)})),x.register(x._terminal.onScroll(function(){return x._refreshRows()})),x.register(x._terminal.onA11yChar(function(B){return x._onChar(B)})),x.register(x._terminal.onLineFeed(function(){return x._onChar("\n")})),x.register(x._terminal.onA11yTab(function(B){return x._onTab(B)})),x.register(x._terminal.onKey(function(B){return x._onKey(B.key)})),x.register(x._terminal.onBlur(function(){return x._clearLiveRegion()})),x.register(x._renderService.onDimensionsChange(function(){return x._refreshRowsDimensions()})),x._screenDprMonitor=new k.ScreenDprMonitor,x.register(x._screenDprMonitor),x._screenDprMonitor.setListener(function(){return x._refreshRowsDimensions()}),x.register((0,L.addDisposableDomListener)(window,"resize",function(){return x._refreshRowsDimensions()})),x}return P(y,S),y.prototype.dispose=function(){S.prototype.dispose.call(this),(0,b.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},y.prototype._onBoundaryFocus=function(T,M){var x=T.target,N=this._rowElements[0===M?1:this._rowElements.length-2];if(x.getAttribute("aria-posinset")!==(0===M?"1":""+this._terminal.buffer.lines.length)&&T.relatedTarget===N){var B,X;if(0===M?(B=x,X=this._rowElements.pop(),this._rowContainer.removeChild(X)):(B=this._rowElements.shift(),X=x,this._rowContainer.removeChild(B)),B.removeEventListener("focus",this._topBoundaryFocusListener),X.removeEventListener("focus",this._bottomBoundaryFocusListener),0===M){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===M?-1:1),this._rowElements[0===M?1:this._rowElements.length-2].focus(),T.preventDefault(),T.stopImmediatePropagation()}},y.prototype._onResize=function(T){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var M=this._rowContainer.children.length;M<this._terminal.rows;M++)this._rowElements[M]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[M]);for(;this._rowElements.length>T;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},y.prototype._createAccessibilityTreeNode=function(){var T=document.createElement("div");return T.setAttribute("role","listitem"),T.tabIndex=-1,this._refreshRowDimensions(T),T},y.prototype._onTab=function(T){for(var M=0;M<T;M++)this._onChar(" ")},y.prototype._onChar=function(T){var M=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==T&&(this._charsToAnnounce+=T):this._charsToAnnounce+=T,"\n"===T&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=E.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){M._accessibilityTreeRoot.appendChild(M._liveRegion)},0))},y.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&(0,b.removeElementFromParent)(this._liveRegion)},y.prototype._onKey=function(T){this._clearLiveRegion(),this._charsToConsume.push(T)},y.prototype._refreshRows=function(T,M){this._renderRowsDebouncer.refresh(T,M,this._terminal.rows)},y.prototype._renderRows=function(T,M){for(var x=this._terminal.buffer,N=x.lines.length.toString(),B=T;B<=M;B++){var X=x.translateBufferLineToString(x.ydisp+B,!0),$=(x.ydisp+B+1).toString(),V=this._rowElements[B];V&&(0===X.length?V.innerText="\xa0":V.textContent=X,V.setAttribute("aria-posinset",$),V.setAttribute("aria-setsize",N))}this._announceCharacters()},y.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var T=0;T<this._terminal.rows;T++)this._refreshRowDimensions(this._rowElements[T])}},y.prototype._refreshRowDimensions=function(T){T.style.height=this._renderService.dimensions.actualCellHeight+"px"},y.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},y}(v.Disposable);A.AccessibilityManager=O},3614:function(W,A){function U(D){return D.replace(/\r?\n/g,"\r")}function R(D,j){return j?"\x1b[200~"+D+"\x1b[201~":D}function P(D,j,L){D=R(D=U(D),L.decPrivateModes.bracketedPasteMode),L.triggerDataEvent(D,!0),j.value=""}function E(D,j,L){var v=L.getBoundingClientRect(),k=D.clientX-v.left-10,b=D.clientY-v.top-10;j.style.width="20px",j.style.height="20px",j.style.left=k+"px",j.style.top=b+"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=U,A.bracketTextForPaste=R,A.copyHandler=function(D,j){D.clipboardData&&D.clipboardData.setData("text/plain",j.selectionText),D.preventDefault()},A.handlePasteEvent=function(D,j,L){D.stopPropagation(),D.clipboardData&&P(D.clipboardData.getData("text/plain"),j,L)},A.paste=P,A.moveTextAreaUnderMouseCursor=E,A.rightClickHandler=function(D,j,L,v,k){E(D,j,L),k&&v.rightClickSelect(D),j.value=v.selectionText,j.select()}},7239:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ColorContrastCache=void 0;var U=function(){function R(){this._color={},this._rgba={}}return R.prototype.clear=function(){this._color={},this._rgba={}},R.prototype.setCss=function(P,E,D){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][E]=D},R.prototype.getCss=function(P,E){return this._rgba[P]?this._rgba[P][E]:void 0},R.prototype.setColor=function(P,E,D){this._color[P]||(this._color[P]={}),this._color[P][E]=D},R.prototype.getColor=function(P,E){return this._color[P]?this._color[P][E]:void 0},R}();A.ColorContrastCache=U},5680:function(W,A,U){var R=this&&this.__read||function(O,S){var y="function"==typeof Symbol&&O[Symbol.iterator];if(!y)return O;var T,M,x=y.call(O),N=[];try{for(;(void 0===S||S-- >0)&&!(T=x.next()).done;)N.push(T.value)}catch(B){M={error:B}}finally{try{T&&!T.done&&(y=x.return)&&y.call(x)}finally{if(M)throw M.error}}return N};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorManager=A.DEFAULT_ANSI_COLORS=void 0;var P=U(8055),E=U(7239),D=P.css.toColor("#ffffff"),j=P.css.toColor("#000000"),L=P.css.toColor("#ffffff"),v=P.css.toColor("#000000"),k={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};A.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var O=[P.css.toColor("#2e3436"),P.css.toColor("#cc0000"),P.css.toColor("#4e9a06"),P.css.toColor("#c4a000"),P.css.toColor("#3465a4"),P.css.toColor("#75507b"),P.css.toColor("#06989a"),P.css.toColor("#d3d7cf"),P.css.toColor("#555753"),P.css.toColor("#ef2929"),P.css.toColor("#8ae234"),P.css.toColor("#fce94f"),P.css.toColor("#729fcf"),P.css.toColor("#ad7fa8"),P.css.toColor("#34e2e2"),P.css.toColor("#eeeeec")],S=[0,95,135,175,215,255],y=0;y<216;y++){var T=S[y/36%6|0],M=S[y/6%6|0],x=S[y%6];O.push({css:P.channels.toCss(T,M,x),rgba:P.channels.toRgba(T,M,x)})}for(y=0;y<24;y++){var N=8+10*y;O.push({css:P.channels.toCss(N,N,N),rgba:P.channels.toRgba(N,N,N)})}return O}());var b=function(){function O(S,y){this.allowTransparency=y;var T=S.createElement("canvas");T.width=1,T.height=1;var M=T.getContext("2d");if(!M)throw new Error("Could not get rendering context");this._ctx=M,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new E.ColorContrastCache,this.colors={foreground:D,background:j,cursor:L,cursorAccent:v,selectionTransparent:k,selectionOpaque:P.color.blend(j,k),selectionForeground:void 0,ansi:A.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return O.prototype.onOptionsChange=function(S){"minimumContrastRatio"===S&&this._contrastCache.clear()},O.prototype.setTheme=function(S){void 0===S&&(S={}),this.colors.foreground=this._parseColor(S.foreground,D),this.colors.background=this._parseColor(S.background,j),this.colors.cursor=this._parseColor(S.cursor,L,!0),this.colors.cursorAccent=this._parseColor(S.cursorAccent,v,!0),this.colors.selectionTransparent=this._parseColor(S.selection,k,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent);var y={css:"",rgba:0};this.colors.selectionForeground=S.selectionForeground?this._parseColor(S.selectionForeground,y):void 0,this.colors.selectionForeground===y&&(this.colors.selectionForeground=void 0),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(S.black,A.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(S.red,A.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(S.green,A.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(S.yellow,A.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(S.blue,A.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(S.magenta,A.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(S.cyan,A.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(S.white,A.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(S.brightBlack,A.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(S.brightRed,A.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(S.brightGreen,A.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(S.brightYellow,A.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(S.brightBlue,A.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(S.brightMagenta,A.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(S.brightCyan,A.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(S.brightWhite,A.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},O.prototype.restoreColor=function(S){if(void 0!==S)switch(S){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[S]=this._restoreColors.ansi[S]}else for(var y=0;y<this._restoreColors.ansi.length;++y)this.colors.ansi[y]=this._restoreColors.ansi[y]},O.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},O.prototype._parseColor=function(S,y,T){if(void 0===T&&(T=this.allowTransparency),void 0===S)return y;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=S,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+S+" is invalid using fallback "+y.css),y;this._ctx.fillRect(0,0,1,1);var M=this._ctx.getImageData(0,0,1,1).data;if(255!==M[3]){if(!T)return console.warn("Color: "+S+" is using transparency, but allowTransparency is false. Using fallback "+y.css+"."),y;var x=R(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Q){return Number(Q)}),4),N=x[0],B=x[1],X=x[2],$=x[3],V=Math.round(255*$);return{rgba:P.channels.toRgba(N,B,X,V),css:S}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(M[0],M[1],M[2],M[3])}},O}();A.ColorManager=b},9631:function(W,A){var U=this&&this.__values||function(R){var P="function"==typeof Symbol&&Symbol.iterator,E=P&&R[P],D=0;if(E)return E.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&D>=R.length&&(R=void 0),{value:R&&R[D++],done:!R}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.removeElementFromParent=void 0,A.removeElementFromParent=function(){for(var R,P,E,D=[],j=0;j<arguments.length;j++)D[j]=arguments[j];try{for(var L=U(D),v=L.next();!v.done;v=L.next()){var k=v.value;null===(E=null==k?void 0:k.parentElement)||void 0===E||E.removeChild(k)}}catch(b){R={error:b}}finally{try{v&&!v.done&&(P=L.return)&&P.call(L)}finally{if(R)throw R.error}}}},3656:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.addDisposableDomListener=void 0,A.addDisposableDomListener=function(U,R,P,E){U.addEventListener(R,P,E);var D=!1;return{dispose:function(){D||(D=!0,U.removeEventListener(R,P,E))}}}},3551:function(W,A,U){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZone=A.Linkifier=void 0;var E=U(8460),D=U(2585),j=function(){function v(k,b,O){this._bufferService=k,this._logService=b,this._unicodeService=O,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new E.EventEmitter,this._onHideLinkUnderline=new E.EventEmitter,this._onLinkTooltip=new E.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(k,b){this._element=k,this._mouseZoneManager=b},v.prototype.linkifyRows=function(k,b){var O=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=k,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,k),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(k,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return O._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var k=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var b=k.ydisp+this._rowsToLinkify.start;if(!(b>=k.lines.length)){for(var O=k.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,S=Math.ceil(2e3/this._bufferService.cols),y=this._bufferService.buffer.iterator(!1,b,O,S,S);y.hasNext();)for(var T=y.next(),M=0;M<this._linkMatchers.length;M++)this._doLinkifyRow(T.range.first,T.content,this._linkMatchers[M]);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(k,b,O){if(void 0===O&&(O={}),!b)throw new Error("handler must be defined");var S={id:this._nextLinkMatcherId++,regex:k,handler:b,matchIndex:O.matchIndex,validationCallback:O.validationCallback,hoverTooltipCallback:O.tooltipCallback,hoverLeaveCallback:O.leaveCallback,willLinkActivate:O.willLinkActivate,priority:O.priority||0};return this._addLinkMatcherToList(S),S.id},v.prototype._addLinkMatcherToList=function(k){if(0!==this._linkMatchers.length){for(var b=this._linkMatchers.length-1;b>=0;b--)if(k.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,k);this._linkMatchers.splice(0,0,k)}else this._linkMatchers.push(k)},v.prototype.deregisterLinkMatcher=function(k){for(var b=0;b<this._linkMatchers.length;b++)if(this._linkMatchers[b].id===k)return this._linkMatchers.splice(b,1),!0;return!1},v.prototype._doLinkifyRow=function(k,b,O){for(var S,y=this,T=new RegExp(O.regex.source,(O.regex.flags||"")+"g"),M=-1,x=function(){var X=S["number"!=typeof O.matchIndex?0:O.matchIndex];if(!X)return N._logService.debug("match found without corresponding matchIndex",S,O),"break";if(M=b.indexOf(X,M+1),T.lastIndex=M+X.length,M<0)return"break";var $=N._bufferService.buffer.stringIndexToBufferIndex(k,M);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;O.validationCallback?O.validationCallback(X,function(be){y._rowsTimeoutId||be&&y._addLink($[1],$[0]-y._bufferService.buffer.ydisp,X,O,te)}):N._addLink($[1],$[0]-N._bufferService.buffer.ydisp,X,O,te)},N=this;null!==(S=T.exec(b))&&"break"!==x(););},v.prototype._addLink=function(k,b,O,S,y){var T=this;if(this._mouseZoneManager&&this._element){var M=this._unicodeService.getStringCellWidth(O),x=k%this._bufferService.cols,N=b+Math.floor(k/this._bufferService.cols),B=(x+M)%this._bufferService.cols,X=N+Math.floor((x+M)/this._bufferService.cols);0===B&&(B=this._bufferService.cols,X--),this._mouseZoneManager.add(new L(x+1,N+1,B+1,X+1,function($){if(S.handler)return S.handler($,O);var V=window.open();V?(V.opener=null,V.location.href=O):console.warn("Opening link blocked as opener could not be cleared")},function(){T._onShowLinkUnderline.fire(T._createLinkHoverEvent(x,N,B,X,y)),T._element.classList.add("xterm-cursor-pointer")},function($){T._onLinkTooltip.fire(T._createLinkHoverEvent(x,N,B,X,y)),S.hoverTooltipCallback&&S.hoverTooltipCallback($,O,{start:{x:x,y:N},end:{x:B,y:X}})},function(){T._onHideLinkUnderline.fire(T._createLinkHoverEvent(x,N,B,X,y)),T._element.classList.remove("xterm-cursor-pointer"),S.hoverLeaveCallback&&S.hoverLeaveCallback()},function($){return!S.willLinkActivate||S.willLinkActivate($,O)}))}},v.prototype._createLinkHoverEvent=function(k,b,O,S,y){return{x1:k,y1:b,x2:O,y2:S,cols:this._bufferService.cols,fg:y}},v._timeBeforeLatency=200,v=R([P(0,D.IBufferService),P(1,D.ILogService),P(2,D.IUnicodeService)],v)}();A.Linkifier=j;var L=function(k,b,O,S,y,T,M,x,N){this.x1=k,this.y1=b,this.x2=O,this.y2=S,this.clickCallback=y,this.hoverCallback=T,this.tooltipCallback=M,this.leaveCallback=x,this.willLinkActivate=N};A.MouseZone=L},6465:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(x[B]=N[B])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,B=arguments.length,X=B<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(B<3?N(X):B>3?N(T,M,X):N(T,M))||X);return B>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}},j=this&&this.__values||function(y){var T="function"==typeof Symbol&&Symbol.iterator,M=T&&y[T],x=0;if(M)return M.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&x>=y.length&&(y=void 0),{value:y&&y[x++],done:!y}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},L=this&&this.__read||function(y,T){var M="function"==typeof Symbol&&y[Symbol.iterator];if(!M)return y;var x,N,B=M.call(y),X=[];try{for(;(void 0===T||T-- >0)&&!(x=B.next()).done;)X.push(x.value)}catch($){N={error:$}}finally{try{x&&!x.done&&(M=B.return)&&M.call(B)}finally{if(N)throw N.error}}return X};Object.defineProperty(A,"__esModule",{value:!0}),A.Linkifier2=void 0;var v=U(2585),k=U(8460),b=U(844),O=U(3656),S=function(y){function T(M){var x=y.call(this)||this;return x._bufferService=M,x._linkProviders=[],x._linkCacheDisposables=[],x._isMouseOut=!0,x._activeLine=-1,x._onShowLinkUnderline=x.register(new k.EventEmitter),x._onHideLinkUnderline=x.register(new k.EventEmitter),x.register((0,b.getDisposeArrayDisposable)(x._linkCacheDisposables)),x}return P(T,y),Object.defineProperty(T.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),T.prototype.registerLinkProvider=function(M){var x=this;return this._linkProviders.push(M),{dispose:function(){var B=x._linkProviders.indexOf(M);-1!==B&&x._linkProviders.splice(B,1)}}},T.prototype.attachToDom=function(M,x,N){var B=this;this._element=M,this._mouseService=x,this._renderService=N,this.register((0,O.addDisposableDomListener)(this._element,"mouseleave",function(){B._isMouseOut=!0,B._clearCurrentLink()})),this.register((0,O.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},T.prototype._onMouseMove=function(M){if(this._lastMouseEvent=M,this._element&&this._mouseService){var x=this._positionFromMouseEvent(M,this._element,this._mouseService);if(x){this._isMouseOut=!1;for(var N=M.composedPath(),B=0;B<N.length;B++){var X=N[B];if(X.classList.contains("xterm"))break;if(X.classList.contains("xterm-hover"))return}this._lastBufferCell&&x.x===this._lastBufferCell.x&&x.y===this._lastBufferCell.y||(this._onHover(x),this._lastBufferCell=x)}}},T.prototype._onHover=function(M){if(this._activeLine!==M.y)return this._clearCurrentLink(),void this._askForLink(M,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,M)||(this._clearCurrentLink(),this._askForLink(M,!0))},T.prototype._askForLink=function(M,x){var N,B,X,$,V=this;this._activeProviderReplies&&x||(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=M.y);var Q=!1,te=function(ge,je){x?null!==($=be._activeProviderReplies)&&void 0!==$&&$.get(ge)&&(Q=be._checkLinkProviderResult(ge,M,Q)):je.provideLinks(M.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,M,Q),(null===(Tt=V._activeProviderReplies)||void 0===Tt?void 0:Tt.size)===V._linkProviders.length&&V._removeIntersectingLinks(M.y,V._activeProviderReplies)}})},be=this;try{for(var pe=j(this._linkProviders.entries()),fe=pe.next();!fe.done;fe=pe.next()){var ue=L(fe.value,2);te(ue[0],ue[1])}}catch(de){N={error:de}}finally{try{fe&&!fe.done&&(B=pe.return)&&B.call(pe)}finally{if(N)throw N.error}}},T.prototype._removeIntersectingLinks=function(M,x){for(var N=new Set,B=0;B<x.size;B++){var X=x.get(B);if(X)for(var $=0;$<X.length;$++)for(var V=X[$],Q=V.link.range.start.y<M?0:V.link.range.start.x,te=V.link.range.end.y>M?this._bufferService.cols:V.link.range.end.x,be=Q;be<=te;be++){if(N.has(be)){X.splice($--,1);break}N.add(be)}}},T.prototype._checkLinkProviderResult=function(M,x,N){var B,X=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(M),V=!1,Q=0;Q<M;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(V=!0);if(!V&&$){var te=$.find(function(pe){return X._linkAtPosition(pe.link,x)});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===(B=this._activeProviderReplies.get(Q))||void 0===B?void 0:B.find(function(pe){return X._linkAtPosition(pe.link,x)});if(be){N=!0,this._handleNewLink(be);break}}return N},T.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},T.prototype._handleMouseUp=function(M){if(this._element&&this._mouseService&&this._currentLink){var x=this._positionFromMouseEvent(M,this._element,this._mouseService);x&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,x)&&this._currentLink.link.activate(M,this._currentLink.link.text)}},T.prototype._clearCurrentLink=function(M,x){this._element&&this._currentLink&&this._lastMouseEvent&&(!M||!x||this._currentLink.link.range.start.y>=M&&this._currentLink.link.range.end.y<=x)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,b.disposeArray)(this._linkCacheDisposables))},T.prototype._handleNewLink=function(M){var x=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(M.link,N)&&(this._currentLink=M,this._currentLink.state={decorations:{underline:void 0===M.link.decorations||M.link.decorations.underline,pointerCursor:void 0===M.link.decorations||M.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,M.link,this._lastMouseEvent),M.link.decorations={},Object.defineProperties(M.link.decorations,{pointerCursor:{get:function(){var X,$;return null===($=null===(X=x._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(X){var $,V;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&x._currentLink.state.decorations.pointerCursor!==X&&(x._currentLink.state.decorations.pointerCursor=X,x._currentLink.state.isHovered&&(null===(V=x._element)||void 0===V||V.classList.toggle("xterm-cursor-pointer",X)))}},underline:{get:function(){var X,$;return null===($=null===(X=x._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.underline},set:function(X){var $,V,Q;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&(null===(Q=null===(V=x._currentLink)||void 0===V?void 0:V.state)||void 0===Q?void 0:Q.decorations.underline)!==X&&(x._currentLink.state.decorations.underline=X,x._currentLink.state.isHovered&&x._fireUnderlineEvent(M.link,X))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(B){var X=0===B.start?0:B.start+1+x._bufferService.buffer.ydisp;x._clearCurrentLink(X,B.end+1+x._bufferService.buffer.ydisp)})))}},T.prototype._linkHover=function(M,x,N){var B;!(null===(B=this._currentLink)||void 0===B)&&B.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!0),this._currentLink.state.decorations.pointerCursor&&M.classList.add("xterm-cursor-pointer")),x.hover&&x.hover(N,x.text)},T.prototype._fireUnderlineEvent=function(M,x){var N=M.range,B=this._bufferService.buffer.ydisp,X=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-B-1,N.end.x,N.end.y-B-1,void 0);(x?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(X)},T.prototype._linkLeave=function(M,x,N){var B;!(null===(B=this._currentLink)||void 0===B)&&B.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!1),this._currentLink.state.decorations.pointerCursor&&M.classList.remove("xterm-cursor-pointer")),x.leave&&x.leave(N,x.text)},T.prototype._linkAtPosition=function(M,x){var N=M.range.start.y===M.range.end.y,B=M.range.start.y<x.y,X=M.range.end.y>x.y;return(N&&M.range.start.x<=x.x&&M.range.end.x>=x.x||B&&M.range.end.x>=x.x||X&&M.range.start.x<=x.x||B&&X)&&M.range.start.y<=x.y&&M.range.end.y>=x.y},T.prototype._positionFromMouseEvent=function(M,x,N){var B=N.getCoords(M,x,this._bufferService.cols,this._bufferService.rows);if(B)return{x:B[0],y:B[1]+this._bufferService.buffer.ydisp}},T.prototype._createLinkUnderlineEvent=function(M,x,N,B,X){return{x1:M,y1:x,x2:N,y2:B,cols:this._bufferService.cols,fg:X}},E([D(0,v.IBufferService)],T)}(b.Disposable);A.Linkifier2=S},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,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var B=O.length-1;B>=0;B--)(M=O[B])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZoneManager=void 0;var j=U(844),L=U(3656),v=U(4725),k=U(2585),b=function(O){function S(y,T,M,x,N,B){var X=O.call(this)||this;return X._element=y,X._screenElement=T,X._bufferService=M,X._mouseService=x,X._selectionService=N,X._optionsService=B,X._zones=[],X._areZonesActive=!1,X._lastHoverCoords=[void 0,void 0],X._initialSelectionLength=0,X.register((0,L.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 P(S,O),S.prototype.dispose=function(){O.prototype.dispose.call(this),this._deactivate()},S.prototype.add=function(y){this._zones.push(y),1===this._zones.length&&this._activate()},S.prototype.clearAll=function(y,T){if(0!==this._zones.length){y&&T||(y=0,T=this._bufferService.rows-1);for(var M=0;M<this._zones.length;M++){var x=this._zones[M];(x.y1>y&&x.y1<=T+1||x.y2>y&&x.y2<=T+1||x.y1<y&&x.y2>T+1)&&(this._currentZone&&this._currentZone===x&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(M--,1))}0===this._zones.length&&this._deactivate()}},S.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))},S.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))},S.prototype._onMouseMove=function(y){this._lastHoverCoords[0]===y.pageX&&this._lastHoverCoords[1]===y.pageY||(this._onHover(y),this._lastHoverCoords=[y.pageX,y.pageY])},S.prototype._onHover=function(y){var T=this,M=this._findZoneEventAt(y);M!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),M&&(this._currentZone=M,M.hoverCallback&&M.hoverCallback(y),this._tooltipTimeout=window.setTimeout(function(){return T._onTooltip(y)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},S.prototype._onTooltip=function(y){this._tooltipTimeout=void 0;var T=this._findZoneEventAt(y);null==T||T.tooltipCallback(y)},S.prototype._onMouseDown=function(y){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var T=this._findZoneEventAt(y);null!=T&&T.willLinkActivate(y)&&(y.preventDefault(),y.stopImmediatePropagation())}},S.prototype._onMouseLeave=function(y){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},S.prototype._onClick=function(y){var T=this._findZoneEventAt(y),M=this._getSelectionLength();T&&M===this._initialSelectionLength&&(T.clickCallback(y),y.preventDefault(),y.stopImmediatePropagation())},S.prototype._getSelectionLength=function(){var y=this._selectionService.selectionText;return y?y.length:0},S.prototype._findZoneEventAt=function(y){var T=this._mouseService.getCoords(y,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(T)for(var M=T[0],x=T[1],N=0;N<this._zones.length;N++){var B=this._zones[N];if(B.y1===B.y2){if(x===B.y1&&M>=B.x1&&M<B.x2)return B}else if(x===B.y1&&M>=B.x1||x===B.y2&&M<B.x2||x>B.y1&&x<B.y2)return B}},E([D(2,k.IBufferService),D(3,v.IMouseService),D(4,v.ISelectionService),D(5,k.IOptionsService)],S)}(j.Disposable);A.MouseZoneManager=b},6193:function(W,A){var U=this&&this.__values||function(P){var E="function"==typeof Symbol&&Symbol.iterator,D=E&&P[E],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderDebouncer=void 0;var R=function(){function P(E){this._renderCallback=E,this._refreshCallbacks=[]}return P.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},P.prototype.addRefreshCallback=function(E){var D=this;return this._refreshCallbacks.push(E),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return D._innerRefresh()})),this._animationFrame},P.prototype.refresh=function(E,D,j){var L=this;this._rowCount=j,E=void 0!==E?E:0,D=void 0!==D?D:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,E):E,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,D):D,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return L._innerRefresh()}))},P.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var E=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(E,D),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},P.prototype._runRefreshCallbacks=function(){var E,D;try{for(var j=U(this._refreshCallbacks),L=j.next();!L.done;L=j.next())(0,L.value)(0)}catch(v){E={error:v}}finally{try{L&&!L.done&&(D=j.return)&&D.call(j)}finally{if(E)throw E.error}}this._refreshCallbacks=[]},P}();A.RenderDebouncer=R},5596:function(W,A,U){var R,P=this&&this.__extends||(R=function(j,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,k){v.__proto__=k}||function(v,k){for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(v[b]=k[b])})(j,L)},function(D,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function L(){this.constructor=D}R(D,j),D.prototype=null===j?Object.create(j):(L.prototype=j.prototype,new L)});Object.defineProperty(A,"__esModule",{value:!0}),A.ScreenDprMonitor=void 0;var E=function(D){function j(){var L=null!==D&&D.apply(this,arguments)||this;return L._currentDevicePixelRatio=window.devicePixelRatio,L}return P(j,D),j.prototype.setListener=function(L){var v=this;this._listener&&this.clearListener(),this._listener=L,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},j.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},j.prototype._updateDpr=function(){var L;this._outerListener&&(null===(L=this._resolutionMediaMatchList)||void 0===L||L.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}(U(844).Disposable);A.ScreenDprMonitor=E},3236:function(W,A,U){var R,P=this&&this.__extends||(R=function(Ct,Ve){return(R=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}R(_t,Ct),_t.prototype=null===Ct?Object.create(Ct):(Ve.prototype=Ct.prototype,new Ve)}),E=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.")},D=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(H){ht={error:H}}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 L=U(2950),v=U(1680),k=U(3614),b=U(2584),O=U(5435),S=U(3525),y=U(3551),T=U(9312),M=U(6114),x=U(3656),N=U(9042),B=U(357),X=U(6954),$=U(4567),V=U(1296),Q=U(7399),te=U(8460),be=U(8437),pe=U(5680),fe=U(3230),ue=U(4725),de=U(428),ge=U(8934),je=U(6465),ot=U(5114),St=U(8969),Tt=U(8055),Dt=U(4269),Rt=U(5941),Ze=U(3107),$t=U(5744),Ft=U(9074),pn=U(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=M,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(y.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 P(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 H=E(Ve),F=H.next();!F.done;F=H.next()){var qe=F.value,Be=void 0,se="";switch(qe.index){case 256:Be="foreground",se="10";break;case 257:Be="background",se="11";break;case 258:Be="cursor",se="12";break;default:Be="ansi",se="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(b.C0.ESC+"]"+se+";"+(0,Rt.toRgbString)(t)+b.C1_ESCAPED.ST);break;case 1:"ansi"===Be?this._colorManager.colors.ansi[qe.index]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(qe.color),!1)):this._colorManager.colors[Be]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(qe.color),!1));break;case 2:this._colorManager.restoreColor(qe.index)}}}catch(Lt){at={error:Lt}}finally{try{F&&!F.done&&(ht=H.return)&&ht.call(H)}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(b.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(b.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),H=this._renderService.dimensions.actualCellWidth*Wt,F=this.buffer.y*this._renderService.dimensions.actualCellHeight,qe=ht*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=qe+"px",this.textarea.style.top=F+"px",this.textarea.style.width=H+"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,x.addDisposableDomListener)(this.element,"copy",function(ht){Ve.hasSelection()&&(0,k.copyHandler)(ht,Ve._selectionService)}));var at=function(Ut){return(0,k.handlePasteEvent)(Ut,Ve.textarea,Ve.coreService)};this.register((0,x.addDisposableDomListener)(this.textarea,"paste",at)),this.register((0,x.addDisposableDomListener)(this.element,"paste",at)),M.isFirefox?this.register((0,x.addDisposableDomListener)(this.element,"mousedown",function(ht){2===ht.button&&(0,k.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})):this.register((0,x.addDisposableDomListener)(this.element,"contextmenu",function(ht){(0,k.rightClickHandler)(ht,Ve.textarea,Ve.screenElement,Ve._selectionService,Ve.options.rightClickSelectsWord)})),M.isLinux&&this.register((0,x.addDisposableDomListener)(this.element,"auxclick",function(ht){1===ht.button&&(0,k.moveTextAreaUnderMouseCursor)(ht,Ve.textarea,Ve.screenElement)}))},Ct.prototype._bindKeys=function(){var Ve=this;this.register((0,x.addDisposableDomListener)(this.textarea,"keyup",function(at){return Ve._keyUp(at)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"keydown",function(at){return Ve._keyDown(at)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"keypress",function(at){return Ve._keyPress(at)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionstart",function(){return Ve._compositionHelper.compositionstart()})),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionupdate",function(at){return Ve._compositionHelper.compositionupdate(at)})),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionend",function(){return Ve._compositionHelper.compositionend()})),this.register((0,x.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,x.addDisposableDomListener)(this.textarea,"focus",function(H){return at._onTextAreaFocus(H)})),this.register((0,x.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(H){return at._colorManager.onOptionsChange(H)})),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(H){return at._onRender.fire(H)})),this.onResize(function(H){return at._renderService.resize(H.cols,H.rows)}),this._compositionView=rt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(L.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ht),this._soundService=this._instantiationService.createInstance(B.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(H){return at.scrollLines(H,!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(T.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(ue.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(H){return at.scrollLines(H.amount,H.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return at._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(H){return at._renderService.onSelectionChanged(H.start,H.end,H.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(H){at.textarea.value=H,at.textarea.focus(),at.textarea.select()})),this.register(this._onScroll.event(function(H){at.viewport.syncScrollArea(),at._selectionService.refresh()})),this.register((0,x.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,x.addDisposableDomListener)(this.element,"mousedown",function(H){return at._selectionService.onMouseDown(H)})),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(S.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(se){var t,Lt,zt=at._mouseService.getRawByteCoords(se,at.screenElement,at.cols,at.rows);if(!zt)return!1;switch(se.overrideType||se.type){case"mousemove":Lt=32,void 0===se.buttons?(t=3,void 0!==se.button&&(t=se.button<3?se.button:3)):t=1&se.buttons?0:4&se.buttons?1:2&se.buttons?2:3;break;case"mouseup":Lt=0,t=se.button<3?se.button:3;break;case"mousedown":Lt=1,t=se.button<3?se.button:3;break;case"wheel":if(0===at.viewport.getLinesScrolled(se))return!1;Lt=se.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:se.ctrlKey,alt:se.altKey,shift:se.shiftKey})}var Wt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},H=function(t){return Ut(t),t.buttons||(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.removeEventListener("mousemove",Wt.mousedrag)),Ve.cancel(t)},F=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(se){se?("debug"===Ve.optionsService.rawOptions.logLevel&&Ve._logService.debug("Binding to mouse events:",Ve.coreMouseService.explainEvents(se)),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&se?Wt.mousemove||(ht.addEventListener("mousemove",Be),Wt.mousemove=Be):(ht.removeEventListener("mousemove",Wt.mousemove),Wt.mousemove=null),16&se?Wt.wheel||(ht.addEventListener("wheel",F,{passive:!1}),Wt.wheel=F):(ht.removeEventListener("wheel",Wt.wheel),Wt.wheel=null),2&se?Wt.mouseup||(Wt.mouseup=H):(Ve._document.removeEventListener("mouseup",Wt.mouseup),Wt.mouseup=null),4&se?Wt.mousedrag||(Wt.mousedrag=qe):(Ve._document.removeEventListener("mousemove",Wt.mousedrag),Wt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,x.addDisposableDomListener)(ht,"mousedown",function(se){if(se.preventDefault(),Ve.focus(),Ve.coreMouseService.areMouseEventsActive&&!Ve._selectionService.shouldForceSelection(se))return Ut(se),Wt.mouseup&&Ve._document.addEventListener("mouseup",Wt.mouseup),Wt.mousedrag&&Ve._document.addEventListener("mousemove",Wt.mousedrag),Ve.cancel(se)})),this.register((0,x.addDisposableDomListener)(ht,"wheel",function(se){if(!Wt.wheel){if(!Ve.buffer.hasScrollback){var t=Ve.viewport.getLinesScrolled(se);if(0===t)return;for(var Lt=b.C0.ESC+(Ve.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(se.deltaY<0?"A":"B"),zt="",an=0;an<Math.abs(t);an++)zt+=Lt;return Ve.coreService.triggerDataEvent(zt,!0),Ve.cancel(se,!0)}return Ve.viewport.onWheel(se)?Ve.cancel(se):void 0}},{passive:!1})),this.register((0,x.addDisposableDomListener)(ht,"touchstart",function(se){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchStart(se),Ve.cancel(se)},{passive:!0})),this.register((0,x.addDisposableDomListener)(ht,"touchmove",function(se){if(!Ve.coreMouseService.areMouseEventsActive)return Ve.viewport.onTouchMove(se)?void 0:Ve.cancel(se)},{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,k.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!==b.C0.ETX&&ht.key!==b.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(b.C0.ESC+"[I"):this.coreService.triggerDataEvent(b.C0.ESC+"[O")},Ct.prototype._reportWindowsOptions=function(Ve){if(this._renderService)switch(Ve){case O.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var at=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ht=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(b.C0.ESC+"[4;"+ht+";"+at+"t");break;case O.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ut=this._renderService.dimensions.scaledCellWidth.toFixed(0),Wt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(b.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 U=function(){function R(P,E){void 0===E&&(E=1e3),this._renderCallback=P,this._debounceThresholdMS=E,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return R.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},R.prototype.refresh=function(P,E,D){var j=this;this._rowCount=D,P=void 0!==P?P:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,P):P,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E;var L=Date.now();if(L-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=L,this._innerRefresh();else if(!this._additionalRefreshRequested){var v=L-this._lastRefreshMs,k=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){j._lastRefreshMs=Date.now(),j._innerRefresh(),j._additionalRefreshRequested=!1,j._refreshTimeoutID=void 0},k)}},R.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,E)}},R}();A.TimeBasedDebouncer=U},1680:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var B=O.length-1;B>=0;B--)(M=O[B])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.Viewport=void 0;var j=U(844),L=U(3656),v=U(4725),k=U(2585),b=function(O){function S(y,T,M,x,N,B,X,$){var V=O.call(this)||this;return V._scrollLines=y,V._viewportElement=T,V._scrollArea=M,V._element=x,V._bufferService=N,V._optionsService=B,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,L.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 P(S,O),S.prototype.onThemeChange=function(y){this._viewportElement.style.backgroundColor=y.background.css},S.prototype._refresh=function(y){var T=this;if(y)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return T._innerRefresh()}))},S.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 y=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==y&&(this._lastRecordedBufferHeight=y,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var T=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==T&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=T),this._refreshAnimationFrame=null},S.prototype.syncScrollArea=function(y){if(void 0===y&&(y=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(y);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(y)},S.prototype._onScroll=function(y){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var T=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(T)}},S.prototype._bubbleScroll=function(y,T){var M=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(T<0&&0!==this._viewportElement.scrollTop||T>0&&M<this._lastRecordedBufferHeight)||(y.cancelable&&y.preventDefault(),!1)},S.prototype.onWheel=function(y){var T=this._getPixelsScrolled(y);return 0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},S.prototype._getPixelsScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_LINE?T*=this._currentRowHeight:y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._currentRowHeight*this._bufferService.rows),T},S.prototype.getLinesScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(T/=this._currentRowHeight+0,this._wheelPartialScroll+=T,T=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._bufferService.rows),T},S.prototype._applyScrollModifier=function(y,T){var M=this._optionsService.rawOptions.fastScrollModifier;return"alt"===M&&T.altKey||"ctrl"===M&&T.ctrlKey||"shift"===M&&T.shiftKey?y*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:y*this._optionsService.rawOptions.scrollSensitivity},S.prototype.onTouchStart=function(y){this._lastTouchY=y.touches[0].pageY},S.prototype.onTouchMove=function(y){var T=this._lastTouchY-y.touches[0].pageY;return this._lastTouchY=y.touches[0].pageY,0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},E([D(4,k.IBufferService),D(5,k.IOptionsService),D(6,v.ICharSizeService),D(7,v.IRenderService)],S)}(j.Disposable);A.Viewport=b},3107:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,B=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(B=(N<3?x(B):N>3?x(y,T,B):x(y,T))||B);return N>3&&B&&Object.defineProperty(y,T,B),B},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},j=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferDecorationRenderer=void 0;var L=U(3656),v=U(4725),k=U(844),b=U(2585),O=function(S){function y(T,M,x,N){var B=S.call(this)||this;return B._screenElement=T,B._bufferService=M,B._decorationService=x,B._renderService=N,B._decorationElements=new Map,B._altBufferIsActive=!1,B._dimensionsChanged=!1,B._container=document.createElement("div"),B._container.classList.add("xterm-decoration-container"),B._screenElement.appendChild(B._container),B.register(B._renderService.onRenderedViewportChange(function(){return B._queueRefresh()})),B.register(B._renderService.onDimensionsChange(function(){B._dimensionsChanged=!0,B._queueRefresh()})),B.register((0,L.addDisposableDomListener)(window,"resize",function(){return B._queueRefresh()})),B.register(B._bufferService.buffers.onBufferActivate(function(){B._altBufferIsActive=B._bufferService.buffer===B._bufferService.buffers.alt})),B.register(B._decorationService.onDecorationRegistered(function(){return B._queueRefresh()})),B.register(B._decorationService.onDecorationRemoved(function(X){return B._removeDecoration(X)})),B}return P(y,S),y.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),S.prototype.dispose.call(this)},y.prototype._queueRefresh=function(){var T=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){T.refreshDecorations(),T._animationFrame=void 0}))},y.prototype.refreshDecorations=function(){var T,M;try{for(var x=j(this._decorationService.decorations),N=x.next();!N.done;N=x.next()){var B=N.value;this._renderDecoration(B)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this._dimensionsChanged=!1},y.prototype._renderDecoration=function(T){this._refreshStyle(T),this._dimensionsChanged&&this._refreshXPosition(T)},y.prototype._createElement=function(T){var M,x=document.createElement("div");x.classList.add("xterm-decoration"),x.style.width=Math.round((T.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",x.style.height=(T.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",x.style.top=(T.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",x.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var N=null!==(M=T.options.x)&&void 0!==M?M:0;return N&&N>this._bufferService.cols&&(x.style.display="none"),this._refreshXPosition(T,x),x},y.prototype._refreshStyle=function(T){var M=this,x=T.marker.line-this._bufferService.buffers.active.ydisp;if(x<0||x>=this._bufferService.rows)T.element&&(T.element.style.display="none",T.onRenderEmitter.fire(T.element));else{var N=this._decorationElements.get(T);N||(T.onDispose(function(){return M._removeDecoration(T)}),N=this._createElement(T),T.element=N,this._decorationElements.set(T,N),this._container.appendChild(N)),N.style.top=x*this._renderService.dimensions.actualCellHeight+"px",N.style.display=this._altBufferIsActive?"none":"block",T.onRenderEmitter.fire(N)}},y.prototype._refreshXPosition=function(T,M){var x;if(void 0===M&&(M=T.element),M){var N=null!==(x=T.options.x)&&void 0!==x?x:0;"right"===(T.options.anchor||"left")?M.style.right=N?N*this._renderService.dimensions.actualCellWidth+"px":"":M.style.left=N?N*this._renderService.dimensions.actualCellWidth+"px":""}},y.prototype._removeDecoration=function(T){var M;null===(M=this._decorationElements.get(T))||void 0===M||M.remove(),this._decorationElements.delete(T)},E([D(1,b.IBufferService),D(2,b.IDecorationService),D(3,v.IRenderService)],y)}(k.Disposable);A.BufferDecorationRenderer=O},5871:function(W,A){var U=this&&this.__values||function(P){var E="function"==typeof Symbol&&Symbol.iterator,D=E&&P[E],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorZoneStore=void 0;var R=function(){function P(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(P.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),P.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},P.prototype.addDecoration=function(E){var D,j;if(E.options.overviewRulerOptions){try{for(var L=U(this._zones),v=L.next();!v.done;v=L.next()){var k=v.value;if(k.color===E.options.overviewRulerOptions.color&&k.position===E.options.overviewRulerOptions.position){if(this._lineIntersectsZone(k,E.marker.line))return;if(this._lineAdjacentToZone(k,E.marker.line,E.options.overviewRulerOptions.position))return void this._addLineToZone(k,E.marker.line)}}}catch(b){D={error:b}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=E.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=E.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=E.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=E.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:E.options.overviewRulerOptions.color,position:E.options.overviewRulerOptions.position,startBufferLine:E.marker.line,endBufferLine:E.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},P.prototype.setPadding=function(E){this._linePadding=E},P.prototype._lineIntersectsZone=function(E,D){return D>=E.startBufferLine&&D<=E.endBufferLine},P.prototype._lineAdjacentToZone=function(E,D,j){return D>=E.startBufferLine-this._linePadding[j||"full"]&&D<=E.endBufferLine+this._linePadding[j||"full"]},P.prototype._addLineToZone=function(E,D){E.startBufferLine=Math.min(E.startBufferLine,D),E.endBufferLine=Math.max(E.endBufferLine,D)},P}();A.ColorZoneStore=R},5744:function(W,A,U){var R,P=this&&this.__extends||(R=function(N,B){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,B)},function(x,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function B(){this.constructor=x}R(x,N),x.prototype=null===N?Object.create(N):(B.prototype=N.prototype,new B)}),E=this&&this.__decorate||function(x,N,B,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,B):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(x,N,B,X);else for(var te=x.length-1;te>=0;te--)($=x[te])&&(Q=(V<3?$(Q):V>3?$(N,B,Q):$(N,B))||Q);return V>3&&Q&&Object.defineProperty(N,B,Q),Q},D=this&&this.__param||function(x,N){return function(B,X){N(B,X,x)}},j=this&&this.__values||function(x){var N="function"==typeof Symbol&&Symbol.iterator,B=N&&x[N],X=0;if(B)return B.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&X>=x.length&&(x=void 0),{value:x&&x[X++],done:!x}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.OverviewRulerRenderer=void 0;var L=U(5871),v=U(3656),k=U(4725),b=U(844),O=U(2585),S={full:0,left:0,center:0,right:0},y={full:0,left:0,center:0,right:0},T={full:0,left:0,center:0,right:0},M=function(x){function N(B,X,$,V,Q,te){var be,pe=x.call(this)||this;pe._viewportElement=B,pe._screenElement=X,pe._bufferService=$,pe._decorationService=V,pe._renderService=Q,pe._optionsService=te,pe._colorZoneStore=new L.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 P(N,x),Object.defineProperty(N.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),N.prototype._registerDecorationListeners=function(){var B=this;this.register(this._decorationService.onDecorationRegistered(function(){return B._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return B._queueRefresh(void 0,!0)}))},N.prototype._registerBufferChangeListeners=function(){var B=this;this.register(this._renderService.onRenderedViewportChange(function(){return B._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){B._canvas.style.display=B._bufferService.buffer===B._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){B._lastKnownBufferLength!==B._bufferService.buffers.normal.lines.length&&(B._refreshDrawHeightConstants(),B._refreshColorZonePadding())}))},N.prototype._registerDimensionChangeListeners=function(){var B=this;this.register(this._renderService.onRender(function(){B._containerHeight&&B._containerHeight===B._screenElement.clientHeight||(B._queueRefresh(!0),B._containerHeight=B._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(X){"overviewRulerWidth"===X&&B._queueRefresh(!0)})),this.register((0,v.addDisposableDomListener)(window,"resize",function(){B._queueRefresh(!0)})),this._queueRefresh(!0)},N.prototype.dispose=function(){var B;null===(B=this._canvas)||void 0===B||B.remove(),x.prototype.dispose.call(this)},N.prototype._refreshDrawConstants=function(){var B=Math.floor(this._canvas.width/3),X=Math.ceil(this._canvas.width/3);y.full=this._canvas.width,y.left=B,y.center=X,y.right=B,this._refreshDrawHeightConstants(),T.full=0,T.left=0,T.center=y.left,T.right=y.left+y.center},N.prototype._refreshDrawHeightConstants=function(){S.full=Math.round(2*window.devicePixelRatio);var B=this._canvas.height/this._bufferService.buffer.lines.length,X=Math.round(Math.max(Math.min(B,12),6)*window.devicePixelRatio);S.left=X,S.center=X,S.right=X},N.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.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 B,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){B={error:Tt}}finally{try{pe&&!pe.done&&(X=be.return)&&X.call(be)}finally{if(B)throw B.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(B){this._ctx.fillStyle=B.color,this._ctx.fillRect(T[B.position||"full"],Math.round((this._canvas.height-1)*(B.startBufferLine/this._bufferService.buffers.active.lines.length)-S[B.position||"full"]/2),y[B.position||"full"],Math.round((this._canvas.height-1)*((B.endBufferLine-B.startBufferLine)/this._bufferService.buffers.active.lines.length)+S[B.position||"full"]))},N.prototype._queueRefresh=function(B,X){var $=this;this._shouldUpdateDimensions=B||this._shouldUpdateDimensions,this._shouldUpdateAnchor=X||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){$._refreshDecorations(),$._animationFrame=void 0}))},E([D(2,O.IBufferService),D(3,O.IDecorationService),D(4,k.IRenderService),D(5,O.IOptionsService)],N)}(b.Disposable);A.OverviewRulerRenderer=M},2950:function(W,A,U){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CompositionHelper=void 0;var E=U(4725),D=U(2585),j=function(){function L(v,k,b,O,S,y){this._textarea=v,this._compositionView=k,this._bufferService=b,this._optionsService=O,this._coreService=S,this._renderService=y,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(L.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),L.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},L.prototype.compositionupdate=function(v){var k=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){k._compositionPosition.end=k._textarea.value.length},0)},L.prototype.compositionend=function(){this._finalizeComposition(!0)},L.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)},L.prototype._finalizeComposition=function(v){var k=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var S;k._isSendingComposition&&(k._isSendingComposition=!1,b.start+=k._dataAlreadySent.length,(S=k._isComposing?k._textarea.value.substring(b.start,b.end):k._textarea.value.substring(b.start)).length>0&&k._coreService.triggerDataEvent(S,!0))},0)}else{this._isSendingComposition=!1;var O=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(O,!0)}},L.prototype._handleAnyTextareaChanges=function(){var v=this,k=this._textarea.value;setTimeout(function(){if(!v._isComposing){var b=v._textarea.value.replace(k,"");b.length>0&&(v._dataAlreadySent=b,v._coreService.triggerDataEvent(b,!0))}},0)},L.prototype.updateCompositionElements=function(v){var k=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),O=this._renderService.dimensions.actualCellHeight,S=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,y=b*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=y+"px",this._compositionView.style.top=S+"px",this._compositionView.style.height=O+"px",this._compositionView.style.lineHeight=O+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var T=this._compositionView.getBoundingClientRect();this._textarea.style.left=y+"px",this._textarea.style.top=S+"px",this._textarea.style.width=Math.max(T.width,1)+"px",this._textarea.style.height=Math.max(T.height,1)+"px",this._textarea.style.lineHeight=T.height+"px"}v||setTimeout(function(){return k.updateCompositionElements(!0)},0)}},R([P(2,D.IBufferService),P(3,D.IOptionsService),P(4,D.ICoreService),P(5,E.IRenderService)],L)}();A.CompositionHelper=j},9806:function(W,A){function U(R,P,E){var D=E.getBoundingClientRect(),j=R.getComputedStyle(E),L=parseInt(j.getPropertyValue("padding-left")),v=parseInt(j.getPropertyValue("padding-top"));return[P.clientX-D.left-L,P.clientY-D.top-v]}Object.defineProperty(A,"__esModule",{value:!0}),A.getRawByteCoords=A.getCoords=A.getCoordsRelativeToElement=void 0,A.getCoordsRelativeToElement=U,A.getCoords=function(R,P,E,D,j,L,v,k,b){if(L){var O=U(R,P,E);if(O)return O[0]=Math.ceil((O[0]+(b?v/2:0))/v),O[1]=Math.ceil(O[1]/k),O[0]=Math.min(Math.max(O[0],1),D+(b?1:0)),O[1]=Math.min(Math.max(O[1],1),j),O}},A.getRawByteCoords=function(R){if(R)return{x:R[0]+32,y:R[1]+32}}},9504:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.moveToCellSequence=void 0;var R=U(2584);function P(k,b,O,S){var y=k-E(O,k),T=b-E(O,b);return v(Math.abs(y-T)-function(x,N,B){for(var X=0,$=x-E(B,x),V=N-E(B,N),Q=0;Q<Math.abs($-V);Q++){var te="A"===D(x,N)?-1:1,be=B.buffer.lines.get($+te*Q);null!=be&&be.isWrapped&&X++}return X}(k,b,O),L(D(k,b),S))}function E(k,b){for(var O=0,S=k.buffer.lines.get(b),y=null==S?void 0:S.isWrapped;y&&b>=0&&b<k.rows;)O++,y=null==(S=k.buffer.lines.get(--b))?void 0:S.isWrapped;return O}function D(k,b){return k>b?"A":"B"}function j(k,b,O,S,y,T){for(var M=k,x=b,N="";M!==O||x!==S;)M+=y?1:-1,y&&M>T.cols-1?(N+=T.buffer.translateBufferLineToString(x,!1,k,M),M=0,k=0,x++):!y&&M<0&&(N+=T.buffer.translateBufferLineToString(x,!1,0,k+1),k=M=T.cols-1,x--);return N+T.buffer.translateBufferLineToString(x,!1,k,M)}function L(k,b){var O=b?"O":"[";return R.C0.ESC+O+k}function v(k,b){k=Math.floor(k);for(var O="",S=0;S<k;S++)O+=b;return O}A.moveToCellSequence=function(k,b,O,S){var y,N,B,V,Q,T=O.buffer.x,M=O.buffer.y;if(!O.buffer.hasScrollback)return N=T,(0===P(B=M,b,V=O,Q=S).length?"":v(j(N,B,N,B-E(V,B),!1,V).length,L("D",Q)))+P(M,b,O,S)+function(N,B,X,$,V,Q){var te;te=P(B,$,V,Q).length>0?$-E(V,$):B;var fe,ue,de,ge,je,St,be=$,pe=(fe=N,ue=B,St=P(de=X,ge=$,je=V,Q).length>0?ge-E(je,ge):ue,fe<de&&St<=ge||fe>=de&&St<ge?"C":"D");return v(j(N,te,X,be,"C"===pe,V).length,L(pe,Q))}(T,M,k,b,O,S);if(M===b)return y=T>k?"D":"C",v(Math.abs(T-k),L(y,S));y=M>b?"D":"C";var x=Math.abs(M-b);return v(function(N,B){return B.cols-N}(M>b?k:T,O)+(x-1)*O.cols+1+((M>b?T:k)-1),L(y,S))}},4389:function(W,A,U){var R=this&&this.__assign||function(){return R=Object.assign||function(S){for(var y,T=1,M=arguments.length;T<M;T++)for(var x in y=arguments[T])Object.prototype.hasOwnProperty.call(y,x)&&(S[x]=y[x]);return S},R.apply(this,arguments)},P=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var E=U(3236),D=U(9042),j=U(7975),L=U(7090),v=U(5741),k=U(8285),b=["cols","rows"],O=function(){function S(y){var T=this;this._core=new E.Terminal(y),this._addonManager=new v.AddonManager,this._publicOptions=R({},this._core.options);var M=function($){return T._core.options[$]},x=function($,V){T._checkReadonlyOptions($),T._core.options[$]=V};for(var N in this._core.options){var B={get:M.bind(this,N),set:x.bind(this,N)};Object.defineProperty(this._publicOptions,N,B)}}return S.prototype._checkReadonlyOptions=function(y){if(b.includes(y))throw new Error('Option "'+y+'" can only be set in the constructor')},S.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(S.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new j.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"unicode",{get:function(){return this._checkProposedApi(),new L.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new k.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"modes",{get:function(){var T=this._core.coreService.decPrivateModes,M="none";switch(this._core.coreMouseService.activeProtocol){case"X10":M="x10";break;case"VT200":M="vt200";break;case"DRAG":M="drag";break;case"ANY":M="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:M,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"options",{get:function(){return this._publicOptions},set:function(T){for(var M in T)this._publicOptions[M]=T[M]},enumerable:!1,configurable:!0}),S.prototype.blur=function(){this._core.blur()},S.prototype.focus=function(){this._core.focus()},S.prototype.resize=function(y,T){this._verifyIntegers(y,T),this._core.resize(y,T)},S.prototype.open=function(y){this._core.open(y)},S.prototype.attachCustomKeyEventHandler=function(y){this._core.attachCustomKeyEventHandler(y)},S.prototype.registerLinkMatcher=function(y,T,M){return this._checkProposedApi(),this._core.registerLinkMatcher(y,T,M)},S.prototype.deregisterLinkMatcher=function(y){this._checkProposedApi(),this._core.deregisterLinkMatcher(y)},S.prototype.registerLinkProvider=function(y){return this._checkProposedApi(),this._core.registerLinkProvider(y)},S.prototype.registerCharacterJoiner=function(y){return this._checkProposedApi(),this._core.registerCharacterJoiner(y)},S.prototype.deregisterCharacterJoiner=function(y){this._checkProposedApi(),this._core.deregisterCharacterJoiner(y)},S.prototype.registerMarker=function(y){return void 0===y&&(y=0),this._checkProposedApi(),this._verifyIntegers(y),this._core.addMarker(y)},S.prototype.registerDecoration=function(y){var T,M,x;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(T=y.x)&&void 0!==T?T:0,null!==(M=y.width)&&void 0!==M?M:0,null!==(x=y.height)&&void 0!==x?x:0),this._core.registerDecoration(y)},S.prototype.addMarker=function(y){return this.registerMarker(y)},S.prototype.hasSelection=function(){return this._core.hasSelection()},S.prototype.select=function(y,T,M){this._verifyIntegers(y,T,M),this._core.select(y,T,M)},S.prototype.getSelection=function(){return this._core.getSelection()},S.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},S.prototype.clearSelection=function(){this._core.clearSelection()},S.prototype.selectAll=function(){this._core.selectAll()},S.prototype.selectLines=function(y,T){this._verifyIntegers(y,T),this._core.selectLines(y,T)},S.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},S.prototype.scrollLines=function(y){this._verifyIntegers(y),this._core.scrollLines(y)},S.prototype.scrollPages=function(y){this._verifyIntegers(y),this._core.scrollPages(y)},S.prototype.scrollToTop=function(){this._core.scrollToTop()},S.prototype.scrollToBottom=function(){this._core.scrollToBottom()},S.prototype.scrollToLine=function(y){this._verifyIntegers(y),this._core.scrollToLine(y)},S.prototype.clear=function(){this._core.clear()},S.prototype.write=function(y,T){this._core.write(y,T)},S.prototype.writeUtf8=function(y,T){this._core.write(y,T)},S.prototype.writeln=function(y,T){this._core.write(y),this._core.write("\r\n",T)},S.prototype.paste=function(y){this._core.paste(y)},S.prototype.getOption=function(y){return this._core.optionsService.getOption(y)},S.prototype.setOption=function(y,T){this._checkReadonlyOptions(y),this._core.optionsService.setOption(y,T)},S.prototype.refresh=function(y,T){this._verifyIntegers(y,T),this._core.refresh(y,T)},S.prototype.reset=function(){this._core.reset()},S.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},S.prototype.loadAddon=function(y){return this._addonManager.loadAddon(this,y)},Object.defineProperty(S,"strings",{get:function(){return D},enumerable:!1,configurable:!0}),S.prototype._verifyIntegers=function(){for(var y,T,M=[],x=0;x<arguments.length;x++)M[x]=arguments[x];try{for(var N=P(M),B=N.next();!B.done;B=N.next()){var X=B.value;if(X===1/0||isNaN(X)||X%1!=0)throw new Error("This API only accepts integers")}}catch($){y={error:$}}finally{try{B&&!B.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S.prototype._verifyPositiveIntegers=function(){for(var y,T,M=[],x=0;x<arguments.length;x++)M[x]=arguments[x];try{for(var N=P(M),B=N.next();!B.done;B=N.next()){var X=B.value;if(X&&(X===1/0||isNaN(X)||X%1!=0||X<0))throw new Error("This API only accepts positive integers")}}catch($){y={error:$}}finally{try{B&&!B.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S}();A.Terminal=O},1546:function(W,A,U){var R=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BaseRenderLayer=void 0;var P=U(643),E=U(8803),D=U(1420),j=U(3734),L=U(1752),v=U(8055),k=U(9631),b=U(8978),O=function(){function S(y,T,M,x,N,B,X,$,V){this._container=y,this._alpha=x,this._colors=N,this._rendererId=B,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-"+T+"-layer"),this._canvas.style.zIndex=M.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return S.prototype.dispose=function(){var y;(0,k.removeElementFromParent)(this._canvas),null===(y=this._charAtlas)||void 0===y||y.dispose()},S.prototype._initCanvas=function(){this._ctx=(0,L.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},S.prototype.onOptionsChanged=function(){},S.prototype.onBlur=function(){},S.prototype.onFocus=function(){},S.prototype.onCursorMove=function(){},S.prototype.onGridChanged=function(y,T){},S.prototype.onSelectionChanged=function(y,T,M){void 0===M&&(M=!1),this._selectionStart=y,this._selectionEnd=T,this._columnSelectMode=M},S.prototype.setColors=function(y){this._refreshCharAtlas(y)},S.prototype._setTransparency=function(y){if(y!==this._alpha){var T=this._canvas;this._alpha=y,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,T),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},S.prototype._refreshCharAtlas=function(y){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,D.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,y,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},S.prototype.resize=function(y){this._scaledCellWidth=y.scaledCellWidth,this._scaledCellHeight=y.scaledCellHeight,this._scaledCharWidth=y.scaledCharWidth,this._scaledCharHeight=y.scaledCharHeight,this._scaledCharLeft=y.scaledCharLeft,this._scaledCharTop=y.scaledCharTop,this._canvas.width=y.scaledCanvasWidth,this._canvas.height=y.scaledCanvasHeight,this._canvas.style.width=y.canvasWidth+"px",this._canvas.style.height=y.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},S.prototype.clearTextureAtlas=function(){var y;null===(y=this._charAtlas)||void 0===y||y.clear()},S.prototype._fillCells=function(y,T,M,x){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight)},S.prototype._fillMiddleLineAtCells=function(y,T,M){void 0===M&&(M=1);var x=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-x-window.devicePixelRatio,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillBottomLineAtCells=function(y,T,M){void 0===M&&(M=1),this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-window.devicePixelRatio-1,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillLeftLineAtCell=function(y,T,M){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,window.devicePixelRatio*M,this._scaledCellHeight)},S.prototype._strokeRectAtCell=function(y,T,M,x){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(y*this._scaledCellWidth+window.devicePixelRatio/2,T*this._scaledCellHeight+window.devicePixelRatio/2,M*this._scaledCellWidth-window.devicePixelRatio,x*this._scaledCellHeight-window.devicePixelRatio)},S.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))},S.prototype._clearCells=function(y,T,M,x){this._alpha?this._ctx.clearRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight))},S.prototype._fillCharTrueColor=function(y,T,M){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=E.TEXT_BASELINE,this._clipRow(M);var x=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(x=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),x||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},S.prototype._drawChars=function(y,T,M){var x,N,B,X=this._getContrastColor(y,T,M);if(X||y.isFgRGB()||y.isBgRGB())this._drawUncachedChars(y,T,M,X);else{var $,V;y.isInverse()?($=y.isBgDefault()?E.INVERTED_DEFAULT_COLOR:y.getBgColor(),V=y.isFgDefault()?E.INVERTED_DEFAULT_COLOR:y.getFgColor()):(V=y.isBgDefault()?P.DEFAULT_COLOR:y.getBgColor(),$=y.isFgDefault()?P.DEFAULT_COLOR:y.getFgColor()),$+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&$<8?8:0,this._currentGlyphIdentifier.chars=y.getChars()||P.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=y.getCode()||P.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=V,this._currentGlyphIdentifier.fg=$,this._currentGlyphIdentifier.bold=!!y.isBold(),this._currentGlyphIdentifier.dim=!!y.isDim(),this._currentGlyphIdentifier.italic=!!y.isItalic();var Q=!1;try{for(var te=R(this._decorationService.getDecorationsAtCell(T,M)),be=te.next();!be.done;be=te.next()){var pe=be.value;if(pe.backgroundColorRGB||pe.foregroundColorRGB){Q=!0;break}}}catch(fe){x={error:fe}}finally{try{be&&!be.done&&(N=te.return)&&N.call(te)}finally{if(x)throw x.error}}!Q&&(null===(B=this._charAtlas)||void 0===B?void 0:B.draw(this._ctx,this._currentGlyphIdentifier,T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(y,T,M)}},S.prototype._drawUncachedChars=function(y,T,M,x){if(this._ctx.save(),this._ctx.font=this._getFont(!!y.isBold(),!!y.isItalic()),this._ctx.textBaseline=E.TEXT_BASELINE,y.isInverse())if(x)this._ctx.fillStyle=x.css;else if(y.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(y.isBgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var N=y.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&N<8&&(N+=8),this._ctx.fillStyle=this._colors.ansi[N].css}else if(x)this._ctx.fillStyle=x.css;else if(y.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(y.isFgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var B=y.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&B<8&&(B+=8),this._ctx.fillStyle=this._colors.ansi[B].css}this._clipRow(M),y.isDim()&&(this._ctx.globalAlpha=E.DIM_OPACITY);var X=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(X=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},S.prototype._clipRow=function(y){this._ctx.beginPath(),this._ctx.rect(0,y*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},S.prototype._getFont=function(y,T){return(T?"italic":"")+" "+(y?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},S.prototype._getContrastColor=function(y,T,M){var x,N,B,X,$=!1;try{for(var V=R(this._decorationService.getDecorationsAtCell(T,M)),Q=V.next();!Q.done;Q=V.next()){var te=Q.value;"top"!==te.options.layer&&$||(te.backgroundColorRGB&&(B=te.backgroundColorRGB.rgba),te.foregroundColorRGB&&(X=te.foregroundColorRGB.rgba),$="top"===te.options.layer)}}catch($t){x={error:$t}}finally{try{Q&&!Q.done&&(N=V.return)&&N.call(V)}finally{if(x)throw x.error}}if($||this._colors.selectionForeground&&this._isCellInSelection(T,M)&&(X=this._colors.selectionForeground.rgba),B||X||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,L.excludeFromContrastRatioDemands)(y.getCode())){if(!B&&!X){var be=this._colors.contrastCache.getColor(y.bg,y.fg);if(void 0!==be)return be||void 0}var pe=y.getFgColor(),fe=y.getFgColorMode(),ue=y.getBgColor(),de=y.getBgColorMode(),ge=!!y.isInverse(),je=!!y.isInverse();if(ge){var ot=pe;pe=ue,ue=ot;var St=fe;fe=de,de=St}var Tt=this._resolveBackgroundRgba(void 0!==B?50331648:de,null!=B?B:ue,ge),Dt=this._resolveForegroundRgba(fe,pe,ge,je),Rt=v.rgba.ensureContrastRatio(null!=B?B:Tt,null!=X?X:Dt,this._optionsService.rawOptions.minimumContrastRatio);if(!Rt){if(!X)return void this._colors.contrastCache.setColor(y.bg,y.fg,null);Rt=X}var Ze={css:v.channels.toCss(Rt>>24&255,Rt>>16&255,Rt>>8&255),rgba:Rt};return B||X||this._colors.contrastCache.setColor(y.bg,y.fg,Ze),Ze}},S.prototype._resolveBackgroundRgba=function(y,T,M){switch(y){case 16777216:case 33554432:return this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.foreground.rgba:this._colors.background.rgba}},S.prototype._resolveForegroundRgba=function(y,T,M,x){switch(y){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&x&&T<8&&(T+=8),this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.background.rgba:this._colors.foreground.rgba}},S.prototype._isCellInSelection=function(y,T){var M=this._selectionStart,x=this._selectionEnd;return!(!M||!x)&&(this._columnSelectMode?y>=M[0]&&T>=M[1]&&y<x[0]&&T<x[1]:T>M[1]&&T<x[1]||M[1]===x[1]&&T===M[1]&&y>=M[0]&&y<x[0]||M[1]<x[1]&&T===x[1]&&y<x[0]||M[1]<x[1]&&T===M[1]&&y>=M[0])},S}();A.BaseRenderLayer=O},2512:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(x[B]=N[B])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,B=arguments.length,X=B<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(B<3?N(X):B>3?N(T,M,X):N(T,M))||X);return B>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorRenderLayer=void 0;var j=U(1546),L=U(511),v=U(2585),k=U(4725),b=600,O=function(y){function T(M,x,N,B,X,$,V,Q,te,be){var pe=y.call(this,M,"cursor",x,!0,N,B,$,V,be)||this;return pe._onRequestRedraw=X,pe._coreService=Q,pe._coreBrowserService=te,pe._cell=new L.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 P(T,y),T.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),y.prototype.dispose.call(this)},T.prototype.resize=function(M){y.prototype.resize.call(this,M),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},T.prototype.reset=function(){var M;this._clearCursor(),null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation(),this.onOptionsChanged()},T.prototype.onBlur=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onFocus=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onOptionsChanged=function(){var M,x=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new S(this._coreBrowserService.isFocused,function(){x._render(!0)})):(null===(M=this._cursorBlinkStateManager)||void 0===M||M.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onCursorMove=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation()},T.prototype.onGridChanged=function(M,x){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},T.prototype._render=function(M){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var x=this._bufferService.buffer.ybase+this._bufferService.buffer.y,N=x-this._bufferService.buffer.ydisp;if(N<0||N>=this._bufferService.rows)this._clearCursor();else{var B=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(x).loadCell(B,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](B,N,this._cell):this._renderBlurCursor(B,N,this._cell),this._ctx.restore(),this._state.x=B,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===B&&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"](B,N,this._cell),this._ctx.restore(),this._state.x=B,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()},T.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})},T.prototype._renderBarCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(M,x,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},T.prototype._renderBlockCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(M,x,N.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(N,M,x),this._ctx.restore()},T.prototype._renderUnderlineCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(M,x),this._ctx.restore()},T.prototype._renderBlurCursor=function(M,x,N){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(M,x,N.getWidth(),1),this._ctx.restore()},E([D(5,v.IBufferService),D(6,v.IOptionsService),D(7,v.ICoreService),D(8,k.ICoreBrowserService),D(9,v.IDecorationService)],T)}(j.BaseRenderLayer);A.CursorRenderLayer=O;var S=function(){function y(T,M){this._renderCallback=M,this.isCursorVisible=!0,T&&this._restartInterval()}return Object.defineProperty(y.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),y.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)},y.prototype.restartBlinkAnimation=function(){var T=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){T._renderCallback(),T._animationFrame=void 0})))},y.prototype._restartInterval=function(T){var M=this;void 0===T&&(T=b),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(M._animationTimeRestarted){var x=b-(Date.now()-M._animationTimeRestarted);if(M._animationTimeRestarted=void 0,x>0)return void M._restartInterval(x)}M.isCursorVisible=!1,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0}),M._blinkInterval=window.setInterval(function(){if(M._animationTimeRestarted){var N=b-(Date.now()-M._animationTimeRestarted);return M._animationTimeRestarted=void 0,void M._restartInterval(N)}M.isCursorVisible=!M.isCursorVisible,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0})},b)},T)},y.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)},y.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},y}()},8978:function(W,A,U){var R,P,E,D,j,L,v,k,b,O,S,y,T,M,x,N,B,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,H,F,qe,Be,se,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,fn,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,Ko,ii,So,so,xr,Yi,Eo,ca,ra,lo,da,Ya,uo,Ui,qs=this&&this.__read||function(tn,en){var Dr="function"==typeof Symbol&&tn[Symbol.iterator];if(!Dr)return tn;var no,qi,Jo=Dr.call(tn),Ti=[];try{for(;(void 0===en||en-- >0)&&!(no=Jo.next()).done;)Ti.push(no.value)}catch(ro){qi={error:ro}}finally{try{no&&!no.done&&(Dr=Jo.return)&&Dr.call(Jo)}finally{if(qi)throw qi.error}}return Ti},oi=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 qo=U(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":(R={},R[1]="M0,.5 L1,.5",R),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(E={},E[1]="M.5,0 L.5,1",E),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(j={},j[1]="M0.5,1 L.5,.5 L1,.5",j),"\u250f":(L={},L[3]="M0.5,1 L.5,.5 L1,.5",L),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(k={},k[3]="M0,.5 L.5,.5 L.5,1",k),"\u2514":(b={},b[1]="M.5,0 L.5,.5 L1,.5",b),"\u2517":(O={},O[3]="M.5,0 L.5,.5 L1,.5",O),"\u2518":(S={},S[1]="M.5,0 L.5,.5 L0,.5",S),"\u251b":(y={},y[3]="M.5,0 L.5,.5 L0,.5",y),"\u251c":(T={},T[1]="M.5,0 L.5,1 M.5,.5 L1,.5",T),"\u2523":(M={},M[3]="M.5,0 L.5,1 M.5,.5 L1,.5",M),"\u2524":(x={},x[1]="M.5,0 L.5,1 M.5,.5 L0,.5",x),"\u252b":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L0,.5",N),"\u252c":(B={},B[1]="M0,.5 L1,.5 M.5,.5 L.5,1",B),"\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":(H={},H[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)},H),"\u2562":(F={},F[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"},F),"\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":(se={},se[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"},se),"\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":(fn={},fn[1]="M.5,.5 L.5,0",fn[3]="M0,.5 L.5,.5 L.5,1",fn),"\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":(Ko={},Ko[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Ko),"\u2505":(ii={},ii[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ii),"\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":(Yi={},Yi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yi),"\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,qi,Jo){var Ti=A.blockElementDefinitions[en];if(Ti)return function(Jr,Yn,An,cn,Ji,Oi){for(var Qi=0;Qi<Yn.length;Qi++){var Ii=Yn[Qi],ai=Ji/8,Mi=Oi/8;Jr.fillRect(An+Ii.x*ai,cn+Ii.y*Mi,Ii.w*ai,Ii.h*Mi)}}(tn,Ti,Dr,no,qi,Jo),!0;var ro=$u[en];if(ro)return function(Jr,Yn,An,cn,Ji,Oi){var Qi,Ii=to.get(Yn);Ii||(Ii=new Map,to.set(Yn,Ii));var ai=Jr.fillStyle;if("string"!=typeof ai)throw new Error('Unexpected fillStyle type "'+ai+'"');var Mi=Ii.get(ai);if(!Mi){var Hi=Yn[0].length,hr=Yn.length,co=document.createElement("canvas");co.width=Hi,co.height=hr;var fa=(0,qo.throwIfFalsy)(co.getContext("2d")),ka=new ImageData(Hi,hr),go=void 0,fo=void 0,ia=void 0,hl=void 0;if(ai.startsWith("#"))go=parseInt(ai.slice(1,3),16),fo=parseInt(ai.slice(3,5),16),ia=parseInt(ai.slice(5,7),16),hl=ai.length>7&&parseInt(ai.slice(7,9),16)||1;else{if(!ai.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ai+'" when drawing pattern glyph');go=(Qi=qs(ai.substring(5,ai.length-1).split(",").map(function(Qo){return parseFloat(Qo)}),4))[0],fo=Qi[1],ia=Qi[2],hl=Qi[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,qo.throwIfFalsy)(Jr.createPattern(co,null)),Ii.set(ai,Mi)}Jr.fillStyle=Mi,Jr.fillRect(An,cn,Ji,Oi)}(tn,ro,Dr,no,qi,Jo),!0;var Rn=A.boxDrawingDefinitions[en];if(Rn)return function(Jr,Yn,An,cn,Ji,Oi){var Qi,Ii,ai,Mi;Jr.strokeStyle=Jr.fillStyle;try{for(var Hi=oi(Object.entries(Yn)),hr=Hi.next();!hr.done;hr=Hi.next()){var co=qs(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*Ji):ka;try{for(var fo=(ai=void 0,oi(go.split(" "))),ia=fo.next();!ia.done;ia=fo.next()){var hl=ia.value,Ka=hl[0],qa=hu[Ka];if(qa){var Qo=hl.substring(1).split(",");Qo[0]&&Qo[1]&&qa(Jr,Ki(Qo,Ji,Oi,An,cn))}else console.error('Could not find drawing instructions for "'+Ka+'"')}}catch(Xo){ai={error:Xo}}finally{try{ia&&!ia.done&&(Mi=fo.return)&&Mi.call(fo)}finally{if(ai)throw ai.error}}Jr.stroke(),Jr.closePath()}}catch(Xo){Qi={error:Xo}}finally{try{hr&&!hr.done&&(Ii=Hi.return)&&Ii.call(Hi)}finally{if(Qi)throw Qi.error}}}(tn,Rn,Dr,no,qi,Jo),!0;var mu=A.powerlineDefinitions[en];return!!mu&&(function(Jr,Yn,An,cn,Ji,Oi){var Qi,Ii;Jr.beginPath(),Jr.lineWidth=window.devicePixelRatio;try{for(var ai=oi(Yn.d.split(" ")),Mi=ai.next();!Mi.done;Mi=ai.next()){var Hi=Mi.value,hr=Hi[0],co=hu[hr];if(co){var fa=Hi.substring(1).split(",");fa[0]&&fa[1]&&co(Jr,Ki(fa,Ji,Oi,An,cn,Yn.horizontalPadding))}else console.error('Could not find drawing instructions for "'+hr+'"')}}catch(ka){Qi={error:ka}}finally{try{Mi&&!Mi.done&&(Ii=ai.return)&&Ii.call(ai)}finally{if(Qi)throw Qi.error}}1===Yn.type?(Jr.strokeStyle=Jr.fillStyle,Jr.stroke()):Jr.fill(),Jr.closePath()}(tn,mu,Dr,no,qi,Jo),!0)};var to=new Map;function Ai(tn,en,Dr){return void 0===Dr&&(Dr=0),Math.max(Math.min(tn,en),Dr)}var hu={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 Ki(tn,en,Dr,no,qi,Jo){void 0===Jo&&(Jo=0);var Ti=tn.map(function(mu){return parseFloat(mu)||parseInt(mu)});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*Jo*window.devicePixelRatio,0!==Ti[ro]&&(Ti[ro]=Ai(Math.round(Ti[ro]+.5)-.5,en,0)),Ti[ro]+=no+Jo*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]+=qi;return Ti}},3700:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.GridCache=void 0;var U=function(){function R(){this.cache=[]}return R.prototype.resize=function(P,E){for(var D=0;D<P;D++){this.cache.length<=D&&this.cache.push([]);for(var j=this.cache[D].length;j<E;j++)this.cache[D].push(void 0);this.cache[D].length=E}this.cache.length=P},R.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var E=0;E<this.cache[P].length;E++)this.cache[P][E]=void 0},R}();A.GridCache=U},5098:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var B=O.length-1;B>=0;B--)(M=O[B])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.LinkRenderLayer=void 0;var j=U(1546),L=U(8803),v=U(2040),k=U(2585),b=function(O){function S(y,T,M,x,N,B,X,$,V){var Q=O.call(this,y,"link",T,!0,M,x,X,$,V)||this;return N.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),N.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),B.onShowLinkUnderline(function(te){return Q._onShowLinkUnderline(te)}),B.onHideLinkUnderline(function(te){return Q._onHideLinkUnderline(te)}),Q}return P(S,O),S.prototype.resize=function(y){O.prototype.resize.call(this,y),this._state=void 0},S.prototype.reset=function(){this._clearCurrentLink()},S.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var y=this._state.y2-this._state.y1-1;y>0&&this._clearCells(0,this._state.y1+1,this._state.cols,y),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},S.prototype._onShowLinkUnderline=function(y){if(y.fg===L.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:y.fg&&(0,v.is256Color)(y.fg)?this._ctx.fillStyle=this._colors.ansi[y.fg].css:this._ctx.fillStyle=this._colors.foreground.css,y.y1===y.y2)this._fillBottomLineAtCells(y.x1,y.y1,y.x2-y.x1);else{this._fillBottomLineAtCells(y.x1,y.y1,y.cols-y.x1);for(var T=y.y1+1;T<y.y2;T++)this._fillBottomLineAtCells(0,T,y.cols);this._fillBottomLineAtCells(0,y.y2,y.x2)}this._state=y},S.prototype._onHideLinkUnderline=function(y){this._clearCurrentLink()},E([D(6,k.IBufferService),D(7,k.IOptionsService),D(8,k.IDecorationService)],S)}(j.BaseRenderLayer);A.LinkRenderLayer=b},3525:function(W,A,U){var R,P=this&&this.__extends||(R=function(X,$){return(R=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(B,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=B}R(B,X),B.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)}),E=this&&this.__decorate||function(B,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(B,X,$,V);else for(var pe=B.length-1;pe>=0;pe--)(Q=B[pe])&&(be=(te<3?Q(be):te>3?Q(X,$,be):Q(X,$))||be);return te>3&&be&&Object.defineProperty(X,$,be),be},D=this&&this.__param||function(B,X){return function($,V){X($,V,B)}},j=this&&this.__values||function(B){var X="function"==typeof Symbol&&Symbol.iterator,$=X&&B[X],V=0;if($)return $.call(B);if(B&&"number"==typeof B.length)return{next:function(){return B&&V>=B.length&&(B=void 0),{value:B&&B[V++],done:!B}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Renderer=void 0;var L=U(9596),v=U(4149),k=U(2512),b=U(5098),O=U(844),S=U(4725),y=U(2585),T=U(1420),M=U(8460),x=1,N=function(B){function X($,V,Q,te,be,pe,fe,ue){var de=B.call(this)||this;de._colors=$,de._screenElement=V,de._bufferService=pe,de._charSizeService=fe,de._optionsService=ue,de._id=x++,de._onRequestRedraw=new M.EventEmitter;var ge=de._optionsService.rawOptions.allowTransparency;return de._renderLayers=[be.createInstance(L.TextRenderLayer,de._screenElement,0,de._colors,ge,de._id),be.createInstance(v.SelectionRenderLayer,de._screenElement,1,de._colors,de._id),be.createInstance(b.LinkRenderLayer,de._screenElement,2,de._colors,de._id,Q,te),be.createInstance(k.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 P(X,B),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}}B.prototype.dispose.call(this),(0,T.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)},E([D(4,y.IInstantiationService),D(5,y.IBufferService),D(6,S.ICharSizeService),D(7,y.IOptionsService)],X)}(O.Disposable);A.Renderer=N},1752:function(W,A){function U(R){return 57508<=R&&R<=57558}Object.defineProperty(A,"__esModule",{value:!0}),A.excludeFromContrastRatioDemands=A.isPowerlineGlyph=A.throwIfFalsy=void 0,A.throwIfFalsy=function(R){if(!R)throw new Error("value must not be falsy");return R},A.isPowerlineGlyph=U,A.excludeFromContrastRatioDemands=function(R){return U(R)||9472<=(P=R)&&P<=9631;var P}},4149:function(W,A,U){var R,P=this&&this.__extends||(R=function(b,O){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&(S[T]=y[T])})(b,O)},function(k,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=k}R(k,b),k.prototype=null===b?Object.create(b):(O.prototype=b.prototype,new O)}),E=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var x=k.length-1;x>=0;x--)(y=k[x])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},D=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionRenderLayer=void 0;var j=U(1546),L=U(2585),v=function(k){function b(O,S,y,T,M,x,N){var B=k.call(this,O,"selection",S,!0,y,T,M,x,N)||this;return B._clearState(),B}return P(b,k),b.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},b.prototype.resize=function(O){k.prototype.resize.call(this,O),this._clearState()},b.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},b.prototype.onSelectionChanged=function(O,S,y){if(k.prototype.onSelectionChanged.call(this,O,S,y),this._didStateChange(O,S,y,this._bufferService.buffer.ydisp))if(this._clearAll(),O&&S){var T=O[1]-this._bufferService.buffer.ydisp,M=S[1]-this._bufferService.buffer.ydisp,x=Math.max(T,0),N=Math.min(M,this._bufferService.rows-1);if(x>=this._bufferService.rows||N<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,y){var B=O[0],X=S[0]-B,$=N-x+1;this._fillCells(B,x,X,$)}else{B=T===x?O[0]:0;var V=x===M?S[0]:this._bufferService.cols;this._fillCells(B,x,V-B,1);var Q=Math.max(N-x-1,0);if(this._fillCells(0,x+1,this._bufferService.cols,Q),x!==N){var te=M===N?S[0]:this._bufferService.cols;this._fillCells(0,N,te,1)}}this._state.start=[O[0],O[1]],this._state.end=[S[0],S[1]],this._state.columnSelectMode=y,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},b.prototype._didStateChange=function(O,S,y,T){return!this._areCoordinatesEqual(O,this._state.start)||!this._areCoordinatesEqual(S,this._state.end)||y!==this._state.columnSelectMode||T!==this._state.ydisp},b.prototype._areCoordinatesEqual=function(O,S){return!(!O||!S)&&O[0]===S[0]&&O[1]===S[1]},E([D(4,L.IBufferService),D(5,L.IOptionsService),D(6,L.IDecorationService)],b)}(j.BaseRenderLayer);A.SelectionRenderLayer=v},9596:function(W,A,U){var R,P=this&&this.__extends||(R=function(N,B){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(X[V]=$[V])})(N,B)},function(x,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function B(){this.constructor=x}R(x,N),x.prototype=null===N?Object.create(N):(B.prototype=N.prototype,new B)}),E=this&&this.__decorate||function(x,N,B,X){var $,V=arguments.length,Q=V<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,B):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(x,N,B,X);else for(var te=x.length-1;te>=0;te--)($=x[te])&&(Q=(V<3?$(Q):V>3?$(N,B,Q):$(N,B))||Q);return V>3&&Q&&Object.defineProperty(N,B,Q),Q},D=this&&this.__param||function(x,N){return function(B,X){N(B,X,x)}},j=this&&this.__values||function(x){var N="function"==typeof Symbol&&Symbol.iterator,B=N&&x[N],X=0;if(B)return B.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&X>=x.length&&(x=void 0),{value:x&&x[X++],done:!x}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.TextRenderLayer=void 0;var L=U(3700),v=U(1546),k=U(3734),b=U(643),O=U(511),S=U(2585),y=U(4725),T=U(4269),M=function(x){function N(B,X,$,V,Q,te,be,pe,fe){var ue=x.call(this,B,"text",X,V,$,Q,te,be,fe)||this;return ue._characterJoinerService=pe,ue._characterWidth=0,ue._characterFont="",ue._characterOverlapCache={},ue._workCell=new O.CellData,ue._state=new L.GridCache,ue}return P(N,x),N.prototype.resize=function(B){x.prototype.resize.call(this,B);var X=this._getFont(!1,!1);this._characterWidth===B.scaledCharWidth&&this._characterFont===X||(this._characterWidth=B.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(B,X,$){for(var V=B;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 T.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)===b.NULL_CELL_CODE&&(fe.content&=-12582913,fe.content|=2<<22),$(fe,pe,V),pe=de}}},N.prototype._drawBackground=function(B,X){var $=this,V=this._ctx,Q=this._bufferService.cols,te=0,be=0,pe=null;V.save(),this._forEachCell(B,X,function(fe,ue,de){var ge,je,ot=null;fe.isInverse()?ot=fe.isFgDefault()?$._colors.foreground.css:fe.isFgRGB()?"rgb("+k.AttributeData.toColorRGB(fe.getFgColor()).join(",")+")":$._colors.ansi[fe.getFgColor()].css:fe.isBgRGB()?ot="rgb("+k.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(B,X){var $=this;this._forEachCell(B,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("+k.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("+k.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(B,X){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,B,this._bufferService.cols,X-B+1),this._drawBackground(B,X),this._drawForeground(B,X))},N.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},N.prototype._isOverlapping=function(B){if(1!==B.getWidth()||B.getCode()<256)return!1;var X=B.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]=$,$},E([D(5,S.IBufferService),D(6,S.IOptionsService),D(7,y.ICharacterJoinerService),D(8,S.IDecorationService)],N)}(v.BaseRenderLayer);A.TextRenderLayer=M},9616:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.BaseCharAtlas=void 0;var U=function(){function R(){this._didWarmUp=!1}return R.prototype.dispose=function(){},R.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},R.prototype._doWarmUp=function(){},R.prototype.clear=function(){},R.prototype.beginFrame=function(){},R}();A.BaseCharAtlas=U},1420:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.removeTerminalFromCache=A.acquireCharAtlas=void 0;var R=U(2040),P=U(1906),E=[];A.acquireCharAtlas=function(D,j,L,v,k){for(var b=(0,R.generateConfig)(v,k,D,L),O=0;O<E.length;O++){var S=(y=E[O]).ownedBy.indexOf(j);if(S>=0){if((0,R.configEquals)(y.config,b))return y.atlas;1===y.ownedBy.length?(y.atlas.dispose(),E.splice(O,1)):y.ownedBy.splice(S,1);break}}for(O=0;O<E.length;O++){var y=E[O];if((0,R.configEquals)(y.config,b))return y.ownedBy.push(j),y.atlas}var T={atlas:new P.DynamicCharAtlas(document,b),config:b,ownedBy:[j]};return E.push(T),T.atlas},A.removeTerminalFromCache=function(D){for(var j=0;j<E.length;j++){var L=E[j].ownedBy.indexOf(D);if(-1!==L){1===E[j].ownedBy.length?(E[j].atlas.dispose(),E.splice(j,1)):E[j].ownedBy.splice(L,1);break}}}},2040:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.is256Color=A.configEquals=A.generateConfig=void 0;var R=U(643);A.generateConfig=function(P,E,D,j){var L={foreground:j.foreground,background:j.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:j.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:P,scaledCharHeight:E,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:L}},A.configEquals=function(P,E){for(var D=0;D<P.colors.ansi.length;D++)if(P.colors.ansi[D].rgba!==E.colors.ansi[D].rgba)return!1;return P.devicePixelRatio===E.devicePixelRatio&&P.fontFamily===E.fontFamily&&P.fontSize===E.fontSize&&P.fontWeight===E.fontWeight&&P.fontWeightBold===E.fontWeightBold&&P.allowTransparency===E.allowTransparency&&P.scaledCharWidth===E.scaledCharWidth&&P.scaledCharHeight===E.scaledCharHeight&&P.colors.foreground===E.colors.foreground&&P.colors.background===E.colors.background},A.is256Color=function(P){return P<R.DEFAULT_COLOR}},8803:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.CHAR_ATLAS_CELL_SPACING=A.TEXT_BASELINE=A.DIM_OPACITY=A.INVERTED_DEFAULT_COLOR=void 0;var R=U(6114);A.INVERTED_DEFAULT_COLOR=257,A.DIM_OPACITY=.5,A.TEXT_BASELINE=R.isFirefox||R.isLegacyEdge?"bottom":"ideographic",A.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,A,U){var R,P=this&&this.__extends||(R=function(X,$){return(R=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(B,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=B}R(B,X),B.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 E=U(8803),D=U(9616),j=U(5680),L=U(7001),v=U(6114),k=U(1752),b=U(8055),O=1024,S=1024,y={css:"rgba(0, 0, 0, 0)",rgba:0};function T(B){return B.code<<21|B.bg<<12|B.fg<<3|(B.bold?0:4)+(B.dim?0:2)+(B.italic?0:1)}A.getGlyphCacheKey=T;var M=function(B){function X($,V){var Q=B.call(this)||this;Q._config=V,Q._drawToCacheCount=0,Q._glyphsWaitingOnBitmap=[],Q._bitmapCommitTimeout=null,Q._bitmap=null,Q._cacheCanvas=$.createElement("canvas"),Q._cacheCanvas.width=O,Q._cacheCanvas.height=S,Q._cacheCtx=(0,k.throwIfFalsy)(Q._cacheCanvas.getContext("2d",{alpha:!0}));var te=$.createElement("canvas");te.width=Q._config.scaledCharWidth,te.height=Q._config.scaledCharHeight,Q._tmpCtx=(0,k.throwIfFalsy)(te.getContext("2d",{alpha:Q._config.allowTransparency})),Q._width=Math.floor(O/Q._config.scaledCharWidth),Q._height=Math.floor(S/Q._config.scaledCharHeight);var be=Q._width*Q._height;return Q._cacheMap=new L.LRUMap(be),Q._cacheMap.prealloc(be),Q}return P(X,B),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 L.LRUMap($),this._cacheMap.prealloc($)}this._cacheCtx.clearRect(0,0,O,S),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=T(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?y:$.bg===E.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:$.bg<256?this._getColorFromAnsiIndex($.bg):this._config.colors.background},X.prototype._getForegroundColor=function($){return $.fg===E.INVERTED_DEFAULT_COLOR?b.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=E.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor($).css,$.dim&&(this._tmpCtx.globalAlpha=E.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}(D.BaseCharAtlas);A.DynamicCharAtlas=M;var x=function(B){function X($,V){return B.call(this)||this}return P(X,B),X.prototype.draw=function($,V,Q,te){return!1},X}(D.BaseCharAtlas);function N(B,X){for(var $=!0,V=X.rgba>>>24,Q=X.rgba>>>16&255,te=X.rgba>>>8&255,be=0;be<B.data.length;be+=4)B.data[be]===V&&B.data[be+1]===Q&&B.data[be+2]===te?B.data[be+3]=0:$=!1;return $}A.NoneCharAtlas=x},7001:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.LRUMap=void 0;var U=function(){function R(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return R.prototype._unlinkNode=function(P){var E=P.prev,D=P.next;P===this._head&&(this._head=D),P===this._tail&&(this._tail=E),null!==E&&(E.next=D),null!==D&&(D.prev=E)},R.prototype._appendNode=function(P){var E=this._tail;null!==E&&(E.next=P),P.prev=E,P.next=null,this._tail=P,null===this._head&&(this._head=P)},R.prototype.prealloc=function(P){for(var E=this._nodePool,D=0;D<P;D++)E.push({prev:null,next:null,key:null,value:null})},R.prototype.get=function(P){var E=this._map[P];return void 0!==E?(this._unlinkNode(E),this._appendNode(E),E.value):null},R.prototype.peekValue=function(P){var E=this._map[P];return void 0!==E?E.value:null},R.prototype.peek=function(){var P=this._head;return null===P?null:P.value},R.prototype.set=function(P,E){var D=this._map[P];if(void 0!==D)D=this._map[P],this._unlinkNode(D),D.value=E;else if(this.size>=this.capacity)D=this._head,this._unlinkNode(D),delete this._map[D.key],D.key=P,D.value=E,this._map[P]=D;else{var j=this._nodePool;j.length>0?((D=j.pop()).key=P,D.value=E):D={prev:null,next:null,key:P,value:E},this._map[P]=D,this.size++}this._appendNode(D)},R}();A.LRUMap=U},1296:function(W,A,U){var R,P=this&&this.__extends||(R=function(Q,te){return(R=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}R(V,Q),V.prototype=null===Q?Object.create(Q):(te.prototype=Q.prototype,new te)}),E=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},D=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 L=U(3787),v=U(8803),k=U(844),b=U(4725),O=U(2585),S=U(8460),y=U(8055),T=U(9631),M="xterm-dom-renderer-owner-",x="xterm-fg-",N="xterm-bg-",B="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(L.DomRendererRowFactory,document,Tt._colors),Tt._element.classList.add(M+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 P(Q,V),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return(new S.EventEmitter).event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._element.classList.remove(M+this._terminalClass),(0,T.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(."+L.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+L.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+L.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) ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+":not(."+L.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.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+" ."+x+fe+" { color: "+pe.css+"; }"+te._terminalSelector+" ."+N+fe+" { background-color: "+pe.css+"; }"}),be+=this._terminalSelector+" ."+x+v.INVERTED_DEFAULT_COLOR+" { color: "+y.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(B)},Q.prototype.onFocus=function(){this._rowContainer.classList.add(B)},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"."+M+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++)}},E([D(6,O.IInstantiationService),D(7,b.ICharSizeService),D(8,O.IOptionsService),D(9,O.IBufferService)],Q)}(k.Disposable);A.DomRenderer=$},3787:function(W,A,U){var R=this&&this.__decorate||function(M,x,N,B){var X,$=arguments.length,V=$<3?x:null===B?B=Object.getOwnPropertyDescriptor(x,N):B;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)V=Reflect.decorate(M,x,N,B);else for(var Q=M.length-1;Q>=0;Q--)(X=M[Q])&&(V=($<3?X(V):$>3?X(x,N,V):X(x,N))||V);return $>3&&V&&Object.defineProperty(x,N,V),V},P=this&&this.__param||function(M,x){return function(N,B){x(N,B,M)}},E=this&&this.__values||function(M){var x="function"==typeof Symbol&&Symbol.iterator,N=x&&M[x],B=0;if(N)return N.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&B>=M.length&&(M=void 0),{value:M&&M[B++],done:!M}}};throw new TypeError(x?"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 D=U(8803),j=U(643),L=U(511),v=U(2585),k=U(8055),b=U(4725),O=U(4269),S=U(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 y=function(){function M(x,N,B,X,$,V){this._document=x,this._colors=N,this._characterJoinerService=B,this._optionsService=X,this._coreService=$,this._decorationService=V,this._workCell=new L.CellData,this._columnSelectMode=!1}return M.prototype.setColors=function(x){this._colors=x},M.prototype.onSelectionChanged=function(x,N,B){this._selectionStart=x,this._selectionEnd=N,this._columnSelectMode=B},M.prototype.createRow=function(x,N,B,X,$,V,Q,te){for(var be,pe,fe=this._document.createDocumentFragment(),ue=this._characterJoinerService.getJoinedCharacters(N),de=0,ge=Math.min(x.length,te)-1;ge>=0;ge--)if(x.loadCell(ge,this._workCell).getCode()!==j.NULL_CELL_CODE||B&&ge===$){de=ge+1;break}for(ge=0;ge<de;ge++){x.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 O.JoinedCellData(this._workCell,x.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&&B&&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,E(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 H=this._isCellInSelection(ge,N);at||this._colors.selectionForeground&&H&&($t=50331648,Ze=this._colors.selectionForeground.rgba>>8&16777215,Ve=this._colors.selectionForeground),H&&(Ct=this._colors.selectionOpaque,at=!0),at&&Rt.classList.add("xterm-decoration-top");var F=void 0;switch(pn){case 16777216:case 33554432:F=this._colors.ansi[Ft],Rt.classList.add("xterm-bg-"+Ft);break;case 50331648:F=k.rgba.toColor(Ft>>16,Ft>>8&255,255&Ft),this._addStyle(Rt,"background-color:#"+T((Ft>>>0).toString(16),"0",6));break;default:rt?(F=this._colors.foreground,Rt.classList.add("xterm-bg-"+D.INVERTED_DEFAULT_COLOR)):F=this._colors.background}switch($t){case 16777216:case 33554432:Tt.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(Rt,F,this._colors.ansi[Ze],Tt,Ct,void 0)||Rt.classList.add("xterm-fg-"+Ze);break;case 50331648:var qe=k.rgba.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(Rt,F,qe,Tt,Ct,Ve)||this._addStyle(Rt,"color:#"+T(Ze.toString(16),"0",6));break;default:this._applyMinimumContrast(Rt,F,this._colors.foreground,Tt,Ct,void 0)||rt&&Rt.classList.add("xterm-fg-"+D.INVERTED_DEFAULT_COLOR)}fe.appendChild(Rt),ge=St}}return fe},M.prototype._applyMinimumContrast=function(x,N,B,X,$,V){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,S.excludeFromContrastRatioDemands)(X.getCode()))return!1;var Q=void 0;return $||V||(Q=this._colors.contrastCache.getColor(N.rgba,B.rgba)),void 0===Q&&(Q=k.color.ensureContrastRatio($||N,V||B,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(($||N).rgba,(V||B).rgba,null!=Q?Q:null)),!!Q&&(this._addStyle(x,"color:"+Q.css),!0)},M.prototype._addStyle=function(x,N){x.setAttribute("style",""+(x.getAttribute("style")||"")+N+";")},M.prototype._isCellInSelection=function(x,N){var B=this._selectionStart,X=this._selectionEnd;return!(!B||!X)&&(this._columnSelectMode?B[0]<=X[0]?x>=B[0]&&N>=B[1]&&x<X[0]&&N<=X[1]:x<B[0]&&N>=B[1]&&x>=X[0]&&N<=X[1]:N>B[1]&&N<X[1]||B[1]===X[1]&&N===B[1]&&x>=B[0]&&x<X[0]||B[1]<X[1]&&N===X[1]&&x<X[0]||B[1]<X[1]&&N===B[1]&&x>=B[0])},R([P(2,b.ICharacterJoinerService),P(3,v.IOptionsService),P(4,v.ICoreService),P(5,v.IDecorationService)],M)}();function T(M,x,N){for(;M.length<N;)M=x+M;return M}A.DomRendererRowFactory=y},456:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionModel=void 0;var U=function(){function R(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return R.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(R.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(R.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(E=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?E%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)-1]:[E%this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)]:[E,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(E=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[E%this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)]:[Math.max(E,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var E},enumerable:!1,configurable:!0}),R.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,E=this.selectionEnd;return!(!P||!E)&&(P[1]>E[1]||P[1]===E[1]&&P[0]>E[0])},R.prototype.onTrim=function(P){return this.selectionStart&&(this.selectionStart[1]-=P),this.selectionEnd&&(this.selectionEnd[1]-=P),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},R}();A.SelectionModel=U},428:function(W,A,U){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharSizeService=void 0;var E=U(2585),D=U(8460),j=function(){function v(k,b,O){this._optionsService=O,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new L(k,b,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 k=this._measureStrategy.measure();k.width===this.width&&k.height===this.height||(this.width=k.width,this.height=k.height,this._onCharSizeChange.fire())},R([P(2,E.IOptionsService)],v)}();A.CharSizeService=j;var L=function(){function v(k,b,O){this._document=k,this._parentElement=b,this._optionsService=O,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 k=this._measureElement.getBoundingClientRect();return 0!==k.width&&0!==k.height&&(this._result.width=k.width,this._result.height=Math.ceil(k.height)),this._result},v}()},4269:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,B=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(B=(N<3?x(B):N>3?x(y,T,B):x(y,T))||B);return N>3&&B&&Object.defineProperty(y,T,B),B},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharacterJoinerService=A.JoinedCellData=void 0;var j=U(3734),L=U(643),v=U(511),k=U(2585),b=function(S){function y(T,M,x){var N=S.call(this)||this;return N.content=0,N.combinedData="",N.fg=T.fg,N.bg=T.bg,N.combinedData=M,N._width=x,N}return P(y,S),y.prototype.isCombined=function(){return 2097152},y.prototype.getWidth=function(){return this._width},y.prototype.getChars=function(){return this.combinedData},y.prototype.getCode=function(){return 2097151},y.prototype.setFromCharData=function(T){throw new Error("not implemented")},y.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},y}(j.AttributeData);A.JoinedCellData=b;var O=function(){function S(y){this._bufferService=y,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return S.prototype.register=function(y){var T={id:this._nextCharacterJoinerId++,handler:y};return this._characterJoiners.push(T),T.id},S.prototype.deregister=function(y){for(var T=0;T<this._characterJoiners.length;T++)if(this._characterJoiners[T].id===y)return this._characterJoiners.splice(T,1),!0;return!1},S.prototype.getJoinedCharacters=function(y){if(0===this._characterJoiners.length)return[];var T=this._bufferService.buffer.lines.get(y);if(!T||0===T.length)return[];for(var M=[],x=T.translateToString(!0),N=0,B=0,X=0,$=T.getFg(0),V=T.getBg(0),Q=0;Q<T.getTrimmedLength();Q++)if(T.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(x,X,B,T,N),be=0;be<te.length;be++)M.push(te[be]);N=Q,X=B,$=this._workCell.fg,V=this._workCell.bg}B+=this._workCell.getChars().length||L.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-N>1)for(te=this._getJoinedRanges(x,X,B,T,N),be=0;be<te.length;be++)M.push(te[be]);return M},S.prototype._getJoinedRanges=function(y,T,M,x,N){var B=y.substring(T,M),X=[];try{X=this._characterJoiners[0].handler(B)}catch(te){console.error(te)}for(var $=1;$<this._characterJoiners.length;$++)try{for(var V=this._characterJoiners[$].handler(B),Q=0;Q<V.length;Q++)S._mergeRanges(X,V[Q])}catch(te){console.error(te)}return this._stringRangesToCellRanges(X,x,N),X},S.prototype._stringRangesToCellRanges=function(y,T,M){var x=0,N=!1,B=0,X=y[x];if(X){for(var $=M;$<this._bufferService.cols;$++){var V=T.getWidth($),Q=T.getString($).length||L.WHITESPACE_CELL_CHAR.length;if(0!==V){if(!N&&X[0]<=B&&(X[0]=$,N=!0),X[1]<=B){if(X[1]=$,!(X=y[++x]))break;X[0]<=B?(X[0]=$,N=!0):N=!1}B+=Q}}X&&(X[1]=this._bufferService.cols)}},S._mergeRanges=function(y,T){for(var M=!1,x=0;x<y.length;x++){var N=y[x];if(M){if(T[1]<=N[0])return y[x-1][1]=T[1],y;if(T[1]<=N[1])return y[x-1][1]=Math.max(T[1],N[1]),y.splice(x,1),y;y.splice(x,1),x--}else{if(T[1]<=N[0])return y.splice(x,0,T),y;if(T[1]<=N[1])return N[0]=Math.min(T[0],N[0]),y;T[0]<N[1]&&(N[0]=Math.min(T[0],N[0]),M=!0)}}return M?y[y.length-1][1]=T[1]:y.push(T),y},S=E([D(0,k.IBufferService)],S)}();A.CharacterJoinerService=O},5114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CoreBrowserService=void 0;var U=function(){function R(P){this._textarea=P}return Object.defineProperty(R.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),R}();A.CoreBrowserService=U},8934:function(W,A,U){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseService=void 0;var E=U(4725),D=U(9806),j=function(){function L(v,k){this._renderService=v,this._charSizeService=k}return L.prototype.getCoords=function(v,k,b,O,S){return(0,D.getCoords)(window,v,k,b,O,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,S)},L.prototype.getRawByteCoords=function(v,k,b,O){var S=this.getCoords(v,k,b,O);return(0,D.getRawByteCoords)(S)},R([P(0,E.IRenderService),P(1,E.ICharSizeService)],L)}();A.MouseService=j},3230:function(W,A,U){var R,P=this&&this.__extends||(R=function(M,x){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,B){N.__proto__=B}||function(N,B){for(var X in B)Object.prototype.hasOwnProperty.call(B,X)&&(N[X]=B[X])})(M,x)},function(T,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function x(){this.constructor=T}R(T,M),T.prototype=null===M?Object.create(M):(x.prototype=M.prototype,new x)}),E=this&&this.__decorate||function(T,M,x,N){var B,X=arguments.length,$=X<3?M:null===N?N=Object.getOwnPropertyDescriptor(M,x):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(T,M,x,N);else for(var V=T.length-1;V>=0;V--)(B=T[V])&&($=(X<3?B($):X>3?B(M,x,$):B(M,x))||$);return X>3&&$&&Object.defineProperty(M,x,$),$},D=this&&this.__param||function(T,M){return function(x,N){M(x,N,T)}};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderService=void 0;var j=U(6193),L=U(8460),v=U(844),k=U(5596),b=U(3656),O=U(2585),S=U(4725),y=function(T){function M(x,N,B,X,$,V,Q){var te=T.call(this)||this;if(te._renderer=x,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 L.EventEmitter,te._onRenderedViewportChange=new L.EventEmitter,te._onRender=new L.EventEmitter,te._onRefreshRequest=new L.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 k.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,b.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(B),te.register({dispose:function(){return be.disconnect()}})}return te}return P(M,T),Object.defineProperty(M.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),M.prototype._onIntersectionChange=function(x){this._isPaused=void 0===x.isIntersecting?0===x.intersectionRatio:!x.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},M.prototype.refreshRows=function(x,N,B){void 0===B&&(B=!1),this._isPaused?this._needsFullRefresh=!0:(B||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(x,N,this._rowCount))},M.prototype._renderRows=function(x,N){this._renderer.renderRows(x,N),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:x,end:N}),this._onRender.fire({start:x,end:N}),this._isNextRenderRedrawOnly=!0},M.prototype.resize=function(x,N){this._rowCount=N,this._fireOnCanvasResize()},M.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},M.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},M.prototype.dispose=function(){T.prototype.dispose.call(this)},M.prototype.setRenderer=function(x){var N=this;this._renderer.dispose(),this._renderer=x,this._renderer.onRequestRedraw(function(B){return N.refreshRows(B.start,B.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},M.prototype.addRefreshCallback=function(x){return this._renderDebouncer.addRefreshCallback(x)},M.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},M.prototype.clearTextureAtlas=function(){var x,N;null===(N=null===(x=this._renderer)||void 0===x?void 0:x.clearTextureAtlas)||void 0===N||N.call(x),this._fullRefresh()},M.prototype.setColors=function(x){this._renderer.setColors(x),this._fullRefresh()},M.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},M.prototype.onResize=function(x,N){this._renderer.onResize(x,N),this._fullRefresh()},M.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},M.prototype.onBlur=function(){this._renderer.onBlur()},M.prototype.onFocus=function(){this._renderer.onFocus()},M.prototype.onSelectionChanged=function(x,N,B){this._selectionState.start=x,this._selectionState.end=N,this._selectionState.columnSelectMode=B,this._renderer.onSelectionChanged(x,N,B)},M.prototype.onCursorMove=function(){this._renderer.onCursorMove()},M.prototype.clear=function(){this._renderer.clear()},E([D(3,O.IOptionsService),D(4,S.ICharSizeService),D(5,O.IDecorationService),D(6,O.IBufferService)],M)}(v.Disposable);A.RenderService=y},9312:function(W,A,U){var R,P=this&&this.__extends||(R=function($,V){return(R=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}R(X,$),X.prototype=null===$?Object.create($):(V.prototype=$.prototype,new V)}),E=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},D=this&&this.__param||function(X,$){return function(V,Q){$(V,Q,X)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionService=void 0;var j=U(6114),L=U(456),v=U(511),k=U(8460),b=U(4725),O=U(2585),S=U(9806),y=U(9504),T=U(844),M=U(4841),x=String.fromCharCode(160),N=new RegExp(x,"g"),B=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 k.EventEmitter),ge._onRedrawRequest=ge.register(new k.EventEmitter),ge._onSelectionChange=ge.register(new k.EventEmitter),ge._onRequestScrollLines=ge.register(new k.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 L.SelectionModel(ge._bufferService),ge._activeSelectionMode=0,ge}return P($,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,M.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,S.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,y.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,M.getRangeLength)(te,this._bufferService.cols)},E([D(3,O.IBufferService),D(4,O.ICoreService),D(5,b.IMouseService),D(6,O.IOptionsService),D(7,b.IRenderService)],$)}(T.Disposable);A.SelectionService=B},4725:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.ICharacterJoinerService=A.ISoundService=A.ISelectionService=A.IRenderService=A.IMouseService=A.ICoreBrowserService=A.ICharSizeService=void 0;var R=U(8343);A.ICharSizeService=(0,R.createDecorator)("CharSizeService"),A.ICoreBrowserService=(0,R.createDecorator)("CoreBrowserService"),A.IMouseService=(0,R.createDecorator)("MouseService"),A.IRenderService=(0,R.createDecorator)("RenderService"),A.ISelectionService=(0,R.createDecorator)("SelectionService"),A.ISoundService=(0,R.createDecorator)("SoundService"),A.ICharacterJoinerService=(0,R.createDecorator)("CharacterJoinerService")},357:function(W,A,U){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SoundService=void 0;var E=U(2585),D=function(){function j(L){this._optionsService=L}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 L=j.audioContext;if(L){var v=L.createBufferSource();L.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(k){v.buffer=k,v.connect(L.destination),v.start(0)})}},j.prototype._base64ToArrayBuffer=function(L){for(var v=window.atob(L),k=v.length,b=new Uint8Array(k),O=0;O<k;O++)b[O]=v.charCodeAt(O);return b.buffer},j.prototype._removeMimeType=function(L){return L.split(",")[1]},j=R([P(0,E.IOptionsService)],j)}();A.SoundService=D},6349:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.CircularList=void 0;var R=U(8460),P=function(){function E(D){this._maxLength=D,this.onDeleteEmitter=new R.EventEmitter,this.onInsertEmitter=new R.EventEmitter,this.onTrimEmitter=new R.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(E.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"maxLength",{get:function(){return this._maxLength},set:function(j){if(this._maxLength!==j){for(var L=new Array(j),v=0;v<Math.min(j,this.length);v++)L[v]=this._array[this._getCyclicIndex(v)];this._array=L,this._maxLength=j,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._length},set:function(j){if(j>this._length)for(var L=this._length;L<j;L++)this._array[L]=void 0;this._length=j},enumerable:!1,configurable:!0}),E.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},E.prototype.set=function(D,j){this._array[this._getCyclicIndex(D)]=j},E.prototype.push=function(D){this._array[this._getCyclicIndex(this._length)]=D,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},E.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(E.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),E.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},E.prototype.splice=function(D,j){for(var L=[],v=2;v<arguments.length;v++)L[v-2]=arguments[v];if(j){for(var k=D;k<this._length-j;k++)this._array[this._getCyclicIndex(k)]=this._array[this._getCyclicIndex(k+j)];this._length-=j,this.onDeleteEmitter.fire({index:D,amount:j})}for(k=this._length-1;k>=D;k--)this._array[this._getCyclicIndex(k+L.length)]=this._array[this._getCyclicIndex(k)];for(k=0;k<L.length;k++)this._array[this._getCyclicIndex(D+k)]=L[k];if(L.length&&this.onInsertEmitter.fire({index:D,amount:L.length}),this._length+L.length>this._maxLength){var b=this._length+L.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=L.length},E.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},E.prototype.shiftElements=function(D,j,L){if(!(j<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+L<0)throw new Error("Cannot shift elements in list beyond index 0");if(L>0){for(var v=j-1;v>=0;v--)this.set(D+v+L,this.get(D+v));var k=D+j+L-this._length;if(k>0)for(this._length+=k;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<j;v++)this.set(D+v+L,this.get(D+v))}},E.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},E}();A.CircularList=P},1439:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function U(R,P){if(void 0===P&&(P=5),"object"!=typeof R)return R;var E=Array.isArray(R)?[]:{};for(var D in R)E[D]=P<=1?R[D]:R[D]&&U(R[D],P-1);return E}},8055:function(W,A){var U,R,P,E,v,D=this&&this.__read||function(v,k){var b="function"==typeof Symbol&&v[Symbol.iterator];if(!b)return v;var O,S,y=b.call(v),T=[];try{for(;(void 0===k||k-- >0)&&!(O=y.next()).done;)T.push(O.value)}catch(M){S={error:M}}finally{try{O&&!O.done&&(b=y.return)&&b.call(y)}finally{if(S)throw S.error}}return T};function j(v){var k=v.toString(16);return k.length<2?"0"+k:k}function L(v,k){return v<k?(k+.05)/(v+.05):(v+.05)/(k+.05)}Object.defineProperty(A,"__esModule",{value:!0}),A.contrastRatio=A.toPaddedHex=A.rgba=A.rgb=A.css=A.color=A.channels=void 0,(v=U=A.channels||(A.channels={})).toCss=function(k,b,O,S){return void 0!==S?"#"+j(k)+j(b)+j(O)+j(S):"#"+j(k)+j(b)+j(O)},v.toRgba=function(k,b,O,S){return void 0===S&&(S=255),(k<<24|b<<16|O<<8|S)>>>0},(R=A.color||(A.color={})).blend=function(v,k){var b=(255&k.rgba)/255;if(1===b)return{css:k.css,rgba:k.rgba};var O=k.rgba>>24&255,S=k.rgba>>16&255,y=k.rgba>>8&255,T=v.rgba>>24&255,M=v.rgba>>16&255,x=v.rgba>>8&255,N=T+Math.round((O-T)*b),B=M+Math.round((S-M)*b),X=x+Math.round((y-x)*b);return{css:U.toCss(N,B,X),rgba:U.toRgba(N,B,X)}},R.isOpaque=function(v){return 255==(255&v.rgba)},R.ensureContrastRatio=function(v,k,b){var O=E.ensureContrastRatio(v.rgba,k.rgba,b);if(O)return E.toColor(O>>24&255,O>>16&255,O>>8&255)},R.opaque=function(v){var k=(255|v.rgba)>>>0,b=D(E.toChannels(k),3),O=b[0],S=b[1],y=b[2];return{css:U.toCss(O,S,y),rgba:k}},R.opacity=function(v,k){var b=Math.round(255*k),O=D(E.toChannels(v.rgba),3),S=O[0],y=O[1],T=O[2];return{css:U.toCss(S,y,T,b),rgba:U.toRgba(S,y,T,b)}},R.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 k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);return E.toColor(k,b,O);case 5:k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);var S=parseInt(v.slice(4,5).repeat(2),16);return E.toColor(k,b,O,S);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 y=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(y)return k=parseInt(y[1]),b=parseInt(y[2]),O=parseInt(y[3]),S=Math.round(255*(void 0===y[5]?1:parseFloat(y[5]))),E.toColor(k,b,O,S);throw new Error("css.toColor: Unsupported css format")},function(v){function k(b,O,S){var y=b/255,T=O/255,M=S/255;return.2126*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))+.7152*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.0722*(M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4))}v.relativeLuminance=function(b){return k(b>>16&255,b>>8&255,255&b)},v.relativeLuminance2=k}(P=A.rgb||(A.rgb={})),function(v){function k(O,S,y){for(var T=O>>24&255,M=O>>16&255,x=O>>8&255,N=S>>24&255,B=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,B,X),P.relativeLuminance2(T,M,x));$<y&&(N>0||B>0||X>0);)N-=Math.max(0,Math.ceil(.1*N)),B-=Math.max(0,Math.ceil(.1*B)),X-=Math.max(0,Math.ceil(.1*X)),$=L(P.relativeLuminance2(N,B,X),P.relativeLuminance2(T,M,x));return(N<<24|B<<16|X<<8|255)>>>0}function b(O,S,y){for(var T=O>>24&255,M=O>>16&255,x=O>>8&255,N=S>>24&255,B=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,B,X),P.relativeLuminance2(T,M,x));$<y&&(N<255||B<255||X<255);)N=Math.min(255,N+Math.ceil(.1*(255-N))),B=Math.min(255,B+Math.ceil(.1*(255-B))),X=Math.min(255,X+Math.ceil(.1*(255-X))),$=L(P.relativeLuminance2(N,B,X),P.relativeLuminance2(T,M,x));return(N<<24|B<<16|X<<8|255)>>>0}v.ensureContrastRatio=function(O,S,y){var T=P.relativeLuminance(O>>8),M=P.relativeLuminance(S>>8);if(L(T,M)<y){if(M<T){var x=k(O,S,y),N=L(T,P.relativeLuminance(x>>8));if(N<y){var B=b(O,O,y);return N>L(T,P.relativeLuminance(B>>8))?x:B}return x}var X=b(O,S,y),$=L(T,P.relativeLuminance(X>>8));return $<y?(B=k(O,O,y),$>L(T,P.relativeLuminance(B>>8))?X:B):X}},v.reduceLuminance=k,v.increaseLuminance=b,v.toChannels=function(O){return[O>>24&255,O>>16&255,O>>8&255,255&O]},v.toColor=function(O,S,y,T){return{css:U.toCss(O,S,y,T),rgba:U.toRgba(O,S,y,T)}}}(E=A.rgba||(A.rgba={})),A.toPaddedHex=j,A.contrastRatio=L},8969:function(W,A,U){var R,P=this&&this.__extends||(R=function(te,be){return(R=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}R(Q,te),Q.prototype=null===te?Object.create(te):(be.prototype=te.prototype,new be)}),E=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 D=U(844),j=U(2585),L=U(4348),v=U(7866),k=U(744),b=U(7302),O=U(6975),S=U(8460),y=U(1753),T=U(3730),M=U(1480),x=U(7994),N=U(9282),B=U(5435),X=U(5981),$=!1,V=function(Q){function te(be){var pe=Q.call(this)||this;return pe._onBinary=new S.EventEmitter,pe._onData=new S.EventEmitter,pe._onLineFeed=new S.EventEmitter,pe._onResize=new S.EventEmitter,pe._onScroll=new S.EventEmitter,pe._onWriteParsed=new S.EventEmitter,pe._instantiationService=new L.InstantiationService,pe.optionsService=new b.OptionsService(be),pe._instantiationService.setService(j.IOptionsService,pe.optionsService),pe._bufferService=pe.register(pe._instantiationService.createInstance(k.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(O.CoreService,function(){return pe.scrollToBottom()})),pe._instantiationService.setService(j.ICoreService,pe.coreService),pe.coreMouseService=pe._instantiationService.createInstance(y.CoreMouseService),pe._instantiationService.setService(j.ICoreMouseService,pe.coreMouseService),pe._dirtyRowService=pe._instantiationService.createInstance(T.DirtyRowService),pe._instantiationService.setService(j.IDirtyRowService,pe._dirtyRowService),pe.unicodeService=pe._instantiationService.createInstance(M.UnicodeService),pe._instantiationService.setService(j.IUnicodeService,pe.unicodeService),pe._charsetService=pe._instantiationService.createInstance(x.CharsetService),pe._instantiationService.setService(j.ICharsetService,pe._charsetService),pe._inputHandler=new B.InputHandler(pe._bufferService,pe._charsetService,pe.coreService,pe._dirtyRowService,pe._logService,pe.optionsService,pe.coreMouseService,pe.unicodeService),pe.register((0,S.forwardEvent)(pe._inputHandler.onLineFeed,pe._onLineFeed)),pe.register(pe._inputHandler),pe.register((0,S.forwardEvent)(pe._bufferService.onResize,pe._onResize)),pe.register((0,S.forwardEvent)(pe.coreService.onData,pe._onData)),pe.register((0,S.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,S.forwardEvent)(pe._writeBuffer.onWriteParsed,pe._onWriteParsed)),pe}return P(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 S.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,k.MINIMUM_COLS),pe=Math.max(pe,k.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=E(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}(D.Disposable);A.CoreTerminal=V},8460:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.forwardEvent=A.EventEmitter=void 0;var U=function(){function R(){this._listeners=[],this._disposed=!1}return Object.defineProperty(R.prototype,"event",{get:function(){var E=this;return this._event||(this._event=function(D){return E._listeners.push(D),{dispose:function(){if(!E._disposed)for(var L=0;L<E._listeners.length;L++)if(E._listeners[L]===D)return void E._listeners.splice(L,1)}}}),this._event},enumerable:!1,configurable:!0}),R.prototype.fire=function(P,E){for(var D=[],j=0;j<this._listeners.length;j++)D.push(this._listeners[j]);for(j=0;j<D.length;j++)D[j].call(void 0,P,E)},R.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},R}();A.EventEmitter=U,A.forwardEvent=function(R,P){return R(function(E){return P.fire(E)})}},5435:function(W,A,U){var R,P=this&&this.__extends||(R=function(fe,ue){return(R=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}R(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 E,pe,D=U(2584),j=U(7116),L=U(2015),v=U(844),k=U(8273),b=U(482),O=U(8437),S=U(8460),y=U(643),T=U(511),M=U(3734),x=U(2585),N=U(6242),B=U(6351),X=U(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=E=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,k.concat)(this._data,fe.subarray(ue,de))},pe.prototype.unhook=function(fe){if(!fe)return this._data=new Uint32Array(0),!0;var ue=(0,b.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),ue){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":var de=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+de+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.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(D.C0.ESC+"P1$r"+ge+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",ue),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},pe}(),be=function(pe){function fe(ue,de,ge,je,ot,St,Tt,Dt,Rt){void 0===Rt&&(Rt=new L.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 b.StringToUtf32,Ze._utf8Decoder=new b.Utf8ToUtf32,Ze._workCell=new T.CellData,Ze._windowTitle="",Ze._iconName="",Ze._windowTitleStack=[],Ze._iconNameStack=[],Ze._curAttrData=O.DEFAULT_ATTR_DATA.clone(),Ze._eraseAttrDataInternal=O.DEFAULT_ATTR_DATA.clone(),Ze._onRequestBell=new S.EventEmitter,Ze._onRequestRefreshRows=new S.EventEmitter,Ze._onRequestReset=new S.EventEmitter,Ze._onRequestSendFocus=new S.EventEmitter,Ze._onRequestSyncScrollBar=new S.EventEmitter,Ze._onRequestWindowsOptionsReport=new S.EventEmitter,Ze._onA11yChar=new S.EventEmitter,Ze._onA11yTab=new S.EventEmitter,Ze._onCursorMove=new S.EventEmitter,Ze._onLineFeed=new S.EventEmitter,Ze._onScroll=new S.EventEmitter,Ze._onTitleChange=new S.EventEmitter,Ze._onColor=new S.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(D.C0.BEL,function(){return Ze.bell()}),Ze._parser.setExecuteHandler(D.C0.LF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.VT,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.FF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.CR,function(){return Ze.carriageReturn()}),Ze._parser.setExecuteHandler(D.C0.BS,function(){return Ze.backspace()}),Ze._parser.setExecuteHandler(D.C0.HT,function(){return Ze.tab()}),Ze._parser.setExecuteHandler(D.C0.SO,function(){return Ze.shiftOut()}),Ze._parser.setExecuteHandler(D.C0.SI,function(){return Ze.shiftIn()}),Ze._parser.setExecuteHandler(D.C1.IND,function(){return Ze.index()}),Ze._parser.setExecuteHandler(D.C1.NEL,function(){return Ze.nextLine()}),Ze._parser.setExecuteHandler(D.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 P(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<=x.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<=x.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,b.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,y.NULL_CELL_CODE,y.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 B.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(O.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(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},fe.prototype.sendDeviceAttributesSecondary=function(ue){return ue.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ue.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.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|=M.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=O.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=O.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=O.DEFAULT_ATTR_DATA.fg,je.bg=O.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&O.DEFAULT_ATTR_DATA.fg):49===de?(je.bg&=-67108864,je.bg|=16777215&O.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&O.DEFAULT_ATTR_DATA.fg,je.bg&=-67108864,je.bg|=16777215&O.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(D.C0.ESC+"[0n");break;case 6:var de=this._activeBuffer.y+1,ge=this._activeBuffer.x+1;this._coreService.triggerDataEvent(D.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(D.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=O.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(E.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(E.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.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=O.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=O.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 T.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 U=this&&this.__values||function(E){var D="function"==typeof Symbol&&Symbol.iterator,j=D&&E[D],L=0;if(j)return j.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&L>=E.length&&(E=void 0),{value:E&&E[L++],done:!E}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getDisposeArrayDisposable=A.disposeArray=A.Disposable=void 0;var R=function(){function E(){this._disposables=[],this._isDisposed=!1}return E.prototype.dispose=function(){var D,j;this._isDisposed=!0;try{for(var L=U(this._disposables),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}this._disposables.length=0},E.prototype.register=function(D){return this._disposables.push(D),D},E.prototype.unregister=function(D){var j=this._disposables.indexOf(D);-1!==j&&this._disposables.splice(j,1)},E}();function P(E){var D,j;try{for(var L=U(E),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}E.length=0}A.Disposable=R,A.disposeArray=P,A.getDisposeArrayDisposable=function(E){return{dispose:function(){return P(E)}}}},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 U="undefined"==typeof navigator,R=U?"node":navigator.userAgent,P=U?"node":navigator.platform;A.isFirefox=R.includes("Firefox"),A.isLegacyEdge=R.includes("Edge"),A.isSafari=/^((?!chrome|android).)*safari/i.test(R),A.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),A.isIpad="iPad"===P,A.isIphone="iPhone"===P,A.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),A.isLinux=P.indexOf("Linux")>=0},6106:function(W,A){var U=this&&this.__generator||function(P,E){var D,j,L,v,k={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return v={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function b(O){return function(S){return function(y){if(D)throw new TypeError("Generator is already executing.");for(;k;)try{if(D=1,j&&(L=2&y[0]?j.return:y[0]?j.throw||((L=j.return)&&L.call(j),0):j.next)&&!(L=L.call(j,y[1])).done)return L;switch(j=0,L&&(y=[2&y[0],L.value]),y[0]){case 0:case 1:L=y;break;case 4:return k.label++,{value:y[1],done:!1};case 5:k.label++,j=y[1],y=[0];continue;case 7:y=k.ops.pop(),k.trys.pop();continue;default:if(!((L=(L=k.trys).length>0&&L[L.length-1])||6!==y[0]&&2!==y[0])){k=0;continue}if(3===y[0]&&(!L||y[1]>L[0]&&y[1]<L[3])){k.label=y[1];break}if(6===y[0]&&k.label<L[1]){k.label=L[1],L=y;break}if(L&&k.label<L[2]){k.label=L[2],k.ops.push(y);break}L[2]&&k.ops.pop(),k.trys.pop();continue}y=E.call(P,k)}catch(T){y=[6,T],j=0}finally{D=L=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([O,S])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.SortedList=void 0;var R=function(){function P(E){this._getKey=E,this._array=[]}return P.prototype.clear=function(){this._array.length=0},P.prototype.insert=function(E){if(0!==this._array.length){var D=this._search(this._getKey(E),0,this._array.length-1);this._array.splice(D,0,E)}else this._array.push(E)},P.prototype.delete=function(E){if(0===this._array.length)return!1;var D=this._getKey(E),j=this._search(D,0,this._array.length-1);if(this._getKey(this._array[j])!==D)return!1;do{if(this._array[j]===E)return this._array.splice(j,1),!0}while(++j<this._array.length&&this._getKey(this._array[j])===D);return!1},P.prototype.getKeyIterator=function(E){var D;return U(this,function(j){switch(j.label){case 0:if(0===this._array.length)return[2];if((D=this._search(E,0,this._array.length-1))<0||D>=this._array.length)return[2];if(this._getKey(this._array[D])!==E)return[2];j.label=1;case 1:return[4,this._array[D]];case 2:j.sent(),j.label=3;case 3:if(++D<this._array.length&&this._getKey(this._array[D])===E)return[3,1];j.label=4;case 4:return[2]}})},P.prototype.values=function(){return this._array.values()},P.prototype._search=function(E,D,j){if(j<D)return D;var L=Math.floor((D+j)/2);if(this._getKey(this._array[L])>E)return this._search(E,D,L-1);if(this._getKey(this._array[L])<E)return this._search(E,L+1,j);for(;L>0&&this._getKey(this._array[L-1])===E;)L--;return L},P}();A.SortedList=R},8273:function(W,A){function U(R,P,E,D){if(void 0===E&&(E=0),void 0===D&&(D=R.length),E>=R.length)return R;E=(R.length+E)%R.length,D=D>=R.length?R.length:(R.length+D)%R.length;for(var j=E;j<D;++j)R[j]=P;return R}Object.defineProperty(A,"__esModule",{value:!0}),A.concat=A.fillFallback=A.fill=void 0,A.fill=function(R,P,E,D){return R.fill?R.fill(P,E,D):U(R,P,E,D)},A.fillFallback=U,A.concat=function(R,P){var E=new R.constructor(R.length+P.length);return E.set(R),E.set(P,R.length),E}},9282:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.updateWindowsModeWrappedState=void 0;var R=U(643);A.updateWindowsModeWrappedState=function(P){var E=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),D=null==E?void 0:E.get(P.cols-1),j=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);j&&D&&(j.isWrapped=D[R.CHAR_DATA_CODE_INDEX]!==R.NULL_CELL_CODE&&D[R.CHAR_DATA_CODE_INDEX]!==R.WHITESPACE_CELL_CODE)}},3734:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ExtendedAttrs=A.AttributeData=void 0;var U=function(){function P(){this.fg=0,this.bg=0,this.extended=new R}return P.toColorRGB=function(E){return[E>>>16&255,E>>>8&255,255&E]},P.fromColorRGB=function(E){return(255&E[0])<<16|(255&E[1])<<8|255&E[2]},P.prototype.clone=function(){var E=new P;return E.fg=this.fg,E.bg=this.bg,E.extended=this.extended.clone(),E},P.prototype.isInverse=function(){return 67108864&this.fg},P.prototype.isBold=function(){return 134217728&this.fg},P.prototype.isUnderline=function(){return 268435456&this.fg},P.prototype.isBlink=function(){return 536870912&this.fg},P.prototype.isInvisible=function(){return 1073741824&this.fg},P.prototype.isItalic=function(){return 67108864&this.bg},P.prototype.isDim=function(){return 134217728&this.bg},P.prototype.isStrikethrough=function(){return 2147483648&this.fg},P.prototype.getFgColorMode=function(){return 50331648&this.fg},P.prototype.getBgColorMode=function(){return 50331648&this.bg},P.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},P.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},P.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},P.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},P.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},P.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},P.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},P.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},P.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},P.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},P.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},P.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()},P.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},P.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},P.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},P.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},P.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},P}();A.AttributeData=U;var R=function(){function P(E,D){void 0===E&&(E=0),void 0===D&&(D=-1),this.underlineStyle=E,this.underlineColor=D}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();A.ExtendedAttrs=R},9092:function(W,A,U){var R=this&&this.__read||function(T,M){var x="function"==typeof Symbol&&T[Symbol.iterator];if(!x)return T;var N,B,X=x.call(T),$=[];try{for(;(void 0===M||M-- >0)&&!(N=X.next()).done;)$.push(N.value)}catch(V){B={error:V}}finally{try{N&&!N.done&&(x=X.return)&&x.call(X)}finally{if(B)throw B.error}}return $},P=this&&this.__spreadArray||function(T,M,x){if(x||2===arguments.length)for(var N,B=0,X=M.length;B<X;B++)!N&&B in M||(N||(N=Array.prototype.slice.call(M,0,B)),N[B]=M[B]);return T.concat(N||Array.prototype.slice.call(M))};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferStringIterator=A.Buffer=A.MAX_BUFFER_SIZE=void 0;var E=U(6349),D=U(8437),j=U(511),L=U(643),v=U(4634),k=U(4863),b=U(7116),O=U(3734);A.MAX_BUFFER_SIZE=4294967295;var S=function(){function T(M,x,N){this._hasScrollback=M,this._optionsService=x,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=D.DEFAULT_ATTR_DATA.clone(),this.savedCharset=b.DEFAULT_CHARSET,this.markers=[],this._nullCell=j.CellData.fromCharData([0,L.NULL_CELL_CHAR,L.NULL_CELL_WIDTH,L.NULL_CELL_CODE]),this._whitespaceCell=j.CellData.fromCharData([0,L.WHITESPACE_CELL_CHAR,L.WHITESPACE_CELL_WIDTH,L.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return T.prototype.getNullCell=function(M){return M?(this._nullCell.fg=M.fg,this._nullCell.bg=M.bg,this._nullCell.extended=M.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new O.ExtendedAttrs),this._nullCell},T.prototype.getWhitespaceCell=function(M){return M?(this._whitespaceCell.fg=M.fg,this._whitespaceCell.bg=M.bg,this._whitespaceCell.extended=M.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new O.ExtendedAttrs),this._whitespaceCell},T.prototype.getBlankLine=function(M,x){return new D.BufferLine(this._bufferService.cols,this.getNullCell(M),x)},Object.defineProperty(T.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isCursorInViewport",{get:function(){var x=this.ybase+this.y-this.ydisp;return x>=0&&x<this._rows},enumerable:!1,configurable:!0}),T.prototype._getCorrectBufferLength=function(M){if(!this._hasScrollback)return M;var x=M+this._optionsService.rawOptions.scrollback;return x>A.MAX_BUFFER_SIZE?A.MAX_BUFFER_SIZE:x},T.prototype.fillViewportRows=function(M){if(0===this.lines.length){void 0===M&&(M=D.DEFAULT_ATTR_DATA);for(var x=this._rows;x--;)this.lines.push(this.getBlankLine(M))}},T.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},T.prototype.resize=function(M,x){var N=this.getNullCell(D.DEFAULT_ATTR_DATA),B=this._getCorrectBufferLength(x);if(B>this.lines.maxLength&&(this.lines.maxLength=B),this.lines.length>0){if(this._cols<M)for(var X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);var $=0;if(this._rows<x)for(var V=this._rows;V<x;V++)this.lines.length<x+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new D.BufferLine(M,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new D.BufferLine(M,N)));else for(V=this._rows;V>x;V--)this.lines.length>x+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(B<this.lines.maxLength){var Q=this.lines.length-B;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=B}this.x=Math.min(this.x,M-1),this.y=Math.min(this.y,x-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,M-1),this.scrollTop=0}if(this.scrollBottom=x-1,this._isReflowEnabled&&(this._reflow(M,x),this._cols>M))for(X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);this._cols=M,this._rows=x},Object.defineProperty(T.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),T.prototype._reflow=function(M,x){this._cols!==M&&(M>this._cols?this._reflowLarger(M,x):this._reflowSmaller(M,x))},T.prototype._reflowLarger=function(M,x){var N=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,M,this.ybase+this.y,this.getNullCell(D.DEFAULT_ATTR_DATA));if(N.length>0){var B=(0,v.reflowLargerCreateNewLayout)(this.lines,N);(0,v.reflowLargerApplyNewLayout)(this.lines,B.layout),this._reflowLargerAdjustViewport(M,x,B.countRemoved)}},T.prototype._reflowLargerAdjustViewport=function(M,x,N){for(var B=this.getNullCell(D.DEFAULT_ATTR_DATA),X=N;X-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<x&&this.lines.push(new D.BufferLine(M,B))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},T.prototype._reflowSmaller=function(M,x){for(var N=this.getNullCell(D.DEFAULT_ATTR_DATA),B=[],X=0,$=this.lines.length-1;$>=0;$--){var V=this.lines.get($);if(!(!V||!V.isWrapped&&V.getTrimmedLength()<=M)){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,M),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(D.DEFAULT_ATTR_DATA,!0);de.push(je)}de.length>0&&(B.push({start:$+Q.length+X,newLines:de}),X+=de.length),Q.push.apply(Q,P([],R(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]<M&&Q[ge].setCell(fe[ge],N);for(var $t=ue-be;$t-- >0;)0===this.ybase?this.y<x-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+X)-x&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ue,this.ybase+x-1)}}}if(B.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=B[_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=B[++_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)}},T.prototype.stringIndexToBufferIndex=function(M,x,N){for(void 0===N&&(N=!1);x;){var B=this.lines.get(M);if(!B)return[-1,-1];for(var X=N?B.getTrimmedLength():B.length,$=0;$<X;++$)if(B.get($)[L.CHAR_DATA_WIDTH_INDEX]&&(x-=B.get($)[L.CHAR_DATA_CHAR_INDEX].length||1),x<0)return[M,$];M++}return[M,0]},T.prototype.translateBufferLineToString=function(M,x,N,B){void 0===N&&(N=0);var X=this.lines.get(M);return X?X.translateToString(x,N,B):""},T.prototype.getWrappedRangeForLine=function(M){for(var x=M,N=M;x>0&&this.lines.get(x).isWrapped;)x--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:x,last:N}},T.prototype.setupTabStops=function(M){for(null!=M?this.tabs[M]||(M=this.prevStop(M)):(this.tabs={},M=0);M<this._cols;M+=this._optionsService.rawOptions.tabStopWidth)this.tabs[M]=!0},T.prototype.prevStop=function(M){for(null==M&&(M=this.x);!this.tabs[--M]&&M>0;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.nextStop=function(M){for(null==M&&(M=this.x);!this.tabs[++M]&&M<this._cols;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.clearMarkers=function(M){this._isClearing=!0;for(var x=0;x<this.markers.length;x++)this.markers[x].line===M&&(this.markers[x].dispose(),this.markers.splice(x--,1));this._isClearing=!1},T.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var M=0;M<this.markers.length;M++)this.markers[M].dispose(),this.markers.splice(M--,1);this._isClearing=!1},T.prototype.addMarker=function(M){var x=this,N=new k.Marker(M);return this.markers.push(N),N.register(this.lines.onTrim(function(B){N.line-=B,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(B){N.line>=B.index&&(N.line+=B.amount)})),N.register(this.lines.onDelete(function(B){N.line>=B.index&&N.line<B.index+B.amount&&N.dispose(),N.line>B.index&&(N.line-=B.amount)})),N.register(N.onDispose(function(){return x._removeMarker(N)})),N},T.prototype._removeMarker=function(M){this._isClearing||this.markers.splice(this.markers.indexOf(M),1)},T.prototype.iterator=function(M,x,N,B,X){return new y(this,M,x,N,B,X)},T}();A.Buffer=S;var y=function(){function T(M,x,N,B,X,$){void 0===N&&(N=0),void 0===B&&(B=M.lines.length),void 0===X&&(X=0),void 0===$&&($=0),this._buffer=M,this._trimRight=x,this._startIndex=N,this._endIndex=B,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 T.prototype.hasNext=function(){return this._current<this._endIndex},T.prototype.next=function(){var M=this._buffer.getWrappedRangeForLine(this._current);M.first<this._startIndex-this._startOverscan&&(M.first=this._startIndex-this._startOverscan),M.last>this._endIndex+this._endOverscan&&(M.last=this._endIndex+this._endOverscan),M.first=Math.max(M.first,0),M.last=Math.min(M.last,this._buffer.lines.length);for(var x="",N=M.first;N<=M.last;++N)x+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=M.last+1,{range:M,content:x}},T}();A.BufferStringIterator=y},8437:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLine=A.DEFAULT_ATTR_DATA=void 0;var R=U(482),P=U(643),E=U(511),D=U(3734);A.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var j=function(){function L(v,k,b){void 0===b&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var O=k||E.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),S=0;S<v;++S)this.setCell(S,O);this.length=v}return L.prototype.get=function(v){var k=this._data[3*v+0],b=2097151&k;return[this._data[3*v+1],2097152&k?this._combined[v]:b?(0,R.stringFromCodePoint)(b):"",k>>22,2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):b]},L.prototype.set=function(v,k){this._data[3*v+1]=k[P.CHAR_DATA_ATTR_INDEX],k[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=k[1],this._data[3*v+0]=2097152|v|k[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=k[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[P.CHAR_DATA_WIDTH_INDEX]<<22},L.prototype.getWidth=function(v){return this._data[3*v+0]>>22},L.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},L.prototype.getFg=function(v){return this._data[3*v+1]},L.prototype.getBg=function(v){return this._data[3*v+2]},L.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},L.prototype.getCodePoint=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&k},L.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},L.prototype.getString=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v]:2097151&k?(0,R.stringFromCodePoint)(2097151&k):""},L.prototype.loadCell=function(v,k){var b=3*v;return k.content=this._data[b+0],k.fg=this._data[b+1],k.bg=this._data[b+2],2097152&k.content&&(k.combinedData=this._combined[v]),268435456&k.bg&&(k.extended=this._extendedAttrs[v]),k},L.prototype.setCell=function(v,k){2097152&k.content&&(this._combined[v]=k.combinedData),268435456&k.bg&&(this._extendedAttrs[v]=k.extended),this._data[3*v+0]=k.content,this._data[3*v+1]=k.fg,this._data[3*v+2]=k.bg},L.prototype.setCellFromCodePoint=function(v,k,b,O,S,y){268435456&S&&(this._extendedAttrs[v]=y),this._data[3*v+0]=k|b<<22,this._data[3*v+1]=O,this._data[3*v+2]=S},L.prototype.addCodepointToCell=function(v,k){var b=this._data[3*v+0];2097152&b?this._combined[v]+=(0,R.stringFromCodePoint)(k):(2097151&b?(this._combined[v]=(0,R.stringFromCodePoint)(2097151&b)+(0,R.stringFromCodePoint)(k),b&=-2097152,b|=2097152):b=k|1<<22,this._data[3*v+0]=b)},L.prototype.insertCells=function(v,k,b,O){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length-v){for(var S=new E.CellData,y=this.length-v-k-1;y>=0;--y)this.setCell(v+k+y,this.loadCell(v+y,S));for(y=0;y<k;++y)this.setCell(v+y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.deleteCells=function(v,k,b,O){if(v%=this.length,k<this.length-v){for(var S=new E.CellData,y=0;y<this.length-v-k;++y)this.setCell(v+y,this.loadCell(v+k+y,S));for(y=this.length-k;y<this.length;++y)this.setCell(y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.replaceCells=function(v,k,b,O){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length&&2===this.getWidth(k-1)&&this.setCellFromCodePoint(k,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs);v<k&&v<this.length;)this.setCell(v++,b)},L.prototype.resize=function(v,k){if(v!==this.length){if(v>this.length){var b=new Uint32Array(3*v);this.length&&(3*v<this._data.length?b.set(this._data.subarray(0,3*v)):b.set(this._data)),this._data=b;for(var O=this.length;O<v;++O)this.setCell(O,k)}else if(v){(b=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=b;var S=Object.keys(this._combined);for(O=0;O<S.length;O++){var y=parseInt(S[O],10);y>=v&&delete this._combined[y]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},L.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var k=0;k<this.length;++k)this.setCell(k,v)},L.prototype.copyFrom=function(v){for(var k 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[k]=v._combined[k];for(var k in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[k]=v._extendedAttrs[k];this.isWrapped=v.isWrapped},L.prototype.clone=function(){var v=new L(0);for(var k in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[k]=this._combined[k];for(var k in this._extendedAttrs)v._extendedAttrs[k]=this._extendedAttrs[k];return v.isWrapped=this.isWrapped,v},L.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},L.prototype.copyCellsFrom=function(v,k,b,O,S){var y=v._data;if(S)for(var T=O-1;T>=0;T--)for(var M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];else for(T=0;T<O;T++)for(M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];var x=Object.keys(v._combined);for(M=0;M<x.length;M++){var N=parseInt(x[M],10);N>=k&&(this._combined[N-k+b]=v._combined[N])}},L.prototype.translateToString=function(v,k,b){void 0===v&&(v=!1),void 0===k&&(k=0),void 0===b&&(b=this.length),v&&(b=Math.min(b,this.getTrimmedLength()));for(var O="";k<b;){var S=this._data[3*k+0],y=2097151&S;O+=2097152&S?this._combined[k]:y?(0,R.stringFromCodePoint)(y):P.WHITESPACE_CELL_CHAR,k+=S>>22||1}return O},L}();A.BufferLine=j},4841:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.getRangeLength=void 0,A.getRangeLength=function(U,R){if(U.start.y>U.end.y)throw new Error("Buffer range end ("+U.end.x+", "+U.end.y+") cannot be before start ("+U.start.x+", "+U.start.y+")");return R*(U.end.y-U.start.y)+(U.end.x-U.start.x+1)}},4634:function(W,A){function U(R,P,E){if(P===R.length-1)return R[P].getTrimmedLength();var D=!R[P].hasContent(E-1)&&1===R[P].getWidth(E-1),j=2===R[P+1].getWidth(0);return D&&j?E-1:E}Object.defineProperty(A,"__esModule",{value:!0}),A.getWrappedLineTrimmedLength=A.reflowSmallerGetNewLineLengths=A.reflowLargerApplyNewLayout=A.reflowLargerCreateNewLayout=A.reflowLargerGetLinesToRemove=void 0,A.reflowLargerGetLinesToRemove=function(R,P,E,D,j){for(var L=[],v=0;v<R.length-1;v++){var k=v,b=R.get(++k);if(b.isWrapped){for(var O=[R.get(v)];k<R.length&&b.isWrapped;)O.push(b),b=R.get(++k);if(D>=v&&D<k)v+=O.length-1;else{for(var S=0,y=U(O,S,P),T=1,M=0;T<O.length;){var x=U(O,T,P),N=x-M,B=E-y,X=Math.min(N,B);O[S].copyCellsFrom(O[T],M,y,X,!1),(y+=X)===E&&(S++,y=0),(M+=X)===x&&(T++,M=0),0===y&&0!==S&&2===O[S-1].getWidth(E-1)&&(O[S].copyCellsFrom(O[S-1],E-1,y++,1,!1),O[S-1].setCell(E-1,j))}O[S].replaceCells(y,E,j);for(var $=0,V=O.length-1;V>0&&(V>S||0===O[V].getTrimmedLength());V--)$++;$>0&&(L.push(v+O.length-$),L.push($)),v+=O.length-1}}}return L},A.reflowLargerCreateNewLayout=function(R,P){for(var E=[],D=0,j=P[D],L=0,v=0;v<R.length;v++)if(j===v){var k=P[++D];R.onDeleteEmitter.fire({index:v-L,amount:k}),v+=k-1,L+=k,j=P[++D]}else E.push(v);return{layout:E,countRemoved:L}},A.reflowLargerApplyNewLayout=function(R,P){for(var E=[],D=0;D<P.length;D++)E.push(R.get(P[D]));for(D=0;D<E.length;D++)R.set(D,E[D]);R.length=P.length},A.reflowSmallerGetNewLineLengths=function(R,P,E){for(var D=[],j=R.map(function(y,T){return U(R,T,P)}).reduce(function(y,T){return y+T}),L=0,v=0,k=0;k<j;){if(j-k<E){D.push(j-k);break}L+=E;var b=U(R,v,P);L>b&&(L-=b,v++);var O=2===R[v].getWidth(L-1);O&&L--;var S=O?E-1:E;D.push(S),k+=S}return D},A.getWrappedLineTrimmedLength=U},5295:function(W,A,U){var R,P=this&&this.__extends||(R=function(v,k){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(b[S]=O[S])})(v,k)},function(L,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function k(){this.constructor=L}R(L,v),L.prototype=null===v?Object.create(v):(k.prototype=v.prototype,new k)});Object.defineProperty(A,"__esModule",{value:!0}),A.BufferSet=void 0;var E=U(9092),D=U(8460),j=function(L){function v(k,b){var O=L.call(this)||this;return O._optionsService=k,O._bufferService=b,O._onBufferActivate=O.register(new D.EventEmitter),O.reset(),O}return P(v,L),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new E.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new E.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(k){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(k),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(k,b){this._normal.resize(k,b),this._alt.resize(k,b)},v.prototype.setupTabStops=function(k){this._normal.setupTabStops(k),this._alt.setupTabStops(k)},v}(U(844).Disposable);A.BufferSet=j},511:function(W,A,U){var R,P=this&&this.__extends||(R=function(k,b){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var y in S)Object.prototype.hasOwnProperty.call(S,y)&&(O[y]=S[y])})(k,b)},function(v,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function b(){this.constructor=v}R(v,k),v.prototype=null===k?Object.create(k):(b.prototype=k.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.CellData=void 0;var E=U(482),D=U(643),j=U(3734),L=function(v){function k(){var b=null!==v&&v.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new j.ExtendedAttrs,b.combinedData="",b}return P(k,v),k.fromCharData=function(b){var O=new k;return O.setFromCharData(b),O},k.prototype.isCombined=function(){return 2097152&this.content},k.prototype.getWidth=function(){return this.content>>22},k.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,E.stringFromCodePoint)(2097151&this.content):""},k.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},k.prototype.setFromCharData=function(b){this.fg=b[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var O=!1;if(b[D.CHAR_DATA_CHAR_INDEX].length>2)O=!0;else if(2===b[D.CHAR_DATA_CHAR_INDEX].length){var S=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=S&&S<=56319){var y=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=y&&y<=57343?this.content=1024*(S-55296)+y-56320+65536|b[D.CHAR_DATA_WIDTH_INDEX]<<22:O=!0}else O=!0}else this.content=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[D.CHAR_DATA_WIDTH_INDEX]<<22;O&&(this.combinedData=b[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[D.CHAR_DATA_WIDTH_INDEX]<<22)},k.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},k}(j.AttributeData);A.CellData=L},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,U){var R,P=this&&this.__extends||(R=function(L,v){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,b){k.__proto__=b}||function(k,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(k[O]=b[O])})(L,v)},function(j,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function v(){this.constructor=j}R(j,L),j.prototype=null===L?Object.create(L):(v.prototype=L.prototype,new v)});Object.defineProperty(A,"__esModule",{value:!0}),A.Marker=void 0;var E=U(8460),D=function(j){function L(v){var k=j.call(this)||this;return k.line=v,k._id=L._nextId++,k.isDisposed=!1,k._onDispose=new E.EventEmitter,k}return P(L,j),Object.defineProperty(L.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),j.prototype.dispose.call(this))},L._nextId=1,L}(U(844).Disposable);A.Marker=D},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 U,R,P;Object.defineProperty(A,"__esModule",{value:!0}),A.C1_ESCAPED=A.C1=A.C0=void 0,(P=U=A.C0||(A.C0={})).NUL="\0",P.SOH="\x01",P.STX="\x02",P.ETX="\x03",P.EOT="\x04",P.ENQ="\x05",P.ACK="\x06",P.BEL="\x07",P.BS="\b",P.HT="\t",P.LF="\n",P.VT="\v",P.FF="\f",P.CR="\r",P.SO="\x0e",P.SI="\x0f",P.DLE="\x10",P.DC1="\x11",P.DC2="\x12",P.DC3="\x13",P.DC4="\x14",P.NAK="\x15",P.SYN="\x16",P.ETB="\x17",P.CAN="\x18",P.EM="\x19",P.SUB="\x1a",P.ESC="\x1b",P.FS="\x1c",P.GS="\x1d",P.RS="\x1e",P.US="\x1f",P.SP=" ",P.DEL="\x7f",(R=A.C1||(A.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f",(A.C1_ESCAPED||(A.C1_ESCAPED={})).ST=U.ESC+"\\"},7399:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.evaluateKeyboardEvent=void 0;var R=U(2584),P={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(E,D,j,L){var v={type:0,cancel:!1,key:void 0},k=(E.shiftKey?1:0)|(E.altKey?2:0)|(E.ctrlKey?4:0)|(E.metaKey?8:0);switch(E.keyCode){case 0:"UIKeyInputUpArrow"===E.key?v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A":"UIKeyInputLeftArrow"===E.key?v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D":"UIKeyInputRightArrow"===E.key?v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C":"UIKeyInputDownArrow"===E.key&&(v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B");break;case 8:if(E.shiftKey){v.key=R.C0.BS;break}if(E.altKey){v.key=R.C0.ESC+R.C0.DEL;break}v.key=R.C0.DEL;break;case 9:if(E.shiftKey){v.key=R.C0.ESC+"[Z";break}v.key=R.C0.HT,v.cancel=!0;break;case 13:v.key=E.altKey?R.C0.ESC+R.C0.CR:R.C0.CR,v.cancel=!0;break;case 27:v.key=R.C0.ESC,E.altKey&&(v.key=R.C0.ESC+R.C0.ESC),v.cancel=!0;break;case 37:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"D",v.key===R.C0.ESC+"[1;3D"&&(v.key=R.C0.ESC+(j?"b":"[1;5D"))):v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D";break;case 39:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"C",v.key===R.C0.ESC+"[1;3C"&&(v.key=R.C0.ESC+(j?"f":"[1;5C"))):v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C";break;case 38:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"A",j||v.key!==R.C0.ESC+"[1;3A"||(v.key=R.C0.ESC+"[1;5A")):v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A";break;case 40:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"B",j||v.key!==R.C0.ESC+"[1;3B"||(v.key=R.C0.ESC+"[1;5B")):v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B";break;case 45:E.shiftKey||E.ctrlKey||(v.key=R.C0.ESC+"[2~");break;case 46:v.key=k?R.C0.ESC+"[3;"+(k+1)+"~":R.C0.ESC+"[3~";break;case 36:v.key=k?R.C0.ESC+"[1;"+(k+1)+"H":D?R.C0.ESC+"OH":R.C0.ESC+"[H";break;case 35:v.key=k?R.C0.ESC+"[1;"+(k+1)+"F":D?R.C0.ESC+"OF":R.C0.ESC+"[F";break;case 33:E.shiftKey?v.type=2:E.ctrlKey?v.key=R.C0.ESC+"[5;"+(k+1)+"~":v.key=R.C0.ESC+"[5~";break;case 34:E.shiftKey?v.type=3:E.ctrlKey?v.key=R.C0.ESC+"[6;"+(k+1)+"~":v.key=R.C0.ESC+"[6~";break;case 112:v.key=k?R.C0.ESC+"[1;"+(k+1)+"P":R.C0.ESC+"OP";break;case 113:v.key=k?R.C0.ESC+"[1;"+(k+1)+"Q":R.C0.ESC+"OQ";break;case 114:v.key=k?R.C0.ESC+"[1;"+(k+1)+"R":R.C0.ESC+"OR";break;case 115:v.key=k?R.C0.ESC+"[1;"+(k+1)+"S":R.C0.ESC+"OS";break;case 116:v.key=k?R.C0.ESC+"[15;"+(k+1)+"~":R.C0.ESC+"[15~";break;case 117:v.key=k?R.C0.ESC+"[17;"+(k+1)+"~":R.C0.ESC+"[17~";break;case 118:v.key=k?R.C0.ESC+"[18;"+(k+1)+"~":R.C0.ESC+"[18~";break;case 119:v.key=k?R.C0.ESC+"[19;"+(k+1)+"~":R.C0.ESC+"[19~";break;case 120:v.key=k?R.C0.ESC+"[20;"+(k+1)+"~":R.C0.ESC+"[20~";break;case 121:v.key=k?R.C0.ESC+"[21;"+(k+1)+"~":R.C0.ESC+"[21~";break;case 122:v.key=k?R.C0.ESC+"[23;"+(k+1)+"~":R.C0.ESC+"[23~";break;case 123:v.key=k?R.C0.ESC+"[24;"+(k+1)+"~":R.C0.ESC+"[24~";break;default:if(!E.ctrlKey||E.shiftKey||E.altKey||E.metaKey)if(j&&!L||!E.altKey||E.metaKey)!j||E.altKey||E.ctrlKey||E.shiftKey||!E.metaKey?E.key&&!E.ctrlKey&&!E.altKey&&!E.metaKey&&E.keyCode>=48&&1===E.key.length?v.key=E.key:E.key&&E.ctrlKey&&("_"===E.key&&(v.key=R.C0.US),"@"===E.key&&(v.key=R.C0.NUL)):65===E.keyCode&&(v.type=1);else{var b=P[E.keyCode],O=null==b?void 0:b[E.shiftKey?1:0];if(O)v.key=R.C0.ESC+O;else if(E.keyCode>=65&&E.keyCode<=90){var S=E.ctrlKey?E.keyCode-64:E.keyCode+32,y=String.fromCharCode(S);E.shiftKey&&(y=y.toUpperCase()),v.key=R.C0.ESC+y}else"Dead"===E.key&&E.code.startsWith("Key")&&(y=E.code.slice(3,4),E.shiftKey||(y=y.toLowerCase()),v.key=R.C0.ESC+y,v.cancel=!0)}else E.keyCode>=65&&E.keyCode<=90?v.key=String.fromCharCode(E.keyCode-64):32===E.keyCode?v.key=R.C0.NUL:E.keyCode>=51&&E.keyCode<=55?v.key=String.fromCharCode(E.keyCode-51+27):56===E.keyCode?v.key=R.C0.DEL:219===E.keyCode?v.key=R.C0.ESC:220===E.keyCode?v.key=R.C0.FS:221===E.keyCode&&(v.key=R.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(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},A.utf32ToString=function(P,E,D){void 0===E&&(E=0),void 0===D&&(D=P.length);for(var j="",L=E;L<D;++L){var v=P[L];v>65535?(v-=65536,j+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):j+=String.fromCharCode(v)}return j};var U=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(E,D){var j=E.length;if(!j)return 0;var L=0,v=0;this._interim&&(56320<=(O=E.charCodeAt(v++))&&O<=57343?D[L++]=1024*(this._interim-55296)+O-56320+65536:(D[L++]=this._interim,D[L++]=O),this._interim=0);for(var k=v;k<j;++k){var b=E.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=j)return this._interim=b,L;var O;56320<=(O=E.charCodeAt(k))&&O<=57343?D[L++]=1024*(b-55296)+O-56320+65536:(D[L++]=b,D[L++]=O)}else 65279!==b&&(D[L++]=b)}return L},P}();A.StringToUtf32=U;var R=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(E,D){var j=E.length;if(!j)return 0;var L,v,k,b,O=0,S=0,y=0;if(this.interim[0]){var T=!1,M=this.interim[0];M&=192==(224&M)?31:224==(240&M)?15:7;for(var x=0,N=void 0;(N=63&this.interim[++x])&&x<4;)M<<=6,M|=N;for(var B=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,X=B-x;y<X;){if(y>=j)return 0;if(128!=(192&(N=E[y++]))){y--,T=!0;break}this.interim[x++]=N,M<<=6,M|=63&N}T||(2===B?M<128?y--:D[O++]=M:3===B?M<2048||M>=55296&&M<=57343||65279===M||(D[O++]=M):M<65536||M>1114111||(D[O++]=M)),this.interim.fill(0)}for(var $=j-4,V=y;V<j;){for(;!(!(V<$)||128&(L=E[V])||128&(v=E[V+1])||128&(k=E[V+2])||128&(b=E[V+3]));)D[O++]=L,D[O++]=v,D[O++]=k,D[O++]=b,V+=4;if((L=E[V++])<128)D[O++]=L;else if(192==(224&L)){if(V>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[V++]))){V--;continue}if((S=(31&L)<<6|63&v)<128){V--;continue}D[O++]=S}else if(224==(240&L)){if(V>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[V++]))){V--;continue}if(V>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=E[V++]))){V--;continue}if((S=(15&L)<<12|(63&v)<<6|63&k)<2048||S>=55296&&S<=57343||65279===S)continue;D[O++]=S}else if(240==(248&L)){if(V>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[V++]))){V--;continue}if(V>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=E[V++]))){V--;continue}if(V>=j)return this.interim[0]=L,this.interim[1]=v,this.interim[2]=k,O;if(128!=(192&(b=E[V++]))){V--;continue}if((S=(7&L)<<18|(63&v)<<12|(63&k)<<6|63&b)<65536||S>1114111)continue;D[O++]=S}}return O},P}();A.Utf8ToUtf32=R},225:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeV6=void 0;var R,P=U(8273),E=[[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]],D=[[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 L(){if(this.version="6",!R){R=new Uint8Array(65536),(0,P.fill)(R,1),R[0]=0,(0,P.fill)(R,0,1,32),(0,P.fill)(R,0,127,160),(0,P.fill)(R,2,4352,4448),R[9001]=2,R[9002]=2,(0,P.fill)(R,2,11904,42192),R[12351]=1,(0,P.fill)(R,2,44032,55204),(0,P.fill)(R,2,63744,64256),(0,P.fill)(R,2,65040,65050),(0,P.fill)(R,2,65072,65136),(0,P.fill)(R,2,65280,65377),(0,P.fill)(R,2,65504,65511);for(var v=0;v<E.length;++v)(0,P.fill)(R,0,E[v][0],E[v][1]+1)}}return L.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?R[v]:function(k,b){var O,S=0,y=b.length-1;if(k<b[0][0]||k>b[y][1])return!1;for(;y>=S;)if(k>b[O=S+y>>1][1])S=O+1;else{if(!(k<b[O][0]))return!0;y=O-1}return!1}(v,D)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},L}();A.UnicodeV6=j},5981:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.WriteBuffer=void 0;var R=U(8460),P="undefined"==typeof queueMicrotask?function(D){Promise.resolve().then(D)}:queueMicrotask,E=function(){function D(j){this._action=j,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new R.EventEmitter}return Object.defineProperty(D.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),D.prototype.writeSync=function(j,L){if(void 0!==L&&this._syncCalls>L)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 k=this._callbacks.shift();k&&k()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},D.prototype.write=function(j,L){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(L)},D.prototype._innerWrite=function(j,L){var v=this;void 0===j&&(j=0),void 0===L&&(L=!0);for(var k=j||Date.now();this._writeBuffer.length>this._bufferOffset;){var b=this._writeBuffer[this._bufferOffset],O=this._action(b,L);if(O)return void O.catch(function(y){return P(function(){throw y}),Promise.resolve(!1)}).then(function(y){return Date.now()-k>=12?setTimeout(function(){return v._innerWrite(0,y)}):v._innerWrite(k,y)});var S=this._callbacks[this._bufferOffset];if(S&&S(),this._bufferOffset++,this._pendingData-=b.length,Date.now()-k>=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()},D}();A.WriteBuffer=E},5941:function(W,A){var U=this&&this.__read||function(D,j){var L="function"==typeof Symbol&&D[Symbol.iterator];if(!L)return D;var v,k,b=L.call(D),O=[];try{for(;(void 0===j||j-- >0)&&!(v=b.next()).done;)O.push(v.value)}catch(S){k={error:S}}finally{try{v&&!v.done&&(L=b.return)&&L.call(b)}finally{if(k)throw k.error}}return O};Object.defineProperty(A,"__esModule",{value:!0}),A.toRgbString=A.parseColor=void 0;var R=/^([\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})$/,P=/^[\da-f]+$/;function E(D,j){var L=D.toString(16),v=L.length<2?"0"+L:L;switch(j){case 4:return L[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}A.parseColor=function(D){if(D){var j=D.toLowerCase();if(0===j.indexOf("rgb:")){j=j.slice(4);var L=R.exec(j);if(L){var v=L[1]?15:L[4]?255:L[7]?4095:65535;return[Math.round(parseInt(L[1]||L[4]||L[7]||L[10],16)/v*255),Math.round(parseInt(L[2]||L[5]||L[8]||L[11],16)/v*255),Math.round(parseInt(L[3]||L[6]||L[9]||L[12],16)/v*255)]}}else if(0===j.indexOf("#")&&(j=j.slice(1),P.exec(j)&&[3,6,9,12].includes(j.length))){for(var k=j.length/3,b=[0,0,0],O=0;O<3;++O){var S=parseInt(j.slice(k*O,k*O+k),16);b[O]=1===k?S<<4:2===k?S:3===k?S>>4:S>>8}return b}}},A.toRgbString=function(D,j){void 0===j&&(j=16);var L=U(D,3),v=L[0],k=L[1],b=L[2];return"rgb:"+E(v,j)+"/"+E(k,j)+"/"+E(b,j)}},5770:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.PAYLOAD_LIMIT=void 0,A.PAYLOAD_LIMIT=1e7},6351:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.DcsHandler=A.DcsParser=void 0;var R=U(482),P=U(8742),E=U(5770),D=[],j=function(){function k(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return k.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},k.prototype.registerHandler=function(b,O){void 0===this._handlers[b]&&(this._handlers[b]=[]);var S=this._handlers[b];return S.push(O),{dispose:function(){var T=S.indexOf(O);-1!==T&&S.splice(T,1)}}},k.prototype.clearHandler=function(b){this._handlers[b]&&delete this._handlers[b]},k.prototype.setHandlerFallback=function(b){this._handlerFb=b},k.prototype.reset=function(){if(this._active.length)for(var b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},k.prototype.hook=function(b,O){if(this.reset(),this._ident=b,this._active=this._handlers[b]||D,this._active.length)for(var S=this._active.length-1;S>=0;S--)this._active[S].hook(O);else this._handlerFb(this._ident,"HOOK",O)},k.prototype.put=function(b,O,S){if(this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].put(b,O,S);else this._handlerFb(this._ident,"PUT",(0,R.utf32ToString)(b,O,S))},k.prototype.unhook=function(b,O){if(void 0===O&&(O=!0),this._active.length){var S=!1,y=this._active.length-1,T=!1;if(this._stack.paused&&(y=this._stack.loopPosition-1,S=O,T=this._stack.fallThrough,this._stack.paused=!1),!T&&!1===S){for(;y>=0&&!0!==(S=this._active[y].unhook(b));y--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!1,S;y--}for(;y>=0;y--)if((S=this._active[y].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!0,S}else this._handlerFb(this._ident,"UNHOOK",b);this._active=D,this._ident=0},k}();A.DcsParser=j;var L=new P.Params;L.addParam(0);var v=function(){function k(b){this._handler=b,this._data="",this._params=L,this._hitLimit=!1}return k.prototype.hook=function(b){this._params=b.length>1||b.params[0]?b.clone():L,this._data="",this._hitLimit=!1},k.prototype.put=function(b,O,S){this._hitLimit||(this._data+=(0,R.utf32ToString)(b,O,S),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},k.prototype.unhook=function(b){var O=this,S=!1;if(this._hitLimit)S=!1;else if(b&&(S=this._handler(this._data,this._params))instanceof Promise)return S.then(function(y){return O._params=L,O._data="",O._hitLimit=!1,y});return this._params=L,this._data="",this._hitLimit=!1,S},k}();A.DcsHandler=v},2015:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.EscapeSequenceParser=A.VT500_TRANSITION_TABLE=A.TransitionTable=void 0;var E=U(844),D=U(8273),j=U(8742),L=U(6242),v=U(6351),k=function(){function S(y){this.table=new Uint8Array(y)}return S.prototype.setDefault=function(y,T){(0,D.fill)(this.table,y<<4|T)},S.prototype.add=function(y,T,M,x){this.table[T<<8|y]=M<<4|x},S.prototype.addMany=function(y,T,M,x){for(var N=0;N<y.length;N++)this.table[T<<8|y[N]]=M<<4|x},S}();A.TransitionTable=k;var b=160;A.VT500_TRANSITION_TABLE=function(){var S=new k(4095),y=Array.apply(null,Array(256)).map(function(X,$){return $}),T=function($,V){return y.slice($,V)},M=T(32,127),x=T(0,24);x.push(25),x.push.apply(x,T(28,32));var N,B=T(0,14);for(N in S.setDefault(1,0),S.addMany(M,0,2,0),B)S.addMany([24,26,153,154],N,3,0),S.addMany(T(128,144),N,3,0),S.addMany(T(144,152),N,3,0),S.add(156,N,0,0),S.add(27,N,11,1),S.add(157,N,4,8),S.addMany([152,158,159],N,0,7),S.add(155,N,11,3),S.add(144,N,11,9);return S.addMany(x,0,3,0),S.addMany(x,1,3,1),S.add(127,1,0,1),S.addMany(x,8,0,8),S.addMany(x,3,3,3),S.add(127,3,0,3),S.addMany(x,4,3,4),S.add(127,4,0,4),S.addMany(x,6,3,6),S.addMany(x,5,3,5),S.add(127,5,0,5),S.addMany(x,2,3,2),S.add(127,2,0,2),S.add(93,1,4,8),S.addMany(M,8,5,8),S.add(127,8,5,8),S.addMany([156,27,24,26,7],8,6,0),S.addMany(T(28,32),8,0,8),S.addMany([88,94,95],1,0,7),S.addMany(M,7,0,7),S.addMany(x,7,0,7),S.add(156,7,0,0),S.add(127,7,0,7),S.add(91,1,11,3),S.addMany(T(64,127),3,7,0),S.addMany(T(48,60),3,8,4),S.addMany([60,61,62,63],3,9,4),S.addMany(T(48,60),4,8,4),S.addMany(T(64,127),4,7,0),S.addMany([60,61,62,63],4,0,6),S.addMany(T(32,64),6,0,6),S.add(127,6,0,6),S.addMany(T(64,127),6,0,0),S.addMany(T(32,48),3,9,5),S.addMany(T(32,48),5,9,5),S.addMany(T(48,64),5,0,6),S.addMany(T(64,127),5,7,0),S.addMany(T(32,48),4,9,5),S.addMany(T(32,48),1,9,2),S.addMany(T(32,48),2,9,2),S.addMany(T(48,127),2,10,0),S.addMany(T(48,80),1,10,0),S.addMany(T(81,88),1,10,0),S.addMany([89,90,92],1,10,0),S.addMany(T(96,127),1,10,0),S.add(80,1,11,9),S.addMany(x,9,0,9),S.add(127,9,0,9),S.addMany(T(28,32),9,0,9),S.addMany(T(32,48),9,9,12),S.addMany(T(48,60),9,8,10),S.addMany([60,61,62,63],9,9,10),S.addMany(x,11,0,11),S.addMany(T(32,128),11,0,11),S.addMany(T(28,32),11,0,11),S.addMany(x,10,0,10),S.add(127,10,0,10),S.addMany(T(28,32),10,0,10),S.addMany(T(48,60),10,8,10),S.addMany([60,61,62,63],10,0,11),S.addMany(T(32,48),10,9,12),S.addMany(x,12,0,12),S.add(127,12,0,12),S.addMany(T(28,32),12,0,12),S.addMany(T(32,48),12,9,12),S.addMany(T(48,64),12,0,11),S.addMany(T(64,127),12,12,13),S.addMany(T(64,127),10,12,13),S.addMany(T(64,127),9,12,13),S.addMany(x,13,13,13),S.addMany(M,13,13,13),S.add(127,13,0,13),S.addMany([27,156,24,26],13,14,0),S.add(b,0,2,0),S.add(b,8,5,8),S.add(b,6,0,6),S.add(b,11,0,11),S.add(b,13,13,13),S}();var O=function(S){function y(T){void 0===T&&(T=A.VT500_TRANSITION_TABLE);var M=S.call(this)||this;return M._transitions=T,M._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},M.initialState=0,M.currentState=M.initialState,M._params=new j.Params,M._params.addParam(0),M._collect=0,M.precedingCodepoint=0,M._printHandlerFb=function(x,N,B){},M._executeHandlerFb=function(x){},M._csiHandlerFb=function(x,N){},M._escHandlerFb=function(x){},M._errorHandlerFb=function(x){return x},M._printHandler=M._printHandlerFb,M._executeHandlers=Object.create(null),M._csiHandlers=Object.create(null),M._escHandlers=Object.create(null),M._oscParser=new L.OscParser,M._dcsParser=new v.DcsParser,M._errorHandler=M._errorHandlerFb,M.registerEscHandler({final:"\\"},function(){return!0}),M}return P(y,S),y.prototype._identifier=function(T,M){void 0===M&&(M=[64,126]);var x=0;if(T.prefix){if(T.prefix.length>1)throw new Error("only one byte as prefix supported");if((x=T.prefix.charCodeAt(0))&&60>x||x>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(T.intermediates){if(T.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var N=0;N<T.intermediates.length;++N){var B=T.intermediates.charCodeAt(N);if(32>B||B>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");x<<=8,x|=B}}if(1!==T.final.length)throw new Error("final must be a single byte");var X=T.final.charCodeAt(0);if(M[0]>X||X>M[1])throw new Error("final must be in range "+M[0]+" .. "+M[1]);return(x<<=8)|X},y.prototype.identToString=function(T){for(var M=[];T;)M.push(String.fromCharCode(255&T)),T>>=8;return M.reverse().join("")},y.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},y.prototype.setPrintHandler=function(T){this._printHandler=T},y.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},y.prototype.registerEscHandler=function(T,M){var x=this._identifier(T,[48,126]);void 0===this._escHandlers[x]&&(this._escHandlers[x]=[]);var N=this._escHandlers[x];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearEscHandler=function(T){this._escHandlers[this._identifier(T,[48,126])]&&delete this._escHandlers[this._identifier(T,[48,126])]},y.prototype.setEscHandlerFallback=function(T){this._escHandlerFb=T},y.prototype.setExecuteHandler=function(T,M){this._executeHandlers[T.charCodeAt(0)]=M},y.prototype.clearExecuteHandler=function(T){this._executeHandlers[T.charCodeAt(0)]&&delete this._executeHandlers[T.charCodeAt(0)]},y.prototype.setExecuteHandlerFallback=function(T){this._executeHandlerFb=T},y.prototype.registerCsiHandler=function(T,M){var x=this._identifier(T);void 0===this._csiHandlers[x]&&(this._csiHandlers[x]=[]);var N=this._csiHandlers[x];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearCsiHandler=function(T){this._csiHandlers[this._identifier(T)]&&delete this._csiHandlers[this._identifier(T)]},y.prototype.setCsiHandlerFallback=function(T){this._csiHandlerFb=T},y.prototype.registerDcsHandler=function(T,M){return this._dcsParser.registerHandler(this._identifier(T),M)},y.prototype.clearDcsHandler=function(T){this._dcsParser.clearHandler(this._identifier(T))},y.prototype.setDcsHandlerFallback=function(T){this._dcsParser.setHandlerFallback(T)},y.prototype.registerOscHandler=function(T,M){return this._oscParser.registerHandler(T,M)},y.prototype.clearOscHandler=function(T){this._oscParser.clearHandler(T)},y.prototype.setOscHandlerFallback=function(T){this._oscParser.setHandlerFallback(T)},y.prototype.setErrorHandler=function(T){this._errorHandler=T},y.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},y.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=[])},y.prototype._preserveStack=function(T,M,x,N,B){this._parseStack.state=T,this._parseStack.handlers=M,this._parseStack.handlerPos=x,this._parseStack.transition=N,this._parseStack.chunkPos=B},y.prototype.parse=function(T,M,x){var N,B=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===x||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===x&&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===x&&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(B=T[this._parseStack.chunkPos],N=this._dcsParser.unhook(24!==B&&26!==B,x))return N;27===B&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(B=T[this._parseStack.chunkPos],N=this._oscParser.end(24!==B&&26!==B,x))return N;27===B&&(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<M;++te){switch(B=T[te],(X=this._transitions.table[this.currentState<<8|(B<160?B:b)])>>4){case 2:for(var be=te+1;;++be){if(be>=M||(B=T[be])<32||B>126&&B<b){this._printHandler(T,te,be),te=be-1;break}if(++be>=M||(B=T[be])<32||B>126&&B<b){this._printHandler(T,te,be),te=be-1;break}if(++be>=M||(B=T[be])<32||B>126&&B<b){this._printHandler(T,te,be),te=be-1;break}if(++be>=M||(B=T[be])<32||B>126&&B<b){this._printHandler(T,te,be),te=be-1;break}}break;case 3:this._executeHandlers[B]?this._executeHandlers[B]():this._executeHandlerFb(B),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:te,code:B,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|B])?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|B,this._params),this.precedingCodepoint=0;break;case 8:do{switch(B){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(B-48)}}while(++te<M&&(B=T[te])>47&&B<60);te--;break;case 9:this._collect<<=8,this._collect|=B;break;case 10:for(var fe=this._escHandlers[this._collect<<8|B],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|B),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|B,this._params);break;case 13:for(var de=te+1;;++de)if(de>=M||24===(B=T[de])||26===B||27===B||B>127&&B<b){this._dcsParser.put(T,te,de),te=de-1;break}break;case 14:if(N=this._dcsParser.unhook(24!==B&&26!==B))return this._preserveStack(6,[],0,X,te),N;27===B&&(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>=M||(B=T[ge])<32||B>127&&B<b){this._oscParser.put(T,te,ge),te=ge-1;break}break;case 6:if(N=this._oscParser.end(24!==B&&26!==B))return this._preserveStack(5,[],0,X,te),N;27===B&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&X}},y}(E.Disposable);A.EscapeSequenceParser=O},6242:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.OscHandler=A.OscParser=void 0;var R=U(5770),P=U(482),E=[],D=function(){function L(){this._state=0,this._active=E,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return L.prototype.registerHandler=function(v,k){void 0===this._handlers[v]&&(this._handlers[v]=[]);var b=this._handlers[v];return b.push(k),{dispose:function(){var S=b.indexOf(k);-1!==S&&b.splice(S,1)}}},L.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},L.prototype.setHandlerFallback=function(v){this._handlerFb=v},L.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=E},L.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=E,this._id=-1,this._state=0},L.prototype._start=function(){if(this._active=this._handlers[this._id]||E,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},L.prototype._put=function(v,k,b){if(this._active.length)for(var O=this._active.length-1;O>=0;O--)this._active[O].put(v,k,b);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(v,k,b))},L.prototype.start=function(){this.reset(),this._state=1},L.prototype.put=function(v,k,b){if(3!==this._state){if(1===this._state)for(;k<b;){var O=v[k++];if(59===O){this._state=2,this._start();break}if(O<48||57<O)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+O-48}2===this._state&&b-k>0&&this._put(v,k,b)}},L.prototype.end=function(v,k){if(void 0===k&&(k=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var b=!1,O=this._active.length-1,S=!1;if(this._stack.paused&&(O=this._stack.loopPosition-1,b=k,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===b){for(;O>=0&&!0!==(b=this._active[O].end(v));O--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!1,b;O--}for(;O>=0;O--)if((b=this._active[O].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!0,b}else this._handlerFb(this._id,"END",v);this._active=E,this._id=-1,this._state=0}},L}();A.OscParser=D;var j=function(){function L(v){this._handler=v,this._data="",this._hitLimit=!1}return L.prototype.start=function(){this._data="",this._hitLimit=!1},L.prototype.put=function(v,k,b){this._hitLimit||(this._data+=(0,P.utf32ToString)(v,k,b),this._data.length>R.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},L.prototype.end=function(v){var k=this,b=!1;if(this._hitLimit)b=!1;else if(v&&(b=this._handler(this._data))instanceof Promise)return b.then(function(O){return k._data="",k._hitLimit=!1,O});return this._data="",this._hitLimit=!1,b},L}();A.OscHandler=j},8742:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Params=void 0;var U=2147483647,R=function(){function P(E,D){if(void 0===E&&(E=32),void 0===D&&(D=32),this.maxLength=E,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(E),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(E),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(E){var D=new P;if(!E.length)return D;for(var j=Array.isArray(E[0])?1:0;j<E.length;++j){var L=E[j];if(Array.isArray(L))for(var v=0;v<L.length;++v)D.addSubParam(L[v]);else D.addParam(L)}return D},P.prototype.clone=function(){var E=new P(this.maxLength,this.maxSubParamsLength);return E.params.set(this.params),E.length=this.length,E._subParams.set(this._subParams),E._subParamsLength=this._subParamsLength,E._subParamsIdx.set(this._subParamsIdx),E._rejectDigits=this._rejectDigits,E._rejectSubDigits=this._rejectSubDigits,E._digitIsSub=this._digitIsSub,E},P.prototype.toArray=function(){for(var E=[],D=0;D<this.length;++D){E.push(this.params[D]);var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&E.push(Array.prototype.slice.call(this._subParams,j,L))}return E},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(E){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=E>U?U:E}},P.prototype.addSubParam=function(E){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=E>U?U:E,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(E){return(255&this._subParamsIdx[E])-(this._subParamsIdx[E]>>8)>0},P.prototype.getSubParams=function(E){var D=this._subParamsIdx[E]>>8,j=255&this._subParamsIdx[E];return j-D>0?this._subParams.subarray(D,j):null},P.prototype.getSubParamsAll=function(){for(var E={},D=0;D<this.length;++D){var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&(E[D]=this._subParams.slice(j,L))}return E},P.prototype.addDigit=function(E){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var j=this._digitIsSub?this._subParams:this.params,L=j[D-1];j[D-1]=~L?Math.min(10*L+E,U):E}},P}();A.Params=R},5741:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.AddonManager=void 0;var U=function(){function R(){this._addons=[]}return R.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},R.prototype.loadAddon=function(P,E){var D=this,j={instance:E,dispose:E.dispose,isDisposed:!1};this._addons.push(j),E.dispose=function(){return D._wrappedAddonDispose(j)},E.activate(P)},R.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var E=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===P){E=D;break}if(-1===E)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(E,1)}},R}();A.AddonManager=U},8771:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferApiView=void 0;var R=U(3785),P=U(511),E=function(){function D(j,L){this._buffer=j,this.type=L}return D.prototype.init=function(j){return this._buffer=j,this},Object.defineProperty(D.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),D.prototype.getLine=function(j){var L=this._buffer.lines.get(j);if(L)return new R.BufferLineApiView(L)},D.prototype.getNullCell=function(){return new P.CellData},D}();A.BufferApiView=E},3785:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLineApiView=void 0;var R=U(511),P=function(){function E(D){this._line=D}return Object.defineProperty(E.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),E.prototype.getCell=function(D,j){if(!(D<0||D>=this._line.length))return j?(this._line.loadCell(D,j),j):this._line.loadCell(D,new R.CellData)},E.prototype.translateToString=function(D,j,L){return this._line.translateToString(D,j,L)},E}();A.BufferLineApiView=P},8285:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferNamespaceApi=void 0;var R=U(8771),P=U(8460),E=function(){function D(j){var L=this;this._core=j,this._onBufferChange=new P.EventEmitter,this._normal=new R.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new R.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return L._onBufferChange.fire(L.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.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(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();A.BufferNamespaceApi=E},7975:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ParserApi=void 0;var U=function(){function R(P){this._core=P}return R.prototype.registerCsiHandler=function(P,E){return this._core.registerCsiHandler(P,function(D){return E(D.toArray())})},R.prototype.addCsiHandler=function(P,E){return this.registerCsiHandler(P,E)},R.prototype.registerDcsHandler=function(P,E){return this._core.registerDcsHandler(P,function(D,j){return E(D,j.toArray())})},R.prototype.addDcsHandler=function(P,E){return this.registerDcsHandler(P,E)},R.prototype.registerEscHandler=function(P,E){return this._core.registerEscHandler(P,E)},R.prototype.addEscHandler=function(P,E){return this.registerEscHandler(P,E)},R.prototype.registerOscHandler=function(P,E){return this._core.registerOscHandler(P,E)},R.prototype.addOscHandler=function(P,E){return this.registerOscHandler(P,E)},R}();A.ParserApi=U},7090:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeApi=void 0;var U=function(){function R(P){this._core=P}return R.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(R.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(E){this._core.unicodeService.activeVersion=E},enumerable:!1,configurable:!0}),R}();A.UnicodeApi=U},744:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var B=O.length-1;B>=0;B--)(M=O[B])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferService=A.MINIMUM_ROWS=A.MINIMUM_COLS=void 0;var j=U(2585),L=U(5295),v=U(8460),k=U(844);A.MINIMUM_COLS=2,A.MINIMUM_ROWS=1;var b=function(O){function S(y){var T=O.call(this)||this;return T._optionsService=y,T.isUserScrolling=!1,T._onResize=new v.EventEmitter,T._onScroll=new v.EventEmitter,T.cols=Math.max(y.rawOptions.cols||0,A.MINIMUM_COLS),T.rows=Math.max(y.rawOptions.rows||0,A.MINIMUM_ROWS),T.buffers=new L.BufferSet(y,T),T}return P(S,O),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){O.prototype.dispose.call(this),this.buffers.dispose()},S.prototype.resize=function(y,T){this.cols=y,this.rows=T,this.buffers.resize(y,T),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:y,rows:T})},S.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},S.prototype.scroll=function(y,T){void 0===T&&(T=!1);var M,x=this.buffer;(M=this._cachedBlankLine)&&M.length===this.cols&&M.getFg(0)===y.fg&&M.getBg(0)===y.bg||(M=x.getBlankLine(y,T),this._cachedBlankLine=M),M.isWrapped=T;var N=x.ybase+x.scrollTop,B=x.ybase+x.scrollBottom;if(0===x.scrollTop){var X=x.lines.isFull;B===x.lines.length-1?X?x.lines.recycle().copyFrom(M):x.lines.push(M.clone()):x.lines.splice(B+1,0,M.clone()),X?this.isUserScrolling&&(x.ydisp=Math.max(x.ydisp-1,0)):(x.ybase++,this.isUserScrolling||x.ydisp++)}else{var $=B-N+1;x.lines.shiftElements(N+1,$-1,-1),x.lines.set(B,M.clone())}this.isUserScrolling||(x.ydisp=x.ybase),this._onScroll.fire(x.ydisp)},S.prototype.scrollLines=function(y,T,M){var x=this.buffer;if(y<0){if(0===x.ydisp)return;this.isUserScrolling=!0}else y+x.ydisp>=x.ybase&&(this.isUserScrolling=!1);var N=x.ydisp;x.ydisp=Math.max(Math.min(x.ydisp+y,x.ybase),0),N!==x.ydisp&&(T||this._onScroll.fire(x.ydisp))},S.prototype.scrollPages=function(y){this.scrollLines(y*(this.rows-1))},S.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},S.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},S.prototype.scrollToLine=function(y){var T=y-this.buffer.ydisp;0!==T&&this.scrollLines(T)},E([D(0,j.IOptionsService)],S)}(k.Disposable);A.BufferService=b},7994:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CharsetService=void 0;var U=function(){function R(){this.glevel=0,this._charsets=[]}return R.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},R.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},R.prototype.setgCharset=function(P,E){this._charsets[P]=E,this.glevel===P&&(this.charset=E)},R}();A.CharsetService=U},1753:function(W,A,U){var R=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,B=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(B=(N<3?x(B):N>3?x(y,T,B):x(y,T))||B);return N>3&&B&&Object.defineProperty(y,T,B),B},P=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},E=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreMouseService=void 0;var D=U(2585),j=U(8460),L={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(y){return 4!==y.button&&1===y.action&&(y.ctrl=!1,y.alt=!1,y.shift=!1,!0)}},VT200:{events:19,restrict:function(y){return 32!==y.action}},DRAG:{events:23,restrict:function(y){return 32!==y.action||3!==y.button}},ANY:{events:31,restrict:function(y){return!0}}};function v(S,y){var T=(S.ctrl?16:0)|(S.shift?4:0)|(S.alt?8:0);return 4===S.button?(T|=64,T|=S.action):(T|=3&S.button,4&S.button&&(T|=64),8&S.button&&(T|=128),32===S.action?T|=32:0!==S.action||y||(T|=3)),T}var k=String.fromCharCode,b={DEFAULT:function(y){var T=[v(y,!1)+32,y.col+32,y.row+32];return T[0]>255||T[1]>255||T[2]>255?"":"\x1b[M"+k(T[0])+k(T[1])+k(T[2])},SGR:function(y){var T=0===y.action&&4!==y.button?"m":"M";return"\x1b[<"+v(y,!0)+";"+y.col+";"+y.row+T}},O=function(){function S(y,T){var M,x,N,B;this._bufferService=y,this._coreService=T,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new j.EventEmitter,this._lastEvent=null;try{for(var X=E(Object.keys(L)),$=X.next();!$.done;$=X.next()){var V=$.value;this.addProtocol(V,L[V])}}catch(pe){M={error:pe}}finally{try{$&&!$.done&&(x=X.return)&&x.call(X)}finally{if(M)throw M.error}}try{for(var Q=E(Object.keys(b)),te=Q.next();!te.done;te=Q.next()){var be=te.value;this.addEncoding(be,b[be])}}catch(pe){N={error:pe}}finally{try{te&&!te.done&&(B=Q.return)&&B.call(Q)}finally{if(N)throw N.error}}this.reset()}return S.prototype.addProtocol=function(y,T){this._protocols[y]=T},S.prototype.addEncoding=function(y,T){this._encodings[y]=T},Object.defineProperty(S.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(T){if(!this._protocols[T])throw new Error('unknown protocol "'+T+'"');this._activeProtocol=T,this._onProtocolChange.fire(this._protocols[T].events)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(T){if(!this._encodings[T])throw new Error('unknown encoding "'+T+'"');this._activeEncoding=T},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(S.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),S.prototype.triggerMouseEvent=function(y){if(y.col<0||y.col>=this._bufferService.cols||y.row<0||y.row>=this._bufferService.rows||4===y.button&&32===y.action||3===y.button&&32!==y.action||4!==y.button&&(2===y.action||3===y.action)||(y.col++,y.row++,32===y.action&&this._lastEvent&&this._compareEvents(this._lastEvent,y))||!this._protocols[this._activeProtocol].restrict(y))return!1;var T=this._encodings[this._activeEncoding](y);return T&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(T):this._coreService.triggerDataEvent(T,!0)),this._lastEvent=y,!0},S.prototype.explainEvents=function(y){return{down:!!(1&y),up:!!(2&y),drag:!!(4&y),move:!!(8&y),wheel:!!(16&y)}},S.prototype._compareEvents=function(y,T){return y.col===T.col&&y.row===T.row&&y.button===T.button&&y.action===T.action&&y.ctrl===T.ctrl&&y.alt===T.alt&&y.shift===T.shift},R([P(0,D.IBufferService),P(1,D.ICoreService)],S)}();A.CoreMouseService=O},6975:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(x[B]=N[B])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,B=arguments.length,X=B<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(B<3?N(X):B>3?N(T,M,X):N(T,M))||X);return B>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreService=void 0;var j=U(2585),L=U(8460),v=U(1439),k=U(844),b=Object.freeze({insertMode:!1}),O=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),S=function(y){function T(M,x,N,B){var X=y.call(this)||this;return X._bufferService=x,X._logService=N,X._optionsService=B,X.isCursorInitialized=!1,X.isCursorHidden=!1,X._onData=X.register(new L.EventEmitter),X._onUserInput=X.register(new L.EventEmitter),X._onBinary=X.register(new L.EventEmitter),X._scrollToBottom=M,X.register({dispose:function(){return X._scrollToBottom=void 0}}),X.modes=(0,v.clone)(b),X.decPrivateModes=(0,v.clone)(O),X}return P(T,y),Object.defineProperty(T.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),T.prototype.reset=function(){this.modes=(0,v.clone)(b),this.decPrivateModes=(0,v.clone)(O)},T.prototype.triggerDataEvent=function(M,x){if(void 0===x&&(x=!1),!this._optionsService.rawOptions.disableStdin){var N=this._bufferService.buffer;N.ybase!==N.ydisp&&this._scrollToBottom(),x&&this._onUserInput.fire(),this._logService.debug('sending data "'+M+'"',function(){return M.split("").map(function(B){return B.charCodeAt(0)})}),this._onData.fire(M)}},T.prototype.triggerBinaryEvent=function(M){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+M+'"',function(){return M.split("").map(function(x){return x.charCodeAt(0)})}),this._onBinary.fire(M))},E([D(1,j.IBufferService),D(2,j.ILogService),D(3,j.IOptionsService)],T)}(k.Disposable);A.CoreService=S},9074:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__generator||function(S,y){var T,M,x,N,B={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(T)throw new TypeError("Generator is already executing.");for(;B;)try{if(T=1,M&&(x=2&Q[0]?M.return:Q[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,Q[1])).done)return x;switch(M=0,x&&(Q=[2&Q[0],x.value]),Q[0]){case 0:case 1:x=Q;break;case 4:return B.label++,{value:Q[1],done:!1};case 5:B.label++,M=Q[1],Q=[0];continue;case 7:Q=B.ops.pop(),B.trys.pop();continue;default:if(!((x=(x=B.trys).length>0&&x[x.length-1])||6!==Q[0]&&2!==Q[0])){B=0;continue}if(3===Q[0]&&(!x||Q[1]>x[0]&&Q[1]<x[3])){B.label=Q[1];break}if(6===Q[0]&&B.label<x[1]){B.label=x[1],x=Q;break}if(x&&B.label<x[2]){B.label=x[2],B.ops.push(Q);break}x[2]&&B.ops.pop(),B.trys.pop();continue}Q=y.call(S,B)}catch(te){Q=[6,te],M=0}finally{T=x=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([$,V])}}},D=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DecorationService=void 0;var j=U(8055),L=U(8460),v=U(844),k=U(6106),b=function(S){function y(){var T=S.call(this)||this;return T._decorations=new k.SortedList(function(M){return M.marker.line}),T._onDecorationRegistered=T.register(new L.EventEmitter),T._onDecorationRemoved=T.register(new L.EventEmitter),T}return P(y,S),Object.defineProperty(y.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),y.prototype.registerDecoration=function(T){var M=this;if(!T.marker.isDisposed){var x=new O(T);if(x){var N=x.marker.onDispose(function(){return x.dispose()});x.onDispose(function(){x&&(M._decorations.delete(x)&&M._onDecorationRemoved.fire(x),N.dispose())}),this._decorations.insert(x),this._onDecorationRegistered.fire(x)}return x}},y.prototype.reset=function(){var T,M;try{for(var x=D(this._decorations.values()),N=x.next();!N.done;N=x.next())N.value.dispose()}catch(B){T={error:B}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this._decorations.clear()},y.prototype.getDecorationsAtLine=function(T){return E(this,function(M){return[2,this._decorations.getKeyIterator(T)]})},y.prototype.getDecorationsAtCell=function(T,M,x){var N,B,X,$,V,Q,te,be,pe,fe,ue;return E(this,function(de){switch(de.label){case 0:N=0,B=0,de.label=1;case 1:de.trys.push([1,6,7,8]),X=D(this._decorations.getKeyIterator(M)),$=X.next(),de.label=2;case 2:return $.done?[3,5]:(V=$.value,N=null!==(pe=V.options.x)&&void 0!==pe?pe:0,B=N+(null!==(fe=V.options.width)&&void 0!==fe?fe:1),!(T>=N&&T<B)||x&&(null!==(ue=V.options.layer)&&void 0!==ue?ue:"bottom")!==x?[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]}})},y.prototype.dispose=function(){var T,M;try{for(var x=D(this._decorations.values()),N=x.next();!N.done;N=x.next()){var B=N.value;this._onDecorationRemoved.fire(B)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this.reset()},y}(v.Disposable);A.DecorationService=b;var O=function(S){function y(T){var M=S.call(this)||this;return M.options=T,M.isDisposed=!1,M.onRenderEmitter=M.register(new L.EventEmitter),M.onRender=M.onRenderEmitter.event,M._onDispose=M.register(new L.EventEmitter),M.onDispose=M._onDispose.event,M._cachedBg=null,M._cachedFg=null,M.marker=T.marker,M.options.overviewRulerOptions&&!M.options.overviewRulerOptions.position&&(M.options.overviewRulerOptions.position="full"),M}return P(y,S),Object.defineProperty(y.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(y.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}),y.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),S.prototype.dispose.call(this))},y}(v.Disposable)},3730:function(W,A,U){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.DirtyRowService=void 0;var E=U(2585),D=function(){function j(L){this._bufferService=L,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(L){L<this._start?this._start=L:L>this._end&&(this._end=L)},j.prototype.markRangeDirty=function(L,v){if(L>v){var k=L;L=v,v=k}L<this._start&&(this._start=L),v>this._end&&(this._end=v)},j.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},R([P(0,E.IBufferService)],j)}();A.DirtyRowService=D},4348:function(W,A,U){var R=this&&this.__values||function(k){var b="function"==typeof Symbol&&Symbol.iterator,O=b&&k[b],S=0;if(O)return O.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&S>=k.length&&(k=void 0),{value:k&&k[S++],done:!k}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},P=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(x){y={error:x}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},E=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.InstantiationService=A.ServiceCollection=void 0;var D=U(2585),j=U(8343),L=function(){function k(){for(var b,O,S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];this._entries=new Map;try{for(var T=R(S),M=T.next();!M.done;M=T.next()){var x=P(M.value,2),N=x[0],B=x[1];this.set(N,B)}}catch(X){b={error:X}}finally{try{M&&!M.done&&(O=T.return)&&O.call(T)}finally{if(b)throw b.error}}}return k.prototype.set=function(b,O){var S=this._entries.get(b);return this._entries.set(b,O),S},k.prototype.forEach=function(b){this._entries.forEach(function(O,S){return b(S,O)})},k.prototype.has=function(b){return this._entries.has(b)},k.prototype.get=function(b){return this._entries.get(b)},k}();A.ServiceCollection=L;var v=function(){function k(){this._services=new L,this._services.set(D.IInstantiationService,this)}return k.prototype.setService=function(b,O){this._services.set(b,O)},k.prototype.getService=function(b){return this._services.get(b)},k.prototype.createInstance=function(b){for(var O,S,y=[],T=1;T<arguments.length;T++)y[T-1]=arguments[T];var M=(0,j.getServiceDependencies)(b).sort(function(Q,te){return Q.index-te.index}),x=[];try{for(var N=R(M),B=N.next();!B.done;B=N.next()){var X=B.value,$=this._services.get(X.id);if(!$)throw new Error("[createInstance] "+b.name+" depends on UNKNOWN service "+X.id+".");x.push($)}}catch(Q){O={error:Q}}finally{try{B&&!B.done&&(S=N.return)&&S.call(N)}finally{if(O)throw O.error}}var V=M.length>0?M[0].index:y.length;if(y.length!==V)throw new Error("[createInstance] First service dependency of "+b.name+" at position "+(V+1)+" conflicts with "+y.length+" static arguments");return new(b.bind.apply(b,E([void 0],P(E(E([],P(y),!1),P(x),!1)),!1)))},k}();A.InstantiationService=v},7866:function(W,A,U){var R=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var x=k.length-1;x>=0;x--)(y=k[x])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},P=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}},E=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(x){y={error:x}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},D=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.LogService=void 0;var j=U(2585),L={debug:j.LogLevelEnum.DEBUG,info:j.LogLevelEnum.INFO,warn:j.LogLevelEnum.WARN,error:j.LogLevelEnum.ERROR,off:j.LogLevelEnum.OFF},v=function(){function k(b){var O=this;this._optionsService=b,this.logLevel=j.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(S){"logLevel"===S&&O._updateLogLevel()})}return k.prototype._updateLogLevel=function(){this.logLevel=L[this._optionsService.rawOptions.logLevel]},k.prototype._evalLazyOptionalParams=function(b){for(var O=0;O<b.length;O++)"function"==typeof b[O]&&(b[O]=b[O]())},k.prototype._log=function(b,O,S){this._evalLazyOptionalParams(S),b.call.apply(b,D([console,"xterm.js: "+O],E(S),!1))},k.prototype.debug=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.DEBUG&&this._log(console.log,b,O)},k.prototype.info=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.INFO&&this._log(console.info,b,O)},k.prototype.warn=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.WARN&&this._log(console.warn,b,O)},k.prototype.error=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.ERROR&&this._log(console.error,b,O)},R([P(0,j.IOptionsService)],k)}();A.LogService=v},7302:function(W,A,U){var R=this&&this.__assign||function(){return R=Object.assign||function(L){for(var v,k=1,b=arguments.length;k<b;k++)for(var O in v=arguments[k])Object.prototype.hasOwnProperty.call(v,O)&&(L[O]=v[O]);return L},R.apply(this,arguments)};Object.defineProperty(A,"__esModule",{value:!0}),A.OptionsService=A.DEFAULT_OPTIONS=A.DEFAULT_BELL_SOUND=void 0;var P=U(8460),E=U(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:E.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var D=["normal","bold","100","200","300","400","500","600","700","800","900"],j=function(){function L(v){this._onOptionChange=new P.EventEmitter;var k=R({},A.DEFAULT_OPTIONS);for(var b in v)if(b in k)try{var O=v[b];k[b]=this._sanitizeAndValidateOption(b,O)}catch(S){console.error(S)}this.rawOptions=k,this.options=R({},k),this._setupOptions()}return Object.defineProperty(L.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),L.prototype._setupOptions=function(){var v=this,k=function(T){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');return v.rawOptions[T]},b=function(T,M){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');M=v._sanitizeAndValidateOption(T,M),v.rawOptions[T]!==M&&(v.rawOptions[T]=M,v._onOptionChange.fire(T))};for(var O in this.rawOptions){var S={get:k.bind(this,O),set:b.bind(this,O)};Object.defineProperty(this.options,O,S)}},L.prototype.setOption=function(v,k){this.options[v]=k},L.prototype._sanitizeAndValidateOption=function(v,k){switch(v){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":k||(k=A.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof k&&1<=k&&k<=1e3)break;k=D.includes(k)?k:A.DEFAULT_OPTIONS[v];break;case"cursorWidth":k=Math.floor(k);case"lineHeight":case"tabStopWidth":if(k<1)throw new Error(v+" cannot be less than 1, value: "+k);break;case"minimumContrastRatio":k=Math.max(1,Math.min(21,Math.round(10*k)/10));break;case"scrollback":if((k=Math.min(k,4294967295))<0)throw new Error(v+" cannot be less than 0, value: "+k);break;case"fastScrollSensitivity":case"scrollSensitivity":if(k<=0)throw new Error(v+" cannot be less than or equal to 0, value: "+k);case"rows":case"cols":if(!k&&0!==k)throw new Error(v+" must be numeric, value: "+k)}return k},L.prototype.getOption=function(v){return this.options[v]},L}();A.OptionsService=j},8343:function(W,A){function U(R,P,E){P.di$target===P?P.di$dependencies.push({id:R,index:E}):(P.di$dependencies=[{id:R,index:E}],P.di$target=P)}Object.defineProperty(A,"__esModule",{value:!0}),A.createDecorator=A.getServiceDependencies=A.serviceRegistry=void 0,A.serviceRegistry=new Map,A.getServiceDependencies=function(R){return R.di$dependencies||[]},A.createDecorator=function(R){if(A.serviceRegistry.has(R))return A.serviceRegistry.get(R);var P=function E(D,j,L){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(E,D,L)};return P.toString=function(){return R},A.serviceRegistry.set(R,P),P}},2585:function(W,A,U){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 R,P=U(8343);A.IBufferService=(0,P.createDecorator)("BufferService"),A.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),A.ICoreService=(0,P.createDecorator)("CoreService"),A.ICharsetService=(0,P.createDecorator)("CharsetService"),A.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),A.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(R=A.LogLevelEnum||(A.LogLevelEnum={}))[R.DEBUG=0]="DEBUG",R[R.INFO=1]="INFO",R[R.WARN=2]="WARN",R[R.ERROR=3]="ERROR",R[R.OFF=4]="OFF",A.ILogService=(0,P.createDecorator)("LogService"),A.IOptionsService=(0,P.createDecorator)("OptionsService"),A.IUnicodeService=(0,P.createDecorator)("UnicodeService"),A.IDecorationService=(0,P.createDecorator)("DecorationService")},1480:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeService=void 0;var R=U(8460),P=U(225),E=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new R.EventEmitter;var j=new P.UnicodeV6;this.register(j),this._active=j.version,this._activeProvider=j}return Object.defineProperty(D.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeVersion",{get:function(){return this._active},set:function(L){if(!this._providers[L])throw new Error('unknown Unicode version "'+L+'"');this._active=L,this._activeProvider=this._providers[L],this._onChange.fire(L)},enumerable:!1,configurable:!0}),D.prototype.register=function(j){this._providers[j.version]=j},D.prototype.wcwidth=function(j){return this._activeProvider.wcwidth(j)},D.prototype.getStringCellWidth=function(j){for(var L=0,v=j.length,k=0;k<v;++k){var b=j.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=v)return L+this.wcwidth(b);var O=j.charCodeAt(k);56320<=O&&O<=57343?b=1024*(b-55296)+O-56320+65536:L+=this.wcwidth(O)}L+=this.wcwidth(b)}return L},D}();A.UnicodeService=E}},m={};return function G(W){var A=m[W];if(void 0!==A)return A.exports;var U=m[W]={exports:{}};return K[W].call(U.exports,U,U.exports,G),U.exports}(4389)}()},1777:function(De,K,m){"use strict";m.d(K,{F4:function(){return k},IO:function(){return T},LC:function(){return U},SB:function(){return v},X$:function(){return P},ZE:function(){return B},ZN:function(){return N},_j:function(){return A},eR:function(){return b},jt:function(){return E},k1:function(){return X},l3:function(){return R},oB:function(){return L},pV:function(){return S},ru:function(){return D},vP:function(){return j}});var G=m(3144),W=m(5671),A=(0,G.Z)(function $(){(0,W.Z)(this,$)}),U=(0,G.Z)(function $(){(0,W.Z)(this,$)}),R="*";function P($,V){return{type:7,name:$,definitions:V,options:{}}}function E($){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:V,timings:$}}function D($){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 L($){return{type:6,styles:$,offset:null}}function v($,V,Q){return{type:0,name:$,styles:V,options:Q}}function k($){return{type:5,steps:$}}function b($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:$,animation:V,options:Q}}function S(){var $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:$}}function T($,V){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:$,animation:V,options:Q}}function x($){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;x(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}}]),$}(),B=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?x(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(De,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),U=m(1120),R=m(136),P=m(9388),E=m(5671),D=m(3144),j=m(9808),L=m(5e3),v=m(925),k=m(8929),b=m(4096),O=m(591),S=m(1086),y=m(1159),T=m(2994),M=m(13),x=m(9664),N=m(4850),B=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,E.Z)(this,We),this._platform=Re,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(St++),this._document=Ye,this._id=(0,L.f3M)(L.AFp)+"-"+St++}return(0,D.Z)(We,[{key:"describe",value:function(Re,Je,vt){if(this._canBeDescribed(Re,Je)){var fn=Dt(Je,vt);"string"!=typeof Je?(Rt(Je,this._id),this._messageRegistry.set(fn,{messageElement:Je,referenceCount:0})):this._messageRegistry.has(fn)||this._createMessageElement(Je,vt),this._isElementDescribedByMessage(Re,fn)||this._addMessageReference(Re,fn)}}},{key:"removeDescription",value:function(Re,Je,vt){var fn;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===(fn=this._messagesContainer)||void 0===fn?void 0:fn.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 fn=this._document.createElement("div");fn.style.visibility="hidden",fn.classList.add(Re),fn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&fn.setAttribute("platform","server"),this._document.body.appendChild(fn),this._messagesContainer=fn}}},{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(fn){return fn!=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"),fn=this._messageRegistry.get(Je),Un=fn&&fn.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(),fn=Re.getAttribute("aria-label");return!!vt&&(!fn||fn.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)(L.LFG(j.K0),L.LFG(v.t4))},Tt.\u0275prov=L.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"});var Ze=function(){function We(Ye){var Re=this;(0,E.Z)(this,We),this._items=Ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k.xQ,this._typeaheadSubscription=b.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(Je){return Je.disabled},this._pressedLetters=[],this.tabOut=new k.xQ,this.change=new k.xQ,Ye instanceof L.n_E&&Ye.changes.subscribe(function(Je){if(Re._activeItem){var fn=Je.toArray().indexOf(Re._activeItem);fn>-1&&fn!==Re._activeItemIndex&&(Re._activeItemIndex=fn)}})}return(0,D.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,T.b)(function(vt){return Re._pressedLetters.push(vt)}),(0,M.b)(Je),(0,x.h)(function(){return Re._pressedLetters.length>0}),(0,N.U)(function(){return Re._pressedLetters.join("")})).subscribe(function(vt){for(var fn=Re._getItemsArray(),Un=1;Un<fn.length+1;Un++){var Kt=(Re._activeItemIndex+Un)%fn.length,yt=fn[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 y.Mf:return void this.tabOut.next();case y.JH:if(this._vertical&&Un){this.setNextItemActive();break}return;case y.LH:if(this._vertical&&Un){this.setPreviousItemActive();break}return;case y.SV:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case y.oh:if(this._horizontal&&Un){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case y.Sd:if(this._homeAndEnd&&Un){this.setFirstItemActive();break}return;case y.uR:if(this._homeAndEnd&&Un){this.setLastItemActive();break}return;default:return void((Un||(0,y.Vb)(Re,"shiftKey"))&&(Re.key&&1===Re.key.length?this._letterKeyStream.next(Re.key.toLocaleUpperCase()):(vt>=y.A&&vt<=y.Z||vt>=y.xE&&vt<=y.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),fn=Je[vt];this._activeItem=null==fn?null:fn,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 fn=(this._activeItemIndex+Re*vt+Je.length)%Je.length,Un=Je[fn];if(!this._skipPredicateFn(Un))return void this.setActiveItem(fn)}}},{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 L.n_E?this._items.toArray():this._items}}]),We}(),$t=function(We){(0,R.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(){return(0,E.Z)(this,Re),Ye.apply(this,arguments)}return(0,D.Z)(Re,[{key:"setActiveItem",value:function(vt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,A.Z)((0,U.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Re}(Ze),Ft=function(We){(0,R.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(){var Je;return(0,E.Z)(this,Re),(Je=Ye.apply(this,arguments))._origin="program",Je}return(0,D.Z)(Re,[{key:"setFocusOrigin",value:function(vt){return this._origin=vt,this}},{key:"setActiveItem",value:function(vt){(0,A.Z)((0,U.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Re}(Ze),rt=function(){function We(Ye){(0,E.Z)(this,We),this._platform=Ye}return(0,D.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===H(Je)||!this.isVisible(Je)))return!1;var vt=Re.nodeName.toLowerCase(),fn=H(Re);return Re.hasAttribute("contenteditable")?-1!==fn:!("iframe"===vt||"object"===vt||this._platform.WEBKIT&&this._platform.IOS&&!function F(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!==fn:"video"===vt?-1!==fn&&(null!==fn||(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 H(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)(L.LFG(v.t4))},rt.\u0275prov=L.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"});var se=function(){function We(Ye,Re,Je,vt){var fn=this,Un=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,E.Z)(this,We),this._element=Ye,this._checker=Re,this._ngZone=Je,this._document=vt,this._hasAttached=!1,this.startAnchorListener=function(){return fn.focusLastTabbableElement()},this.endAnchorListener=function(){return fn.focusFirstTabbableElement()},this._enabled=!0,Un||this.attachAnchors()}return(0,D.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 fn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Je[vt]):null;if(fn)return fn}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 fn=Je[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Je[vt]):null;if(fn)return fn}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,B.q)(1)).subscribe(Re)}}]),We}(),t=function(){function We(Ye,Re,Je){(0,E.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._document=Je}return(0,D.Z)(We,[{key:"create",value:function(Re){var Je=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new se(Re,this._checker,this._ngZone,this._document,Je)}}]),We}();t.\u0275fac=function(Ye){return new(Ye||t)(L.LFG(rt),L.LFG(L.R0b),L.LFG(j.K0))},t.\u0275prov=L.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"});var Lt=function(){function We(Ye,Re,Je){(0,E.Z)(this,We),this._elementRef=Ye,this._focusTrapFactory=Re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,D.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)(L.Y36(L.SBq),L.Y36(t),L.Y36(j.K0))},Lt.\u0275dir=L.lG2({type:Lt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[L.TTD]});var zt=function(We){(0,R.Z)(Re,We);var Ye=(0,P.Z)(Re);function Re(Je,vt,fn,Un,Kt,yt,et){var gt;return(0,E.Z)(this,Re),(gt=Ye.call(this,Je,vt,fn,Un,et.defer))._focusTrapManager=Kt,gt._inertStrategy=yt,gt._focusTrapManager.register((0,W.Z)(gt)),gt}return(0,D.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,U.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}(se),an=new L.OlP("FOCUS_TRAP_INERT_STRATEGY"),Qt=function(){function We(){(0,E.Z)(this,We),this._listener=null}return(0,D.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,fn=Je.target,Un=Re._element;fn&&!Un.contains(fn)&&(null===(vt=fn.closest)||void 0===vt||!vt.call(fn,"div.cdk-overlay-pane"))&&setTimeout(function(){Re.enabled&&!Un.contains(Re._document.activeElement)&&Re.focusFirstTabbableElement()})}}]),We}(),vn=function(){function We(){(0,E.Z)(this,We),this._focusTrapStack=[]}return(0,D.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=L.Yz7({token:vn,factory:vn.\u0275fac,providedIn:"root"});var Vt=function(){function We(Ye,Re,Je,vt,fn){(0,E.Z)(this,We),this._checker=Ye,this._ngZone=Re,this._focusTrapManager=Je,this._document=vt,this._inertStrategy=fn||new Qt}return(0,D.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)(L.LFG(rt),L.LFG(L.R0b),L.LFG(vn),L.LFG(j.K0),L.LFG(an,8))},Vt.\u0275prov=L.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"});var Fe=new L.OlP("cdk-input-modality-detector-options"),ne={ignoreKeys:[y.zL,y.jx,y.b2,y.MW,y.JU]},he=(0,v.i$)({passive:!0,capture:!0}),Le=function(){function We(Ye,Re,Je,vt){var fn=this;(0,E.Z)(this,We),this._platform=Ye,this._mostRecentTarget=null,this._modality=new O.X(null),this._lastTouchMs=0,this._onKeydown=function(Un){var Kt,yt;null!==(yt=null===(Kt=fn._options)||void 0===Kt?void 0:Kt.ignoreKeys)&&void 0!==yt&&yt.some(function(et){return et===Un.keyCode})||(fn._modality.next("keyboard"),fn._mostRecentTarget=(0,v.sA)(Un))},this._onMousedown=function(Un){Date.now()-fn._lastTouchMs<650||(fn._modality.next(Jt(Un)?"keyboard":"mouse"),fn._mostRecentTarget=(0,v.sA)(Un))},this._onTouchstart=function(Un){Qe(Un)?fn._modality.next("keyboard"):(fn._lastTouchMs=Date.now(),fn._modality.next("touch"),fn._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",fn._onKeydown,he),Je.addEventListener("mousedown",fn._onMousedown,he),Je.addEventListener("touchstart",fn._onTouchstart,he)})}return(0,D.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)(L.LFG(v.t4),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Fe,8))},Le.\u0275prov=L.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"});var lt=new L.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ut(){return null}});var Nt=new L.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jt=function(){function We(Ye,Re,Je,vt){(0,E.Z)(this,We),this._ngZone=Re,this._defaultOptions=vt,this._document=Je,this._liveElement=Ye||this._createLiveElement()}return(0,D.Z)(We,[{key:"announce",value:function(Re){for(var fn,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]:(fn=yt[0],Un=yt[1]),this.clear(),clearTimeout(this._previousTimeout),fn||(fn=vt&&vt.politeness?vt.politeness:"polite"),null==Un&&vt&&(Un=vt.duration),this._liveElement.setAttribute("aria-live",fn),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"),fn=0;fn<Je.length;fn++)Je[fn].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)(L.LFG(lt,8),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Nt,8))},jt.\u0275prov=L.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var sn=function(){function We(Ye,Re,Je,vt){(0,E.Z)(this,We),this._elementRef=Ye,this._liveAnnouncer=Re,this._contentObserver=Je,this._ngZone=vt,this._politeness="polite"}return(0,D.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)(L.Y36(L.SBq),L.Y36(jt),L.Y36(te.yq),L.Y36(L.R0b))},sn.\u0275dir=L.lG2({type:sn,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});var yn=new L.OlP("cdk-focus-monitor-default-options"),ln=(0,v.i$)({passive:!0,capture:!0}),Sn=function(){function We(Ye,Re,Je,vt,fn){var Un=this;(0,E.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 k.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==fn?void 0:fn.detectionMode)||0}return(0,D.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,S.of)(null);var fn=(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 k.xQ,rootNode:fn};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 fn=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 fn._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 fn=Je._originFromTouchInteraction?650:1;Je._originTimeoutId=setTimeout(function(){return Je._origin=null},fn)}})}},{key:"_onFocus",value:function(Re,Je){var vt=this._elementInfo.get(Je),fn=(0,v.sA)(Re);!vt||!vt.checkChildren&&Je!==fn||this._originChanged(Je,this._getFocusOrigin(fn),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,fn=this._rootNodeFocusListenerCount.get(vt)||0;fn||this._ngZone.runOutsideAngular(function(){vt.addEventListener("focus",Je._rootNodeFocusAndBlurListener,ln),vt.addEventListener("blur",Je._rootNodeFocusAndBlurListener,ln)}),this._rootNodeFocusListenerCount.set(vt,fn+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,fn){(fn===Re||vt.checkChildren&&fn.contains(Re))&&Je.push([fn,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)(L.LFG(L.R0b),L.LFG(v.t4),L.LFG(Le),L.LFG(j.K0,8),L.LFG(yn,8))},Sn.\u0275prov=L.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"});var hn=function(){function We(Ye,Re){(0,E.Z)(this,We),this._elementRef=Ye,this._focusMonitor=Re,this._focusOrigin=null,this.cdkFocusChange=new L.vpe}return(0,D.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)(L.Y36(L.SBq),L.Y36(Sn))},hn.\u0275dir=L.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,E.Z)(this,We),this._platform=Ye,this._document=Re,this._breakpointSubscription=(0,L.f3M)(be.Yg).observe("(forced-colors: active)").subscribe(function(){Je._hasCheckedHighContrastMode&&(Je._hasCheckedHighContrastMode=!1,Je._applyBodyHighContrastModeCssClasses())})}return(0,D.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,fn=(vt&&vt.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),fn){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)(L.LFG(v.t4),L.LFG(j.K0))},tt.\u0275prov=L.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});var Et=(0,D.Z)(function We(Ye){(0,E.Z)(this,We),Ye._applyBodyHighContrastModeCssClasses()});Et.\u0275fac=function(Ye){return new(Ye||Et)(L.LFG(tt))},Et.\u0275mod=L.oAB({type:Et}),Et.\u0275inj=L.cJS({imports:[te.Q8]})},226:function(De,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),U=m(9808),R=new A.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,A.f3M)(U.K0)}});var E=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(k){var b=(null==k?void 0:k.toLowerCase())||"";return"auto"===b&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?E.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}var j=function(){function k(b){if((0,G.Z)(this,k),this.value="ltr",this.change=new A.vpe,b){var O=b.body?b.body.dir:null,S=b.documentElement?b.documentElement.dir:null;this.value=D(O||S||"ltr")}}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),k}();j.\u0275fac=function(b){return new(b||j)(A.LFG(R,8))},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(){(0,G.Z)(this,k),this._dir="ltr",this._isInitialized=!1,this.change=new A.vpe}return(0,W.Z)(k,[{key:"dir",get:function(){return this._dir},set:function(O){var S=this._dir;this._dir=D(O),this._rawDir=O,S!==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()}}]),k}();L.\u0275fac=function(b){return new(b||L)},L.\u0275dir=A.lG2({type:L,selectors:[["","dir",""]],hostVars:1,hostBindings:function(b,O){2&b&&A.uIk("dir",O._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[A._Bn([{provide:j,useExisting:L}])]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({})},3191:function(De,K,m){"use strict";m.d(K,{Eq:function(){return P},HM:function(){return E},Ig:function(){return A},du:function(){return j},fI:function(){return D},su:function(){return U},t6:function(){return R}});var G=m(7762),W=m(5e3);function A(L){return null!=L&&"false"!=="".concat(L)}function U(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R(L)?Number(L):v}function R(L){return!isNaN(parseFloat(L))&&!isNaN(Number(L))}function P(L){return Array.isArray(L)?L:[L]}function E(L){return null==L?"":"string"==typeof L?L:"".concat(L,"px")}function D(L){return L instanceof W.SBq?L.nativeElement:L}function j(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,k=[];if(null!=L){var S,b=Array.isArray(L)?L:"".concat(L).split(v),O=(0,G.Z)(b);try{for(O.s();!(S=O.n()).done;){var y=S.value,T="".concat(y).trim();T&&k.push(T)}}catch(M){O.e(M)}finally{O.f()}}return k}},449:function(De,K,m){"use strict";m.d(K,{A8:function(){return M},Ov:function(){return y},P3:function(){return b},Z9:function(){return k},eX:function(){return S},k:function(){return x},o2:function(){return v},yy:function(){return O}});var G=m(7762),W=m(136),A=m(9388),U=m(3144),R=m(5671),P=m(1762),E=m(4715),D=m(1086),j=m(8929),L=m(5e3),v=(0,U.Z)(function N(){(0,R.Z)(this,N)});function k(N){return N&&"function"==typeof N.connect&&!(N instanceof P.c)}var b=function(N){(0,W.Z)(X,N);var B=(0,A.Z)(X);function X($){var V;return(0,R.Z)(this,X),(V=B.call(this))._data=$,V}return(0,U.Z)(X,[{key:"connect",value:function(){return(0,E.b)(this._data)?this._data:(0,D.of)(this._data)}},{key:"disconnect",value:function(){}}]),X}(v),O=function(){function N(){(0,R.Z)(this,N)}return(0,U.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}(),S=function(){function N(){(0,R.Z)(this,N),this.viewCacheSize=20,this._viewCache=[]}return(0,U.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}(),y=function(){function N(){var B=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,R.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 B._markSelected(te)}):this._markSelected($[0]),this._selectedToEmit.length=0)}return(0,U.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 M=function(){function N(){(0,R.Z)(this,N),this._listeners=[]}return(0,U.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}();M.\u0275fac=function(B){return new(B||M)},M.\u0275prov=L.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});var x=new L.OlP("_ViewRepeater")},1159:function(De,K,m){"use strict";m.d(K,{A:function(){return Ze},JH:function(){return N},JU:function(){return P},K5:function(){return R},LH:function(){return M},L_:function(){return k},MW:function(){return Qe},Mf:function(){return A},SV:function(){return x},Sd:function(){return y},Vb:function(){return ii},Z:function(){return Jt},ZH:function(){return W},aO:function(){return ot},b2:function(){return Ko},hY:function(){return v},jx:function(){return E},oh:function(){return T},uR:function(){return S},xE:function(){return Q},yY:function(){return V},zL:function(){return D}});var W=8,A=9,R=13,P=16,E=17,D=18,v=27,k=32,S=35,y=36,T=37,M=38,x=39,N=40,V=46,Q=48,ot=57,Ze=65,Jt=90,Qe=91,Ko=224;function ii(So){for(var so=arguments.length,xr=new Array(so>1?so-1:0),Yi=1;Yi<so;Yi++)xr[Yi-1]=arguments[Yi];return xr.length?xr.some(function(Eo){return So[Eo]}):So.altKey||So.shiftKey||So.ctrlKey||So.metaKey}},5113:function(De,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),U=m(3191),R=m(8929),P=m(6053),E=m(1961),D=m(7451),j=m(2986),L=m(1307),v=m(13),k=m(4850),b=m(1059),O=m(7625),S=m(925),y=(0,G.Z)(function Q(){(0,W.Z)(this,Q)});y.\u0275fac=function(te){return new(te||y)},y.\u0275mod=A.oAB({type:y}),y.\u0275inj=A.cJS({});var M,T=new Set,x=function(){function Q(te){(0,W.Z)(this,Q),this._platform=te,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):B}return(0,G.Z)(Q,[{key:"matchMedia",value:function(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(Q){if(!T.has(Q))try{M||((M=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(M)),M.sheet&&(M.sheet.insertRule("@media ".concat(Q," {body{ }}"),0),T.add(Q))}catch(te){console.error(te)}}(be),this._matchMedia(be)}}]),Q}();function B(Q){return{matches:"all"===Q||""===Q,media:Q,addListener:function(){},removeListener:function(){}}}x.\u0275fac=function(te){return new(te||x)(A.LFG(S.t4))},x.\u0275prov=A.Yz7({token:x,factory:x.\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 R.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,U.Eq)(be)).some(function(ue){return pe._registerQuery(ue).mql.matches})}},{key:"observe",value:function(be){var pe=this,ue=$((0,U.Eq)(be)).map(function(ge){return pe._registerQuery(ge).observable}),de=(0,P.aj)(ue);return(de=(0,E.z)(de.pipe((0,j.q)(1)),de.pipe((0,L.T)(1),(0,v.b)(0)))).pipe((0,k.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 D.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,b.O)(fe),(0,k.U)(function(ge){var je=ge.matches;return{query:be,matches:je}}),(0,O.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(x),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(De,K,m){"use strict";m.d(K,{Q8:function(){return v},wD:function(){return L},yq:function(){return j}});var G=m(5671),W=m(3144),A=m(3191),U=m(5e3),R=m(7451),P=m(8929),E=m(13),D=function(){function k(){(0,G.Z)(this,k)}return(0,W.Z)(k,[{key:"create",value:function(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}]),k}();D.\u0275fac=function(b){return new(b||D)},D.\u0275prov=U.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"});var j=function(){function k(b){(0,G.Z)(this,k),this._mutationObserverFactory=b,this._observedElements=new Map}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){var O=this;this._observedElements.forEach(function(S,y){return O._cleanupObserver(y)})}},{key:"observe",value:function(O){var S=this,y=(0,A.fI)(O);return new R.y(function(T){var x=S._observeElement(y).subscribe(T);return function(){x.unsubscribe(),S._unobserveElement(y)}})}},{key:"_observeElement",value:function(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{var S=new P.xQ,y=this._mutationObserverFactory.create(function(T){return S.next(T)});y&&y.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:y,stream:S,count:1})}return this._observedElements.get(O).stream}},{key:"_unobserveElement",value:function(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}},{key:"_cleanupObserver",value:function(O){if(this._observedElements.has(O)){var S=this._observedElements.get(O),y=S.observer,T=S.stream;y&&y.disconnect(),T.complete(),this._observedElements.delete(O)}}}]),k}();j.\u0275fac=function(b){return new(b||j)(U.LFG(D))},j.\u0275prov=U.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(b,O,S){(0,G.Z)(this,k),this._contentObserver=b,this._elementRef=O,this._ngZone=S,this.event=new U.vpe,this._disabled=!1,this._currentSubscription=null}return(0,W.Z)(k,[{key:"disabled",get:function(){return this._disabled},set:function(O){this._disabled=(0,A.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(O){this._debounce=(0,A.su)(O),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var O=this;this._unsubscribe();var S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){O._currentSubscription=(O.debounce?S.pipe((0,E.b)(O.debounce)):S).subscribe(O.event)})}},{key:"_unsubscribe",value:function(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}]),k}();L.\u0275fac=function(b){return new(b||L)(U.Y36(j),U.Y36(U.SBq),U.Y36(U.R0b))},L.\u0275dir=U.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=U.oAB({type:v}),v.\u0275inj=U.cJS({providers:[D]})},1314:function(De,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 se},pI:function(){return an},xu:function(){return zt}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(7685),P=m(7762),E=m(4902),D=m(5671),j=m(3144),L=m(9071),v=m(9808),k=m(5e3),b=m(3191),O=m(925),S=m(226),y=m(7429),T=m(8929),M=m(4096),x=m(6787),N=m(2986),B=m(7625),X=m(4290),$=m(1159),V=(0,O.Mq)(),Q=function(){function Qe(Fe,ne){(0,D.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,b.HM)(-this._previousScrollPosition.left),ne.style.top=(0,b.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,D.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,D.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,D.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,D.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)(k.LFG(L.mF),k.LFG(L.rL),k.LFG(k.R0b),k.LFG(v.K0))},ge.\u0275prov=k.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"});var je=(0,j.Z)(function Qe(Fe){if((0,D.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,D.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,D.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 T.xQ,this._attachments=new T.xQ,this._detachments=new T.xQ,this._locationChanges=M.w.EMPTY,this._backdropClickHandler=function(ln){return sn._backdropClick.next(ln)},this._backdropTransitionendHandler=function(ln){sn._disposeBackdrop(ln.target)},this._keydownEvents=new T.xQ,this._outsidePointerEvents=new T.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,b.HM)(this._config.width),ne.height=(0,b.HM)(this._config.height),ne.minWidth=(0,b.HM)(this._config.minWidth),ne.minHeight=(0,b.HM)(this._config.minHeight),ne.maxWidth=(0,b.HM)(this._config.maxWidth),ne.maxHeight=(0,b.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,b.Eq)(ye||[]).filter(function(Nt){return!!Nt});Le.length&&(he?(lt=ne.classList).add.apply(lt,(0,E.Z)(Le)):(ut=ne.classList).remove.apply(ut,(0,E.Z)(Le)))}},{key:"_detachContentWhenStable",value:function(){var ne=this;this._ngZone.runOutsideAngular(function(){var ye=ne._ngZone.onStable.pipe((0,B.R)((0,x.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,D.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,O.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,O.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)(k.LFG(v.K0),k.LFG(O.t4))},$t.\u0275prov=k.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,D.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 T.xQ,this._resizeSubscription=M.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,P.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,P.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,b.HM)(he.height),Le.top=(0,b.HM)(he.top),Le.bottom=(0,b.HM)(he.bottom),Le.width=(0,b.HM)(he.width),Le.left=(0,b.HM)(he.left),Le.right=(0,b.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,b.HM)(lt)),ut&&(Le.maxWidth=(0,b.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,b.HM)(ut.maxHeight):lt&&(he.maxHeight="")),ut.maxWidth&&(Le?he.maxWidth=(0,b.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,b.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,b.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,b.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 k.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,R.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,D.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,D.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)(k.LFG(L.rL),k.LFG(v.K0),k.LFG(O.t4),k.LFG($t))},Wt.\u0275prov=k.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"});var H=function(){function Qe(Fe){(0,D.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}();H.\u0275fac=function(Fe){return new(Fe||H)(k.LFG(v.K0))},H.\u0275prov=k.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"});var F=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,U.Z)(ne);function ne(ye,he){var Le;return(0,D.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 yn=ut[jt]._keydownEvents;return Le._ngZone?Le._ngZone.run(function(){return yn.next(lt)}):yn.next(lt),1}},jt=ut.length-1;jt>-1&&!Nt();jt--);},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}(H);F.\u0275fac=function(Fe){return new(Fe||F)(k.LFG(v.K0),k.LFG(k.R0b,8))},F.\u0275prov=k.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"});var qe=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,U.Z)(ne);function ne(ye,he,Le){var lt;return(0,D.Z)(this,ne),(lt=Fe.call(this,ye))._platform=he,lt._ngZone=Le,lt._cursorStyleIsSet=!1,lt._pointerDownListener=function(ut){lt._pointerDownEventTarget=(0,O.sA)(ut)},lt._clickListener=function(ut){var Nt=(0,O.sA)(ut),jt="click"===ut.type&&lt._pointerDownEventTarget?lt._pointerDownEventTarget:Nt;lt._pointerDownEventTarget=null;for(var ln,sn=lt._attachedOverlays.slice(),yn=function(){var mn=sn[Sn];if(mn._outsidePointerEvents.observers.length<1||!mn.hasAttached())return 0;if(mn.overlayElement.contains(Nt)||mn.overlayElement.contains(jt))return 1;var At=mn._outsidePointerEvents;lt._ngZone?lt._ngZone.run(function(){return At.next(ut)}):At.next(ut)},Sn=sn.length-1;Sn>-1&&(0===(ln=yn())||1!==ln);Sn--);},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}(H);qe.\u0275fac=function(Fe){return new(Fe||qe)(k.LFG(v.K0),k.LFG(O.t4),k.LFG(k.R0b,8))},qe.\u0275prov=k.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"});var Be=0,se=function(){function Qe(Fe,ne,ye,he,Le,lt,ut,Nt,jt,sn,yn,ln){(0,D.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(k.z2F)),new y.u0(ne,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Qe}();se.\u0275fac=function(Fe){return new(Fe||se)(k.LFG(ge),k.LFG($t),k.LFG(k._Vd),k.LFG(Wt),k.LFG(F),k.LFG(k.zs3),k.LFG(k.R0b),k.LFG(v.K0),k.LFG(S.Is),k.LFG(v.Ye),k.LFG(qe),k.LFG(k.QbO,8))},se.\u0275prov=k.Yz7({token:se,factory:se.\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 k.OlP("cdk-connected-overlay-scroll-strategy"),zt=(0,j.Z)(function Qe(Fe){(0,D.Z)(this,Qe),this.elementRef=Fe});zt.\u0275fac=function(Fe){return new(Fe||zt)(k.Y36(k.SBq))},zt.\u0275dir=k.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var an=function(){function Qe(Fe,ne,ye,he,Le){(0,D.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=M.w.EMPTY,this._attachSubscription=M.w.EMPTY,this._detachSubscription=M.w.EMPTY,this._positionSubscription=M.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new k.vpe,this.positionChange=new k.vpe,this.attach=new k.vpe,this.detach=new k.vpe,this.overlayKeydown=new k.vpe,this.overlayOutsideClick=new k.vpe,this._templatePortal=new y.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,b.Ig)(ne)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ne){this._lockPosition=(0,b.Ig)(ne)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ne){this._flexibleDimensions=(0,b.Ig)(ne)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ne){this._growAfterOpen=(0,b.Ig)(ne)}},{key:"push",get:function(){return this._push},set:function(ne){this._push=(0,b.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)(k.Y36(se),k.Y36(k.Rgc),k.Y36(k.s_b),k.Y36(Lt),k.Y36(S.Is,8))},an.\u0275dir=k.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:[k.TTD]});var vn={provide:Lt,deps:[se],useFactory:function Qt(Qe){return function(){return Qe.scrollStrategies.reposition()}}},Vt=(0,j.Z)(function Qe(){(0,D.Z)(this,Qe)});Vt.\u0275fac=function(Fe){return new(Fe||Vt)},Vt.\u0275mod=k.oAB({type:Vt}),Vt.\u0275inj=k.cJS({providers:[se,vn],imports:[S.vT,y.eL,L.Cl,L.Cl]});var Jt=function(Qe){(0,A.Z)(ne,Qe);var Fe=(0,U.Z)(ne);function ne(ye,he){return(0,D.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)(k.LFG(v.K0),k.LFG(O.t4))},Jt.\u0275prov=k.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})},925:function(De,K,m){"use strict";m.d(K,{Mq:function(){return y},Oy:function(){return $},_i:function(){return T},ht:function(){return B},i$:function(){return b},kV:function(){return N},qK:function(){return L},sA:function(){return X},t4:function(){return P}});var R,G=m(3144),W=m(5671),A=m(5e3),U=m(9808);try{R="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V){R=!1}var P=(0,G.Z)(function V(Q){(0,W.Z)(this,V),this._platformId=Q,this.isBrowser=this._platformId?(0,U.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&&!R)&&"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});P.\u0275fac=function(Q){return new(Q||P)(A.LFG(A.Lbi))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var E=(0,G.Z)(function V(){(0,W.Z)(this,V)});E.\u0275fac=function(Q){return new(Q||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({});var D,v,O,S,M,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 L(){if(D)return D;if("object"!=typeof document||!document)return D=new Set(j);var V=document.createElement("input");return D=new Set(j.filter(function(Q){return V.setAttribute("type",Q),V.type===Q}))}function b(V){return function k(){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 y(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1;if("scrollBehavior"in document.documentElement.style)S=!0;else{var V=Element.prototype.scrollTo;S=!!V&&!/\{\s*\[native code\]\s*\}/.test(V.toString())}}return S}function T(){if("object"!=typeof document||!document)return 0;if(null==O){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),O=0,0===V.scrollLeft&&(V.scrollLeft=1,O=0===V.scrollLeft?1:2),V.remove()}return O}function N(V){if(function x(){if(null==M){var V="undefined"!=typeof document?document.head:null;M=!(!V||!V.createShadowRoot&&!V.attachShadow)}return M}()){var Q=V.getRootNode?V.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function B(){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(De,K,m){"use strict";m.d(K,{C5:function(){return T},Pl:function(){return te},UE:function(){return M},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),U=m(136),R=m(9388),P=m(5671),E=m(3144),D=m(5e3),j=m(9808);var y=function(){function ue(){(0,P.Z)(this,ue)}return(0,E.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}(),T=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je,ot,St,Tt){var Dt;return(0,P.Z)(this,ge),(Dt=de.call(this)).component=je,Dt.viewContainerRef=ot,Dt.injector=St,Dt.componentFactoryResolver=Tt,Dt}return(0,E.Z)(ge)}(y),M=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je,ot,St,Tt){var Dt;return(0,P.Z)(this,ge),(Dt=de.call(this)).templateRef=je,Dt.viewContainerRef=ot,Dt.context=St,Dt.injector=Tt,Dt}return(0,E.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}(y),x=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je){var ot;return(0,P.Z)(this,ge),(ot=de.call(this)).element=je instanceof D.SBq?je.nativeElement:je,ot}return(0,E.Z)(ge)}(y),N=function(){function ue(){(0,P.Z)(this,ue),this._isDisposed=!1,this.attachDomPortal=null}return(0,E.Z)(ue,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(ge){return ge instanceof T?(this._attachedPortal=ge,this.attachComponentPortal(ge)):ge instanceof M?(this._attachedPortal=ge,this.attachTemplatePortal(ge)):this.attachDomPortal&&ge instanceof x?(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,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je,ot,St,Tt,Dt){var Rt,Ze;return(0,P.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,E.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||D.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,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je,ot){return(0,P.Z)(this,ge),de.call(this,je,ot)}return(0,E.Z)(ge)}(M);V.\u0275fac=function(de){return new(de||V)(D.Y36(D.Rgc),D.Y36(D.s_b))},V.\u0275dir=D.lG2({type:V,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[D.qOj]});var Q=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(){return(0,P.Z)(this,ge),de.apply(this,arguments)}return(0,E.Z)(ge)}(V);Q.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=D.n5z(Q)))(ge||Q)}}(),Q.\u0275dir=D.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[D._Bn([{provide:V,useExisting:Q}]),D.qOj]});var te=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(je,ot,St){var Tt,Dt;return(0,P.Z)(this,ge),(Dt=de.call(this))._componentFactoryResolver=je,Dt._viewContainerRef=ot,Dt._isInitialized=!1,Dt.attached=new D.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,E.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)(D.Y36(D._Vd),D.Y36(D.s_b),D.Y36(j.K0))},te.\u0275dir=D.lG2({type:te,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[D.qOj]});var be=function(ue){(0,U.Z)(ge,ue);var de=(0,R.Z)(ge);function ge(){return(0,P.Z)(this,ge),de.apply(this,arguments)}return(0,E.Z)(ge)}(te);be.\u0275fac=function(){var ue;return function(ge){return(ue||(ue=D.n5z(be)))(ge||be)}}(),be.\u0275dir=D.lG2({type:be,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[D._Bn([{provide:te,useExisting:be}]),D.qOj]});var pe=(0,E.Z)(function ue(){(0,P.Z)(this,ue)});pe.\u0275fac=function(de){return new(de||pe)},pe.\u0275mod=D.oAB({type:pe}),pe.\u0275inj=D.cJS({})},9071:function(De,K,m){"use strict";m.d(K,{Cl:function(){return F},PQ:function(){return $t},ZD:function(){return H},mF:function(){return Ze},rL:function(){return Ot}});var G=m(7685),W=m(7762),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(5671),j=m(3144),L=m(3191),v=m(5e3),k=m(8929),b=m(1086),O=m(7451),S=m(3753),y=m(352),T=m(9931),M=m(4096),x=m(4715),N=m(5778),B=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,se,t){(0,D.Z)(this,qe),this._scrolledIndexChange=new k.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,N.x)()),this._viewport=null,this._itemSize=Be,this._minBufferPx=se,this._maxBufferPx=t}return(0,j.Z)(qe,[{key:"attach",value:function(se){this._viewport=se,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(se,t,Lt){this._itemSize=se,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(se,t){this._viewport&&this._viewport.scrollToOffset(se*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 se=this._viewport.getRenderedRange(),t={start:se.start,end:se.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,D.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(se){this._itemSize=(0,L.su)(se)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(se){this._minBufferPx=(0,L.su)(se)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(se){this._maxBufferPx=(0,L.su)(se)}},{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,se,t){(0,D.Z)(this,qe),this._ngZone=Be,this._platform=se,this._scrolled=new k.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=t}return(0,j.Z)(qe,[{key:"register",value:function(se){var t=this;this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(function(){return t._scrolled.next(se)}))}},{key:"deregister",value:function(se){var t=this.scrollContainers.get(se);t&&(t.unsubscribe(),this.scrollContainers.delete(se))}},{key:"scrolled",value:function(){var se=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new O.y(function(Lt){se._globalSubscription||se._addGlobalListener();var zt=t>0?se._scrolled.pipe((0,B.e)(t)).subscribe(Lt):se._scrolled.subscribe(Lt);return se._scrolledCount++,function(){zt.unsubscribe(),se._scrolledCount--,se._scrolledCount||se._removeGlobalListener()}}):(0,b.of)()}},{key:"ngOnDestroy",value:function(){var se=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,Lt){return se.deregister(Lt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(se,t){var Lt=this.getAncestorScrollContainers(se);return this.scrolled(t).pipe((0,X.h)(function(zt){return!zt||Lt.indexOf(zt)>-1}))}},{key:"getAncestorScrollContainers",value:function(se){var t=this,Lt=[];return this.scrollContainers.forEach(function(zt,an){t._scrollableContainsElement(an,se)&&Lt.push(an)}),Lt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(se,t){var Lt=(0,L.fI)(t),zt=se.getElementRef().nativeElement;do{if(Lt==zt)return!0}while(Lt=Lt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var se=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=se._getWindow();return(0,S.R)(t.document,"scroll").subscribe(function(){return se._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,se,t,Lt){var zt=this;(0,D.Z)(this,qe),this.elementRef=Be,this.scrollDispatcher=se,this.ngZone=t,this.dir=Lt,this._destroyed=new k.xQ,this._elementScrolled=new O.y(function(an){return zt.ngZone.runOutsideAngular(function(){return(0,S.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(se){var t=this.elementRef.nativeElement,Lt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Lt?se.end:se.start),null==se.right&&(se.right=Lt?se.start:se.end),null!=se.bottom&&(se.top=t.scrollHeight-t.clientHeight-se.bottom),Lt&&0!=(0,fe._i)()?(null!=se.left&&(se.right=t.scrollWidth-t.clientWidth-se.left),2==(0,fe._i)()?se.left=se.right:1==(0,fe._i)()&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=t.scrollWidth-t.clientWidth-se.right),this._applyScrollToOptions(se)}},{key:"_applyScrollToOptions",value:function(se){var t=this.elementRef.nativeElement;(0,fe.Mq)()?t.scrollTo(se):(null!=se.top&&(t.scrollTop=se.top),null!=se.left&&(t.scrollLeft=se.left))}},{key:"measureScrollOffset",value:function(se){var t="left",zt=this.elementRef.nativeElement;if("top"==se)return zt.scrollTop;if("bottom"==se)return zt.scrollHeight-zt.clientHeight-zt.scrollTop;var an=this.dir&&"rtl"==this.dir.value;return"start"==se?se=an?"right":t:"end"==se&&(se=an?t:"right"),an&&2==(0,fe._i)()?se==t?zt.scrollWidth-zt.clientWidth-zt.scrollLeft:zt.scrollLeft:an&&1==(0,fe._i)()?se==t?zt.scrollLeft+zt.scrollWidth-zt.clientWidth:-zt.scrollLeft:se==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,P.Z)(se,qe);var Be=(0,E.Z)(se);function se(t,Lt,zt,an){return(0,D.Z)(this,se),Be.call(this,t,Lt,zt,an)}return(0,j.Z)(se,[{key:"measureViewportSize",value:function(Lt){var zt=this.elementRef.nativeElement;return"horizontal"===Lt?zt.clientWidth:zt.clientHeight}}]),se}($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,se,t){var Lt=this;(0,D.Z)(this,qe),this._platform=Be,this._change=new k.xQ,this._changeListener=function(zt){Lt._change.next(zt)},this._document=t,se.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 se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}},{key:"getViewportRect",value:function(){var se=this.getViewportScrollPosition(),t=this.getViewportSize(),Lt=t.width,zt=t.height;return{top:se.top,left:se.left,bottom:se.top+zt,right:se.left+Lt,height:zt,width:Lt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var se=this._document,t=this._getWindow(),Lt=se.documentElement,zt=Lt.getBoundingClientRect();return{top:-zt.top||se.body.scrollTop||t.scrollY||Lt.scrollTop||0,left:-zt.left||se.body.scrollLeft||t.scrollX||Lt.scrollLeft||0}}},{key:"change",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return se>0?this._change.pipe((0,B.e)(se)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.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?y.Z:T.E,Ve=function(qe){(0,P.Z)(se,qe);var Be=(0,E.Z)(se);function se(t,Lt,zt,an,Qt,vn,Vt,Jt){var Qe;return(0,D.Z)(this,se),(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 k.xQ,Qe._renderedRangeSubject=new k.xQ,Qe._orientation="vertical",Qe._appendOnly=!1,Qe.scrolledIndexChange=new O.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=M.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)(se,[{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,L.Ig)(Lt)}},{key:"ngOnInit",value:function(){var Lt=this;!this._platform.isBrowser||(this.scrollable===this&&(0,U.Z)((0,R.Z)(se.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,B.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,U.Z)((0,R.Z)(se.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,U.Z)((0,R.Z)(se.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"):""}}]),se}(pn);function at(qe,Be,se){var t=se;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,se){var t;(1&Be&&v.Gf(ge,7),2&Be)&&(v.iGM(t=v.CRH())&&(se._contentWrapper=t.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Be,se){2&Be&&v.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===se.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==se.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[v._Bn([{provide:$t,useFactory:function(Be,se){return Be||se},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,se){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",se._totalContentWidth)("height",se._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,se,t,Lt,zt,an){var Qt=this;(0,D.Z)(this,qe),this._viewContainerRef=Be,this._template=se,this._differs=t,this._viewRepeater=Lt,this._viewport=zt,this.viewChange=new k.xQ,this._dataSourceChanges=new k.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 k.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(se){this._cdkVirtualForOf=se,(0,de.Z9)(se)?this._dataSourceChanges.next(se):this._dataSourceChanges.next(new de.P3((0,x.b)(se)?se:Array.from(se||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(se){var t=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=se?function(Lt,zt){return se(Lt+(t._renderedRange?t._renderedRange.start:0),zt)}:void 0}},{key:"cdkVirtualForTemplate",set:function(se){se&&(this._needsUpdate=!0,this._template=se)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(se){this._viewRepeater.viewCacheSize=(0,L.su)(se)}},{key:"measureRangeSize",value:function(se,t){if(se.start>=se.end)return 0;se.start<this._renderedRange.start||(se.end,this._renderedRange.end);for(var an,Qt,Lt=se.start-this._renderedRange.start,zt=se.end-se.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 se=this._differ.diff(this._renderedItems);se?this._applyChanges(se):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 se=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 se.cdkVirtualForTrackBy?se.cdkVirtualForTrackBy(t,Lt):Lt})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(se,t){return se&&se.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,b.of)()}},{key:"_updateContext",value:function(){for(var se=this._data.length,t=this._viewContainerRef.length;t--;){var Lt=this._viewContainerRef.get(t);Lt.context.index=this._renderedRange.start+t,Lt.context.count=se,this._updateComputedContextProperties(Lt.context),Lt.detectChanges()}}},{key:"_applyChanges",value:function(se){var t=this;this._viewRepeater.applyChanges(se,this._viewContainerRef,function(Qt,vn,Vt){return t._getEmbeddedViewArgs(Qt,Vt)},function(Qt){return Qt.item}),se.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(se){se.first=0===se.index,se.last=se.index===se.count-1,se.even=se.index%2==0,se.odd=!se.even}},{key:"_getEmbeddedViewArgs",value:function(se,t){return{templateRef:this._template,context:{$implicit:se.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,P.Z)(se,qe);var Be=(0,E.Z)(se);function se(t,Lt,zt,an){return(0,D.Z)(this,se),Be.call(this,t,Lt,zt,an)}return(0,j.Z)(se,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]-this.measureScrollOffset(Lt)}}]),se}(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,P.Z)(se,qe);var Be=(0,E.Z)(se);function se(t,Lt,zt){var an;return(0,D.Z)(this,se),(an=Be.call(this,new v.SBq(document.documentElement),t,Lt,zt))._elementScrolled=new O.y(function(Qt){return an.ngZone.runOutsideAngular(function(){return(0,S.R)(document,"scroll").pipe((0,$.R)(an._destroyed)).subscribe(Qt)})}),an}return(0,j.Z)(se,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Lt){return this.getElementRef().nativeElement.getBoundingClientRect()[Lt]}}]),se}(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 H=(0,j.Z)(function qe(){(0,D.Z)(this,qe)});H.\u0275fac=function(Be){return new(Be||H)},H.\u0275mod=v.oAB({type:H}),H.\u0275inj=v.cJS({});var F=(0,j.Z)(function qe(){(0,D.Z)(this,qe)});F.\u0275fac=function(Be){return new(Be||F)},F.\u0275mod=v.oAB({type:F}),F.\u0275inj=v.cJS({imports:[ue.vT,H,ue.vT,H]})},9808:function(De,K,m){"use strict";m.d(K,{Do:function(){return te},ED:function(){return qs},EM:function(){return xc},HT:function(){return v},JF:function(){return _l},K0:function(){return b},Mx:function(){return ki},NF:function(){return qa},O5:function(){return ra},Ov:function(){return qi},PC:function(){return to},RF:function(){return uo},S$:function(){return $},V_:function(){return y},Ye:function(){return be},b0:function(){return Q},bD:function(){return fo},ez:function(){return go},mk:function(){return Ko},n9:function(){return Ui},q:function(){return j},sg:function(){return Yi},tP:function(){return Ai},w_:function(){return k}});var G=m(7762),W=m(7685),A=m(136),U=m(9388),R=m(3144),P=m(5671),E=m(5e3),D=null;function j(){return D}function v(ie){D||(D=ie)}var k=(0,R.Z)(function ie(){(0,P.Z)(this,ie)}),b=new E.OlP("DocumentToken"),O=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();O.\u0275fac=function(ce){return new(ce||O)},O.\u0275prov=E.Yz7({token:O,factory:function(){return function S(){return(0,E.LFG)(T)}()},providedIn:"platform"});var y=new E.OlP("Location Initialized"),T=function(ie){(0,A.Z)(me,ie);var ce=(0,U.Z)(me);function me(Ue){var Xe;return(0,P.Z)(this,me),(Xe=ce.call(this))._doc=Ue,Xe._init(),Xe}return(0,R.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){M()?this._history.pushState(Xe,It,rn):this.location.hash=rn}},{key:"replaceState",value:function(Xe,It,rn){M()?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}(O);function M(){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 B(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}T.\u0275fac=function(ce){return new(ce||T)(E.LFG(b))},T.\u0275prov=E.Yz7({token:T,factory:function(){return function x(){return new T((0,E.LFG)(b))}()},providedIn:"platform"});var $=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(me){throw new Error("Not implemented")}}]),ie}();$.\u0275fac=function(ce){return new(ce||$)},$.\u0275prov=E.Yz7({token:$,factory:function(){return(0,E.f3M)(Q)},providedIn:"root"});var V=new E.OlP("appBaseHref"),Q=function(ie){(0,A.Z)(me,ie);var ce=(0,U.Z)(me);function me(Ue,Xe){var It,rn,Bn,lr;return(0,P.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,E.f3M)(b).location)||void 0===Bn?void 0:Bn.origin)&&void 0!==lr?lr:"",It}return(0,R.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)(E.LFG(O),E.LFG(V,8))},Q.\u0275prov=E.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});var te=function(ie){(0,A.Z)(me,ie);var ce=(0,U.Z)(me);function me(Ue,Xe){var It;return(0,P.Z)(this,me),(It=ce.call(this))._platformLocation=Ue,It._baseHref="",It._removeListenerFns=[],null!=Xe&&(It._baseHref=Xe),It}return(0,R.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)(E.LFG(O),E.LFG(V,8))},te.\u0275prov=E.Yz7({token:te,factory:te.\u0275fac});var be=function(){function ie(ce){var me=this;(0,P.Z)(this,ie),this._subject=new E.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ce;var Ue=this._locationStrategy.getBaseHref();this._baseHref=B(ue(Ue)),this._locationStrategy.onPopState(function(Xe){me._subject.emit({url:me.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}return(0,R.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=B,be.\u0275fac=function(ce){return new(ce||be)(E.LFG($))},be.\u0275prov=E.Yz7({token:be,factory:function(){return function pe(){return new be((0,E.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,E.cg1)(ie)[E.wAp.DateFormat],ce)}function Ve(ie,ce){return an((0,E.cg1)(ie)[E.wAp.TimeFormat],ce)}function at(ie,ce){return an((0,E.cg1)(ie)[E.wAp.DateTimeFormat],ce)}function ht(ie,ce){var me=(0,E.cg1)(ie),Ue=me[E.wAp.NumberSymbols][ce];if(void 0===Ue){if(ce===Dt.CurrencyDecimal)return me[E.wAp.NumberSymbols][Dt.Decimal];if(ce===Dt.CurrencyGroup)return me[E.wAp.NumberSymbols][Dt.Group]}return Ue}function Ut(ie,ce){return(0,E.cg1)(ie)[E.wAp.NumberFormats][ce]}function qe(ie){return(0,E.cg1)(ie)[E.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=E.kL8;function se(ie){if(!ie[E.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ie[E.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 ui=new Date(ie);if(!gt(ui))throw new Error('Unable to convert "'.concat(ie,'" into a date'));return ui}(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=fn(Ue,wr),Xe=function Kt(ie,ce,me){var Ue=me?-1:1,Xe=ie.getTimezoneOffset(),It=fn(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 ui="";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);ui+=Do?Do(Xe,me,wr):"''"===Qr?"'":Qr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}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,E.cg1)(ie)[E.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 ui=Nt(ie,"fullTime"),Qr=Nt(ie,"fullDate");Ue=jt(at(ie,Tt.Full),[ui,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,E.cg1)(ie),It=an([Ue[E.wAp.MonthsFormat],Ue[E.wAp.MonthsStandalone]],ce);return an(It,me)}(ce,Xe,Ue)[ie.getMonth()];case Le.Days:return function Ft(ie,ce,me){var Ue=(0,E.cg1)(ie),It=an([Ue[E.wAp.DaysFormat],Ue[E.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,E.cg1)(ie);return se(ce),(ce[E.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,E.cg1)(ie);se(Ue);var It=an([Ue[E.wAp.ExtraData][0],Ue[E.wAp.ExtraData][1]],ce)||[];return an(It,me)||[]}(ce,Xe,Ue),ui=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!==ui)return wr[ui]}return function $t(ie,ce,me){var Ue=(0,E.cg1)(ie),It=an([Ue[E.wAp.DayPeriodsFormat],Ue[E.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,E.cg1)(ie)[E.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 fn(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 ui=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&&(ui=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,Cu=wr.exponent,ma=[];for(lr=Pi.every(function(Pv){return!Pv});ic<ui;ic++)Pi.unshift(0);for(;ic<0;ic++)Pi.unshift(0);ic>0?ma=Pi.splice(ic,Pi.length):(ma=Pi,Pi=[0]);var wu=[];for(Pi.length>=ce.lgSize&&wu.unshift(Pi.splice(-ce.lgSize,Pi.length).join(""));Pi.length>ce.gSize;)wu.unshift(Pi.splice(-ce.gSize,Pi.length).join(""));Pi.length&&wu.unshift(Pi.join("")),Bn=wu.join(ht(me,Ue)),ma.length&&(Bn+=ht(me,Xe)+ma.join("")),Cu&&(Bn+=ht(me,Dt.Exponential)+"+"+Cu)}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 ui=lr.charAt(wr);ui===Wn?me.minFrac=me.maxFrac=wr+1:"#"===ui?me.maxFrac=wr+1:me.posSuf+=ui}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 ui=0;ui>rn;ui--)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,R.Z)(function ie(){(0,P.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=E.Yz7({token:vr,factory:function(ce){var Ue,me=null;return ce?me=new ce:(Ue=E.LFG(E.soG),me=new ni(Ue)),me},providedIn:"root"});var ni=function(ie){(0,A.Z)(me,ie);var ce=(0,U.Z)(me);function me(Ue){var Xe;return(0,P.Z)(this,me),(Xe=ce.call(this)).locale=Ue,Xe}return(0,R.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(ui){me.e(ui)}finally{me.f()}return null}ni.\u0275fac=function(ce){return new(ce||ni)(E.LFG(E.soG))},ni.\u0275prov=E.Yz7({token:ni,factory:ni.\u0275fac});var Ko=function(){function ie(ce,me,Ue,Xe){(0,P.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,R.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,E.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,E.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}();Ko.\u0275fac=function(ce){return new(ce||Ko)(E.Y36(E.ZZ4),E.Y36(E.aQg),E.Y36(E.SBq),E.Y36(E.Qsj))},Ko.\u0275dir=E.lG2({type:Ko,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var ii=function(){function ie(ce){(0,P.Z)(this,ie),this._viewContainerRef=ce,this.ngComponentOutlet=null}return(0,R.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,E.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(E.h0i).injector}ii.\u0275fac=function(ce){return new(ce||ii)(E.Y36(E.s_b))},ii.\u0275dir=E.lG2({type:ii,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[E.TTD]});var xr=function(){function ie(ce,me,Ue,Xe){(0,P.Z)(this,ie),this.$implicit=ce,this.ngForOf=me,this.index=Ue,this.count=Xe}return(0,R.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}(),Yi=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this._viewContainer=ce,this._template=me,this._differs=Ue,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,R.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,ui,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===ui?void 0:ui);else if(null!==ui){var Do=Xe.get(ui);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}Yi.\u0275fac=function(ce){return new(ce||Yi)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(E.ZZ4))},Yi.\u0275dir=E.lG2({type:Yi,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var ra=function(){function ie(ce,me){(0,P.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,R.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)(E.Y36(E.s_b),E.Y36(E.Rgc))},ra.\u0275dir=E.lG2({type:ra,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var lo=(0,R.Z)(function ie(){(0,P.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,E.AaK)(ce),"'."))}var Ya=function(){function ie(ce,me){(0,P.Z)(this,ie),this._viewContainerRef=ce,this._templateRef=me,this._created=!1}return(0,R.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,P.Z)(this,ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,R.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=E.lG2({type:uo,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var Ui=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this.ngSwitch=Ue,Ue._addCase(),this._view=new Ya(ce,me)}return(0,R.Z)(ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ie}();Ui.\u0275fac=function(ce){return new(ce||Ui)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(uo,9))},Ui.\u0275dir=E.lG2({type:Ui,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});var qs=(0,R.Z)(function ie(ce,me,Ue){(0,P.Z)(this,ie),Ue._addDefault(new Ya(ce,me))});qs.\u0275fac=function(ce){return new(ce||qs)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(uo,9))},qs.\u0275dir=E.lG2({type:qs,selectors:[["","ngSwitchDefault",""]],standalone:!0});var qo=function(){function ie(ce){(0,P.Z)(this,ie),this._localization=ce,this._caseViews={}}return(0,R.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}();qo.\u0275fac=function(ce){return new(ce||qo)(E.Y36(vr))},qo.\u0275dir=E.lG2({type:qo,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});var $u=(0,R.Z)(function ie(ce,me,Ue,Xe){(0,P.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)(E.$8M("ngPluralCase"),E.Y36(E.Rgc),E.Y36(E.s_b),E.Y36(qo,1))},$u.\u0275dir=E.lG2({type:$u,selectors:[["","ngPluralCase",""]],standalone:!0});var to=function(){function ie(ce,me,Ue){(0,P.Z)(this,ie),this._ngEl=ce,this._differs=me,this._renderer=Ue,this._ngStyle=null,this._differ=null}return(0,R.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:E.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)(E.Y36(E.SBq),E.Y36(E.aQg),E.Y36(E.Qsj))},to.\u0275dir=E.lG2({type:to,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Ai=function(){function ie(ce){(0,P.Z)(this,ie),this._viewContainerRef=ce,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}return(0,R.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)(E.Y36(E.s_b))},Ai.\u0275dir=E.lG2({type:Ai,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[E.TTD]});function Ki(ie,ce){return new E.vHH(2100,!1)}var tn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.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,P.Z)(this,ie)}return(0,R.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,qi=function(){function ie(ce){(0,P.Z)(this,ie),this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ce}return(0,R.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,E.QGY)(me))return Dr;if((0,E.F4k)(me))return no;throw Ki()}},{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}();qi.\u0275fac=function(ce){return new(ce||qi)(E.Y36(E.sBO,16))},qi.\u0275pipe=E.Yjl({name:"async",type:qi,pure:!1,standalone:!0});var Jo=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();return me.toLowerCase()}}]),ie}();Jo.\u0275fac=function(ce){return new(ce||Jo)},Jo.\u0275pipe=E.Yjl({name:"lowercase",type:Jo,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,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();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=E.Yjl({name:"titlecase",type:ro,pure:!0,standalone:!0});var Rn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me){if(null==me)return null;if("string"!=typeof me)throw Ki();return me.toUpperCase()}}]),ie}();Rn.\u0275fac=function(ce){return new(ce||Rn)},Rn.\u0275pipe=E.Yjl({name:"uppercase",type:Rn,pure:!0,standalone:!0});var mu=new E.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Jr=function(){function ie(ce,me){(0,P.Z)(this,ie),this.locale=ce,this.defaultTimezone=me}return(0,R.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 Ki(0,Bn.message)}}}]),ie}();Jr.\u0275fac=function(ce){return new(ce||Jr)(E.Y36(E.soG,16),E.Y36(mu,24))},Jr.\u0275pipe=E.Yjl({name:"date",type:Jr,pure:!0,standalone:!0});var Yn=/#/g,An=function(){function ie(ce){(0,P.Z)(this,ie),this._localization=ce}return(0,R.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return"";if("object"!=typeof Ue||null===Ue)throw Ki();return Ue[fi(me,Object.keys(Ue),this._localization,Xe)].replace(Yn,me.toString())}}]),ie}();An.\u0275fac=function(ce){return new(ce||An)(E.Y36(vr,16))},An.\u0275pipe=E.Yjl({name:"i18nPlural",type:An,pure:!0,standalone:!0});var cn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me,Ue){if(null==me)return"";if("object"!=typeof Ue||"string"!=typeof me)throw Ki();return Ue.hasOwnProperty(me)?Ue[me]:Ue.hasOwnProperty("other")?Ue.other:""}}]),ie}();cn.\u0275fac=function(ce){return new(ce||cn)},cn.\u0275pipe=E.Yjl({name:"i18nSelect",type:cn,pure:!0,standalone:!0});var Ji=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me){return JSON.stringify(me,null,2)}}]),ie}();function Oi(ie,ce){return{key:ie,value:ce}}Ji.\u0275fac=function(ce){return new(ce||Ji)},Ji.\u0275pipe=E.Yjl({name:"json",type:Ji,pure:!1,standalone:!0});var Qi=function(){function ie(ce){(0,P.Z)(this,ie),this.differs=ce,this.keyValues=[],this.compareFn=Ii}return(0,R.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}Qi.\u0275fac=function(ce){return new(ce||Qi)(E.Y36(E.aQg,16))},Qi.\u0275pipe=E.Yjl({name:"keyvalue",type:Qi,pure:!1,standalone:!0});var ai=function(){function ie(ce){(0,P.Z)(this,ie),this._locale=ce}return(0,R.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 Ki(0,rn.message)}}}]),ie}();ai.\u0275fac=function(ce){return new(ce||ai)(E.Y36(E.soG,16))},ai.\u0275pipe=E.Yjl({name:"number",type:ai,pure:!0,standalone:!0});var Mi=function(){function ie(ce){(0,P.Z)(this,ie),this._locale=ce}return(0,R.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 Ki(0,rn.message)}}}]),ie}();Mi.\u0275fac=function(ce){return new(ce||Mi)(E.Y36(E.soG,16))},Mi.\u0275pipe=E.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,P.Z)(this,ie),this._locale=ce,this._defaultCurrencyCode=me}return(0,R.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 Ki(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)(E.Y36(E.soG,16),E.Y36(E.EJc,16))},Hi.\u0275pipe=E.Yjl({name:"currency",type:Hi,pure:!0,standalone:!0});var fa=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(me,Ue,Xe){if(null==me)return null;if(!this.supports(me))throw Ki();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=E.Yjl({name:"slice",type:fa,pure:!1,standalone:!0});var go=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});go.\u0275fac=function(ce){return new(ce||go)},go.\u0275mod=E.oAB({type:go}),go.\u0275inj=E.cJS({});var fo="browser";function qa(ie){return ie===fo}new E.GfV("14.3.0");var xc=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});xc.\u0275prov=(0,E.Yz7)({token:xc,providedIn:"root",factory:function(){return new Br((0,E.LFG)(b),window)}});var Br=function(){function ie(ce,me){(0,P.Z)(this,ie),this.document=ce,this.window=me,this.offset=function(){return[0,0]}}return(0,R.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=gu(this.window.history)||gu(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 gu(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}var _l=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});function vu(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 yu=function(ce){return ce.src},Js=new E.OlP("ImageLoader",{providedIn:"root",factory:function(){return yu}});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 E.vHH(2959,!1)}(),Ue=function Dc(ie){return ie.endsWith("/")?ie.slice(0,-1):ie}(Ue);return[{provide:Js,useValue:function(Bn){return po(Bn.src)&&function bd(ie,ce){throw new E.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 Ss(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 le(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 E.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,P.Z)(this,ie),this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,Me("LCP checker");var ce=(0,E.f3M)(b).defaultView;void 0!==ce&&"undefined"!=typeof PerformanceObserver&&(this.window=ce,this.observer=this.initPerformanceObserver())}return(0,R.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=le(ie);console.warn((0,E.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(vu(me,this.window).href,Ue)}},{key:"unregisterImage",value:function(me){!this.observer||this.images.delete(vu(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=E.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});var Yt=new Set(["localhost","127.0.0.1","0.0.0.0"]),Pn=new E.OlP("PRECONNECT_CHECK_BLOCKLIST"),Qn=function(){function ie(){(0,P.Z)(this,ie),this.document=(0,E.f3M)(b),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,E.f3M)(Pn,{optional:!0});me&&this.populateBlocklist(me)}return(0,R.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=vu(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,E.kuF)(2956,"".concat(le(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=vu(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=E.Yz7({token:Qn,factory:Qn.\u0275fac,providedIn:"root"});var Go=new E.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}}),Xs=function(){function ie(){(0,P.Z)(this,ie),this.preloadedImages=(0,E.f3M)(Go),this.document=(0,E.f3M)(b)}return(0,R.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=E.Yz7({token:Xs,factory:Xs.\u0275fac,providedIn:"root"});var Qa=/^((\s*\d+w\s*(,|$)){1,})$/,$m=[1,2],xs={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},gl=new E.OlP("ImageConfig",{providedIn:"root",factory:function(){return xs}}),Cd=function(){function ie(){(0,P.Z)(this,ie),this.imageLoader=(0,E.f3M)(Js),this.config=function Ma(ie){var ce={};return ie.breakpoints&&(ce.breakpoints=ie.breakpoints.sort(function(me,Ue){return me-Ue})),Object.assign({},xs,ie,ce)}((0,E.f3M)(gl)),this.renderer=(0,E.f3M)(E.Qsj),this.imgElement=(0,E.f3M)(E.SBq).nativeElement,this.injector=(0,E.f3M)(E.zs3),this.isServer=function Qo(ie){return"server"===ie}((0,E.f3M)(E.Lbi)),this.preloadLinkChecker=(0,E.f3M)(Xs),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}return(0,R.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!==yu&&!(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=E.lG2({type:Cd,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(ce,me){2&ce&&E.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:[E.TTD]})},520:function(De,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 y},eN:function(){return Ze}});var G=m(136),W=m(9388),A=m(7685),U=m(4902),R=m(3144),P=m(5671),E=m(9808),D=m(5e3),j=m(1086),L=m(7451),v=m(1406),k=m(9664),b=m(4850),O=(0,R.Z)(function ne(){(0,P.Z)(this,ne)}),S=(0,R.Z)(function ne(){(0,P.Z)(this,ne)}),y=function(){function ne(ye){var he=this;(0,P.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,R.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,U.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 M=function(){function ne(){(0,P.Z)(this,ne)}return(0,R.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 x(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,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X(ne){return encodeURIComponent(ne).replace(N,function(ye,he){var Le;return null!==(Le=B[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,P.Z)(this,ne),this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new M,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(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,R.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,P.Z)(this,ne),this.map=new Map}return(0,R.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,P.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 y),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,R.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,R.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,P.Z)(this,ne),this.headers=ye.headers||new y,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,P.Z)(this,he),(Le=ye.call(this,lt)).type=je.ResponseHeader,Le}return(0,R.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,P.Z)(this,he),(Le=ye.call(this,lt)).type=je.Response,Le.body=void 0!==lt.body?lt.body:null,Le}return(0,R.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,P.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,R.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,P.Z)(this,ne),this.handler=ye}return(0,R.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 y?ut.headers:new y(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,k.h)(function(Sn){return Sn instanceof Tt}));switch(ut.observe||"body"){case"body":switch(Nt.responseType){case"arraybuffer":return ln.pipe((0,b.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,b.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,b.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,b.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)(D.LFG(O))},Ze.\u0275prov=D.Yz7({token:Ze,factory:Ze.\u0275fac});var $t=function(){function ne(ye,he){(0,P.Z)(this,ne),this.next=ye,this.interceptor=he}return(0,R.Z)(ne,[{key:"handle",value:function(he){return this.interceptor.intercept(he,this.next)}}]),ne}(),Ft=new D.OlP("HTTP_INTERCEPTORS"),pn=function(){function ne(){(0,P.Z)(this,ne)}return(0,R.Z)(ne,[{key:"intercept",value:function(he,Le){return Le.handle(he)}}]),ne}();pn.\u0275fac=function(ye){return new(ye||pn)},pn.\u0275prov=D.Yz7({token:pn,factory:pn.\u0275fac});var Ot,rt=0,ht=(0,R.Z)(function ne(){(0,P.Z)(this,ne)}),Ut=function(){function ne(ye,he){(0,P.Z)(this,ne),this.callbackMap=ye,this.document=he,this.resolvedPromise=Promise.resolve()}return(0,R.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 L.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)(D.LFG(ht),D.LFG(E.K0))},Ut.\u0275prov=D.Yz7({token:Ut,factory:Ut.\u0275fac});var Wt=function(){function ne(ye){(0,P.Z)(this,ne),this.jsonp=ye}return(0,R.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)(D.LFG(Ut))},Wt.\u0275prov=D.Yz7({token:Wt,factory:Wt.\u0275fac});var H=/^\)\]\}',?\n/;var qe=function(){function ne(ye){(0,P.Z)(this,ne),this.xhrFactory=ye}return(0,R.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 L.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 y(ut.getAllResponseHeaders()),Ye=function F(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 fn=Ye>=200&&Ye<300;if("json"===he.responseType&&"string"==typeof vt){var Un=vt;vt=vt.replace(H,"");try{vt=""!==vt?JSON.parse(vt):null}catch(Kt){vt=Un,fn&&(fn=!1,vt={error:Kt,text:vt})}}fn?(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)(D.LFG(E.JF))},qe.\u0275prov=D.Yz7({token:qe,factory:qe.\u0275fac});var Be=new D.OlP("XSRF_COOKIE_NAME"),se=new D.OlP("XSRF_HEADER_NAME"),t=(0,R.Z)(function ne(){(0,P.Z)(this,ne)}),Lt=function(){function ne(ye,he,Le){(0,P.Z)(this,ne),this.doc=ye,this.platform=he,this.cookieName=Le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,R.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,E.Mx)(he,this.cookieName),this.lastCookieString=he),this.lastToken}}]),ne}();Lt.\u0275fac=function(ye){return new(ye||Lt)(D.LFG(E.K0),D.LFG(D.Lbi),D.LFG(Be))},Lt.\u0275prov=D.Yz7({token:Lt,factory:Lt.\u0275fac});var zt=function(){function ne(ye,he){(0,P.Z)(this,ne),this.tokenService=ye,this.headerName=he}return(0,R.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)(D.LFG(t),D.LFG(se))},zt.\u0275prov=D.Yz7({token:zt,factory:zt.\u0275fac});var an=function(){function ne(ye,he){(0,P.Z)(this,ne),this.backend=ye,this.injector=he,this.chain=null}return(0,R.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)(D.LFG(S),D.LFG(D.zs3))},an.\u0275prov=D.Yz7({token:an,factory:an.\u0275fac});var Vt=function(){function ne(){(0,P.Z)(this,ne)}return(0,R.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:se,useValue:he.headerName}:[]]}}}]),ne}();Vt.\u0275fac=function(ye){return new(ye||Vt)},Vt.\u0275mod=D.oAB({type:Vt}),Vt.\u0275inj=D.cJS({providers:[zt,{provide:Ft,useExisting:zt,multi:!0},{provide:t,useClass:Lt},{provide:Be,useValue:"XSRF-TOKEN"},{provide:se,useValue:"X-XSRF-TOKEN"}]});var Jt=(0,R.Z)(function ne(){(0,P.Z)(this,ne)});Jt.\u0275fac=function(ye){return new(ye||Jt)},Jt.\u0275mod=D.oAB({type:Jt}),Jt.\u0275inj=D.cJS({providers:[Ze,{provide:O,useClass:an},qe,{provide:S,useExisting:qe}],imports:[Vt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]});var Qe=(0,R.Z)(function ne(){(0,P.Z)(this,ne)});Qe.\u0275fac=function(ye){return new(ye||Qe)},Qe.\u0275mod=D.oAB({type:Qe}),Qe.\u0275inj=D.cJS({providers:[Ut,{provide:ht,useFactory:function vn(){return"object"==typeof window?window:{}}},{provide:Ft,useClass:Wt,multi:!0}]});E.JF},5e3:function(De,K,m){"use strict";m.d(K,{$8M:function(){return As},$Z:function(){return q3},AA_:function(){return ZP},AFp:function(){return tL},ALo:function(){return Wf},AaK:function(){return X},AcB:function(){return SP},Akn:function(){return Ns},AsE:function(){return eR},B6R:function(){return Kt},BQk:function(){return Cy},CHM:function(){return ke},CRH:function(){return fc},CZH:function(){return Nd},Ckj:function(){return g3},CqO:function(){return ZS},D6c:function(){return c7},DdM:function(){return Ny},Dn7:function(){return Vf},DyG:function(){return Lv},E6H:function(){return NU},EJc:function(){return SE},EiD:function(){return _3},EpF:function(){return B6},F$t:function(){return HS},F4k:function(){return F6},FYo:function(){return eS},FiY:function(){return u_},G48:function(){return j1},GSi:function(){return h4},Gf:function(){return wU},GfV:function(){return T3},GkF:function(){return LS},Gpc:function(){return Q},Gre:function(){return O8},HOy:function(){return nR},Hsn:function(){return G6},IIB:function(){return BU},Ikx:function(){return iR},JOm:function(){return CC},JVY:function(){return Rf},Jf7:function(){return Dh},KtG:function(){return le},L6J:function(){return HU},L6k:function(){return f3},LAX:function(){return p3},LFG:function(){return Ea},LSH:function(){return Mh},LVF:function(){return jU},Lbi:function(){return ME},Lck:function(){return uU},MAs:function(){return IS},MGl:function(){return h1},MMx:function(){return Ly},NdJ:function(){return NS},O4$:function(){return wn},OlP:function(){return io},Oqu:function(){return eE},PXZ:function(){return lL},PiD:function(){return hh},Q6J:function(){return U_},QGY:function(){return p1},QP$:function(){return yi},QbO:function(){return nL},Qsj:function(){return k3},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 XS},Udp:function(){return QS},VKq:function(){return qn},W1O:function(){return x1},WFA:function(){return BS},WLB:function(){return PR},XFs:function(){return ye},Xek:function(){return $R},Xpm:function(){return Un},Xts:function(){return ey},Y36:function(){return A_},YKP:function(){return pE},YNc:function(){return N6},Yjl:function(){return Wn},Yz7:function(){return Be},Z0I:function(){return zt},ZZ4:function(){return Yy},_Bn:function(){return DR},_UZ:function(){return PS},_Vd:function(){return Bf},_c5:function(){return u7},_uU:function(){return $6},a5r:function(){return $U},aQ5:function(){return EP},aQg:function(){return Ky},ahi:function(){return mC},c2e:function(){return np},cJS:function(){return t},cg1:function(){return aR},d8E:function(){return oR},dDg:function(){return Yh},dqk:function(){return hn},eBb:function(){return Rc},eFA:function(){return dL},ekj:function(){return g1},eoX:function(){return Kh},evT:function(){return ly},f3M:function(){return LP},g9A:function(){return R1},h0i:function(){return Uh},hGG:function(){return op},hYB:function(){return GS},hij:function(){return tE},i9L:function(){return xP},iGM:function(){return Wh},ifc:function(){return Sn},ip1:function(){return eL},jDz:function(){return Y_},kL8:function(){return j8},kYT:function(){return wt},kcU:function(){return si},kuF:function(){return ue},lG2:function(){return Hn},lcZ:function(){return yE},lnq:function(){return tR},lqb:function(){return Ps},lri:function(){return sL},mCW:function(){return y_},n4l:function(){return sn},n5z:function(){return MP},n_E:function(){return jc},oAB:function(){return gt},oJD:function(){return YM},oxw:function(){return US},pB0:function(){return iV},pfw:function(){return UU},q3G:function(){return Ad},qLn:function(){return xh},qOj:function(){return SS},qZA:function(){return f1},qzn:function(){return wh},rWj:function(){return lg},r_U:function(){return FU},s9C:function(){return jS},sBO:function(){return G1},sIi:function(){return yy},s_b:function(){return Iu},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 cF},vpe:function(){return Hc},wA2:function(){return ZU},wAp:function(){return j_},xi3:function(){return E1},xp6:function(){return P3},ynx:function(){return Bh},z2F:function(){return ip},z3N:function(){return Pc},zSh:function(){return T_},zWS:function(){return DS},zlt:function(){return Wi},zs3:function(){return bl}});var G=m(3237),W=m(1120),A=m(7685),P=(m(4942),m(4506),m(7326)),E=m(7762),D=m(4902),j=m(5647),L=m(3144),v=m(5671),k=m(136),b=m(9388),O=m(5724),S=m(4096),y=m(8929),T=m(7451),M=m(6787),x=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 B(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,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;return(0,v.Z)(this,p),(I=f.call(this,ue(_,w))).code=_,I}return(0,L.Z)(p)}((0,O.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}),fn=0;function Un(c){return jt(function(){var f=c.type,p=!0===c.standalone,_={},w={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(fn++),styles:c.styles||tt,_:null,setInput:null,schemas:c.schemas||null,tView:null},I=c.dependencies,Y=c.features;return w.inputs=nn(c.inputs,_),w.outputs=nn(c.outputs),Y&&Y.forEach(function(ee){return ee(w)}),w.directiveDefs=I?function(){return("function"==typeof I?I():I).map(yt).filter(et)}:null,w.pipeDefs=I?function(){return("function"==typeof I?I():I).map(Pr).filter(et)}:null,w})}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 w=c[_],I=w;Array.isArray(w)&&(I=w[1],w=w[0]),p[w]=_,f&&(f[w]=I)}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 hu(c){return 0!=(8&c.flags)}function Ki(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,L.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=Xo(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 w=Xo(c)||function _u(c,f){return c[Qo]=f}(c,{previous:xt,current:null}),I=w.current||(w.current={}),Y=w.previous,ee=this.declaredInputs[p],oe=Y[ee];I[ee]=new fo(oe&&oe.currentValue,f,Y===xt),c[_]=f}ia.ngInherit=!0;var Qo="__ngSimpleChanges__";function Xo(c){return c[Qo]||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 Js(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 Ss(){return Cr.bindingsEnabled}function bu(){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 le(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 $o(){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 Es(){return Cr.lFrame.currentQueryIndex}function xs(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,w=c;null===(_=_.parent)&&!(p&ye.Host)&&!(null===(_=gl(w))||(w=w[15],10&_.type)););if(null===_)return!1;f=_,c=w}var I=Cr.lFrame=vl();return I.currentTNode=f,I.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 Js(c.tView,c.selectedIndex)}function wn(){Cr.lFrame.currentNamespace="svg"}function Rr(){Cr.lFrame.currentNamespace=mf}function si(){!function li(){Cr.lFrame.currentNamespace=null}()}function Ar(c,f){for(var p=f.directiveStart,_=f.directiveEnd;p<_;p++){var I=c.data[p].type.prototype,Y=I.ngAfterContentInit,ee=I.ngAfterContentChecked,oe=I.ngAfterViewInit,ve=I.ngAfterViewChecked,He=I.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 w=void 0!==_?65535&c[18]:0,I=null!=_?_:-1,Y=f.length-1,ee=0,oe=w;oe<Y;oe++){if("number"==typeof f[oe+1]){if(ee=f[oe],null!=_&&ee>=_)break}else f[oe]<0&&(c[18]+=65536),(ee<I||-1==I)&&(ie(c,p,f,oe),c[18]=(4294901760&c[18])+oe+2),oe++}}function ie(c,f,p,_){var w=p[_]<0,I=p[_+1],ee=c[w?-p[_]:p[_]];if(w){if(c[2]>>11<c[18]>>16&&(3&c[2])===f){c[2]+=2048,Br(4,ee,I);try{I.call(ee)}finally{Br(5,ee,I)}}}else{Br(4,ee,I);try{I.call(ee)}finally{Br(5,ee,I)}}}var me=(0,L.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 w=p[_];if("number"==typeof w){if(0!==w)break;_++;var I=p[_++],Y=p[_++],ee=p[_++];c.setAttribute(f,Y,ee,I)}else{var oe=w,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 w=f[_];"number"==typeof w?p=w:0===p||ha(c,p,w,null,-1===p||2===p?f[++_]:null)}return c}function ha(c,f,p,_,w){var I=0,Y=c.length;if(-1===f)Y=-1;else for(;I<c.length;){var ee=c[I++];if("number"==typeof ee){if(ee===f){Y=-1;break}if(ee>f){Y=I-1;break}}}for(;I<c.length;){var oe=c[I];if("number"==typeof oe)break;if(oe===p){if(null===_)return void(null!==w&&(c[I+1]=w));if(_===c[I+1])return void(c[I+2]=w)}I++,null!==_&&I++,null!==w&&I++}-1!==Y&&(c.splice(Y,0,f),I=Y+1),c.splice(I++,0,p),null!==_&&c.splice(I++,0,_),null!==w&&c.splice(I++,0,w)}function fs(c){return-1!==c}function Pi(c){return 32767&c}function Cu(c,f){for(var p=function ic(c){return c>>16}(c),_=f;p>0;)_=_[15],p--;return _}var ma=!0;function wu(c){var f=ma;return ma=c,f}var kP=0,jl={};function sh(c,f){var p=r_(c,f);if(-1!==p)return p;var _=f[1];_.firstCreatePass&&(c.injectorIndex=f.length,dM(_.data,c),dM(f,null),dM(_.blueprint,null));var w=yf(c,f),I=c.injectorIndex;if(fs(w))for(var Y=Pi(w),ee=Cu(w,f),oe=ee[1].data,ve=0;ve<8;ve++)f[I+ve]=ee[Y+ve]|oe[Y+ve];return f[I+8]=w,I}function dM(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,w=f;null!==w;){if(null===(_=pi(w)))return-1;if(p++,w=w[15],-1!==_.injectorIndex)return _.injectorIndex|p<<16}return-1}function Ds(c,f,p){!function cM(c,f,p){var _;"string"==typeof p?_=p.charCodeAt(0)||0:p.hasOwnProperty(vt)&&(_=p[vt]),null==_&&(_=p[vt]=kP++);var w=255&_,I=1<<w;f.data[c+(w>>5)]|=I}(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 w=c[9],I=lt(void 0);try{return w?w.get(f,_,p&ye.Optional):ut(f,_,p&ye.Optional)}finally{lt(I)}}return pC(_,0,p)}function bf(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye.Default,w=arguments.length>4?arguments[4]:void 0;if(null!==c){if(1024&f[2]){var I=hC(c,f,p,_,jl);if(I!==jl)return I}var Y=pM(c,f,p,_,jl);if(Y!==jl)return Y}return lh(f,p,_,w)}function pM(c,f,p,_,w){var I=function lF(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 I){if(!Cd(f,c,_))return _&ye.Host?pC(w,0,_):lh(f,p,_,w);try{var Y=I(_);if(null!=Y||_&ye.Optional)return Y;Tt()}finally{Ge()}}else if("number"==typeof I){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])&&hM(_,!1)?(ee=f[1],oe=Pi(ve),f=Cu(ve,f)):oe=-1);-1!==oe;){var nt=f[1];if(TP(I,oe,nt.data)){var dt=uh(oe,f,p,ee,_,He);if(dt!==jl)return dt}-1!==(ve=f[oe+8])&&hM(_,f[1].data[oe+8]===He)&&TP(I,oe,f)?(ee=nt,oe=Pi(ve),f=Cu(ve,f)):oe=-1}}return w}function uh(c,f,p,_,w,I){var Y=f[1],ee=Y.data[c+8],He=Sa(ee,Y,p,null==_?Ki(ee)&&ma:_!=Y&&0!=(3&ee.type),w&ye.Host&&I===ee);return null!==He?i_(f,Y,He,ee):jl}function Sa(c,f,p,_,w){for(var I=c.providerIndexes,Y=f.data,ee=1048575&I,oe=c.directiveStart,ve=c.directiveEnd,He=I>>20,dt=w?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(w){var _n=Y[oe];if(_n&&en(_n)&&_n.type===p)return oe}return null}function i_(c,f,p,_){var w=c[p],I=f.data;if(function Ue(c){return c instanceof me}(w)){var Y=w;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(I[p]));var ee=wu(Y.canSeeViewProviders);Y.resolving=!0;var oe=Y.injectImpl?lt(Y.injectImpl):null;Cd(c,_,ye.Default);try{w=c[p]=Y.factory(void 0,I,c,_),f.firstCreatePass&&p>=_.directiveStart&&function gf(c,f,p){var _=f.type.prototype,w=_.ngOnChanges,I=_.ngOnInit,Y=_.ngDoCheck;if(w){var ee=hl(f);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,ee),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,ee)}I&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,I),Y&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,Y),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,Y))}(p,I[p],f)}finally{null!==oe&&lt(oe),wu(ee),Y.resolving=!1,Ge()}}return w}function TP(c,f,p){var _=1<<c;return!!(p[f+(c>>5)]&_)}function hM(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,L.Z)(c,[{key:"get",value:function(p,_,w){return bf(this._tNode,this._lView,p,w,_)}}]),c}();function Xn(){return new qr(Me(),xn())}function MP(c){return jt(function(){for(var f=c.prototype.constructor,p=f[Je]||ps(f),_=Object.prototype,w=Object.getPrototypeOf(c.prototype).constructor;w&&w!==_;){var I=w[Je]||ps(w);if(I&&I!==p)return I;w=Object.getPrototypeOf(w)}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,_,w){for(var I=c,Y=f;null!==I&&null!==Y&&1024&Y[2]&&!(256&Y[2]);){var ee=pM(I,Y,p,_|ye.Self,jl);if(ee!==jl)return ee;var oe=I.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]}I=oe}return w}function pi(c){var f=c[1],p=f.type;return 2===p?f.declTNode:1===p?c[6]:null}function As(c){return function fM(c,f){if("class"===f)return c.classes;if("style"===f)return c.styles;var p=c.attrs;if(p)for(var _=p.length,w=0;w<_;){var I=p[w];if(Do(I))break;if(0===I)w+=2;else if("number"==typeof I)for(w++;w<_&&"string"==typeof p[w];)w++;else{if(I===f)return p[w+1];w+=2}}return null}(Me(),c)}var o_="__annotations__",ch="__parameters__",oa="__prop__metadata__";function Cf(c,f,p,_,w){return jt(function(){var I=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 I.call.apply(I,[this].concat(oe)),this;var He=(0,j.Z)(Y,oe);return function(dt){return w&&w.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 w(){for(var I=arguments.length,Y=new Array(I),ee=0;ee<I;ee++)Y[ee]=arguments[ee];if(this instanceof w)return _.apply(this,Y),this;var oe=(0,j.Z)(w,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&&(w.prototype=Object.create(p.prototype)),w.prototype.ngMetadataName=c,w.annotationCls=w,w})}function kd(c,f,p,_){return jt(function(){var w=Rv(f);function I(){for(var Y=arguments.length,ee=new Array(Y),oe=0;oe<Y;oe++)ee[oe]=arguments[oe];if(this instanceof I)return w.apply(this,ee),this;var ve=(0,j.Z)(I,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&&(I.prototype=Object.create(p.prototype)),I.prototype.ngMetadataName=c,I.annotationCls=I,I})}var wf,DP,La,mC=on("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return As(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,L.Z)(c,[{key:"multi",get:function(){return this}},{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),_C=(new io("AnalyzeForEntryComponents"),(0,L.Z)(function c(){(0,v.Z)(this,c)})),SP=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),EP=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),cF=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),xP=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"}(DP||(DP={})),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 AP(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 pF(c,f,p,_){var w=c.length;if(w==f)c.push(p,_);else if(1===w)c.push(_,c[0]),c[0]=p;else{for(w--,c.push(c[w-1],c[w]);w>f;){var I=w-2;c[w]=c[I],w--}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 _M(c,f,1)}function _M(c,f,p){for(var _=0,w=c.length>>p;w!==_;){var I=_+(w-_>>1),Y=c[I<<p];if(f===Y)return I<<p;Y>f?w=I:_=I+1}return~(w<<p)}var PP=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,mF=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,_F=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,RP=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var vF=function(){function c(f){(0,v.Z)(this,c),this._reflect=f||hn.Reflect}return(0,L.Z)(c,[{key:"factory",value:function(p){return function(){for(var _=arguments.length,w=new Array(_),I=0;I<_;I++)w[I]=arguments[I];return(0,j.Z)(p,w)}}},{key:"_zipTypesAndAnnotations",value:function(p,_){var w;w=Zv(void 0===p?_.length:p.length);for(var I=0;I<w.length;I++)void 0===p?w[I]=[]:p[I]&&p[I]!=Object?w[I]=[p[I]]:w[I]=[],_&&null!=_[I]&&(w[I]=w[I].concat(_[I]));return w}},{key:"_ownParameters",value:function(p,_){if(function gF(c){return PP.test(c)||RP.test(c)||mF.test(c)&&!_F.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==_.parameters)return p.parameters;var I=p.ctorParameters;if(I&&I!==_.ctorParameters){var Y="function"==typeof I?I():I,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),w=this._ownParameters(p,_);return!w&&_!==Object&&(w=this.parameters(_)),w||[]}},{key:"_ownAnnotations",value:function(p,_){if(p.annotations&&p.annotations!==_.annotations){var w=p.annotations;return"function"==typeof w&&w.annotations&&(w=w.annotations),w}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),w=this._ownAnnotations(p,_)||[];return(_!==Object?this.annotations(_):[]).concat(w)}},{key:"_ownPropMetadata",value:function(p,_){if(p.propMetadata&&p.propMetadata!==_.propMetadata){var w=p.propMetadata;return"function"==typeof w&&w.propMetadata&&(w=w.propMetadata),w}if(p.propDecorators&&p.propDecorators!==_.propDecorators){var I=p.propDecorators,Y={};return Object.keys(I).forEach(function(ee){Y[ee]=gC(I[ee])}),Y}return p.hasOwnProperty(oa)?p[oa]:null}},{key:"propMetadata",value:function(p){if(!qt(p))return{};var _=Na(p),w={};if(_!==Object){var I=this.propMetadata(_);Object.keys(I).forEach(function(ee){w[ee]=I[ee]})}var Y=this._ownPropMetadata(p,_);return Y&&Object.keys(Y).forEach(function(ee){var oe=[];w.hasOwnProperty(ee)&&oe.push.apply(oe,(0,D.Z)(w[ee])),oe.push.apply(oe,(0,D.Z)(Y[ee])),w[ee]=oe}),w}},{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,w=f.args?f.args:[];return(0,j.Z)(_,(0,D.Z)(w))}):[]}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,gM="__source",s_=void 0;function l_(c){var f=s_;return s_=c,f}function yF(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()||yF)(te(c),f)}function vM(c){throw new fe(202,!1)}function LP(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 yM(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 w=void 0,I=ye.Default,Y=0;Y<_.length;Y++){var ee=_[Y],oe=vC(ee);"number"==typeof oe?-1===oe?w=ee.token:I|=oe:w=ee}f.push(Ea(w,I))}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 bM(c,f,p,_){var w=c[Nv];throw f[gM]&&w.unshift(f[gM]),c.message=function CM(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 w=X(f);if(Array.isArray(f))w=f.map(X).join(" -> ");else if("object"==typeof f){var I=[];for(var Y in f)if(f.hasOwnProperty(Y)){var ee=f[Y];I.push(Y+":"+("string"==typeof ee?JSON.stringify(ee):X(ee)))}w="{".concat(I.join(", "),"}")}return"".concat(p).concat(_?"("+_+")":"","[").concat(w,"]: ").concat(c.replace(ac,"\n "))}("\n"+c.message,w,p,_),c.ngTokenPath=w,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),ZP=Fv(on("Host"),1),wM=null;function Hv(){return wM=wM||new vF}function jv(c){return bF(Hv().parameters(c))}function bF(c){return c.map(function(f){return function KW(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 w=Object.getPrototypeOf(_);if(_ instanceof u_||"Optional"===w.ngMetadataName)f.optional=!0;else if(_ instanceof Sd||"SkipSelf"===w.ngMetadataName)f.skipSelf=!0;else if(_ instanceof hh||"Self"===w.ngMetadataName)f.self=!0;else if(_ instanceof ZP||"Host"===w.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 TM=new Map,FP=!0;function wF(c,f){(function CF(c,f,p){if(f&&f!==p&&FP)throw new Error("Duplicate module registered for ".concat(c," - ").concat(X(f)," vs ").concat(X(f.name)))})(f,TM.get(f)||null,c),TM.set(f,c)}var CC;!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(CC||(CC={}));var SF=/^>|^->|<!--|-->|--!>|<!-$/g,EF=/(<|>)/;function MM(c){return c.replace(SF,function(f){return f.replace(EF,"\u200b$1\u200b")})}var Gv=new Map,DF=0;var _h,d_="__ngContext__";function Os(c,f){to(f)?(c[d_]=f[20],function WP(c){Gv.set(c[20],c)}(f)):c[d_]=f}function IM(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,_,w){if(null!=_){var I,Y=!1;Ai(_)?I=_:to(_)&&(Y=!0,_=_[0]);var ee=po(_);0===c&&null!==p?null==w?ZM(f,p,ee):Sf(f,p,ee,w||null,!0):1===c&&null!==p?Sf(f,p,ee,w||null,!0):2===c?p_(f,ee,Y):3===c&&f.destroyNode(ee),null!=I&&function h_(c,f,p,_,w){var I=p[7],Y=po(p);I!==Y&&f_(f,c,_,I,w);for(var ee=10;ee<p.length;ee++){var oe=p[ee];Yl(oe[1],oe,c,f,_,I)}}(f,c,I,p,w)}}function Kv(c,f){return c.createText(f)}function JP(c,f,p){c.setValue(f,p)}function Ba(c,f){return c.createComment(MM(f))}function QP(c,f,p){return c.createElement(f,p)}function e3(c,f,p,_){var w=10+_,I=p.length;_>0&&(p[w-1][4]=f),_<I-10?(f[4]=p[w],AP(p,10+_,f)):(p.push(f),f[4]=null),f[3]=p;var Y=f[17];null!==Y&&p!==Y&&function t3(c,f){var p=c[9],w=f[3][3][16];f[16]!==w&&(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 n3(c,f){var p=c[9],_=p.indexOf(f),w=f[3];512&f[2]&&(f[2]&=-513,Ms(w,-1)),p.splice(_,1)}function RM(c,f){if(!(c.length<=10)){var p=10+f,_=c[p];if(_){var w=_[17];null!==w&&w!==c&&n3(w,_),f>0&&(c[p-1][4]=_[4]);var I=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=I[19];null!==Y&&Y.detachView(I[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}}function LM(c,f){if(!(128&f[2])){var p=f[11];p.destroyNode&&Yl(c,f,p,3,null,null),function $P(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 RF(c,f){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var _=0;_<p.length;_+=2){var w=f[p[_]];if(!(w instanceof me)){var I=p[_+1];if(Array.isArray(I))for(var Y=0;Y<I.length;Y+=2){var ee=w[I[Y]],oe=I[Y+1];Br(4,ee,oe);try{oe.call(ee)}finally{Br(5,ee,oe)}}else{Br(4,w,I);try{I.call(w)}finally{Br(5,w,I)}}}}}(c,f),function yl(c,f){var p=c.cleanup,_=f[7],w=-1;if(null!==p)for(var I=0;I<p.length-1;I+=2)if("string"==typeof p[I]){var Y=p[I+1],ee="function"==typeof Y?Y(f):po(f[Y]),oe=_[w=p[I+2]],ve=p[I+3];"boolean"==typeof ve?ee.removeEventListener(p[I],oe,ve):ve>=0?_[w=ve]():_[w=-ve].unsubscribe(),I+=2}else{var He=_[w=p[I+1]];p[I].call(He)}if(null!==_){for(var nt=w+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]&&n3(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 w=c.data[_.directiveStart].encapsulation;if(w===Sn.None||w===Sn.Emulated)return null}return xo(_,p)}function Sf(c,f,p,_,w){c.insertBefore(f,p,_,w)}function ZM(c,f,p){c.appendChild(f,p)}function xC(c,f,p,_,w){null!==_?Sf(c,f,p,_,w):ZM(c,f,p)}function Ef(c,f){return c.parentNode(f)}function NM(c,f,p){return qv(c,f,p)}function a3(c,f,p){return 40&c.type?xo(c,p):null}var bh,__,qv=a3;function Jv(c,f){qv=c,bh=f}function xf(c,f,p,_){var w=EC(c,_,f),I=f[11],ee=NM(_.parent||f[6],_,f);if(null!=w)if(Array.isArray(p))for(var oe=0;oe<p.length;oe++)xC(I,w,p[oe],ee,!1);else xC(I,w,p,ee,!1);void 0!==bh&&bh(I,_,f,p,w)}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 w=c[f.index];return Ai(w)?lc(-1,w):po(w)}if(32&p)return IM(f,c)()||po(c[f.index]);var ee=BM(c,f);return null!==ee?Array.isArray(ee)?ee[0]:DC(Yv(c[16]),ee):DC(c,f.next)}return null}function BM(c,f){if(null!==f){var _=c[16][6],w=f.projection;return _.projection[w]}return null}function lc(c,f){var p=10+c+1;if(p<f.length){var _=f[p],w=_[1].firstChild;if(null!==w)return DC(_,w)}return f[7]}function p_(c,f,p){var _=Ef(c,f);_&&function r3(c,f,p,_){c.removeChild(f,p,_)}(c,_,f,p)}function Df(c,f,p,_,w,I,Y){for(;null!=p;){var ee=_[p.index],oe=p.type;if(Y&&0===f&&(ee&&Os(po(ee),_),p.flags|=4),64!=(64&p.flags))if(8&oe)Df(c,f,p.child,_,w,I,!1),f_(f,c,w,ee,I);else if(32&oe){for(var ve=IM(p,_),He=void 0;He=ve();)f_(f,c,w,He,I);f_(f,c,w,ee,I)}else 16&oe?Ic(c,f,_,p,w,I):f_(f,c,w,ee,I);p=Y?p.projectionNext:p.next}}function Yl(c,f,p,_,w,I){Df(p,_,c.firstChild,f,w,I,!1)}function Af(c,f,p){Ic(f[11],0,f,p,EC(c,p,f),NM(p.parent||f[6],p,f))}function Ic(c,f,p,_,w,I){var Y=p[16],oe=Y[6].projection[_.projection];if(Array.isArray(oe))for(var ve=0;ve<oe.length;ve++){f_(f,c,w,oe[ve],I)}else Df(c,f,oe,Y[3],w,I,!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 FM(){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=FM())||void 0===f?void 0:f.createHTML(c))||c}function ZF(c,f,p){var _=xn(),w=Mt(),I=xo(w,_);if(2===w.type&&"iframe"===f.toLowerCase()){var Y=I;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 UM(){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=UM())||void 0===f?void 0:f.createHTML(c))||c}function Pf(c){var f;return(null===(f=UM())||void 0===f?void 0:f.createScript(c))||c}function s3(c){var f;return(null===(f=UM())||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,L.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),HM=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(Ch),l3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(Ch),u3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(Ch),c3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(Ch),d3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.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 HM(c)}function f3(c){return new l3(c)}function Rc(c){return new u3(c)}function p3(c){return new c3(c)}function iV(c){return new d3(c)}function NF(c){var f=new BF(c);return function jM(){try{return!!(new window.DOMParser).parseFromString(Of(""),"text/html")}catch(c){return!1}}()?new oV(f):f}var oV=function(){function c(f){(0,v.Z)(this,c),this.inertDocumentHelper=f}return(0,L.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(w){return null}}}]),c}(),BF=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,L.Z)(c,[{key:"getInertBodyElement",value:function(p){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Of(p),_;var w=this.inertDocument.createElement("body");return w.innerHTML=Of(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(w),w}},{key:"stripCustomNsAttrs",value:function(p){for(var _=p.attributes,w=_.length-1;0<w;w--){var Y=_.item(w).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,E.Z)(c.split(","));try{for(p.s();!(_=p.n()).done;){f[_.value]=!0}}catch(I){p.e(I)}finally{p.f()}return f}function b_(){for(var c={},f=arguments.length,p=new Array(f),_=0;_<f;_++)p[_]=arguments[_];for(var w=0,I=p;w<I.length;w++){var Y=I[w];for(var ee in Y)Y.hasOwnProperty(ee)&&(c[ee]=!0)}return c}var $v,Ad,GM=xd("area,br,col,hr,img,wbr"),PC=xd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C_=xd("rp,rt"),zM=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_(GM,Xa,Dd,zM),WM=xd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),FF=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"),UF=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_(WM,FF,UF),h3=xd("script,style,template"),HF=function(){function c(){(0,v.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,L.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var _=p.firstChild,w=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?w=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,w&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var I=this.checkClobberedElement(_,_.nextSibling);if(I){_=I;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var _=p.nodeName.toLowerCase();if(!kh.hasOwnProperty(_))return this.sanitizedSomething=!0,!h3.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var w=p.attributes,I=0;I<w.length;I++){var Y=w.item(I),ee=Y.name,oe=ee.toLowerCase();if(Th.hasOwnProperty(oe)){var ve=Y.value;WM[oe]&&(ve=y_(ve)),this.buf.push(" ",ee,'="',m3(ve),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var _=p.nodeName.toLowerCase();kh.hasOwnProperty(_)&&!GM.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(m3(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,jF=/([^\#-~ |!])/g;function m3(c){return c.replace(/&/g,"&amp;").replace(RC,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(jF,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _3(c,f){var p=null;try{$v=$v||NF(c);var _=f?String(f):"";p=$v.getInertBodyElement(_);var w=5,I=_;do{if(0===w)throw new Error("Failed to sanitize html because the input is unstable");w--,_=I,I=p.innerHTML,p=$v.getInertBodyElement(_)}while(_!==I);return Of((new HF).sanitizeChildren(VM(p)||p))}finally{if(p)for(var oe=VM(p)||p;oe.firstChild;)oe.removeChild(oe.firstChild)}}function VM(c){return"content"in c&&function GF(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function YM(c){var f=Tu();return f?IC(f.sanitize(Ad.HTML,c)||""):wh(c,"HTML")?IC(Pc(c)):_3(OC(),de(c))}function g3(c){var f=Tu();return f?f.sanitize(Ad.STYLE,c)||"":wh(c,"Style")?Pc(c):de(c)}function Mh(c){var f=Tu();return f?f.sanitize(Ad.URL,c)||"":wh(c,"URL")?Pc(c):y_(de(c))}function v3(c){var f=Tu();if(f)return s3(f.sanitize(Ad.RESOURCE_URL,c)||"");if(wh(c,"ResourceURL"))return s3(Pc(c));throw new fe(904,!1)}function zF(c){var f=Tu();if(f)return Pf(f.sanitize(Ad.SCRIPT,c)||"");if(wh(c,"Script"))return Pf(Pc(c));throw new fe(905,!1)}function y3(c){return Of(c[0])}function WF(c){return function LF(c){var f;return(null===(f=FM())||void 0===f?void 0:f.createScriptURL(c))||c}(c[0])}function VF(c,f,p){return function KM(c,f){return"src"===f&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===f&&("base"===c||"link"===c)?v3:Mh}(f,p)(c)}function Tu(){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,L.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oc;if(_===Oc){var w=new Error("NullInjectorError: No provider for ".concat(X(p),"!"));throw w.name="NullInjectorError",w}return _}}]),c}();function Mu(){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,w=arguments.length,I=new Array(w>1?w-1:0),Y=1;Y<w;Y++)I[Y-1]=arguments[Y];return Td(I,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 I=c[_];I.ngModule;Td(I.providers,function(oe){f.push(oe)})},_=0;_<c.length;_++)p()}function ny(c,f,p,_){if(!(c=te(c)))return!1;var w=null,I=Vt(c),Y=!I&&Vn(c);if(I||Y){if(Y&&!Y.standalone)return!1;w=c}else{var ee=c.ngModule;if(!(I=Vt(ee)))return!1;w=ee}var He=_.has(w);if(Y){if(He)return!1;if(_.add(w),Y.dependencies){var kt,nt="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies,dt=(0,E.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(!I)return!1;if(null!=I.imports&&!He){var _n;_.add(w);try{Td(I.imports,function(Cn){ny(Cn,f,p,_)&&(_n||(_n=[]),_n.push(Cn))})}finally{}void 0!==_n&&LC(_n,f)}if(!He){var Fn=go(w)||function(){return new w};f.push({provide:w,useFactory:Fn,deps:tt},{provide:Fa,useValue:w,multi:!0},{provide:ey,useValue:function(){return Ea(w)},multi:!0})}var Jn=I.providers;if(null!=Jn&&!He){Td(Jn,function(Cn){f.push(Cn)})}}return w!==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."),Is={},NC={},oy=void 0;function $a(){return void 0===oy&&(oy=new ty),oy}var Ps=(0,L.Z)(function c(){(0,v.Z)(this,c)}),Sh=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I,Y){var ee;(0,v.Z)(this,p),(ee=f.call(this)).parent=w,ee.source=I,ee.scopes=Y,ee.records=new Map,ee._ngOnDestroyHooks=new Set,ee._onDestroyHooks=[],ee._destroyed=!1,XM(_,function(ve){return ee.processProvider(ve)}),ee.records.set(w_,Rs(void 0,(0,P.Z)(ee))),Y.has("environment")&&ee.records.set(Ps,Rs(void 0,(0,P.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,L.Z)(p,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{var I,w=(0,E.Z)(this._ngOnDestroyHooks);try{for(w.s();!(I=w.n()).done;){I.value.ngOnDestroy()}}catch(He){w.e(He)}finally{w.f()}var oe,ee=(0,E.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(w){this._onDestroyHooks.push(w)}},{key:"runInContext",value:function(w){this.assertNotDestroyed();var I=l_(this),Y=lt(void 0);try{return w()}finally{l_(I),lt(Y)}}},{key:"get",value:function(w){var I=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(w);if(void 0===ve){var He=qF(w)&&Lt(w);ve=He&&this.injectableDefInScope(He)?Rs(ay(w),Is):null,this.records.set(w,ve)}if(null!=ve)return this.hydrate(w,ve)}var nt=Y&ye.Self?$a():this.parent;return I=Y&ye.Optional&&I===Oc?null:I,nt.get(w,I)}catch(kt){if("NullInjectorError"===kt.name){var dt=kt[Nv]=kt[Nv]||[];if(dt.unshift(X(w)),ee)throw kt;return bM(kt,w,"R3InjectorError",this.source)}throw kt}finally{lt(oe),l_(ee)}}},{key:"resolveInjectorInitializers",value:function(){var w=l_(this),I=lt(void 0);try{var oe,Y=this.get(ey.multi,tt,ye.Self),ee=(0,E.Z)(Y);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{l_(w),lt(I)}}},{key:"toString",value:function(){var ee,w=[],I=this.records,Y=(0,E.Z)(I.keys());try{for(Y.s();!(ee=Y.n()).done;){var oe=ee.value;w.push(X(oe))}}catch(ve){Y.e(ve)}finally{Y.f()}return"R3Injector[".concat(w.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new fe(205,!1)}},{key:"processProvider",value:function(w){var I=Lc(w=te(w))?w:te(w&&w.provide),Y=function M_(c){return ry(c)?Rs(void 0,c.useValue):Rs(sy(c),Is)}(w);if(Lc(w)||!0!==w.multi)this.records.get(I);else{var ee=this.records.get(I);ee||((ee=Rs(void 0,Is,!0)).factory=function(){return yM(ee.multi)},this.records.set(I,ee)),I=w,ee.multi.push(w)}this.records.set(I,Y)}},{key:"hydrate",value:function(w,I){return I.value===Is&&(I.value=NC,I.value=I.factory()),"object"==typeof I.value&&I.value&&function QM(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(I.value)&&this._ngOnDestroyHooks.add(I.value),I.value}},{key:"injectableDefInScope",value:function(w){if(!w.providedIn)return!1;var I=te(w.providedIn);return"string"==typeof I?"any"===I||this.scopes.has(I):this.injectorDefTypes.has(I)}}]),p}(Ps);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 JM(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 w=te(c);return go(w)||ay(w)}if(ry(c))_=function(){return te(c.useValue)};else if(iy(c))_=function(){return c.useFactory.apply(c,(0,D.Z)(yM(c.deps||[])))};else if(ZC(c))_=function(){return Ea(te(c.useExisting))};else{var I=te(c&&(c.useClass||c.provide));if(!function Nf(c){return!!c.deps}(c))return go(I)||ay(I);_=function(){return(0,j.Z)(I,(0,D.Z)(yM(c.deps)))}}return _}function Rs(c,f){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:f,multi:p?[]:void 0}}function qF(c){return"function"==typeof c||"object"==typeof c&&c instanceof io}function JF(c){return!!c.\u0275providers}function XM(c,f){var _,p=(0,E.Z)(c);try{for(p.s();!(_=p.n()).done;){var w=_.value;Array.isArray(w)?XM(w,f):JF(w)?XM(w.\u0275providers,f):f(w)}}catch(I){p.e(I)}finally{p.f()}}var QF=(0,L.Z)(function c(){(0,v.Z)(this,c)}),BC=(0,L.Z)(function c(){(0,v.Z)(this,c)});var $M="ngComponent";var C3=function(){function c(){(0,v.Z)(this,c)}return(0,L.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[$M]=c,f}(p)}}]),c}(),Bf=(0,L.Z)(function c(){(0,v.Z)(this,c)});function S_(c,f){return new E_(xo(c,f))}Bf.NULL=new C3;var E_=(0,L.Z)(function c(f){(0,v.Z)(this,c),this.nativeElement=f});function w3(c){return c instanceof E_?c.nativeElement:c}E_.__NG_ELEMENT_ID__=function XF(){return S_(Me(),xn())};new io("Renderer2Interceptor");var eS=(0,L.Z)(function c(){(0,v.Z)(this,c)}),k3=(0,L.Z)(function c(){(0,v.Z)(this,c)});k3.__NG_ELEMENT_ID__=function(){return function tS(){var c=xn(),p=jo(Me().index,c);return(to(p)?p:c)[11]}()};var FC=(0,L.Z)(function c(){(0,v.Z)(this,c)});FC.\u0275prov=Be({token:FC,providedIn:"root",factory:function(){return null}});var T3=(0,L.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 T3("14.3.0"),nS={},UC="ngOriginalError";function rS(c){return c[UC]}var xh=function(){function c(){(0,v.Z)(this,c),this._console=console}return(0,L.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&&rS(p);_&&rS(_);)_=rS(_);return _||null}}]),c}();function Dh(c){return c.ownerDocument.defaultView}function ly(c){return c.ownerDocument}function E3(c){return c.ownerDocument.body}function Id(c){return c instanceof Function?c():c}function uy(c,f,p){for(var _=c.length;;){var w=c.indexOf(f,p);if(-1===w)return w;if(0===w||c.charCodeAt(w-1)<=32){var I=f.length;if(w+I===_||c.charCodeAt(w+I)<=32)return w}p=w+1}}var HC="ng-template";function n4(c,f,p){for(var _=0;_<c.length;){var w=c[_++];if(p&&"class"===w){if(-1!==uy((w=c[_]).toLowerCase(),f,0))return!0}else if(1===w){for(;_<c.length&&"string"==typeof(w=c[_++]);)if(w.toLowerCase()===f)return!0;return!1}}return!1}function O3(c){return 4===c.type&&c.value!==HC}function r4(c,f,p){return f===(4!==c.type||p?c.value:HC)}function Ah(c,f,p){for(var _=4,w=c.attrs||[],I=function x_(c){for(var f=0;f<c.length;f++){if(Do(c[f]))return f}return c.length}(w),Y=!1,ee=0;ee<f.length;ee++){var oe=f[ee];if("number"!=typeof oe){if(!Y)if(4&_){if(_=2|1&_,""!==oe&&!r4(c,oe,p)||""===oe&&1===f.length){if(Su(_))return!1;Y=!0}}else{var ve=8&_?oe:f[++ee];if(8&_&&null!==c.attrs){if(!n4(c.attrs,ve,p)){if(Su(_))return!1;Y=!0}continue}var nt=i4(8&_?"class":oe,w,O3(c),p);if(-1===nt){if(Su(_))return!1;Y=!0;continue}if(""!==ve){var dt=void 0;dt=nt>I?"":w[nt+1].toLowerCase();var kt=8&_?dt:null;if(kt&&-1!==uy(kt,ve,0)||2&_&&ve!==dt){if(Su(_))return!1;Y=!0}}}}else{if(!Y&&!Su(_)&&!Su(oe))return!1;if(Y&&Su(oe))continue;Y=!1,_=oe|1&_}}return Su(_)||Y}function Su(c){return 0==(1&c)}function i4(c,f,p,_){if(null===f)return-1;var w=0;if(_||!p){for(var I=!1;w<f.length;){var Y=f[w];if(Y===c)return w;if(3===Y||6===Y)I=!0;else{if(1===Y||2===Y){for(var ee=f[++w];"string"==typeof ee;)ee=f[++w];continue}if(4===Y)break;if(0===Y){w+=4;continue}}w+=I?1:2}return-1}return function a4(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 oS(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 s4(c,f){e:for(var p=0;p<f.length;p++){var _=f[p];if(c.length===_.length){for(var w=0;w<c.length;w++)if(c[w]!==_[w])continue e;return!0}}return!1}function I3(c,f){return c?":not("+f.trim()+")":f}function l4(c){for(var f=c[0],p=1,_=2,w="",I=!1;p<c.length;){var Y=c[p];if("string"==typeof Y)if(2&_){var ee=c[++p];w+="["+Y+(ee.length>0?'="'+ee+'"':"")+"]"}else 8&_?w+="."+Y:4&_&&(w+=" "+Y);else""!==w&&!Su(Y)&&(f+=I3(I,w),w=""),_=Y,I=I||!Su(_);p++}return""!==w&&(f+=I3(I,w)),f}var jr={};function P3(c){R3(we(),xn(),ze()+c,!1)}function R3(c,f,p,_){if(!_)if(3==(3&f[2])){var I=c.preOrderCheckHooks;null!==I&&vf(f,I,p)}else{var Y=c.preOrderHooks;null!==Y&&n_(f,Y,0,p)}mt(p)}var L3={"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275inject":Ea,"\u0275\u0275invalidFactoryDep":vM,resolveForwardRef:te};function d4(c,f){var p=null,_=null;c.hasOwnProperty(Jt)||Object.defineProperty(c,Jt,{get:function(){if(null===p){var I=Za();p=I.compileInjectable(L3,"ng:///".concat(c.name,"/\u0275prov.js"),function p4(c,f){var p=f||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(jC(p)||N3(p))&&void 0!==p.deps&&(_.deps=bF(p.deps)),jC(p)?_.useClass=p.useClass:function Z3(c){return f4 in c}(p)?_.useValue=p.useValue:N3(p)?_.useFactory=p.useFactory:function B3(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 I=Za();_=I.compileFactory(L3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:jv(c),target:I.FactoryTarget.Injectable})}return _},configurable:!0})}var f4=N({provide:String,useValue:N});function jC(c){return void 0!==c.useClass}function N3(c){return void 0!==c.useFactory}var h4=Cf("Injectable",void 0,void 0,void 0,function(c,f){return d4(c,f)});function F3(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,w=aS(c,f,p,_);return w.resolveInjectorInitializers(),w}function aS(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,w=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,I=[p||tt,Mu(c)];return _=_||("object"==typeof c?void 0:X(c)),new Sh(I,f||$a(),_||null,w)}var bl=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"create",value:function(p,_){var w;if(Array.isArray(p))return F3({name:""},_,p,"");var I=null!==(w=p.name)&&void 0!==w?w:"";return F3({name:I},p.parent,p.providers,I)}}]),c}();function D_(c){if(c.length>1){var f=function m4(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 w=[f],I=p(w),Y=_?function el(c,f){var p="".concat(c," caused by: ").concat(f instanceof Error?f.message:f),_=Error(p);return _[UC]=f,_}(I,_):Error(I);return Y.addKey=U3,Y.keys=w,Y.injectors=[c],Y.constructResolvingMessage=p,Y[UC]=_,Y}function U3(c,f){this.injectors.push(c),this.keys.push(f),this.message=this.constructResolvingMessage(this.keys)}function j3(c,f){for(var p=[],_=0,w=f.length;_<w;_++){var I=f[_];I&&0!=I.length?p.push(I.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,L.Z)(c,null,[{key:"get",value:function(p){return Zc.get(te(p))}},{key:"numberOfKeys",get:function(){return Zc.numberOfKeys}}]),c}(),z3=function(){function c(){(0,v.Z)(this,c),this._allKeys=new Map}return(0,L.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 z3,sS=function(){function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.optional=p,this.visibility=_}return(0,L.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),y4=[],W3=(0,L.Z)(function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.resolvedFactories=p,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),b4=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.factory=f,this.dependencies=p});function lS(c){var f,p;if(c.useClass){var _=te(c.useClass);f=Hv().factory(_),p=WC(_)}else c.useExisting?(f=function(I){return I},p=[sS.fromKey(Ff.get(c.useExisting))]):c.useFactory?(f=c.useFactory,p=function V3(c,f){if(f){var p=f.map(function(_){return[_]});return f.map(function(_){return T4(c,_,p)})}return WC(c)}(c.useFactory,c.deps)):(f=function(){return c.useValue},p=y4);return new b4(f,p)}function C4(c){return new W3(Ff.get(c.provide),[lS(c)],c.multi||!1)}function w4(c){var _=function k4(c,f){for(var p=0;p<c.length;p++){var _=c[p],w=f.get(_.key.id);if(w){if(_.multiProvider!==w.multiProvider)throw Xr(w,_);if(_.multiProvider)for(var I=0;I<_.resolvedFactories.length;I++)w.resolvedFactories.push(_.resolvedFactories[I]);else f.set(_.key.id,_)}else{var Y=void 0;Y=_.multiProvider?new W3(_.key,_.resolvedFactories.slice(),_.multiProvider):_,f.set(_.key.id,Y)}}return f}(zC(c,[]).map(C4),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 v4(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 j3(c,f);return f.map(function(p){return T4(c,p,f)})}function T4(c,f,p){var _=null,w=!1;if(!Array.isArray(f))return cy(f instanceof Uv?f.token:f,w,null);for(var I=null,Y=0;Y<f.length;++Y){var ee=f[Y];ee instanceof Lv?_=ee:ee instanceof Uv?_=ee.token:ee instanceof u_?w=!0:ee instanceof hh||ee instanceof Sd?I=ee:ee instanceof io&&(_=ee)}if(null!=(_=te(_)))return cy(_,w,I);throw j3(c,p)}function cy(c,f,p){return new sS(Ff.get(c),f,p)}var dy={},Y3=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"resolve",value:function(p){return w4(p)}},{key:"resolveAndCreate",value:function(p,_){var w=c.resolve(p);return c.fromResolvedProviders(w,_)}},{key:"fromResolvedProviders",value:function(p,_){return new K3(p,_)}}]),c}(),K3=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 w=0;w<_;w++)this.keyIds[w]=f[w].key.id,this.objs[w]=dy}return(0,L.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 _=Y3.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(Y3.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 G3(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 _4(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 _=[],w=0;w<p.resolvedFactories.length;++w)_[w]=this._instantiate(p,p.resolvedFactories[w]);return _}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,_){var Y,ee,w=this,I=_.factory;try{Y=_.dependencies.map(function(oe){return w._getByReflectiveDependency(oe)})}catch(oe){throw oe.addKey&&oe.addKey(this,p.key),oe}try{ee=I.apply(void 0,(0,D.Z)(Y))}catch(oe){throw function g4(c,f,p,_){return GC(c,_,function(w){var I=X(w[0].token);return"".concat(f.message,": Error during instantiation of ").concat(I,"!").concat(D_(w),".")},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,_,w){return p===c.INJECTOR_KEY?this:_ instanceof hh?this._getByKeySelf(p,w):this._getByKeyDefault(p,w,_)}},{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 H3(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 w=this._getObjByKeyId(p.id);return w!==dy?w:this._throwOrNull(p,_)}},{key:"_getByKeyDefault",value:function(p,_,w){var I;for(I=w instanceof Sd?this.parent:this;I instanceof c;){var Y=I,ee=Y._getObjByKeyId(p.id);if(ee!==dy)return ee;I=Y.parent}return null!==I?I.get(p.token,_):this._throwOrNull(p,_)}},{key:"displayName",get:function(){var p=function M4(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 q3(){throw new Error("invalid")}function Pd(c,f){return c<<17|f<<2}function tl(c){return c>>17&32767}function J3(c){return 2==(2&c)}function Oh(c){return 2|c}function Eu(c){return(131068&c)>>2}function O_(c,f){return-131069&c|f<<2}function Q3(c){return 1==(1&c)}function cS(c){return 1|c}K3.INJECTOR_KEY=Ff.get(bl);function c6(c,f){var p=c.contentQueries;if(null!==p)for(var _=0;_<p.length;_+=2){var w=p[_],I=p[_+1];if(-1!==I){var Y=c.data[I];xs(w),Y.contentQueries(2,f[I],I)}}}function JC(c,f,p,_,w,I,Y,ee,oe,ve,He){var nt=f.blueprint.slice();return nt[0]=w,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]=I,nt[20]=function AF(){return DF++}(),nt[21]=He,nt[16]=2==f.type?c[16]:nt,nt}function _y(c,f,p,_,w){var I=c.data[f];if(null===I)I=I_(c,f,p,_,w),function $m(){return Cr.lFrame.inI18n}()&&(I.flags|=64);else if(64&I.type){I.type=p,I.value=_,I.attrs=w;var Y=pt();I.injectorIndex=null===Y?-1:Y.injectorIndex}return Yt(I,!0),I}function I_(c,f,p,_,w){var I=Oe(),Y=Pn(),ee=Y?I:I&&I.parent,oe=c.data[f]=function g6(c,f,p,_,w,I){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:w,attrs:I,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,_,w);return null===c.firstChild&&(c.firstChild=oe),null!==I&&(Y?null==I.child&&null!==oe.parent&&(I.child=oe):null===I.next&&(I.next=oe)),oe}function P_(c,f,p,_){if(0===p)return-1;for(var w=f.length,I=0;I<p;I++)f.push(_),c.blueprint.push(_),c.data.push(null);return w}function f6(c,f,p){wd(f);try{var _=c.viewQuery;null!==_&&wS(1,_,p);var w=c.template;null!==w&&p6(c,f,w,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&c6(c,f),c.staticViewQueries&&wS(2,c.viewQuery,p);var I=c.components;null!==I&&function _V(c,f){for(var p=0;p<f.length;p++)W4(c,f[p])}(f,I)}catch(Y){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),Y}finally{f[2]&=-5,_e()}}function QC(c,f,p,_){var w=f[2];if(128!=(128&w)){wd(f);try{nh(f),nc(c.bindingStartIndex),null!==p&&p6(c,f,p,2,_);var Y=3==(3&w);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 M6(c){for(var f=MC(c);null!==f;f=vh(f))if(f[2])for(var p=f[9],_=0;_<p.length;_++){var w=p[_],I=w[3];0==(512&w[2])&&Ms(I,1),w[2]|=512}}(f),function T6(c){for(var f=MC(c);null!==f;f=vh(f))for(var p=10;p<f.length;p++){var _=f[p],w=_[1];Ts(_)&&QC(w,_,w.template,_[8])}}(f),null!==c.contentQueries&&c6(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 u6(c,f){var p=c.hostBindingOpCodes;if(null!==p)try{for(var _=0;_<p.length;_++){var w=p[_];if(w<0)mt(~w);else{var I=w,Y=p[++_],ee=p[++_];oh(Y,I),ee(2,f[I])}}}finally{mt(-1)}}(c,f);var nt=c.components;null!==nt&&function d6(c,f){for(var p=0;p<f.length;p++)S6(c,f[p])}(f,nt);var dt=c.viewQuery;if(null!==dt&&wS(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 p6(c,f,p,_,w){var I=ze(),Y=2&_;try{mt(-1),Y&&f.length>22&&R3(c,f,22,!1),Br(Y?2:0,w),p(_,w)}finally{mt(I),Br(Y?3:1,w)}}function h6(c,f,p){if(hu(f))for(var _=f.directiveStart,w=f.directiveEnd,I=_;I<w;I++){var Y=c.data[I];Y.contentQueries&&Y.contentQueries(1,p[I],I)}}function mS(c,f,p){!Ss()||(function N4(c,f,p,_){var w=p.directiveStart,I=p.directiveEnd;c.firstCreatePass||sh(p,f),Os(_,f);for(var Y=p.initialInputs,ee=w;ee<I;ee++){var oe=c.data[ee],ve=en(oe);ve&&j4(f,p,oe);var He=i_(f,c,ee,p);if(Os(He,f),null!==Y&&G4(f,ee-w,He,oe,p,Y),ve)jo(p.index,f)[8]=He}}(c,f,p,xo(p,f)),128==(128&p.flags)&&function B4(c,f,p){var _=p.directiveStart,w=p.directiveEnd,I=p.index,Y=function t_(){return Cr.lFrame.currentDirectiveIndex}();try{mt(I);for(var ee=_;ee<w;ee++){var oe=c.data[ee],ve=f[ee];Ac(ee),(null!==oe.hostBindings||0!==oe.hostVars||null!==oe.hostAttrs)&&b6(oe,ve)}}finally{mt(-1),Ac(Y)}}(c,f,p))}function _S(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xo,_=f.localNames;if(null!==_)for(var w=f.index+1,I=0;I<_.length;I+=2){var Y=_[I+1],ee=-1===Y?p(f,c):c[Y];c[w++]=ee}}function gS(c){var f=c.tView;if(null===f||f.incompleteFirstPass){return c.tView=vS(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return f}function vS(c,f,p,_,w,I,Y,ee,oe,ve){var He=22+_,nt=He+w,dt=function m6(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 I?I():I,pipeRegistry:"function"==typeof Y?Y():Y,firstChild:null,schemas:oe,consts:kt,incompleteFirstPass:!1}}function yS(c,f,p,_){var w=kS(f);null===p?w.push(_):(w.push(p),c.firstCreatePass&&n1(c).push(_,w.length-1))}function v6(c,f,p){for(var _ in c)if(c.hasOwnProperty(_)){p=null===p?{}:p;var w=c[_];p.hasOwnProperty(_)?p[_].push(f,w):p[_]=[f,w]}return p}function y6(c,f){for(var p=f.directiveStart,_=f.directiveEnd,w=c.data,I=f.attrs,Y=[],ee=null,oe=null,ve=p;ve<_;ve++){var He=w[ve],nt=He.inputs,dt=null===I||O3(f)?null:z4(nt,I);Y.push(dt),ee=v6(nt,ve,ee),oe=v6(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,_,w,I,Y,ee){var He,oe=xo(f,p),ve=f.inputs;!ee&&null!=ve&&(He=ve[_])?(TS(c,p,He,_,w),Ki(f)&&XC(p,f.index)):3&f.type?(_=function R4(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),w=null!=Y?Y(w,f.value||"",_):w,I.setProperty(oe,_,w)):f.type}function XC(c,f){var p=jo(f,c);16&p[2]||(p[2]|=32)}function gy(c,f,p,_){var w=!1;if(Ss()){var I=function F4(c,f,p){var _=c.directiveRegistry,w=null;if(_)for(var I=0;I<_.length;I++){var Y=_[I];oS(p,Y.selectors,!1)&&(w||(w=[]),Ds(sh(p,f),c,Y.type),en(Y)?(C6(c,p),w.unshift(Y)):w.push(Y))}return w}(c,f,p),Y=null===_?null:{"":-1};if(null!==I){w=!0,w6(p,c.data.length,I.length);for(var ee=0;ee<I.length;ee++){var oe=I[ee];oe.providersResolver&&oe.providersResolver(oe)}for(var ve=!1,He=!1,nt=P_(c,f,I.length,null),dt=0;dt<I.length;dt++){var kt=I[dt];p.mergedAttrs=ds(p.mergedAttrs,kt.hostAttrs),k6(c,p,f,nt,kt),H4(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++}y6(c,p)}Y&&function U4(c,f,p){if(f)for(var _=c.localNames=[],w=0;w<f.length;w+=2){var I=p[f[w+1]];if(null==I)throw new fe(-301,!1);_.push(f[w],I)}}(p,_,Y)}return p.mergedAttrs=ds(p.mergedAttrs,p.attrs),w}function Rd(c,f,p,_,w,I){var Y=I.hostBindings;if(Y){var ee=c.hostBindingOpCodes;null===ee&&(ee=c.hostBindingOpCodes=[]);var oe=~f.index;(function Z4(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(_,w,Y)}}function b6(c,f){null!==c.hostBindings&&c.hostBindings(1,f)}function C6(c,f){f.flags|=2,(c.components||(c.components=[])).push(f.index)}function H4(c,f,p){if(p){if(f.exportAs)for(var _=0;_<f.exportAs.length;_++)p[f.exportAs[_]]=c;en(f)&&(p[""]=c)}}function w6(c,f,p){c.flags|=1,c.directiveStart=f,c.directiveEnd=f+p,c.providerIndexes=f}function k6(c,f,p,_,w){c.data[_]=w;var I=w.factory||(w.factory=go(w.type)),Y=new me(I,en(w),A_);c.blueprint[_]=Y,p[_]=Y,Rd(c,f,0,_,P_(c,p,w.hostVars,jr),w)}function j4(c,f,p){var _=xo(f,c),w=gS(p),I=c[10],Y=cc(c,JC(c,w,null,p.onPush?32:16,_,f,I,I.createRenderer(_,p),null,null,null));c[f.index]=Y}function uc(c,f,p,_,w,I){var Y=xo(c,f);Ls(f[11],Y,I,c.value,p,_,w)}function Ls(c,f,p,_,w,I,Y){if(null==I)c.removeAttribute(f,w,p);else{var ee=null==Y?de(I):Y(I,_||"",w);c.setAttribute(f,w,ee,p)}}function G4(c,f,p,_,w,I){var Y=I[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 z4(c,f){for(var p=null,_=0;_<f.length;){var w=f[_];if(0!==w)if(5!==w){if("number"==typeof w)break;c.hasOwnProperty(w)&&(null===p&&(p=[]),p.push(w,c[w],f[_+1])),_+=2}else _+=2;else _+=4}return p}function CS(c,f,p,_){return new Array(c,!0,!1,f,null,0,_,p,null,null)}function S6(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 w=_[1];QC(w,_,w.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 W4(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),f6(_,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],w=f[10],I=!1;!I&&w.begin&&w.begin();try{QC(c,f,c.template,p)}catch(Y){throw _&&x6(f,Y),Y}finally{!I&&w.end&&w.end()}}function wS(c,f,p){xs(0),f(c,p)}function kS(c){return c[7]||(c[7]=[])}function n1(c){return c.cleanup||(c.cleanup=[])}function E6(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 x6(c,f){var p=c[9],_=p?p.get(xh,null):null;_&&_.handleError(f)}function TS(c,f,p,_,w){for(var I=0;I<p.length;){var Y=p[I++],ee=p[I++],oe=f[Y],ve=c.data[Y];null!==ve.setInput?ve.setInput(oe,w,_,ee):oe[ee]=w}}function es(c,f,p){var _=Dc(f,c);JP(c[11],_,p)}function r1(c,f,p){var _=p?c.styles:null,w=p?c.classes:null,I=0;if(null!==f)for(var Y=0;Y<f.length;Y++){var ee=f[Y];if("number"==typeof ee)I=ee;else if(1==I)w=$(w,ee);else if(2==I){_=$(_,ee+": "+f[++Y]+";")}}p?c.styles=_:c.stylesWithoutHost=_,p?c.classes=w:c.classesWithoutHost=w}function i1(c,f,p,_){for(var w=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var I=f[p.index];if(null!==I&&_.push(po(I)),Ai(I))for(var Y=10;Y<I.length;Y++){var ee=I[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=IM(p,f),nt=void 0;nt=He();)_.push(nt);else if(16&ve){var dt=BM(f,p);if(Array.isArray(dt))_.push.apply(_,(0,D.Z)(dt));else{var kt=Yv(f[16]);i1(kt[1],kt,dt,_,!0)}}p=w?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,L.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],w=_?_.indexOf(this):-1;w>-1&&(RM(p,w),dh(_,w))}this._attachedToViewContainer=!1}LM(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){yS(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 XP(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}(),MS=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this,_))._view=_,w}return(0,L.Z)(p,[{key:"detectChanges",value:function(){var w=this._view;t1(w[1],w,w[8],!1)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(Ph),o1=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this)).ngModule=_,w}return(0,L.Z)(p,[{key:"resolveComponentFactory",value:function(w){var I=Vn(w);return new R_(I,this.ngModule)}}]),p}(Bf);function D6(c){var f=[];for(var p in c)if(c.hasOwnProperty(p)){var _=c[p];f.push({propName:_,templateName:p})}return f}var Y4=function(){function c(f,p){(0,v.Z)(this,c),this.injector=f,this.parentInjector=p}return(0,L.Z)(c,[{key:"get",value:function(p,_,w){var I=this.injector.get(p,nS,w);return I!==nS||_===nS?I:this.parentInjector.get(p,_,w)}}]),c}(),R_=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;return(0,v.Z)(this,p),(I=f.call(this)).componentDef=_,I.ngModule=w,I.componentType=_.type,I.selector=function u4(c){return c.map(l4).join(",")}(_.selectors),I.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],I.isBoundToModule=!!w,I}return(0,L.Z)(p,[{key:"inputs",get:function(){return D6(this.componentDef.inputs)}},{key:"outputs",get:function(){return D6(this.componentDef.outputs)}},{key:"create",value:function(w,I,Y,ee){var oe=(ee=ee||this.ngModule)instanceof Ps?ee:null==ee?void 0:ee.injector;oe&&null!==this.componentDef.getStandaloneInjector&&(oe=this.componentDef.getStandaloneInjector(oe)||oe);var ve=oe?new Y4(w,oe):w,He=ve.get(eS,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 _6(c,f,p){var _=p===Sn.ShadowDom;return c.selectRootElement(f,_)}(dt,Y,this.componentDef.encapsulation):QP(dt,kt,function V4(c){var f=c.toLowerCase();return"svg"===f?"svg":"math"===f?mf:null}(kt)),_n=this.componentDef.onPush?288:272,Fn=vS(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 q4(c,f,p,_,w,I){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(w,c,ve),null!==oe.classes&&AC(w,c,oe.classes),null!==oe.styles&&Ed(w,c,oe.styles)));var He=_.createRenderer(c,f),nt=JC(p,gS(f),null,f.onPush?32:16,p[ee],oe,_,He,I||null,null,null);return Y.firstCreatePass&&(Ds(sh(oe,p),Y,f.type),C6(Y,oe),w6(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 c4(c){for(var f=[],p=[],_=1,w=2;_<c.length;){var I=c[_];if("string"==typeof I)2===w?""!==I&&f.push(I,c[++_]):8===w&&p.push(I);else{if(!Su(w))break;w=I}_++}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=Js(Fn,22),void 0!==I)for(var Bs=Cn.projection=[],Fs=0;Fs<this.ngContentSelectors.length;Fs++){var Bd=I[Fs];Bs.push(null!=Bd?Array.from(Bd):null)}er=function J4(c,f,p,_){var w=p[1],I=function bS(c,f,p){var _=Me();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),k6(c,_,f,P_(c,f,1,null),p),y6(c,_));var I=i_(f,c,_.directiveStart,_);Os(I,f);var Y=xo(_,f);return Y&&Os(Y,f),I}(w,p,f);if(c[8]=p[8]=I,null!==_){var ee,Y=(0,E.Z)(_);try{for(Y.s();!(ee=Y.n()).done;){(0,ee.value)(I,f)}}catch(dt){Y.e(dt)}finally{Y.f()}}if(f.contentQueries){var ve=Me();f.contentQueries(1,I,ve.directiveStart)}var He=Me();if(w.firstCreatePass&&(null!==f.hostBindings||null!==f.hostAttrs)){mt(He.index),Rd(p[1],He,0,He.directiveStart,He.directiveEnd,f),b6(f,I)}return I}(Or,this.componentDef,Jn,[Q4]),f6(Fn,Jn,null)}finally{_e()}return new K4(this.componentType,er,S_(Cn,Jn),Jn,Cn)}}]),p}(BC);new o1;var K4=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I,Y,ee){var oe;return(0,v.Z)(this,p),(oe=f.call(this)).location=I,oe._rootLView=Y,oe._tNode=ee,oe.instance=w,oe.hostView=oe.changeDetectorRef=new MS(Y),oe.componentType=_,oe}return(0,L.Z)(p,[{key:"setInput",value:function(w,I){var ee,Y=this._tNode.inputs;if(null!==Y&&(ee=Y[w])){var oe=this._rootLView;TS(oe[1],oe,ee,w,I),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(w){this.hostView.onDestroy(w)}}]),p}(QF);function Q4(){var c=Me();Ar(xn()[1],c)}function O6(c){return Object.getPrototypeOf(c.prototype).constructor}function SS(c){for(var f=O6(c.type),p=!0,_=[c];f;){var w=void 0;if(en(c))w=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new fe(903,!1);w=f.\u0275dir}if(w){if(p){_.push(w);var I=c;I.inputs=ES(c.inputs),I.declaredInputs=ES(c.declaredInputs),I.outputs=ES(c.outputs);var Y=w.hostBindings;Y&&I6(c,Y);var ee=w.viewQuery,oe=w.contentQueries;if(ee&&$4(c,ee),oe&&e8(c,oe),B(c.inputs,w.inputs),B(c.declaredInputs,w.declaredInputs),B(c.outputs,w.outputs),en(w)&&w.data.animation){var ve=c.data;ve.animation=(ve.animation||[]).concat(w.data.animation)}}var He=w.features;if(He)for(var nt=0;nt<He.length;nt++){var dt=He[nt];dt&&dt.ngInherit&&dt(c),dt===SS&&(p=!1)}}f=Object.getPrototypeOf(f)}!function X4(c){for(var f=0,p=null,_=c.length-1;_>=0;_--){var w=c[_];w.hostVars=f+=w.hostVars,w.hostAttrs=ds(w.hostAttrs,p=ds(p,w.hostAttrs))}}(_)}function ES(c){return c===xt?{}:c===tt?[]:c}function $4(c,f){var p=c.viewQuery;c.viewQuery=p?function(_,w){f(_,w),p(_,w)}:f}function e8(c,f){var p=c.contentQueries;c.contentQueries=p?function(_,w,I){f(_,w,I),p(_,w,I)}:f}function I6(c,f){var p=c.hostBindings;c.hostBindings=p?function(_,w){f(_,w),p(_,w)}:f}var t8=["providersResolver"],n8=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function r8(c){var f=O6(c.type),p=void 0;p=en(c)?f.\u0275cmp:f.\u0275dir;var I,_=c,w=(0,E.Z)(t8);try{for(w.s();!(I=w.n()).done;){var Y=I.value;_[Y]=p[Y]}}catch(He){w.e(He)}finally{w.f()}if(en(p)){var oe,ee=(0,E.Z)(n8);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!!xS(c)&&(Array.isArray(c)||!(c instanceof Map)&&Rh()in c)}function xS(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 Zs(c,f,p){var _=c[f];return!Object.is(_,p)&&(c[f]=p,!0)}function Ld(c,f,p,_){var w=Zs(c,f,p);return Zs(c,f+1,_)||w}function s1(c,f,p,_,w){var I=Ld(c,f,p,_);return Zs(c,f+2,w)||I}function Du(c,f,p,_,w,I){var Y=Ld(c,f,p,_);return Ld(c,f+2,w,I)||Y}function l1(c,f,p,_){var w=xn();if(Zs(w,Ta(),f)){we();uc(Mt(),w,c,f,p,_)}return l1}function Gf(c,f){for(var p=!1,_=Qa(),w=1;w<f.length;w+=2)p=Zs(c,_++,f[w])||p;if(nc(_),!p)return jr;for(var I=f[0],Y=1;Y<f.length;Y+=2)I+=de(f[Y])+f[Y+1];return I}function L_(c,f,p,_){return Zs(c,Ta(),p)?f+de(p)+_:jr}function ql(c,f,p,_,w,I){var ee=Ld(c,Qa(),p,w);return cs(2),ee?f+de(p)+_+de(w)+I:jr}function Lh(c,f,p,_,w,I,Y,ee){var ve=s1(c,Qa(),p,w,Y);return cs(3),ve?f+de(p)+_+de(w)+I+de(Y)+ee:jr}function Z_(c,f,p,_,w,I,Y,ee,oe,ve){var nt=Du(c,Qa(),p,w,Y,oe);return cs(4),nt?f+de(p)+_+de(w)+I+de(Y)+ee+de(oe)+ve:jr}function N_(c,f,p,_,w,I,Y,ee,oe,ve,He,nt){var dt=Qa(),kt=Du(c,dt,p,w,Y,oe);return kt=Zs(c,dt+4,He)||kt,cs(5),kt?f+de(p)+_+de(w)+I+de(Y)+ee+de(oe)+ve+de(He)+nt:jr}function Zh(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt){var Xt=Qa(),_n=Du(c,Xt,p,w,Y,oe);return _n=Ld(c,Xt+4,He,dt)||_n,cs(6),_n?f+de(p)+_+de(w)+I+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt:jr}function B_(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n){var Fn=Qa(),Jn=Du(c,Fn,p,w,Y,oe);return Jn=s1(c,Fn+4,He,dt,Xt)||Jn,cs(7),Jn?f+de(p)+_+de(w)+I+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt+de(Xt)+_n:jr}function F_(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn){var er=Qa(),Cn=Du(c,er,p,w,Y,oe);return Cn=Du(c,er+4,He,dt,Xt,Fn)||Cn,cs(8),Cn?f+de(p)+_+de(w)+I+de(Y)+ee+de(oe)+ve+de(He)+nt+de(dt)+kt+de(Xt)+_n+de(Fn)+Jn:jr}function P6(c,f,p,_,w,I){var Y=xn(),ee=L_(Y,f,p,_);ee!==jr&&uc(Mt(),Y,c,ee,w,I);return P6}function DS(c,f,p,_,w,I,Y,ee){var oe=xn(),ve=ql(oe,f,p,_,w,I);ve!==jr&&uc(Mt(),oe,c,ve,Y,ee);return DS}function u1(c,f,p,_,w,I,Y,ee,oe,ve){var He=xn(),nt=Lh(He,f,p,_,w,I,Y,ee);nt!==jr&&uc(Mt(),He,c,nt,oe,ve);return u1}function AS(c,f,p,_,w,I,Y,ee,oe,ve,He,nt){var dt=xn(),kt=Z_(dt,f,p,_,w,I,Y,ee,oe,ve);kt!==jr&&uc(Mt(),dt,c,kt,He,nt);return AS}function OS(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt){var Xt=xn(),_n=N_(Xt,f,p,_,w,I,Y,ee,oe,ve,He,nt);_n!==jr&&uc(Mt(),Xt,c,_n,dt,kt);return OS}function Nh(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n){var Fn=xn(),Jn=Zh(Fn,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt);Jn!==jr&&uc(Mt(),Fn,c,Jn,Xt,_n);return Nh}function R6(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn){var er=xn(),Cn=B_(er,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n);Cn!==jr&&uc(Mt(),er,c,Cn,Fn,Jn);return R6}function s8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er,Cn){var Or=xn(),ei=F_(Or,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn);ei!==jr&&uc(Mt(),Or,c,ei,er,Cn);return s8}function L6(c,f,p,_){var w=xn(),I=Gf(w,f);I!==jr&&uc(Mt(),w,c,I,p,_);return L6}function N6(c,f,p,_,w,I,Y,ee){var oe=xn(),ve=we(),He=c+22,nt=ve.firstCreatePass?function l8(c,f,p,_,w,I,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=vS(2,He,_,w,I,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,_,w,I,Y):ve.data[He];Yt(nt,!1);var dt=oe[11].createComment("");xf(ve,oe,dt,nt),Os(dt,oe),cc(oe,oe[He]=CS(dt,oe,dt,nt)),tn(nt)&&mS(ve,oe,nt),null!=Y&&_S(oe,nt,ee)}function IS(c){return pa(function tc(){return Cr.lFrame.contextLView}(),22+c)}function U_(c,f,p){var _=xn();Zs(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!1);return U_}function c1(c,f,p,_,w){var Y=w?"class":"style";TS(c,p,f.inputs[Y],Y,_)}function d1(c,f,p,_){var w=xn(),I=we(),Y=22+c,ee=w[11],oe=w[Y]=QP(ee,f,function $s(){return Cr.lFrame.currentNamespace}()),ve=I.firstCreatePass?function c8(c,f,p,_,w,I,Y){var ee=f.consts,ve=_y(f,c,2,w,Ja(ee,I));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,I,w,0,f,p,_):I.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(I,w,oe,ve),0===function Ov(){return Cr.lFrame.elementDepthCount}()&&Os(oe,w),function ih(){Cr.lFrame.elementDepthCount++}(),tn(ve)&&(mS(I,w,ve),h6(I,ve,w)),null!==_&&_S(w,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),hu(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 PS(c,f,p,_){return d1(c,f,p,_),f1(),PS}function Bh(c,f,p){var _=xn(),w=we(),I=c+22,Y=w.firstCreatePass?function RS(c,f,p,_,w){var I=f.consts,Y=Ja(I,_),ee=_y(f,c,8,"ng-container",Y);return null!==Y&&r1(ee,Y,!0),gy(f,p,ee,Ja(I,w)),null!==f.queries&&f.queries.elementStart(f,ee),ee}(I,w,_,f,p):w.data[I];Yt(Y,!0);var ee=_[I]=_[11].createComment("");return xf(w,_,ee,Y),Os(ee,_),tn(Y)&&(mS(w,_,Y),h6(w,Y,_)),null!=p&&_S(_,Y),Bh}function Cy(){var c=Me(),f=we();return Pn()?Qn():Yt(c=c.parent,!1),f.firstCreatePass&&(Ar(f,c),hu(c)&&f.queries.elementEnd(c)),Cy}function LS(c,f,p){return Bh(c,f,p),Cy(),LS}function B6(){return xn()}function p1(c){return!!c&&"function"==typeof c.then}function F6(c){return!!c&&"function"==typeof c.subscribe}var ZS=F6;function NS(c,f,p,_){var w=xn(),I=we(),Y=Me();return FS(I,w,w[11],Y,c,f,!!p,_),NS}function BS(c,f){var p=Me(),_=xn(),w=we();return FS(w,_,E6(rc(w.data),p,_),p,c,f,!1),BS}function FS(c,f,p,_,w,I,Y,ee){var oe=tn(_),He=c.firstCreatePass&&n1(c),nt=f[8],dt=kS(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 U6(c,f,p,_){var w=c.cleanup;if(null!=w)for(var I=0;I<w.length-1;I+=2){var Y=w[I];if(Y===p&&w[I+1]===_){var ee=f[7],oe=w[I+2];return ee.length>oe?ee[oe]:null}"string"==typeof Y&&(I+=2)}return null}(c,f,w,_.index)),null!==er){(er.__ngLastListenerFn__||er).__ngNextListenerFn__=I,er.__ngLastListenerFn__=I,kt=!1}else{I=j6(_,f,nt,I,!1);var Or=p.listen(_n,w,I);dt.push(I,Or),He&&He.push(w,Jn,Fn,Fn+1)}}else I=j6(_,f,nt,I,!1);var Ei,ei=_.outputs;if(kt&&null!==ei&&(Ei=ei[w])){var ms=Ei.length;if(ms)for(var Bs=0;Bs<ms;Bs+=2){var Fs=Ei[Bs],Bd=Ei[Bs+1],qy=f[Fs][Bd].subscribe(I),dg=dt.length;dt.push(I,qy),He&&He.push(w,_.index,dg,-(dg+1))}}}function H6(c,f,p,_){try{return Br(6,f,p),!1!==p(_)}catch(w){return x6(c,w),!1}finally{Br(7,f,p)}}function j6(c,f,p,_,w){return function I(Y){if(Y===Function)return _;e1(2&c.flags?jo(c.index,f):f);for(var oe=H6(f,p,_,Y),ve=I.__ngNextListenerFn__;ve;)oe=H6(f,p,ve,Y)&&oe,ve=ve.__ngNextListenerFn__;return w&&!1===oe&&(Y.preventDefault(),Y.returnValue=!1),oe}}function US(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return xe(c)}function d8(c,f){for(var p=null,_=function o4(c){var f=c.attrs;if(null!=f){var p=f.indexOf(5);if(0==(1&p))return f[p+1]}return null}(c),w=0;w<f.length;w++){var I=f[w];if("*"!==I){if(null===_?oS(c,I,!0):s4(_,I))return w}else p=w}return p}function HS(c){var f=xn()[16][6];if(!f.projection)for(var p=c?c.length:1,_=f.projection=Zv(p,null),w=_.slice(),I=f.child;null!==I;){var Y=c?d8(I,c):0;null!==Y&&(w[Y]?w[Y].projectionNext=I:_[Y]=I,w[Y]=I),I=I.next}}function G6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,_=xn(),w=we(),I=_y(w,22+c,16,null,p||null);null===I.projection&&(I.projection=f),Qn(),64!=(64&I.flags)&&Af(w,_,I)}function jS(c,f,p){return h1(c,"",f,"",p),jS}function h1(c,f,p,_,w){var I=xn(),Y=L_(I,f,p,_);Y!==jr&&Kl(we(),Mt(),I,c,Y,I[11],w,!1);return h1}function GS(c,f,p,_,w,I,Y){var ee=xn(),oe=ql(ee,f,p,_,w,I);oe!==jr&&Kl(we(),Mt(),ee,c,oe,ee[11],Y,!1);return GS}function zS(c,f,p,_,w,I,Y,ee,oe){var ve=xn(),He=Lh(ve,f,p,_,w,I,Y,ee);He!==jr&&Kl(we(),Mt(),ve,c,He,ve[11],oe,!1);return zS}function m1(c,f,p,_,w,I,Y,ee,oe,ve,He){var nt=xn(),dt=Z_(nt,f,p,_,w,I,Y,ee,oe,ve);dt!==jr&&Kl(we(),Mt(),nt,c,dt,nt[11],He,!1);return m1}function WS(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt){var kt=xn(),Xt=N_(kt,f,p,_,w,I,Y,ee,oe,ve,He,nt);Xt!==jr&&Kl(we(),Mt(),kt,c,Xt,kt[11],dt,!1);return WS}function VS(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt){var _n=xn(),Fn=Zh(_n,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt);Fn!==jr&&Kl(we(),Mt(),_n,c,Fn,_n[11],Xt,!1);return VS}function z6(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=B_(Jn,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n);er!==jr&&Kl(we(),Mt(),Jn,c,er,Jn[11],Fn,!1);return z6}function W6(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er){var Cn=xn(),Or=F_(Cn,f,p,_,w,I,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 W6}function YS(c,f,p){var _=xn(),w=Gf(_,f);w!==jr&&Kl(we(),Mt(),_,c,w,_[11],p,!1);return YS}function f8(c,f,p,_,w,I){var Y=I?f.classBindings:f.styleBindings,ee=tl(Y),oe=Eu(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(w)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 S4(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])),V6(c,He,_,!0,I),V6(c,He,_,!1,I),function p8(c,f,p,_,w){var I=w?c.residualClasses:c.residualStyles;null!=I&&"string"==typeof f&&fh(I,f)>=0&&(p[_+1]=cS(p[_+1]))}(f,He,c,_,I),Y=Pd(ee,oe),I?f.classBindings=Y:f.styleBindings=Y}function V6(c,f,p,_,w){for(var I=c[p+1],Y=null===f,ee=_?tl(I):Eu(I),oe=!1;0!==ee&&(!1===oe||Y);){var ve=c[ee],He=c[ee+1];h8(ve,f)&&(oe=!0,c[ee+1]=_?cS(He):Oh(He)),ee=_?tl(He):Eu(He)}oe&&(c[p+1]=_?Oh(I):cS(I))}function h8(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 Y6(c){return c.substring(Ua.key,Ua.keyEnd)}function m8(c){return c.substring(Ua.value,Ua.valueEnd)}function KS(c,f){var p=Ua.textEnd;return p===f?-1:(f=Ua.keyEnd=function g8(c,f,p){for(;f<p&&c.charCodeAt(f)>32;)f++;return f}(c,Ua.key=f,p),Fh(c,f,p))}function qS(c,f){var p=Ua.textEnd,_=Ua.key=Fh(c,f,p);return p===_?-1:(_=Ua.keyEnd=function v8(c,f,p){for(var _;f<p&&(45===(_=c.charCodeAt(f))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)f++;return f}(c,_,p),_=q6(c,_,p,58),_=Ua.value=Fh(c,_,p),_=Ua.valueEnd=function y8(c,f,p){for(var _=-1,w=-1,I=-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===I&&82===w&&76===_&&40===oe?ee=Y=_1(c,41,Y,p):oe>32&&(ee=Y),I=w,w=_,_=-33&oe}return ee}(c,_,p),q6(c,_,p,59))}function JS(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 q6(c,f,p,_){return(f=Fh(c,f,p))<p&&f++,f}function _1(c,f,p,_){for(var w=-1,I=p;I<_;){var Y=c.charCodeAt(I++);if(Y==f&&92!==w)return I;w=92==Y&&92===w?0:Y}throw new Error}function QS(c,f,p){return Au(c,f,p,!1),QS}function g1(c,f){return Au(c,f,null,!0),g1}function Ns(c){Ou(X6,J6,c,!1)}function J6(c,f){for(var p=function K6(c){return JS(c),qS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=qS(f,p))X6(c,Y6(f),m8(f))}function XS(c){Ou(zl,Fc,c,!0)}function Fc(c,f){for(var p=function _8(c){return JS(c),KS(c,Fh(c,0,Ua.textEnd))}(f);p>=0;p=KS(f,p))zl(c,Y6(f),!0)}function Au(c,f,p,_){var w=xn(),I=we(),Y=cs(2);(I.firstUpdatePass&&Q6(I,c,Y,_),f!==jr&&Zs(w,Y,f))&&M8(I,I.data[ze()],w,w[11],c,w[Y+1]=function EV(c,f){return null==c||("string"==typeof f?c+=f:"object"==typeof c&&(c=X(Pc(c)))),c}(f,p),_,Y)}function Ou(c,f,p,_){var w=we(),I=cs(2);w.firstUpdatePass&&Q6(w,null,I,_);var Y=xn();if(p!==jr&&Zs(Y,I,p)){var ee=w.data[ze()];if(E8(ee,_)&&!$S(w,I)){var ve=_?ee.classesWithoutHost:ee.stylesWithoutHost;null!==ve&&(p=$(ve,p||"")),c1(w,ee,Y,p,_)}else!function SV(c,f,p,_,w,I,Y,ee){w===jr&&(w=tt);for(var oe=0,ve=0,He=0<w.length?w[0]:null,nt=0<I.length?I[0]:null;null!==He||null!==nt;){var dt=oe<w.length?w[oe+1]:void 0,kt=ve<I.length?I[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&&M8(c,f,p,_,Xt,_n,Y,ee),He=oe<w.length?w[oe]:null,nt=ve<I.length?I[ve]:null}}(w,ee,Y,Y[11],Y[I+1],Y[I+1]=function T8(c,f,p){if(null==p||""===p)return tt;var _=[],w=Pc(p);if(Array.isArray(w))for(var I=0;I<w.length;I++)c(_,w[I],!0);else if("object"==typeof w)for(var Y in w)w.hasOwnProperty(Y)&&c(_,Y,w[Y]);else"string"==typeof w&&f(_,w);return _}(c,f,p),_,I)}}function $S(c,f){return f>=c.expandoStartIndex}function Q6(c,f,p,_){var w=c.data;if(null===w[p+1]){var I=w[ze()],Y=$S(c,p);E8(I,_)&&null===f&&!Y&&(f=!1),f=function b8(c,f,p,_){var w=rc(c),I=_?f.residualClasses:f.residualStyles;if(null===w){0===(_?f.classBindings:f.styleBindings)&&(p=wy(p=v1(null,c,f,p,_),f.attrs,_),I=null)}else{var ee=f.directiveStylingLast;if(-1===ee||c[ee]!==w)if(p=v1(w,c,f,p,_),null===I){var ve=function C8(c,f,p){var _=p?f.classBindings:f.styleBindings;if(0!==Eu(_))return c[tl(_)]}(c,f,_);void 0!==ve&&Array.isArray(ve)&&function w8(c,f,p,_){var w=p?f.classBindings:f.styleBindings;c[tl(w)]=_}(c,f,_,ve=wy(ve=v1(null,c,f,ve[1],_),f.attrs,_))}else I=function k8(c,f,p){for(var _=void 0,w=f.directiveEnd,I=1+f.directiveStylingLast;I<w;I++){_=wy(_,c[I].hostAttrs,p)}return wy(_,f.attrs,p)}(c,f,_)}return void 0!==I&&(_?f.residualClasses=I:f.residualStyles=I),p}(w,I,f,_),f8(w,I,f,p,Y,_)}}function v1(c,f,p,_,w){var I=null,Y=p.directiveEnd,ee=p.directiveStylingLast;for(-1===ee?ee=p.directiveStart:ee++;ee<Y&&(_=wy(_,(I=f[ee]).hostAttrs,w),I!==c);)ee++;return null!==c&&(p.directiveStylingLast=ee),_}function wy(c,f,p){var _=p?1:2,w=-1;if(null!==f)for(var I=0;I<f.length;I++){var Y=f[I];"number"==typeof Y?w=Y:w===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),zl(c,Y,!!p||f[++I]))}return void 0===c?null:c}function X6(c,f,p){zl(c,f,Pc(p))}function M8(c,f,p,_,w,I,Y,ee){if(3&f.type){var oe=c.data,ve=oe[ee+1];if(!y1(Q3(ve)?S8(oe,f,p,w,Eu(ve),Y):void 0))y1(I)||J3(ve)&&(I=S8(oe,null,p,w,ee,Y)),function m_(c,f,p,_,w){if(f)w?c.addClass(p,_):c.removeClass(p,_);else{var I=-1===_.indexOf("-")?void 0:CC.DashCase;null==w?c.removeStyle(p,_,I):("string"==typeof w&&w.endsWith("!important")&&(w=w.slice(0,-10),I|=CC.Important),c.setStyle(p,_,w,I))}}(_,Y,Dc(ze(),p),w,I)}}function S8(c,f,p,_,w,I){for(var Y=null===f,ee=void 0;w>0;){var oe=c[w],ve=Array.isArray(oe),He=ve?oe[1]:oe,nt=null===He,dt=p[w+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[w+1];w=Y?tl(Xt):Eu(Xt)}if(null!==f){var _n=I?f.residualClasses:f.residualStyles;null!=_n&&(ee=Md(_n,_))}return ee}function y1(c){return void 0!==c}function E8(c,f){return 0!=(c.flags&(f?16:32))}function $6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=xn(),_=we(),w=c+22,I=_.firstCreatePass?_y(_,w,1,f,null):_.data[w],Y=p[w]=Kv(p[11],f);xf(_,p,Y,I),Yt(I,!1)}function eE(c){return tE("",c,""),eE}function tE(c,f,p){var _=xn(),w=L_(_,c,f,p);return w!==jr&&es(_,ze(),w),tE}function eR(c,f,p,_,w){var I=xn(),Y=ql(I,c,f,p,_,w);return Y!==jr&&es(I,ze(),Y),eR}function tR(c,f,p,_,w,I,Y){var ee=xn(),oe=Lh(ee,c,f,p,_,w,I,Y);return oe!==jr&&es(ee,ze(),oe),tR}function nR(c,f,p,_,w,I,Y,ee,oe){var ve=xn(),He=Z_(ve,c,f,p,_,w,I,Y,ee,oe);return He!==jr&&es(ve,ze(),He),nR}function nE(c,f,p,_,w,I,Y,ee,oe,ve,He){var nt=xn(),dt=N_(nt,c,f,p,_,w,I,Y,ee,oe,ve,He);return dt!==jr&&es(nt,ze(),dt),nE}function rE(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt){var kt=xn(),Xt=Zh(kt,c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt);return Xt!==jr&&es(kt,ze(),Xt),rE}function x8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt){var _n=xn(),Fn=B_(_n,c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt);return Fn!==jr&&es(_n,ze(),Fn),x8}function D8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){var Jn=xn(),er=F_(Jn,c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn);return er!==jr&&es(Jn,ze(),er),D8}function A8(c){var f=xn(),p=Gf(f,c);return p!==jr&&es(f,ze(),p),A8}function O8(c,f,p){Ou(zl,Fc,L_(xn(),c,f,p),!0)}function I8(c,f,p,_,w){Ou(zl,Fc,ql(xn(),c,f,p,_,w),!0)}function P8(c,f,p,_,w,I,Y){Ou(zl,Fc,Lh(xn(),c,f,p,_,w,I,Y),!0)}function xV(c,f,p,_,w,I,Y,ee,oe){Ou(zl,Fc,Z_(xn(),c,f,p,_,w,I,Y,ee,oe),!0)}function DV(c,f,p,_,w,I,Y,ee,oe,ve,He){Ou(zl,Fc,N_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He),!0)}function AV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt){Ou(zl,Fc,Zh(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt),!0)}function OV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt){Ou(zl,Fc,B_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt),!0)}function IV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){Ou(zl,Fc,F_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn),!0)}function PV(c){Ou(zl,Fc,Gf(xn(),c),!0)}function RV(c,f,p){Ns(L_(xn(),c,f,p))}function LV(c,f,p,_,w){Ns(ql(xn(),c,f,p,_,w))}function ZV(c,f,p,_,w,I,Y){Ns(Lh(xn(),c,f,p,_,w,I,Y))}function NV(c,f,p,_,w,I,Y,ee,oe){Ns(Z_(xn(),c,f,p,_,w,I,Y,ee,oe))}function BV(c,f,p,_,w,I,Y,ee,oe,ve,He){Ns(N_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He))}function FV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt){Ns(Zh(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt))}function UV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt){Ns(B_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt))}function HV(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){Ns(F_(xn(),c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn))}function jV(c){Ns(Gf(xn(),c))}function rR(c,f,p,_,w){return Au(c,L_(xn(),f,p,_),w,!1),rR}function R8(c,f,p,_,w,I,Y){return Au(c,ql(xn(),f,p,_,w,I),Y,!1),R8}function L8(c,f,p,_,w,I,Y,ee,oe){return Au(c,Lh(xn(),f,p,_,w,I,Y,ee),oe,!1),L8}function Z8(c,f,p,_,w,I,Y,ee,oe,ve,He){return Au(c,Z_(xn(),f,p,_,w,I,Y,ee,oe,ve),He,!1),Z8}function N8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt){return Au(c,N_(xn(),f,p,_,w,I,Y,ee,oe,ve,He,nt),dt,!1),N8}function B8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt){return Au(c,Zh(xn(),f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt),Xt,!1),B8}function F8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn){return Au(c,B_(xn(),f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n),Fn,!1),F8}function U8(c,f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn,er){return Au(c,F_(xn(),f,p,_,w,I,Y,ee,oe,ve,He,nt,dt,kt,Xt,_n,Fn,Jn),er,!1),U8}function H8(c,f,p){return Au(c,Gf(xn(),f),p,!1),H8}function iR(c,f,p){var _=xn();Zs(_,Ta(),f)&&Kl(we(),Mt(),_,c,f,_[11],p,!0);return iR}function oR(c,f,p){var _=xn();if(Zs(_,Ta(),f)){var I=we(),Y=Mt();Kl(I,Y,_,c,f,E6(rc(I.data),Y,_),p,!0)}return oR}var H_=void 0;var j_,zV=["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 GV(c){var p=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===_?1:5}],ky={};function aR(c){var f=function VV(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=G8(f);if(p)return p;var _=f.split("-")[0];if(p=G8(_))return p;if("en"===_)return zV;throw new fe(701,!1)}function j8(c){return aR(c)[j_.PluralCase]}function G8(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 z8=["zero","one","two","few","many"];var Cl,Ty="en-US",iE={marker:"element"},oE={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}(Cl||(Cl={}));var W8=Ty;function V8(c){Ut(c,"Expected localeId to be defined"),"string"==typeof c&&(W8=c.toLowerCase().replace(/_/g,"-"))}function Y8(c,f,p){var _=f.insertBeforeIndex,w=Array.isArray(_)?_[0]:_;return null===w?a3(c,0,p):po(p[w])}function K8(c,f,p,_,w){var I=f.insertBeforeIndex;if(Array.isArray(I)){var Y=_,ee=null;if(3&f.type||(ee=Y,Y=w),null!==Y&&0==(2&f.flags))for(var oe=1;oe<I.length;oe++){Sf(c,Y,p[I[oe]],ee,!1)}}}function q8(c,f){if(c.push(f),c.length>1)for(var p=c.length-2;p>=0;p--){var _=c[p];J8(_)||qV(_,f)&&null===JV(_)&&QV(_,f.index)}}function J8(c){return!(64&c.type)}function qV(c,f){return J8(f)||c.index>f.index}function JV(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(Y8,K8),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 aE(c,f,p){var _=I_(c,p,64,null,null);return q8(f,_),_}function b1(c,f){var p=f[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function sE(c){return c>>>17}function lR(c){return(131070&c)>>>1}var G_=0,Ey=0;function $8(c,f,p,_){for(var w=c[11],I=0;I<f.length;I++){var Y=f[I++],ee=f[I],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?w.createComment(ee):Kv(w,ee)),ve&&null!==p&&Sf(w,p,nt,_,!1)}}function cR(c,f,p,_){for(var Y,w=p[11],I=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(w,oe))}else if("number"==typeof oe)switch(1&oe){case 0:var He=sE(oe);null===I&&(I=He,Y=Ef(w,_));var nt=void 0,dt=void 0;if(He===I?(nt=_,dt=Y):(nt=null,dt=po(p[He])),null!==dt){var kt=lR(oe);Sf(w,dt,p[kt],nt,!1);var _n=My(c,kt);if(null!==_n&&"object"==typeof _n){var Fn=b1(_n,p);null!==Fn&&cR(c,_n.create[Fn],p,p[_n.anchorIdx])}}break;case 1:var Jn=oe>>>1,er=f[++ee],Cn=f[++ee];Ls(w,Dc(Jn,p),null,null,er,Cn,null)}else switch(oe){case oE:var Or=f[++ee],ei=f[++ee];if(null===p[ei])Os(p[ei]=Ba(w,Or),p);break;case iE:var ms=f[++ee],Bs=f[++ee];if(null===p[Bs])Os(p[Bs]=QP(w,ms,null),p)}}}function dR(c,f,p,_,w){for(var I=0;I<p.length;I++){var Y=p[I],ee=p[++I];if(Y&w)for(var oe="",ve=I+1;ve<=I+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?Ls(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&&JP(f[11],_n,oe);break;case 2:eY(c,My(c,nt),f,oe);break;case 3:fR(c,My(c,nt),_,f)}}}else{var Fn=p[I+1];if(Fn>0&&3==(3&Fn)){var er=My(c,Fn>>>2);f[er.currentCaseLViewIndex]<0&&fR(c,er,_,f)}}I+=ee}}function fR(c,f,p,_){var w=_[f.currentCaseLViewIndex];if(null!==w){var I=G_;w<0&&(w=_[f.currentCaseLViewIndex]=~w,I=-1),dR(c,_,f.update[w],p,I)}}function eY(c,f,p,_){var w=function tY(c,f){var p=c.cases.indexOf(f);if(-1===p)switch(c.type){case 1:var _=function YV(c,f){var p=j8(f)(parseInt(c,10)),_=z8[p];return void 0!==_?_:"other"}(f,function sR(){return W8}());-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)!==w&&(pR(c,f,p),p[f.currentCaseLViewIndex]=null===w?null:~w,null!==w)){var Y=p[f.anchorIdx];Y&&cR(c,f.create[w],p,Y)}}function pR(c,f,p){var _=b1(f,p);if(null!==_)for(var w=f.remove[_],I=0;I<w.length;I++){var Y=w[I];if(Y>0){var ee=Dc(Y,p);null!==ee&&p_(p[11],ee)}else pR(c,My(c,~Y),p)}}function eU(){var p,_,c=[],f=-1;function I(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 I(p[1].data[ve],p),Y()}return 0===c.length?null:(_=c.pop(),f=c.pop(),Y())}return function w(ee,oe){for(p=oe;c.length;)c.pop();return I(ee.value,oe),Y}}var C1=/\ufffd(\d+):?\d*\ufffd/gi,nU=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,oY=/\ufffd(\d+)\ufffd/,hR=/^\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 rU(c,f,p,_,w,I){var Y=pt(),ee=[],oe=[],ve=[[]];w=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,_))}(w,I);for(var He=function xa(c){return c.replace(On," ")}(w).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(w,'" message.'));sa(c,p,oe,f,Jn,mR(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=aE(c,ve[0],Ei);ve.unshift([]),Yt(ms,!0)}}}c.data[_]={create:ee,update:oe}}function mR(c,f,p,_,w,I,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 IF(c){void 0===_h&&(_h=c())}(eU)),w.push(oe,null===I?"":I);var He=I_(c,ee,Y?32:1,null===I?"":I,null);q8(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(Y8,K8),p=c.insertBeforeIndex=[null,f]):(Ft(Array.isArray(p),!0,"Expecting array here"),p.push(f))}(ve,nt),He}function oo(c,f,p,_,w,I,Y){var ee=Y.match(C1),oe=mR(c,f,p,I,_,ee?null:Y,!1);ee&&Ir(w,Y,oe.index,null,0,null)}function Ir(c,f,p,_,w,I){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=w+parseInt(dt,10);c.push(-1-kt),He|=$n(kt)}else""!==dt&&c.push(dt)}return c.push(p<<2|(_?1:0)),_&&c.push(_,I),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,I,p="",_=0,w=!1;null!==(f=En.exec(c));)w?f[0]==="".concat(bi,"/*").concat(I).concat(bi)&&(_=f.index,w=!1):(p+=c.substring(_,f.index+f[0].length),I=f[1],w=!0);return p+=c.slice(_)}function sa(c,f,p,_,w,I){var Y=0,ee={type:w.type,currentCaseLViewIndex:P_(c,f,1,null),anchorIdx:I,cases:[],create:[],remove:[],update:[]};(function iU(c,f,p){c.push($n(f.mainBinding),2,-1-f.mainBinding,p<<2|2)})(p,w,I),function XV(c,f,p){var _=c.data[f];null===_?c.data[f]=p:_.value=p}(c,I,ee);for(var oe=w.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,_,w.cases[ve],He.join(""),nt)|Y}Y&&function uE(c,f,p){c.push(f,1,p<<2|3)}(p,Y,I)}function nl(c){for(var f=[],p=[],_=1,w=0,I=xy(c=c.replace(hR,function(ve,He,nt){return _="select"===nt?0:1,w=parseInt(He.slice(1),10),""})),Y=0;Y<I.length;){var ee=I[Y++].trim();1===_&&(ee=ee.replace(/\s*(?:=)?(\w+)\s*/,"$1")),ee.length&&f.push(ee);var oe=xy(I[Y++]);f.length>p.length&&p.push(oe)}return{type:_,mainBinding:w,cases:f,values:p}}function xy(c){if(!c)return[];var I,f=0,p=[],_=[],w=/[{}]/g;for(w.lastIndex=0;I=w.exec(c);){var Y=I.index;if("}"==I[0]){if(p.pop(),0==p.length){var ee=c.substring(f,Y);hR.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,_,w,I,Y,ee){var oe=[],ve=[],He=[];f.cases.push(I),f.create.push(oe),f.remove.push(ve),f.update.push(He);var dt=NF(OC()).getInertBodyElement(Y),kt=VM(dt)||dt;return kt?lE(c,f,p,_,oe,ve,He,kt,w,ee,0):0}function lE(c,f,p,_,w,I,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(w,iE,_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)&&(WM[Cn]?Ir(Y,er.value,kt,er.name,0,y_):Ir(Y,er.value,kt,er.name,0,null)):cE(w,kt,er)}nt=lE(c,f,p,_,w,I,Y,dt,kt,ve,He+1)|nt,Dy(I,kt,He)}break;case Node.TEXT_NODE:var ei=dt.textContent||"",Ei=ei.match(C1);Ay(w,null,Ei?"":ei,oe,kt),Dy(I,kt,He),Ei&&(nt=Ir(Y,ei,kt,null,0,null)|nt);break;case Node.COMMENT_NODE:var ms=oY.exec(dt.textContent||"");if(ms){var Fs=ve[parseInt(ms[1],10)];Ay(w,oE,"",oe,kt),sa(c,p,_,oe,Fs,kt),_R(I,kt,He)}}dt=dt.nextSibling}return nt}function Dy(c,f,p){0===p&&c.push(f)}function _R(c,f,p){0===p&&(c.push(~f),c.push(f))}function Ay(c,f,p,_,w){null!==f&&c.push(f),c.push(p,w,function uR(c,f,p){return c|f<<17|p<<1}(0,_,w))}function cE(c,f,p){c.push(f<<1|1,p.name,p.value)}var gR=/\[(\ufffd.+?\ufffd?)\]/,vR=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,yR=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,bR=/{([A-Z0-9_]+)}/g,oU=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,CR=/\/\*/,wR=/\d+\:(\d+)/;function kR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(gR.test(c)){var _={},w=[0];p=p.replace(vR,function(I,Y,ee){var oe=Y||ee,ve=_[oe]||[];if(ve.length||(oe.split("|").forEach(function(Jn){var er=Jn.match(wR),Cn=er?parseInt(er[1],10):0,Or=CR.test(Jn);ve.push([Cn,Or,Jn])}),_[oe]=ve),!ve.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(oe));for(var He=w[w.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?w.pop():He!==Xt&&w.push(Xt),ve.splice(nt,1),Fn})}return Object.keys(f).length&&(p=(p=(p=p.replace(yR,function(I,Y,ee,oe,ve,He){return f.hasOwnProperty(ee)?"".concat(Y).concat(f[ee]).concat(He):I})).replace(bR,function(I,Y){return f.hasOwnProperty(Y)?f[Y]:I})).replace(oU,function(I,Y){if(f.hasOwnProperty(Y)){var ee=f[Y];if(!ee.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(I," with key: ").concat(Y));return ee.shift()}return I})),p}function Oy(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=we(),w=xn(),I=22+c,Y=Ja(_.consts,f),ee=pt();_.firstCreatePass&&rU(_,null===ee?0:ee.index,w,I,Y,p);var oe=_.data[I],ve=ee===w[6]?null:ee,He=Mf(_,ve,w),nt=ee&&8&ee.type?w[ee.index]:null;$8(w,oe.create,He,nt),e_(!0)}function TR(){e_(!1)}function dE(c,f,p){Oy(c,f,p),TR()}function aU(c,f){var p=we();!function Gi(c,f,p){var w=Me().index,I=[];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(nU.test(oe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(oe,'".'));Ir(I,oe,w,ee,Oo(I),null)}}c.data[f]=I}}(p,c+22,Ja(p.consts,f))}function Iy(c){return function $V(c){c&&(G_|=1<<Math.min(Ey,31)),Ey++}(Zs(xn(),Ta(),c)),Iy}function MR(c){!function X8(c,f,p){if(Ey>0){var _=c.data[p];dR(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 kR(c,f)}function SR(c,f,p){var _=we();if(_.firstCreatePass){var w=en(c);w1(p,_.data,_.blueprint,w,!0),w1(f,_.data,_.blueprint,w,!1)}}function w1(c,f,p,_,w){if(c=te(c),Array.isArray(c))for(var I=0;I<c.length;I++)w1(c[I],f,p,_,w);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,w,A_),_n=ER(oe,f,w?nt:nt+kt,dt);-1===_n?(Ds(sh(He,ee),Y,oe),fE(Y,c,f.length),f.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),p.push(Xt),ee.push(Xt)):(p[_n]=Xt,ee[_n]=Xt)}else{var Fn=ER(oe,f,nt+kt,dt),Jn=ER(oe,f,nt,nt+kt),er=Fn>=0&&p[Fn],Cn=Jn>=0&&p[Jn];if(w&&!Cn||!w&&!er){Ds(sh(He,ee),Y,oe);var Or=function xR(c,f,p,_,w){var I=new me(c,p,A_);return I.multi=[],I.index=f,I.componentProviders=0,sU(I,w,_&&!p),I}(w?lU:Ry,p.length,w,_,ve);!w&&Cn&&(p[Jn].providerFactory=Or),fE(Y,c,f.length,0),f.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),p.push(Or),ee.push(Or)}else{fE(Y,c,Fn>-1?Fn:Jn,sU(p[w?Jn:Fn],ve,!w&&_))}!w&&_&&Cn&&p[Jn].componentProviders++}}}function fE(c,f,p,_){var w=Lc(f),I=function qM(c){return!!c.useClass}(f);if(w||I){var oe=(I?te(f.useClass):f).prototype.ngOnDestroy;if(oe){var ve=c.destroyHooks||(c.destroyHooks=[]);if(!w&&f.multi){var He=ve.indexOf(p);-1===He?ve.push(p,[_,oe]):ve[He+1].push(_,oe)}else ve.push(p,oe)}}}function sU(c,f,p){return p&&c.componentProviders++,c.multi.push(f)-1}function ER(c,f,p,_){for(var w=p;w<_;w++)if(f[w]===c)return w;return-1}function Ry(c,f,p,_){return k1(this.multi,[])}function lU(c,f,p,_){var I,w=this.multi;if(this.providerFactory){var Y=this.providerFactory.componentProviders,ee=i_(p,p[1],this.providerFactory.index,_);k1(w,I=ee.slice(0,Y));for(var oe=Y;oe<ee.length;oe++)I.push(ee[oe])}else k1(w,I=[]);return I}function k1(c,f){for(var p=0;p<c.length;p++){var _=c[p];f.push(_())}return f}function DR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(_,w){return SR(_,w?w(c):c,f)}}}var Uh=(0,L.Z)(function c(){(0,v.Z)(this,c)}),pE=(0,L.Z)(function c(){(0,v.Z)(this,c)});function uU(c,f){return new Hh(c,null!=f?f:null)}var Hh=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;(0,v.Z)(this,p),(I=f.call(this))._parent=w,I._bootstrapComponents=[],I.destroyCbs=[],I.componentFactoryResolver=new o1((0,P.Z)(I));var Y=zi(_);return I._bootstrapComponents=Id(Y.bootstrap),I._r3Injector=aS(_,w,[{provide:Uh,useValue:(0,P.Z)(I)},{provide:Bf,useValue:I.componentFactoryResolver}],X(_),new Set(["environment"])),I._r3Injector.resolveInjectorInitializers(),I.instance=I._r3Injector.get(_),I}return(0,L.Z)(p,[{key:"injector",get:function(){return this._r3Injector}},{key:"destroy",value:function(){var w=this._r3Injector;!w.destroyed&&w.destroy(),this.destroyCbs.forEach(function(I){return I()}),this.destroyCbs=null}},{key:"onDestroy",value:function(w){this.destroyCbs.push(w)}}]),p}(Uh),mE=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this)).moduleType=_,w}return(0,L.Z)(p,[{key:"create",value:function(w){return new Hh(this.moduleType,w)}}]),p}(pE),zf=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var Y;(0,v.Z)(this,p),(Y=f.call(this)).componentFactoryResolver=new o1((0,P.Z)(Y)),Y.instance=null;var ee=new Sh([].concat((0,D.Z)(_),[{provide:Uh,useValue:(0,P.Z)(Y)},{provide:Bf,useValue:Y.componentFactoryResolver}]),w||$a(),I,new Set(["environment"]));return Y.injector=ee,ee.resolveInjectorInitializers(),Y}return(0,L.Z)(p,[{key:"destroy",value:function(){this.injector.destroy()}},{key:"onDestroy",value:function(w){this.injector.onDestroy(w)}}]),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,L.Z)(c,[{key:"getOrCreateStandaloneInjector",value:function(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){var _=k_(!1,p.type),w=_.length>0?Ly([_],this._injector,"Standalone[".concat(p.type.name,"]")):null;this.cachedInjectors.set(p.id,w)}return this.cachedInjectors.get(p.id)}},{key:"ngOnDestroy",value:function(){try{var _,p=(0,E.Z)(this.cachedInjectors.values());try{for(p.s();!(_=p.n()).done;){var w=_.value;null!==w&&w.destroy()}}catch(I){p.e(I)}finally{p.f()}}finally{this.cachedInjectors.clear()}}}]),c}();function Y_(c){c.getStandaloneInjector=function(f){return f.get(V_).getOrCreateStandaloneInjector(c)}}function Wi(c,f,p,_){return jt(function(){var w=c;if(null!==f)if(w.hasOwnProperty("decorators")&&void 0!==w.decorators){var I;(I=w.decorators).push.apply(I,(0,D.Z)(f))}else w.decorators=f;null!==p&&(w.ctorParameters=p),null!==_&&(w.hasOwnProperty("propDecorators")&&void 0!==w.propDecorators?w.propDecorators=Object.assign(Object.assign({},w.propDecorators),_):w.propDecorators=_)})}function Ny(c,f,p){var _=$o()+c,w=xn();return w[_]===jr?Bc(w,_,p?f.call(p):f()):by(w,_)}function qn(c,f,p,_){return Zd(xn(),$o(),c,f,p,_)}function PR(c,f,p,_,w){return RR(xn(),$o(),c,f,p,_,w)}function fU(c,f,p,_,w,I){return LR(xn(),$o(),c,f,p,_,w,I)}function pU(c,f,p,_,w,I,Y){return rl(xn(),$o(),c,f,p,_,w,I,Y)}function hU(c,f,p,_,w,I,Y,ee){var oe=$o()+c,ve=xn(),He=Du(ve,oe,p,_,w,I);return Zs(ve,oe+4,Y)||He?Bc(ve,oe+5,ee?f.call(ee,p,_,w,I,Y):f(p,_,w,I,Y)):by(ve,oe+5)}function vE(c,f,p,_,w,I,Y,ee,oe){var ve=$o()+c,He=xn(),nt=Du(He,ve,p,_,w,I);return Ld(He,ve+4,Y,ee)||nt?Bc(He,ve+6,oe?f.call(oe,p,_,w,I,Y,ee):f(p,_,w,I,Y,ee)):by(He,ve+6)}function Q_(c,f,p,_,w,I,Y,ee,oe,ve){var He=$o()+c,nt=xn(),dt=Du(nt,He,p,_,w,I);return s1(nt,He+4,Y,ee,oe)||dt?Bc(nt,He+7,ve?f.call(ve,p,_,w,I,Y,ee,oe):f(p,_,w,I,Y,ee,oe)):by(nt,He+7)}function mU(c,f,p,_,w,I,Y,ee,oe,ve,He){var nt=$o()+c,dt=xn(),kt=Du(dt,nt,p,_,w,I);return Du(dt,nt+4,Y,ee,oe,ve)||kt?Bc(dt,nt+8,He?f.call(He,p,_,w,I,Y,ee,oe,ve):f(p,_,w,I,Y,ee,oe,ve)):by(dt,nt+8)}function Uc(c,f,p,_){return S1(xn(),$o(),c,f,p,_)}function wl(c,f){var p=c[f];return p===jr?void 0:p}function Zd(c,f,p,_,w,I){var Y=f+p;return Zs(c,Y,w)?Bc(c,Y+1,I?_.call(I,w):_(w)):wl(c,Y+1)}function RR(c,f,p,_,w,I,Y){var ee=f+p;return Ld(c,ee,w,I)?Bc(c,ee+2,Y?_.call(Y,w,I):_(w,I)):wl(c,ee+2)}function LR(c,f,p,_,w,I,Y,ee){var oe=f+p;return s1(c,oe,w,I,Y)?Bc(c,oe+3,ee?_.call(ee,w,I,Y):_(w,I,Y)):wl(c,oe+3)}function rl(c,f,p,_,w,I,Y,ee,oe){var ve=f+p;return Du(c,ve,w,I,Y,ee)?Bc(c,ve+4,oe?_.call(oe,w,I,Y,ee):_(w,I,Y,ee)):wl(c,ve+4)}function S1(c,f,p,_,w,I){for(var Y=f+p,ee=!1,oe=0;oe<w.length;oe++)Zs(c,Y++,w[oe])&&(ee=!0);return ee?Bc(c,Y,_.apply(I,w)):wl(c,Y)}function Wf(c,f){var _,p=we(),w=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[w]=_,_.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(w,_.onDestroy)):_=p.data[w];var I=_.factory||(_.factory=go(_.type)),Y=lt(A_);try{var ee=wu(!1),oe=I();return wu(ee),function u8(c,f,p,_){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),f[p]=_}(p,xn(),w,oe),oe}finally{lt(Y)}}function yE(c,f,p){var _=c+22,w=xn(),I=pa(w,_);return By(w,_)?Zd(w,$o(),f,I.transform,p,I):I.transform(p)}function E1(c,f,p,_){var w=c+22,I=xn(),Y=pa(I,w);return By(I,w)?RR(I,$o(),f,Y.transform,p,_,Y):Y.transform(p,_)}function Vf(c,f,p,_,w){var I=c+22,Y=xn(),ee=pa(Y,I);return By(Y,I)?LR(Y,$o(),f,ee.transform,p,_,w,ee):ee.transform(p,_,w)}function sY(c,f,p,_,w,I){var Y=c+22,ee=xn(),oe=pa(ee,Y);return By(ee,Y)?rl(ee,$o(),f,oe.transform,p,_,w,I,oe):oe.transform(p,_,w,I)}function jh(c,f,p){var _=c+22,w=xn(),I=pa(w,_);return By(w,_)?S1(w,$o(),f,I.transform,p,I):I.transform.apply(I,p)}function By(c,f){return c[1].data[f].pure}V_.\u0275prov=Be({token:V_,providedIn:"environment",factory:function(){return new V_(Ea(Ps))}});var _U=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){var _,w=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,v.Z)(this,p),(_=f.call(this)).__isAsync=w,_}return(0,L.Z)(p,[{key:"emit",value:function(w){(0,G.Z)((0,W.Z)(p.prototype),"next",this).call(this,w)}},{key:"subscribe",value:function(w,I,Y){var ee,oe,ve,He=w,nt=I||function(){return null},dt=Y;if(w&&"object"==typeof w){var kt=w;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 w instanceof S.w&&w.add(Xt),Xt}}]),p}(y.xQ);function dc(c){return function(f){setTimeout(c,void 0,f)}}var Hc=_U;function gU(){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]=gU)}return(0,L.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 w=this;w.dirty=!1;var I=Gl(p);(this._changesDetected=!function dF(c,f,p){if(c.length!==f.length)return!1;for(var _=0;_<c.length;_++){var w=c[_],I=f[_];if(p&&(w=p(w),I=p(I)),I!==w)return!1}return!0}(w._results,I,_))&&(w._results=I,w.length=I.length,w.last=I[this.length-1],w.first=I[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,L.Z)(function c(){(0,v.Z)(this,c)});Jl.__NG_ELEMENT_ID__=function zh(){return Gc(Me(),xn())};var Gh=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._declarationLView=_,Y._declarationTContainer=w,Y.elementRef=I,Y}return(0,L.Z)(p,[{key:"createEmbeddedView",value:function(w,I){var Y=this._declarationTContainer.tViews,ee=JC(this._declarationLView,Y,w,16,null,Y.declTNode,null,null,null,null,I||null),oe=this._declarationLView[this._declarationTContainer.index];ee[17]=oe;var ve=this._declarationLView[19];return null!==ve&&(ee[19]=ve.createEmbeddedView(Y)),f6(Y,ee,w),new Ph(ee)}}]),p}(Jl);function Gc(c,f){return 4&c.type?new Gh(f,c,S_(c,f)):null}var Iu=(0,L.Z)(function c(){(0,v.Z)(this,c)});Iu.__NG_ELEMENT_ID__=function ZR(){return CU(Me(),xn())};var yU=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var Y;return(0,v.Z)(this,p),(Y=f.call(this))._lContainer=_,Y._hostTNode=w,Y._hostLView=I,Y}return(0,L.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 w=yf(this._hostTNode,this._hostLView);if(fs(w)){var I=Cu(w,this._hostLView),Y=Pi(w),ee=I[1].data[Y+8];return new qr(ee,I)}return new qr(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(w){var I=bU(this._lContainer);return null!==I&&I[w]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(w,I,Y){var ee,oe;"number"==typeof Y?ee=Y:null!=Y&&(ee=Y.index,oe=Y.injector);var ve=w.createEmbeddedView(I||{},oe);return this.insert(ve,ee),ve}},{key:"createComponent",value:function(w,I,Y,ee,oe){var He,ve=w&&!qt(w);if(ve)He=I;else{var nt=I||{};He=nt.index,Y=nt.injector,ee=nt.projectableNodes,oe=nt.environmentInjector||nt.ngModuleRef}var dt=ve?w:new R_(Vn(w)),kt=Y||this.parentInjector;if(!oe&&null==dt.ngModule){var _n=(ve?kt:this.parentInjector).get(Ps,null);_n&&(oe=_n)}var Fn=dt.create(kt,ee,void 0,oe);return this.insert(Fn.hostView,He),Fn}},{key:"insert",value:function(w,I){var Y=w._lView,ee=Y[1];if(function Xm(c){return Ai(c[3])}(Y)){var oe=this.indexOf(w);if(-1!==oe)this.detach(oe);else{var ve=Y[3],He=new yU(ve,ve[6],ve[3]);He.detach(He.indexOf(w))}}var nt=this._adjustIndex(I),dt=this._lContainer;e3(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,_,w,I){_[0]=w,_[6]=f,Yl(c,_,p,1,w,I)}(ee,dt[6],Xt,Y,_n,kt),w.attachToViewContainerRef(),AP(NR(dt),nt,w),w}},{key:"move",value:function(w,I){return this.insert(w,I)}},{key:"indexOf",value:function(w){var I=bU(this._lContainer);return null!==I?I.indexOf(w):-1}},{key:"remove",value:function(w){var I=this._adjustIndex(w,-1),Y=RM(this._lContainer,I);Y&&(dh(NR(this._lContainer),I),LM(Y[1],Y))}},{key:"detach",value:function(w){var I=this._adjustIndex(w,-1),Y=RM(this._lContainer,I);return Y&&null!=dh(NR(this._lContainer),I)?new Ph(Y):null}},{key:"_adjustIndex",value:function(w){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==w?this.length+I:w}}]),p}(Iu);function bU(c){return c[8]}function NR(c){return c[8]||(c[8]=[])}function CU(c,f){var p,_=f[c.index];if(Ai(_))p=_;else{var w;if(8&c.type)w=po(_);else{var I=f[11];w=I.createComment("");var Y=xo(c,f);Sf(I,Ef(I,Y),w,function o3(c,f){return c.nextSibling(f)}(I,Y),!1)}f[c.index]=p=CS(_,f,w,c),cc(f,p)}return new yU(p,c,f)}var cY=function(){function c(f){(0,v.Z)(this,c),this.queryList=f,this.matches=null}return(0,L.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),bE=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,L.Z)(c,[{key:"createEmbeddedView",value:function(p){var _=p.queries;if(null!==_){for(var w=null!==p.contentQueries?p.contentQueries[0]:_.length,I=[],Y=0;Y<w;Y++){var ee=_.getByIndex(Y),oe=this.queries[ee.indexInDeclarationView];I.push(oe.clone())}return new c(I)}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,L.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,L.Z)(c,[{key:"elementStart",value:function(p,_){for(var w=0;w<this.queries.length;w++)this.queries[w].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,w=0;w<this.length;w++){var I=null!==_?_.length:0,Y=this.getByIndex(w).embeddedTView(p,I);Y&&(Y.indexInDeclarationView=w,null!==_?_.push(Y):_=[Y])}return null!==_?new c(_):null}},{key:"template",value:function(p,_){for(var w=0;w<this.queries.length;w++)this.queries[w].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,L.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,w=p.parent;null!==w&&8&w.type&&w.index!==_;)w=w.parent;return _===(null!==w?w.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,_){var w=this.metadata.predicate;if(Array.isArray(w))for(var I=0;I<w.length;I++){var Y=w[I];this.matchTNodeWithReadOption(p,_,qf(_,Y)),this.matchTNodeWithReadOption(p,_,Sa(_,p,Y,!1,!1))}else w===Jl?4&_.type&&this.matchTNodeWithReadOption(p,_,-1):this.matchTNodeWithReadOption(p,_,Sa(_,p,w,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,_,w){if(null!==w){var I=this.metadata.read;if(null!==I)if(I===E_||I===Iu||I===Jl&&4&_.type)this.addMatch(_.index,-2);else{var Y=Sa(_,p,I,!1,!1);null!==Y&&this.addMatch(_.index,Y)}else this.addMatch(_.index,w)}}},{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 dY(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 fY(c,f,p){if(p===E_)return S_(f,c);if(p===Jl)return Gc(f,c);if(p===Iu)return CU(f,c)}(c,f,_):i_(c,c[1],p,f)}function zc(c,f,p,_){var w=f[19].queries[_];if(null===w.matches){for(var I=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=I[ve];ee.push(dY(f,He,Y[oe+1],p.metadata.read))}}w.matches=ee}return w.matches}function tg(c,f,p,_){var w=c.queries.getByIndex(p),I=w.matches;if(null!==I)for(var Y=zc(c,f,w,p),ee=0;ee<I.length;ee+=2){var oe=I[ee];if(oe>0)_.push(Y[ee/2]);else{for(var ve=I[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(),_=Es();xs(_+1);var w=$r(p,_);if(c.dirty&&function bd(c){return 4==(4&c[2])}(f)===(2==(2&w.metadata.flags))){if(null===w.matches)c.reset([]);else{var I=w.crossesNgTemplate?tg(p,f,_,[]):zc(p,f,w,_);c.reset(I,w3),c.notifyOnChanges()}return!0}return!1}function wU(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 w=we();if(w.firstCreatePass){var I=Me();Tr(w,new eg(f,p,_),I.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)}(w,c),2==(2&p)&&(w.staticContentQueries=!0)}Gt(w,xn(),p)}function fc(){return function J(c,f){return c[19].queries[f].queryList}(xn(),Es())}function Gt(c,f,p){var _=new jc(4==(4&p));yS(c,f,_,_.destroy),null===f[19]&&(f[19]=new bE),f[19].queries.push(new cY(_))}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":P6,"\u0275\u0275attributeInterpolate2":DS,"\u0275\u0275attributeInterpolate3":u1,"\u0275\u0275attributeInterpolate4":AS,"\u0275\u0275attributeInterpolate5":OS,"\u0275\u0275attributeInterpolate6":Nh,"\u0275\u0275attributeInterpolate7":R6,"\u0275\u0275attributeInterpolate8":s8,"\u0275\u0275attributeInterpolateV":L6,"\u0275\u0275defineComponent":Un,"\u0275\u0275defineDirective":Hn,"\u0275\u0275defineInjectable":Be,"\u0275\u0275defineInjector":t,"\u0275\u0275defineNgModule":gt,"\u0275\u0275definePipe":Wn,"\u0275\u0275directiveInject":A_,"\u0275\u0275getInheritedFactory":MP,"\u0275\u0275inject":Ea,"\u0275\u0275injectAttribute":As,"\u0275\u0275invalidFactory":q3,"\u0275\u0275invalidFactoryDep":vM,"\u0275\u0275templateRefExtractor":x1,"\u0275\u0275resetView":le,"\u0275\u0275NgOnChangesFeature":ia,"\u0275\u0275ProvidersFeature":DR,"\u0275\u0275CopyDefinitionFeature":r8,"\u0275\u0275InheritDefinitionFeature":SS,"\u0275\u0275StandaloneFeature":Y_,"\u0275\u0275nextContext":US,"\u0275\u0275namespaceHTML":si,"\u0275\u0275namespaceMathML":Rr,"\u0275\u0275namespaceSVG":wn,"\u0275\u0275enableBindings":bu,"\u0275\u0275disableBindings":Hl,"\u0275\u0275elementStart":d1,"\u0275\u0275elementEnd":f1,"\u0275\u0275element":PS,"\u0275\u0275elementContainerStart":Bh,"\u0275\u0275elementContainerEnd":Cy,"\u0275\u0275elementContainer":LS,"\u0275\u0275pureFunction0":Ny,"\u0275\u0275pureFunction1":qn,"\u0275\u0275pureFunction2":PR,"\u0275\u0275pureFunction3":fU,"\u0275\u0275pureFunction4":pU,"\u0275\u0275pureFunction5":hU,"\u0275\u0275pureFunction6":vE,"\u0275\u0275pureFunction7":Q_,"\u0275\u0275pureFunction8":mU,"\u0275\u0275pureFunctionV":Uc,"\u0275\u0275getCurrentView":B6,"\u0275\u0275restoreView":ke,"\u0275\u0275listener":NS,"\u0275\u0275projection":G6,"\u0275\u0275syntheticHostProperty":oR,"\u0275\u0275syntheticHostListener":BS,"\u0275\u0275pipeBind1":yE,"\u0275\u0275pipeBind2":E1,"\u0275\u0275pipeBind3":Vf,"\u0275\u0275pipeBind4":sY,"\u0275\u0275pipeBindV":jh,"\u0275\u0275projectionDef":HS,"\u0275\u0275hostProperty":iR,"\u0275\u0275property":U_,"\u0275\u0275propertyInterpolate":jS,"\u0275\u0275propertyInterpolate1":h1,"\u0275\u0275propertyInterpolate2":GS,"\u0275\u0275propertyInterpolate3":zS,"\u0275\u0275propertyInterpolate4":m1,"\u0275\u0275propertyInterpolate5":WS,"\u0275\u0275propertyInterpolate6":VS,"\u0275\u0275propertyInterpolate7":z6,"\u0275\u0275propertyInterpolate8":W6,"\u0275\u0275propertyInterpolateV":YS,"\u0275\u0275pipe":Wf,"\u0275\u0275queryRefresh":Wh,"\u0275\u0275viewQuery":wU,"\u0275\u0275loadQuery":fc,"\u0275\u0275contentQuery":Qf,"\u0275\u0275reference":IS,"\u0275\u0275classMap":XS,"\u0275\u0275classMapInterpolate1":O8,"\u0275\u0275classMapInterpolate2":I8,"\u0275\u0275classMapInterpolate3":P8,"\u0275\u0275classMapInterpolate4":xV,"\u0275\u0275classMapInterpolate5":DV,"\u0275\u0275classMapInterpolate6":AV,"\u0275\u0275classMapInterpolate7":OV,"\u0275\u0275classMapInterpolate8":IV,"\u0275\u0275classMapInterpolateV":PV,"\u0275\u0275styleMap":Ns,"\u0275\u0275styleMapInterpolate1":RV,"\u0275\u0275styleMapInterpolate2":LV,"\u0275\u0275styleMapInterpolate3":ZV,"\u0275\u0275styleMapInterpolate4":NV,"\u0275\u0275styleMapInterpolate5":BV,"\u0275\u0275styleMapInterpolate6":FV,"\u0275\u0275styleMapInterpolate7":UV,"\u0275\u0275styleMapInterpolate8":HV,"\u0275\u0275styleMapInterpolateV":jV,"\u0275\u0275styleProp":QS,"\u0275\u0275stylePropInterpolate1":rR,"\u0275\u0275stylePropInterpolate2":R8,"\u0275\u0275stylePropInterpolate3":L8,"\u0275\u0275stylePropInterpolate4":Z8,"\u0275\u0275stylePropInterpolate5":N8,"\u0275\u0275stylePropInterpolate6":B8,"\u0275\u0275stylePropInterpolate7":F8,"\u0275\u0275stylePropInterpolate8":U8,"\u0275\u0275stylePropInterpolateV":H8,"\u0275\u0275classProp":g1,"\u0275\u0275advance":P3,"\u0275\u0275template":N6,"\u0275\u0275text":$6,"\u0275\u0275textInterpolate":eE,"\u0275\u0275textInterpolate1":tE,"\u0275\u0275textInterpolate2":eR,"\u0275\u0275textInterpolate3":tR,"\u0275\u0275textInterpolate4":nR,"\u0275\u0275textInterpolate5":nE,"\u0275\u0275textInterpolate6":rE,"\u0275\u0275textInterpolate7":x8,"\u0275\u0275textInterpolate8":D8,"\u0275\u0275textInterpolateV":A8,"\u0275\u0275i18n":dE,"\u0275\u0275i18nAttributes":aU,"\u0275\u0275i18nExp":Iy,"\u0275\u0275i18nStart":Oy,"\u0275\u0275i18nEnd":TR,"\u0275\u0275i18nApply":MR,"\u0275\u0275i18nPostprocess":Py,"\u0275\u0275resolveWindow":Dh,"\u0275\u0275resolveDocument":ly,"\u0275\u0275resolveBody":E3,"\u0275\u0275setComponentScope":Kt,"\u0275\u0275setNgModuleScope":wt,"\u0275\u0275registerNgModuleType":wF,"\u0275\u0275sanitizeHtml":YM,"\u0275\u0275sanitizeStyle":g3,"\u0275\u0275sanitizeResourceUrl":v3,"\u0275\u0275sanitizeScript":zF,"\u0275\u0275sanitizeUrl":Mh,"\u0275\u0275sanitizeUrlOrResourceUrl":VF,"\u0275\u0275trustConstantHtml":y3,"\u0275\u0275trustConstantResourceUrl":WF,"\u0275\u0275validateIframeAttribute":ZF,forwardRef:Q,resolveForwardRef:te},ng=null;function BR(c){return void 0!==c.ngModule}function FR(c){return!!zi(c)}var Fy=[];function kU(c,f){Fy.push({moduleType:c,ngModule:f})}var CE=!1;function UR(c){return Array.isArray(c)?c.every(UR):!!te(c)}function HR(c,f){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=Gl(f.declarations||tt),w=null;Object.defineProperty(c,Re,{configurable:!0,get:function(){if(null===w){var oe=Za();(w=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(kE),exports:Gl(f.exports||tt).map(te).map(kE),schemas:f.schemas?Gl(f.schemas):null,id:f.id||null})).schemas||(w.schemas=[])}return w}});var I=null;Object.defineProperty(c,Je,{get:function(){if(null===I){var oe=Za();I=oe.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:jv(c),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return I},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(w){(w=te(w)).hasOwnProperty(Et)?tp(Vn(w),_):!w.hasOwnProperty(We)&&!w.hasOwnProperty(Ye)&&(w.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(FR(c))return function _Y(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 w=pc(_);w.exported.directives.forEach(function(I){return p.compilation.directives.add(I)}),w.exported.pipes.forEach(function(I){return p.compilation.pipes.add(I)})}),Id(f.declarations).forEach(function(_){Pr(_)?p.compilation.pipes.add(_):p.compilation.directives.add(_)}),Id(f.exports).forEach(function(_){var w=_;if(FR(w)){var I=pc(w);I.exported.directives.forEach(function(Y){p.compilation.directives.add(Y),p.exported.directives.add(Y)}),I.exported.pipes.forEach(function(Y){p.compilation.pipes.add(Y),p.exported.pipes.add(Y)})}else Pr(w)?p.exported.pipes.add(w):p.exported.directives.add(w)}),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 kE(c){return BR(c)?c.ngModule:c}var TE=0;function SU(c,f){var p=null;(function Tf(c,f){c_(f)&&(mh.set(c,f),yC.add(c))})(c,f),WR(c,f),Object.defineProperty(c,Et,{get:function(){if(null===p){var w=Za();if(c_(f)){var I=["Component '".concat(c.name,"' is not resolved:")];throw f.templateUrl&&I.push(" - templateUrl: ".concat(f.templateUrl)),f.styleUrls&&f.styleUrls.length&&I.push(" - styleUrls: ".concat(JSON.stringify(f.styleUrls))),I.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(I.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({},OU(c,f)),{typeSourceSpan:w.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});TE++;try{if(He.usesInheritance&&VR(c),p=w.compileComponent(ts,ve,He),f.standalone){var nt=Gl(f.imports||tt),dt=function xU(c,f){var p=null,_=null,w=function(){if(null===p){p=[Vn(c)];var ve,ee=new Set,oe=(0,E.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,E.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},I=function(){if(null===_){_=[];var ve,ee=new Set,oe=(0,E.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,E.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:w,pipeDefs:I}}(c,nt),kt=dt.directiveDefs,Xt=dt.pipeDefs;p.directiveDefs=kt,p.pipeDefs=Xt,p.dependencies=function(){return nt.map(te)}}}finally{TE--}if(0===TE&&function TU(){if(!CE){CE=!0;try{for(var c=Fy.length-1;c>=0;c--){var f=Fy[c],p=f.moduleType,_=f.ngModule;_.declarations&&_.declarations.every(UR)&&(Fy.splice(c,1),ig(p,_))}}finally{CE=!1}}}(),function DU(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 GR(c,f){var p=null;WR(c,f||{}),Object.defineProperty(c,We,{get:function(){if(null===p){var w=zR(c,f||{}),I=Za();p=I.compileDirective(ts,w.sourceMapUrl,w.metadata)}return p},configurable:!1})}function zR(c,f){var p=c&&c.name,_="ng:///".concat(p,"/\u0275dir.js"),w=Za(),I=OU(c,f);return I.typeSourceSpan=w.createParseSourceSpan("Directive",p,_),I.usesInheritance&&VR(c),{metadata:I,sourceMapUrl:_}}function WR(c,f){var p=null;Object.defineProperty(c,Je,{get:function(){if(null===p){var w=zR(c,f),I=Za();p=I.compileFactory(ts,"ng:///".concat(c.name,"/\u0275fac.js"),{name:w.metadata.name,type:w.metadata.type,typeArgumentCount:0,deps:jv(c),target:I.FactoryTarget.Directive})}return p},configurable:!1})}function AU(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function OU(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:YR(c,_,KR),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!AU(c),exportAs:RU(f.exportAs),providers:f.providers||null,viewQueries:YR(c,_,qR),isStandalone:!!f.standalone}}function VR(c){for(var f=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==f;)!ir(p)&&!Vn(p)&&yY(p)&&GR(p,null),p=Object.getPrototypeOf(p)}function IU(c){return"string"==typeof c?QR(c):te(c)}function YR(c,f,p){var _=[],w=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(JR))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function PU(c,f){return{propertyName:c,predicate:IU(f.selector),descendants:f.descendants,first:f.first,read:f.read?f.read:null,static:!!f.static,emitDistinctChangesOnly:!!f.emitDistinctChangesOnly}}(ee,ve))}})}};for(var I in f)w(I);return _}function RU(c){return void 0===c?null:QR(c)}function KR(c){var f=c.ngMetadataName;return"ContentChild"===f||"ContentChildren"===f}function qR(c){var f=c.ngMetadataName;return"ViewChild"===f||"ViewChildren"===f}function JR(c){return"Input"===c.ngMetadataName}function QR(c){return c.split(",").map(function(f){return f.trim()})}var vY=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function yY(c){var f=Hv();if(vY.some(function(oe){return f.hasLifecycleHook(c,oe)}))return!0;var p=f.propMetadata(c);for(var _ in p)for(var w=p[_],I=0;I<w.length;I++){var Y=w[I],ee=Y.ngMetadataName;if(JR(Y)||KR(Y)||qR(Y)||"Output"===ee||"HostBinding"===ee||"HostListener"===ee)return!0}return!1}function XR(c,f){return{type:c,name:c.name,pipeName:f.name,pure:void 0===f.pure||f.pure,isStandalone:!!f.standalone}}var $R=Cf("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,f){return GR(c,f)}),ZU=Cf("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:sn.Default},c)},$R,void 0,function(c,f){return SU(c,f)}),NU=Cf("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,f){return function LU(c,f){var p=null,_=null;Object.defineProperty(c,Je,{get:function(){if(null===_){var I=XR(c,f),Y=Za(I.type);_=Y.compileFactory(ts,"ng:///".concat(I.name,"/\u0275fac.js"),{name:I.name,type:I.type,typeArgumentCount:0,deps:jv(c),target:Y.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Ye,{get:function(){if(null===p){var I=XR(c,f),Y=Za(I.type);p=Y.compilePipe(ts,"ng:///".concat(I.name,"/\u0275pipe.js"),I)}return p},configurable:!1})}(c,f)}),BU=kd("Input",function(c){return{bindingPropertyName:c}}),FU=kd("Output",function(c){return{bindingPropertyName:c}}),UU=kd("HostBinding",function(c){return{hostPropertyName:c}}),HU=kd("HostListener",function(c,f){return{eventName:c,args:f}}),jU=Cf("NgModule",function(c){return c},void 0,void 0,function(c,f){return function MU(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};HR(c,f),void 0!==f.id&&wF(c,f.id),kU(c,f)}(c,f)});function O1(){}var eL=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(_,w){p.resolve=_,p.reject=w})}return(0,L.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var _=[],w=function(){p.done=!0,p.resolve()};if(this.appInits)for(var I=function(){var oe=p.appInits[Y]();if(p1(oe))_.push(oe);else if(ZS(oe)){var ve=new Promise(function(He,nt){oe.subscribe({complete:He,error:nt})});_.push(ve)}},Y=0;Y<this.appInits.length;Y++)I();Promise.all(_).then(function(){w()}).catch(function(ee){p.reject(ee)}),0===_.length&&w(),this.initialized=!0}}}]),c}();Nd.\u0275fac=function(f){return new(f||Nd)(Ea(eL,8))},Nd.\u0275prov=Be({token:Nd,factory:Nd.\u0275fac,providedIn:"root"});var tL=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"),ME=new io("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),L1=new io("appBootstrapListener"),nL=(new io("Application Packages Root URL"),new io("AnimationModuleType")),np=function(){function c(){(0,v.Z)(this,c)}return(0,L.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 LP(Uy,ye.Optional|ye.SkipSelf)||function rL(){return"undefined"!=typeof $localize&&$localize.locale||Ty}()}}),SE=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 iL=(0,L.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,L.Z)(c,[{key:"compileModuleSync",value:function(p){return new mE(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var _=this.compileModuleSync(p),I=Id(zi(p).declarations).reduce(function(Y,ee){var oe=Vn(ee);return oe&&Y.push(new R_(oe)),Y},[]);return new iL(_,I)}},{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 zU=Promise.resolve(0);function Z1(c){"undefined"==typeof Zone?zU.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,w=f.shouldCoalesceEventChangeDetection,I=void 0!==w&&w,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&&I,oe.shouldCoalesceRunChangeDetection=ee,oe.lastRequestAnimationFrameId=-1,oe.nativeRequestAnimationFrame=function WU(){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 aL(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(_,w,I,Y,ee,oe){try{return Vc(c),_.invokeTask(I,Y,ee,oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===Y.type||c.shouldCoalesceRunChangeDetection)&&f(),B1(c)}},onInvoke:function(_,w,I,Y,ee,oe,ve){try{return Vc(c),_.invoke(I,Y,ee,oe,ve)}finally{c.shouldCoalesceRunChangeDetection&&f(),B1(c)}},onHasTask:function(_,w,I,Y){_.hasTask(I,Y),w===I&&("microTask"==Y.change?(c._hasPendingMicrotasks=Y.microTask,Hy(c),sg(c)):"macroTask"==Y.change&&(c.hasPendingMacrotasks=Y.macroTask))},onHandleError:function(_,w,I,Y){return _.handleError(I,Y),c.runOutsideAngular(function(){return c.onError.emit(Y)}),!1}})}(oe)}return(0,L.Z)(c,[{key:"run",value:function(p,_,w){return this._inner.run(p,_,w)}},{key:"runTask",value:function(p,_,w,I){var Y=this._inner,ee=Y.scheduleEventTask("NgZoneEvent: "+I,p,xE,O1,O1);try{return Y.runTask(ee,_,w)}finally{Y.cancelTask(ee)}}},{key:"runGuarded",value:function(p,_,w){return this._inner.runGuarded(p,_,w)}},{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}(),xE={};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,L.Z)(c,[{key:"run",value:function(p,_,w){return p.apply(_,w)}},{key:"runGuarded",value:function(p,_,w){return p.apply(_,w)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,_,w,I){return p.apply(_,w)}}]),c}(),sL=new io(""),lg=new io(""),Yh=function(){function c(f,p,_){var w=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,Lu||(function TY(c){Lu=c}(_),_.addToWindow(p)),this._watchAngularEvents(),f.run(function(){w.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,L.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 w=p._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(p._didWork)}p._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(w){return!w.updateCb||!w.updateCb(_)||(clearTimeout(w.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,_,w){var I=this,Y=-1;_&&_>0&&(Y=setTimeout(function(){I._callbacks=I._callbacks.filter(function(ee){return ee.timeoutId!==Y}),p(I._didWork,I.getPendingTasks())},_)),this._callbacks.push({doneCb:p,timeoutId:Y,updateCb:w})}},{key:"whenStable",value:function(p,_,w){if(w&&!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,_,w),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,_,w){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 Lu,Kh=function(){function c(){(0,v.Z)(this,c),this._applications=new Map}return(0,L.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 w,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!==(w=null==Lu?void 0:Lu.findTestabilityInTree(this,p,_))&&void 0!==w?w:null}}]),c}();Kh.\u0275fac=function(f){return new(f||Kh)},Kh.\u0275prov=Be({token:Kh,factory:Kh.\u0275fac,providedIn:"platform"});var hc=null,DE=new io("AllowMultipleToken"),Zu=new io("PlatformDestroyListeners"),il=!1;function jy(c,f,p){var _=new mE(p);return Promise.resolve(_)}var lL=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.name=f,this.token=p});function Gy(c){if(hc&&!hc.get(DE,!1))throw new fe(400,!1);hc=c;var f=c.get(Yc);return uL(c),f}function uL(c){var f=c.get(R1,null);f&&f.forEach(function(p){return p()})}function dL(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(f),w=new io(_);return function(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Y=H1();if(!Y||Y.injector.get(DE,!1)){var ee=[].concat((0,D.Z)(p),(0,D.Z)(I),[{provide:w,useValue:!0}]);c?c(ee):Gy(fL(ee,_))}return VU(w)}}function VU(c){var f=H1();if(!f)throw new fe(401,!1);return f}function fL(){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:Zu,useValue:new Set([function(){return hc=null}])}].concat((0,D.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,L.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,_){var w=this,I=YU(null==_?void 0:_.ngZone,zy(_)),Y=[{provide:Wc,useValue:I}];return I.run(function(){var ee=bl.create({providers:Y,parent:w.injector,name:p.moduleType.name}),oe=p.create(ee),ve=oe.injector.get(xh,null);if(!ve)throw new fe(402,!1);return I.runOutsideAngular(function(){var He=I.onError.subscribe({next:function(dt){ve.handleError(dt)}});oe.onDestroy(function(){OE(w._modules,oe),He.unsubscribe()})}),pL(ve,I,function(){var He=oe.injector.get(Nd);return He.runInitializers(),He.donePromise.then(function(){return V8(oe.injector.get(Uy,Ty)||Ty),w._moduleDoBootstrap(oe),oe})})})}},{key:"bootstrapModule",value:function(p){var _=this,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],I=hL({},w);return jy(this.injector,0,p).then(function(Y){return _.bootstrapModuleFactory(Y,I)})}},{key:"_moduleDoBootstrap",value:function(p){var _=p.injector.get(ip);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(w){return _.bootstrap(w)});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(Zu,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 YU(c,f){return"noop"===c?new F1:("zone.js"===c?void 0:c)||new Wc(f)}function pL(c,f,p){try{var _=p();return p1(_)?_.catch(function(w){throw f.runOutsideAngular(function(){return c.handleError(w)}),w}):_}catch(w){throw f.runOutsideAngular(function(){return c.handleError(w)}),w}}function hL(c,f){return c=Array.isArray(f)?f.reduce(hL,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 w=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(){w._zone.run(function(){w.tick()})}});var I=new T.y(function(ee){w._stable=w._zone.isStable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks,w._zone.runOutsideAngular(function(){ee.next(w._stable),ee.complete()})}),Y=new T.y(function(ee){var oe;w._zone.runOutsideAngular(function(){oe=w._zone.onStable.subscribe(function(){Wc.assertNotInAngularZone(),Z1(function(){!w._stable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks&&(w._stable=!0,ee.next(!0))})})});var ve=w._zone.onUnstable.subscribe(function(){Wc.assertInAngularZone(),w._stable&&(w._stable=!1,w._zone.runOutsideAngular(function(){ee.next(!1)}))});return function(){oe.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,M.T)(I,Y.pipe((0,x.B)()))}return(0,L.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"injector",get:function(){return this._injector}},{key:"bootstrap",value:function(p,_){var ve,w=this,I=p instanceof BC;if(!this._injector.get(Nd).done){!I&&yi(p);throw new fe(405,il)}I?ve=p:ve=this._injector.get(Bf).resolveComponentFactory(p);this.componentTypes.push(ve.componentType);var nt=function AE(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(sL,null);return null==_n||_n.registerApplication(Xt),kt.onDestroy(function(){w.detachView(kt.hostView),OE(w.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 w,_=(0,E.Z)(this._views);try{for(_.s();!(w=_.n()).done;){w.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;OE(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(w){return w(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 OE(_._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 OE(c,f){var p=c.indexOf(f);p>-1&&c.splice(p,1)}ip.\u0275fac=function(f){return new(f||ip)(Ea(Wc),Ea(Ps),Ea(xh))},ip.\u0275prov=Be({token:ip,factory:ip.\u0275fac,providedIn:"root"});var _L=!1;function j1(){if(_L)throw new Error("Cannot enable prod mode after platform setup.");!1}var G1=(0,L.Z)(function c(){(0,v.Z)(this,c)});G1.__NG_ELEMENT_ID__=function vL(c){return function QU(c,f,p){if(Ki(c)&&!p){var _=jo(c.index,f);return new Ph(_,_)}if(47&c.type){var w=f[16];return new Ph(w,f)}return null}(Me(),xn(),16==(16&c))};var XU=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p)}(G1),$U=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p)}(XU);var r7=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(p){return yy(p)}},{key:"create",value:function(p){return new IY(p)}}]),c}(),NE=function(f,p){return p},IY=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||NE}return(0,L.Z)(c,[{key:"forEachItem",value:function(p){var _;for(_=this._itHead;null!==_;_=_._next)p(_)}},{key:"forEachOperation",value:function(p){for(var _=this._itHead,w=this._removalsHead,I=0,Y=null;_||w;){var ee=!w||_&&_.currentIndex<z1(w,I,Y)?_:w,oe=z1(ee,I,Y),ve=ee.currentIndex;if(ee===w)I--,w=w._nextRemoved;else if(_=_._next,null==ee.previousIndex)I++;else{Y||(Y=[]);var He=oe-I,nt=ve-I;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,w=this._itHead,I=!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!==w&&Object.is(w.trackById,oe)?(I&&(w=this._verifyReinsertion(w,ee,oe,ve)),Object.is(w.item,ee)||this._addIdentityChange(w,ee)):(w=this._mismatch(w,ee,oe,ve),I=!0),w=w._next}else Y=0,function o8(c,f){if(Array.isArray(c))for(var p=0;p<c.length;p++)f(c[p]);else for(var w,_=c[Rh()]();!(w=_.next()).done;)f(w.value)}(p,function(He){oe=_._trackByFn(Y,He),null!==w&&Object.is(w.trackById,oe)?(I&&(w=_._verifyReinsertion(w,He,oe,Y)),Object.is(w.item,He)||_._addIdentityChange(w,He)):(w=_._mismatch(w,He,oe,Y),I=!0),w=w._next,Y++}),this.length=Y;return this._truncate(w),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,_,w,I){var Y;return null===p?Y=this._itTail:(Y=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._reinsertAfter(p,Y,I)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(w,I))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._moveAfter(p,Y,I)):p=this._addAfter(new i7(_,w),Y,I),p}},{key:"_verifyReinsertion",value:function(p,_,w,I){var Y=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null);return null!==Y?p=this._reinsertAfter(Y,p._prev,I):p.currentIndex!=I&&(p.currentIndex=I,this._addToMoves(p,I)),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,_,w){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var I=p._prevRemoved,Y=p._nextRemoved;return null===I?this._removalsHead=Y:I._nextRemoved=Y,null===Y?this._removalsTail=I:Y._prevRemoved=I,this._insertAfter(p,_,w),this._addToMoves(p,w),p}},{key:"_moveAfter",value:function(p,_,w){return this._unlink(p),this._insertAfter(p,_,w),this._addToMoves(p,w),p}},{key:"_addAfter",value:function(p,_,w){return this._insertAfter(p,_,w),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,_,w){var I=null===_?this._itHead:_._next;return p._next=I,p._prev=_,null===I?this._itTail=p:I._prev=p,null===_?this._itHead=p:_._next=p,null===this._linkedRecords&&(this._linkedRecords=new BE),this._linkedRecords.put(p),p.currentIndex=w,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,w=p._next;return null===_?this._itHead=w:_._next=w,null===w?this._itTail=_:w._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 BE),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}(),i7=(0,L.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}),o7=function(){function c(){(0,v.Z)(this,c),this._head=null,this._tail=null}return(0,L.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 w;for(w=this._head;null!==w;w=w._nextDup)if((null===_||_<=w.currentIndex)&&Object.is(w.trackById,p))return w;return null}},{key:"remove",value:function(p){var _=p._prevDup,w=p._nextDup;return null===_?this._head=w:_._nextDup=w,null===w?this._tail=_:w._prevDup=_,null===this._head}}]),c}(),BE=function(){function c(){(0,v.Z)(this,c),this.map=new Map}return(0,L.Z)(c,[{key:"put",value:function(p){var _=p.trackById,w=this.map.get(_);w||(w=new o7,this.map.set(_,w)),w.add(p)}},{key:"get",value:function(p,_){var w=p,I=this.map.get(w);return I?I.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 w=0;return p&&_<p.length&&(w=p[_]),_+f+w}var FE=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||xS(p)}},{key:"create",value:function(){return new PY}}]),c}(),PY=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,L.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||xS(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 w=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(Y,ee){if(w&&w.key===ee)_._maybeAddToChanges(w,Y),_._appendAfter=w,w=w._next;else{var oe=_._getOrCreateRecordForKey(ee,Y);w=_._insertBeforeOrAppend(w,oe)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(var I=w;null!==I;I=I._nextRemoved)I===this._mapHead&&(this._mapHead=null),this._records.delete(I.key),I._nextRemoved=I._next,I.previousValue=I.currentValue,I.currentValue=null,I._prev=null,I._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 w=p._prev;return _._next=p,_._prev=w,p._prev=_,w&&(w._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 w=this._records.get(p);this._maybeAddToChanges(w,_);var I=w._prev,Y=w._next;return I&&(I._next=Y),Y&&(Y._prev=I),w._next=null,w._prev=null,w}var ee=new a7(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(w){return _(p[w],w)})}}]),c}(),a7=(0,L.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 wL(){return new Yy([new r7])}var Yy=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,L.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(w){return w.supports(p)});if(null!=_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(null!=_){var w=_.factories.slice();p=p.concat(w)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(w){return c.create(p,w||wL())},deps:[[c,new Sd,new u_]]}}}]),c}();function kL(){return new Ky([new FE])}Yy.\u0275prov=Be({token:Yy,providedIn:"root",factory:wL});var Ky=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,L.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(w){return w.supports(p)});if(_)return _;throw new fe(901,!1)}}],[{key:"create",value:function(p,_){if(_){var w=_.factories.slice();p=p.concat(w)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(w){return c.create(p,w||kL())},deps:[[c,new Sd,new u_]]}}}]),c}();Ky.\u0275prov=Be({token:Ky,providedIn:"root",factory:kL});var TL=[new FE],s7=[new r7],u7=(new Yy(s7),new Ky(TL),dL(null,"core",[])),op=(0,L.Z)(function c(f){(0,v.Z)(this,c)});function c7(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(De,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 M},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},qu:function(){return Ss},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),U=m(7326),R=m(7685),P=m(4902),E=m(136),D=m(9388),j=m(5671),L=m(3144),v=m(5e3),k=m(9808),b=m(3527),O=m(567),S=m(4850),y=function(){function we(ke,le){(0,j.Z)(this,we),this._renderer=ke,this._elementRef=le,this.onChange=function(Me){},this.onTouched=function(){}}return(0,L.Z)(we,[{key:"setProperty",value:function(le,Me){this._renderer.setProperty(this._elementRef.nativeElement,le,Me)}},{key:"registerOnTouched",value:function(le){this.onTouched=le}},{key:"registerOnChange",value:function(le){this.onChange=le}},{key:"setDisabledState",value:function(le){this.setProperty("disabled",le)}}]),we}();y.\u0275fac=function(ke){return new(ke||y)(v.Y36(v.Qsj),v.Y36(v.SBq))},y.\u0275dir=v.lG2({type:y});var T=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le)}(y);T.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(T)))(le||T)}}(),T.\u0275dir=v.lG2({type:T,features:[v.qOj]});var M=new v.OlP("NgValueAccessor"),x={provide:M,useExisting:(0,v.Gpc)(function(){return N}),multi:!0},N=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{key:"writeValue",value:function(Oe){this.setProperty("checked",Oe)}}]),le}(T);N.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(N)))(le||N)}}(),N.\u0275dir=v.lG2({type:N,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.checked)})("blur",function(){return le.onTouched()})},features:[v._Bn([x]),v.qOj]});var B={provide:M,useExisting:(0,v.Gpc)(function(){return V}),multi:!0};var $=new v.OlP("CompositionEventMode"),V=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this,Me,Oe))._compositionMode=pt,Yt._composing=!1,null==Yt._compositionMode&&(Yt._compositionMode=!function X(){var we=(0,k.q)()?(0,k.q)().getUserAgent():"";return/android (\d+)/.test(we.toLowerCase())}()),Yt}return(0,L.Z)(le,[{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)}}]),le}(y);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,le){1&ke&&v.NdJ("input",function(Oe){return le._handleInput(Oe.target.value)})("blur",function(){return le.onTouched()})("compositionstart",function(){return le._compositionStart()})("compositionend",function(Oe){return le._compositionEnd(Oe.target.value)})},features:[v._Bn([B]),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,L.Z)(we,null,[{key:"min",value:function(le){return ge(le)}},{key:"max",value:function(le){return je(le)}},{key:"required",value:function(le){return ot(le)}},{key:"requiredTrue",value:function(le){return St(le)}},{key:"email",value:function(le){return Tt(le)}},{key:"minLength",value:function(le){return Dt(le)}},{key:"maxLength",value:function(le){return Rt(le)}},{key:"pattern",value:function(le){return Ze(le)}},{key:"nullValidator",value:function(le){return null}},{key:"compose",value:function(le){return Ve(le)}},{key:"composeAsync",value:function(le){return ht(le)}}]),we}();function ge(we){return function(ke){if(te(ke.value)||te(we))return null;var le=parseFloat(ke.value);return!isNaN(le)&&le<we?{min:{min:we,actual:ke.value}}:null}}function je(we){return function(ke){if(te(ke.value)||te(we))return null;var le=parseFloat(ke.value);return!isNaN(le)&&le>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?(le="","^"!==we.charAt(0)&&(le+="^"),le+=we,"$"!==we.charAt(we.length-1)&&(le+="$"),ke=new RegExp(le)):(le=we.toString(),ke=we),function(Me){if(te(Me.value))return null;var Oe=Me.value;return ke.test(Oe)?null:{pattern:{requiredPattern:le,actualValue:Oe}}}):$t;var ke,le}function $t(we){return null}function Ft(we){return null!=we}function pn(we){var ke=(0,v.QGY)(we)?(0,b.D)(we):we;return ke}function rt(we){var ke={};return we.forEach(function(le){ke=null!=le?Object.assign(Object.assign({},ke),le):ke}),0===Object.keys(ke).length?null:ke}function Ot(we,ke){return ke.map(function(le){return le(we)})}function Ct(we){return we.map(function(ke){return function _t(we){return!we.validate}(ke)?ke:function(le){return ke.validate(le)}})}function Ve(we){if(!we)return null;var ke=we.filter(Ft);return 0==ke.length?null:function(le){return rt(Ot(le,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(le){var Me=Ot(le,ke).map(pn);return(0,O.D)(Me).pipe((0,S.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,P.Z)(we),[ke]):[we,ke]}function H(we){return we._rawValidators}function F(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 se(we,ke){var le=qe(ke);return qe(we).forEach(function(Oe){Be(le,Oe)||le.push(Oe)}),le}function t(we,ke){return qe(ke).filter(function(le){return!Be(we,le)})}var Lt=function(){function we(){(0,j.Z)(this,we),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,L.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(le){this._rawValidators=le||[],this._composedValidatorFn=at(this._rawValidators)}},{key:"_setAsyncValidators",value:function(le){this._rawAsyncValidators=le||[],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(le){this._onDestroyCallbacks.push(le)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(le){return le()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(le)}},{key:"hasError",value:function(le,Me){return!!this.control&&this.control.hasError(le,Me)}},{key:"getError",value:function(le,Me){return this.control?this.control.getError(le,Me):null}}]),we}(),zt=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return(0,L.Z)(le)}(Lt),an=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),le}(Lt),Qt=function(){function we(ke){(0,j.Z)(this,we),this._cd=ke}return(0,L.Z)(we,[{key:"isTouched",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.touched)}},{key:"isUntouched",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.untouched)}},{key:"isPristine",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.pristine)}},{key:"isDirty",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.dirty)}},{key:"isValid",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.valid)}},{key:"isInvalid",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.invalid)}},{key:"isPending",get:function(){var le,Me;return!(null===(Me=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===Me||!Me.pending)}},{key:"isSubmitted",get:function(){var le;return!(null===(le=this._cd)||void 0===le||!le.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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me){return(0,j.Z)(this,le),ke.call(this,Me)}return(0,L.Z)(le)}(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,le){2&ke&&v.ekj("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)},features:[v.qOj]});var Qe=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me){return(0,j.Z)(this,le),ke.call(this,Me)}return(0,L.Z)(le)}(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,le){2&ke&&v.ekj("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)("ng-submitted",le.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 fn(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,le){var Me=we.controls;if(!(ke?Object.keys(Me):Me).length)throw new v.vHH(1e3,"");if(!Me[le])throw new v.vHH(1001,"")}function et(we,ke,le){we._forEachChild(function(Me,Oe){if(void 0===le[Oe])throw new v.vHH(1002,"")})}var gt=function(){function we(ke,le){(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=le,this._composedValidatorFn=vt(this._rawValidators),this._composedAsyncValidatorFn=Un(this._rawAsyncValidators)}return(0,L.Z)(we,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(le){this._rawValidators=this._composedValidatorFn=le}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(le){this._rawAsyncValidators=this._composedAsyncValidatorFn=le}},{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(le){this._rawValidators=le,this._composedValidatorFn=vt(le)}},{key:"setAsyncValidators",value:function(le){this._rawAsyncValidators=le,this._composedAsyncValidatorFn=Un(le)}},{key:"addValidators",value:function(le){this.setValidators(se(le,this._rawValidators))}},{key:"addAsyncValidators",value:function(le){this.setAsyncValidators(se(le,this._rawAsyncValidators))}},{key:"removeValidators",value:function(le){this.setValidators(t(le,this._rawValidators))}},{key:"removeAsyncValidators",value:function(le){this.setAsyncValidators(t(le,this._rawAsyncValidators))}},{key:"hasValidator",value:function(le){return Be(this._rawValidators,le)}},{key:"hasAsyncValidator",value:function(le){return Be(this._rawAsyncValidators,le)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!le.onlySelf&&this._parent.markAsTouched(le)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(le){return le.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var le=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&&!le.onlySelf&&this._parent._updateTouched(le)}},{key:"markAsDirty",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!le.onlySelf&&this._parent.markAsDirty(le)}},{key:"markAsPristine",value:function(){var le=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&&!le.onlySelf&&this._parent._updatePristine(le)}},{key:"markAsPending",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ye,!1!==le.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!le.onlySelf&&this._parent.markAsPending(le)}},{key:"disable",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(le.onlySelf);this.status=Re,this.errors=null,this._forEachChild(function(Oe){Oe.disable(Object.assign(Object.assign({},le),{onlySelf:!0}))}),this._updateValue(),!1!==le.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},le),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!0)})}},{key:"enable",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(le.onlySelf);this.status=Et,this._forEachChild(function(Oe){Oe.enable(Object.assign(Object.assign({},le),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:le.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},le),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!1)})}},{key:"_updateAncestors",value:function(le){this._parent&&!le.onlySelf&&(this._parent.updateValueAndValidity(le),le.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(le){this._parent=le}},{key:"getRawValue",value:function(){return this.value}},{key:"updateValueAndValidity",value:function(){var le=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(le.emitEvent)),!1!==le.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!le.onlySelf&&this._parent.updateValueAndValidity(le)}},{key:"_updateTreeValidity",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(le)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:le.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(le){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:le})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=le,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(le){var Me=le;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(le,Me){var Oe=Me?this.get(Me):this;return Oe&&Oe.errors?Oe.errors[le]:null}},{key:"hasError",value:function(le,Me){return!!this.getError(le,Me)}},{key:"root",get:function(){for(var le=this;le._parent;)le=le._parent;return le}},{key:"_updateControlsErrors",value:function(le){this.status=this._calculateStatus(),le&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(le)}},{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(le){return this._anyControls(function(Me){return Me.status===le})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(le){return le.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(le){return le.touched})}},{key:"_updatePristine",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!le.onlySelf&&this._parent._updatePristine(le)}},{key:"_updateTouched",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!le.onlySelf&&this._parent._updateTouched(le)}},{key:"_registerOnCollectionChange",value:function(le){this._onCollectionChange=le}},{key:"_setUpdateStrategy",value:function(le){Kt(le)&&null!=le.updateOn&&(this._updateOn=le.updateOn)}},{key:"_parentMarkedDirty",value:function(le){var Me=this._parent&&this._parent.dirty;return!le&&!!Me&&!this._parent._anyControlsDirty()}},{key:"_find",value:function(le){return null}}]),we}(),wt=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this,Je(Oe),fn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,L.Z)(le,[{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,R.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}}]),le}(gt),nn=wt,Wn=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le)}(wt);function ir(we,ke){return[].concat((0,P.Z)(ke.path),[we])}function Pr(we,ke){var le,Me;Ca(we,ke),ke.valueAccessor.writeValue(we.value),we.disabled&&(null===(Me=(le=ke.valueAccessor).setDisabledState)||void 0===Me||Me.call(le,!0)),function ls(we,ke){ke.valueAccessor.registerOnChange(function(le){we._pendingValue=le,we._pendingChange=!0,we._pendingDirty=!0,"change"===we.updateOn&&Di(we,ke)})}(we,ke),function na(we,ke){var le=function(Oe,pt){ke.valueAccessor.writeValue(Oe),pt&&ke.viewToModelUpdate(Oe)};we.registerOnChange(le),ke._registerOnDestroy(function(){we._unregisterOnChange(le)})}(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 le=function(Oe){ke.valueAccessor.setDisabledState(Oe)};we.registerOnDisabledChange(le),ke._registerOnDestroy(function(){we._unregisterOnDisabledChange(le)})}}(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(le){le.registerOnValidatorChange&&le.registerOnValidatorChange(ke)})}function Ca(we,ke){var le=H(we);null!==ke.validator?we.setValidators(Wt(le,ke.validator)):"function"==typeof le&&we.setValidators([le]);var Me=F(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 le=!1;if(null!==we){if(null!==ke.validator){var Me=H(we);if(Array.isArray(Me)&&Me.length>0){var Oe=Me.filter(function(Qn){return Qn!==ke.validator});Oe.length!==Me.length&&(le=!0,we.setValidators(Oe))}}if(null!==ke.asyncValidator){var pt=F(we);if(Array.isArray(pt)&&pt.length>0){var Yt=pt.filter(function(Qn){return Qn!==ke.asyncValidator});Yt.length!==pt.length&&(le=!0,we.setAsyncValidators(Yt))}}}var Pn=function(){};return zi(ke._rawValidators,Pn),zi(ke._rawAsyncValidators,Pn),le}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 le=we.model;return!!le.isFirstChange()||!Object.is(ke,le.currentValue)}function ii(we,ke){we._syncPendingControls(),ke.forEach(function(le){var Me=le.control;"submit"===Me.updateOn&&Me._pendingChange&&(le.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function So(we,ke){if(!ke)return null;Array.isArray(ke);var le=void 0,Me=void 0,Oe=void 0;return ke.forEach(function(pt){pt.constructor===V?le=pt:function Ko(we){return Object.getPrototypeOf(we.constructor)===T}(pt)?Me=pt:Oe=pt}),Oe||Me||le||null}var Yi={provide:an,useExisting:(0,v.Gpc)(function(){return ca})},Eo=Promise.resolve(),ca=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe){var pt;return(0,j.Z)(this,le),(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,L.Z)(le,[{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,ii(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}}]),le}(an);function ra(we,ke){var le=we.indexOf(ke);le>-1&&we.splice(le,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,le){1&ke&&v.NdJ("submit",function(Oe){return le.onSubmit(Oe)})("reset",function(){return le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Yi]),v.qOj]});var da=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){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,le),(Me=ke.call(this,Je(pt),fn(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,L.Z)(le,[{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}}]),le}(gt),Ya=da,Ui=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{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(){}}]),le}(an);Ui.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ui)))(le||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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,L.Z)(le,[{key:"_checkParentType",value:function(){!(this._parent instanceof le)&&this._parent}}]),le}(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 hu={provide:zt,useExisting:(0,v.Gpc)(function(){return tn})},Ki=Promise.resolve(),tn=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt,Yt,Pn){var Qn;return(0,j.Z)(this,le),(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,U.Z)(Qn),Yt),Qn}return(0,L.Z)(le,[{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;Ki.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);Ki.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]}}]),le}(zt);tn.\u0275fac=function(ke){return new(ke||tn)(v.Y36(an,9),v.Y36(pe,10),v.Y36(fe,10),v.Y36(M,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([hu]),v.qOj,v.TTD]});var en=(0,L.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:M,useExisting:(0,v.Gpc)(function(){return no}),multi:!0},no=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{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))}}}]),le}(T);no.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(no)))(le||no)}}(),no.\u0275dir=v.lG2({type:no,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("input",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},features:[v._Bn([Dr]),v.qOj]});var qi={provide:M,useExisting:(0,v.Gpc)(function(){return Rn}),multi:!0};var Ti=(0,L.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,L.Z)(we,[{key:"add",value:function(le,Me){this._accessors.push([le,Me])}},{key:"remove",value:function(le){for(var Me=this._accessors.length-1;Me>=0;--Me)if(this._accessors[Me][1]===le)return void this._accessors.splice(Me,1)}},{key:"select",value:function(le){var Me=this;this._accessors.forEach(function(Oe){Me._isSameGroup(Oe,le)&&Oe[1]!==le&&Oe[1].fireUncheck(le.value)})}},{key:"_isSameGroup",value:function(le,Me){return!!le[0].control&&(le[0]._parent===Me._control._parent&&le[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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt,Yt){var Pn;return(0,j.Z)(this,le),(Pn=ke.call(this,Me,Oe))._registry=pt,Pn._injector=Yt,Pn.onChange=function(){},Pn}return(0,L.Z)(le,[{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)}}]),le}(T);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,le){1&ke&&v.NdJ("change",function(){return le.onChange()})("blur",function(){return le.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[v._Bn([qi]),v.qOj]});var mu={provide:M,useExisting:(0,v.Gpc)(function(){return Jr}),multi:!0},Jr=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{key:"writeValue",value:function(Oe){this.setProperty("value",parseFloat(Oe))}},{key:"registerOnChange",value:function(Oe){this.onChange=function(pt){Oe(""==pt?null:parseFloat(pt))}}}]),le}(T);Jr.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Jr)))(le||Jr)}}(),Jr.\u0275dir=v.lG2({type:Jr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.value)})("input",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},features:[v._Bn([mu]),v.qOj]});var Yn=new v.OlP("NgModelWithFormControlWarning"),An={provide:zt,useExisting:(0,v.Gpc)(function(){return cn})},cn=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt,Yt){var Pn;return(0,j.Z)(this,le),(Pn=ke.call(this))._ngModelWarningConfig=Yt,Pn.update=new v.vpe,Pn._ngModelWarningSent=!1,Pn._setValidators(Me),Pn._setAsyncValidators(Oe),Pn.valueAccessor=So((0,U.Z)(Pn),pt),Pn}return(0,L.Z)(le,[{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")}}]),le}(zt);cn._ngModelWarningSentOnce=!1,cn.\u0275fac=function(ke){return new(ke||cn)(v.Y36(pe,10),v.Y36(fe,10),v.Y36(M,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 Ji={provide:an,useExisting:(0,v.Gpc)(function(){return Oi})},Oi=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe){var pt;return(0,j.Z)(this,le),(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,L.Z)(le,[{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 le=we.indexOf(ke);le>-1&&we.splice(le,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,ii(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}}]),le}(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,le){1&ke&&v.NdJ("submit",function(Oe){return le.onSubmit(Oe)})("reset",function(){return le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Ji]),v.qOj,v.TTD]});var Qi={provide:an,useExisting:(0,v.Gpc)(function(){return Ii})},Ii=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,L.Z)(le,[{key:"_checkParentType",value:function(){Hi(this._parent)}}]),le}(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([Qi]),v.qOj]});var ai={provide:an,useExisting:(0,v.Gpc)(function(){return Mi})},Mi=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this))._parent=Me,Yt._setValidators(Oe),Yt._setAsyncValidators(pt),Yt}return(0,L.Z)(le,[{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)}}]),le}(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([ai]),v.qOj]});var hr={provide:zt,useExisting:(0,v.Gpc)(function(){return co})},co=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt,Yt,Pn){var Qn;return(0,j.Z)(this,le),(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,U.Z)(Qn),Yt),Qn}return(0,L.Z)(le,[{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}}]),le}(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(M,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:M,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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(le,[{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}}]),le}(T);fo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(fo)))(le||fo)}}(),fo.\u0275dir=v.lG2({type:fo,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target.value)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([fa]),v.qOj]});var ia=function(){function we(ke,le,Me){(0,j.Z)(this,we),this._element=ke,this._renderer=le,this._select=Me,this._select&&(this.id=this._select._registerOption())}return(0,L.Z)(we,[{key:"ngValue",set:function(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(ka(this.id,le)),this._select.writeValue(this._select.value))}},{key:"value",set:function(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}},{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:M,useExisting:(0,v.Gpc)(function(){return Xo}),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 Xo=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(le,[{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 $o=Yt.options,Qa=0;Qa<$o.length;Qa++){var nc=$o[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}}]),le}(T);Xo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Xo)))(le||Xo)}}(),Xo.\u0275dir=v.lG2({type:Xo,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(ke,le){1&ke&&v.NdJ("change",function(Oe){return le.onChange(Oe.target)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([hl]),v.qOj]});var _u=function(){function we(ke,le,Me){(0,j.Z)(this,we),this._element=ke,this._renderer=le,this._select=Me,this._select&&(this.id=this._select._registerOption(this))}return(0,L.Z)(we,[{key:"ngValue",set:function(le){null!=this._select&&(this._value=le,this._setElementValue(Ka(this.id,le)),this._select.writeValue(this._select.value))}},{key:"value",set:function(le){this._select?(this._value=le,this._setElementValue(Ka(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}},{key:"_setElementValue",value:function(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}},{key:"_setSelected",value:function(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}},{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)}_u.\u0275fac=function(ke){return new(ke||_u)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(Xo,9))},_u.\u0275dir=v.lG2({type:_u,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Br=function(){function we(){(0,j.Z)(this,we),this._validator=$t}return(0,L.Z)(we,[{key:"ngOnChanges",value:function(le){if(this.inputName in le){var Me=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Me),this._validator=this._enabled?this.createValidator(Me):$t,this._onChange&&this._onChange()}}},{key:"validate",value:function(le){return this._validator(le)}},{key:"registerOnValidatorChange",value:function(le){this._onChange=le}},{key:"enabled",value:function(le){return null!=le}}]),we}();Br.\u0275fac=function(ke){return new(ke||Br)},Br.\u0275dir=v.lG2({type:Br,features:[v.TTD]});var gu={provide:pe,useExisting:(0,v.Gpc)(function(){return ml}),multi:!0},ml=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="max",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return je(Oe)},Me}return(0,L.Z)(le)}(Br);ml.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(ml)))(le||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,le){2&ke&&v.uIk("max",le._enabled?le.max:null)},inputs:{max:"max"},features:[v._Bn([gu]),v.qOj]});var mf={provide:pe,useExisting:(0,v.Gpc)(function(){return _l}),multi:!0},_l=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="min",Me.normalizeInput=function(Oe){return xc(Oe)},Me.createValidator=function(Oe){return ge(Oe)},Me}return(0,L.Z)(le)}(Br);_l.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(_l)))(le||_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,le){2&ke&&v.uIk("min",le._enabled?le.min:null)},inputs:{min:"min"},features:[v._Bn([mf]),v.qOj]});var vu={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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="required",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return ot},Me}return(0,L.Z)(le,[{key:"enabled",value:function(Oe){return Oe}}]),le}(Br);ks.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(ks)))(le||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,le){2&ke&&v.uIk("required",le._enabled?"":null)},inputs:{required:"required"},features:[v._Bn([vu]),v.qOj]});var Ul=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).createValidator=function(Oe){return St},Me}return(0,L.Z)(le)}(ks);Ul.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ul)))(le||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,le){2&ke&&v.uIk("required",le._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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="email",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return Tt},Me}return(0,L.Z)(le,[{key:"enabled",value:function(Oe){return Oe}}]),le}(Br);xo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(xo)))(le||xo)}}(),xo.\u0275dir=v.lG2({type:xo,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[v._Bn([Dc]),v.qOj]});var yu={provide:pe,useExisting:(0,v.Gpc)(function(){return Js}),multi:!0},Js=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="minlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Dt(Oe)},Me}return(0,L.Z)(le)}(Br);Js.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Js)))(le||Js)}}(),Js.\u0275dir=v.lG2({type:Js,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("minlength",le._enabled?le.minlength:null)},inputs:{minlength:"minlength"},features:[v._Bn([yu]),v.qOj]});var pa={provide:pe,useExisting:(0,v.Gpc)(function(){return jo}),multi:!0},jo=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="maxlength",Me.normalizeInput=function(Oe){return ec(Oe)},Me.createValidator=function(Oe){return Rt(Oe)},Me}return(0,L.Z)(le)}(Br);jo.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(jo)))(le||jo)}}(),jo.\u0275dir=v.lG2({type:jo,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("maxlength",le._enabled?le.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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){var Me;return(0,j.Z)(this,le),(Me=ke.apply(this,arguments)).inputName="pattern",Me.normalizeInput=function(Oe){return Oe},Me.createValidator=function(Oe){return Ze(Oe)},Me}return(0,L.Z)(le)}(Br);Ts.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Ts)))(le||Ts)}}(),Ts.\u0275dir=v.lG2({type:Ts,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(ke,le){2&ke&&v.uIk("pattern",le._enabled?le.pattern:null)},inputs:{pattern:"pattern"},features:[v._Bn([bd]),v.qOj]});var Ms=(0,L.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,L.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,L.Z)(we,null,[{key:"withConfig",value:function(le){return{ngModule:we,providers:[{provide:Yn,useValue:le.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,E.Z)(le,we);var ke=(0,D.Z)(le);function le(Me,Oe,pt){var Yt;return(0,j.Z)(this,le),(Yt=ke.call(this,Je(Oe),fn(pt,Oe))).controls=Me,Yt._initObservables(),Yt._setUpdateStrategy(Oe),Yt._setUpControls(),Yt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Yt.asyncValidator}),Yt}return(0,L.Z)(le,[{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}}]),le}(gt);function _f(we){return!!we&&(void 0!==we.asyncValidators||void 0!==we.validators||void 0!==we.updateOn)}var Ss=function(){function we(){(0,j.Z)(this,we),this.useNonNullable=!1}return(0,L.Z)(we,[{key:"nonNullable",get:function(){var le=new we;return le.useNonNullable=!0,le}},{key:"group",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(le),pt={};return _f(Me)?pt=Me:null!==Me&&(pt.validators=Me.validator,pt.asyncValidators=Me.asyncValidator),new wt(Oe,pt)}},{key:"record",value:function(le){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(le);return new Wn(Oe,Me)}},{key:"control",value:function(le,Me,Oe){var pt={};return this.useNonNullable?(_f(Me)?pt=Me:(pt.validators=Me,pt.asyncValidators=Oe),new da(le,Object.assign(Object.assign({},pt),{nonNullable:!0}))):new da(le,Me,Oe)}},{key:"array",value:function(le,Me,Oe){var pt=this,Yt=le.map(function(Pn){return pt._createControl(Pn)});return new rh(Yt,Me,Oe)}},{key:"_reduceControls",value:function(le){var Me=this,Oe={};return Object.keys(le).forEach(function(pt){Oe[pt]=Me._createControl(le[pt])}),Oe}},{key:"_createControl",value:function(le){if(le instanceof da)return le;if(le instanceof gt)return le;if(Array.isArray(le)){var Me=le[0],Oe=le.length>1?le[1]:null,pt=le.length>2?le[2]:null;return this.control(Me,Oe,pt)}return this.control(le)}}]),we}();Ss.\u0275fac=function(ke){return new(ke||Ss)},Ss.\u0275prov=v.Yz7({token:Ss,factory:Ss.\u0275fac,providedIn:us});var bu=(0,L.Z)(function we(){(0,j.Z)(this,we)});bu.\u0275fac=function(ke){return new(ke||bu)},bu.\u0275prov=v.Yz7({token:bu,factory:function(){return(0,v.f3M)(Ss).nonNullable},providedIn:us});var Hl=function(we){(0,E.Z)(le,we);var ke=(0,D.Z)(le);function le(){return(0,j.Z)(this,le),ke.apply(this,arguments)}return(0,L.Z)(le,[{key:"group",value:function(Oe){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,G.Z)((0,W.Z)(le.prototype),"group",this).call(this,Oe,pt)}},{key:"control",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(le.prototype),"control",this).call(this,Oe,pt,Yt)}},{key:"array",value:function(Oe,pt,Yt){return(0,G.Z)((0,W.Z)(le.prototype),"array",this).call(this,Oe,pt,Yt)}}]),le}(Ss);Hl.\u0275fac=function(){var we;return function(le){return(we||(we=v.n5z(Hl)))(le||Hl)}}(),Hl.\u0275prov=v.Yz7({token:Hl,factory:Hl.\u0275fac,providedIn:us});new v.GfV("14.3.0")},508:function(De,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 H}});var G=m(7326),W=m(3237),A=m(1120),U=m(136),R=m(9388),P=m(3144),E=m(5671),D=m(5e3),j=m(226),v=(new D.GfV("14.2.7"),m(9808)),k=m(925),b=m(5664),O=m(3191),S=m(7451),y=m(8929),T=m(1059),M=m(1159),x=["*",[["mat-option"],["ng-container"]]];function B(At,xt){if(1&At&&D._UZ(0,"mat-pseudo-checkbox",4),2&At){var tt=D.oxw();D.Q6J("state",tt.selected?"checked":"unchecked")("disabled",tt.disabled)}}function X(At,xt){if(1&At&&(D.TgZ(0,"span",5),D._uU(1),D.qZA()),2&At){var tt=D.oxw();D.xp6(1),D.hij("(",tt.group.label,")")}}new D.GfV("14.2.7");var Q=(0,P.Z)(function At(){(0,E.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,P.Z)(function At(){(0,E.Z)(this,At)});te.COMPLEX="375ms",te.ENTERING="225ms",te.EXITING="195ms";var pe=new D.OlP("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}}),fe=function(){function At(xt,tt,Et){(0,E.Z)(this,At),this._sanityChecks=tt,this._document=Et,this._hasDoneGlobalChecks=!1,xt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(At,[{key:"_checkIsEnabled",value:function(tt){return!(0,k.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tt])}}]),At}();function je(At){return function(xt){(0,U.Z)(Et,xt);var tt=(0,R.Z)(Et);function Et(){var We;(0,E.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,P.Z)(Et,[{key:"disabled",get:function(){return this._disabled},set:function(Ye){this._disabled=(0,O.Ig)(Ye)}}]),Et}(At)}function ot(At,xt){return function(tt){(0,U.Z)(We,tt);var Et=(0,R.Z)(We);function We(){var Ye;(0,E.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,P.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,U.Z)(Et,xt);var tt=(0,R.Z)(Et);function Et(){var We;(0,E.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,P.Z)(Et,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Ye){this._disableRipple=(0,O.Ig)(Ye)}}]),Et}(At)}function Tt(At){var xt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(tt){(0,U.Z)(We,tt);var Et=(0,R.Z)(We);function We(){var Ye;(0,E.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,P.Z)(We,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Re){this._tabIndex=null!=Re?(0,O.su)(Re):this.defaultTabIndex}}]),We}(At)}function Dt(At){return function(xt){(0,U.Z)(Et,xt);var tt=(0,R.Z)(Et);function Et(){var We;(0,E.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,P.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,fn=Je.isErrorState(vt,Re);fn!==Ye&&(this.errorState=fn,this.stateChanges.next())}}]),Et}(At)}function Rt(At){return function(xt){(0,U.Z)(Et,xt);var tt=(0,R.Z)(Et);function Et(){var We;(0,E.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 S.y(function(vt){We._isInitialized?We._notifySubscriber(vt):We._pendingSubscribers.push(vt)}),We}return(0,P.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)(D.LFG(b.qm),D.LFG(pe,8),D.LFG(v.K0))},fe.\u0275mod=D.oAB({type:fe}),fe.\u0275inj=D.cJS({imports:[j.vT,j.vT]});var Ze=new D.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function $t(){return(0,D.f3M)(D.soG)}});var Ft=function(){function At(){(0,E.Z)(this,At),this._localeChanges=new y.xQ,this.localeChanges=this._localeChanges}return(0,P.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 D.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,U.Z)(tt,At);var xt=(0,R.Z)(tt);function tt(Et,We){var Ye,Re;return(0,E.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,P.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)(D.LFG(Ze,8),D.LFG(k.t4))},_t.\u0275prov=D.Yz7({token:_t,factory:_t.\u0275fac});var Ve=(0,P.Z)(function At(){(0,E.Z)(this,At)});Ve.\u0275fac=function(xt){return new(xt||Ve)},Ve.\u0275mod=D.oAB({type:Ve}),Ve.\u0275inj=D.cJS({providers:[{provide:Ft,useClass:_t}]});var at=(0,P.Z)(function At(){(0,E.Z)(this,At)});at.\u0275fac=function(xt){return new(xt||at)},at.\u0275mod=D.oAB({type:at}),at.\u0275inj=D.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,E.Z)(this,At)}return(0,P.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=D.Yz7({token:ht,factory:ht.\u0275fac});var Ut=function(){function At(){(0,E.Z)(this,At)}return(0,P.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=D.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var Wt=(0,P.Z)(function At(){(0,E.Z)(this,At)});function H(At,xt){var tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";At.changes.pipe((0,T.O)(At)).subscribe(function(Et){var We=Et.length;F(xt,"".concat(tt,"-2-line"),!1),F(xt,"".concat(tt,"-3-line"),!1),F(xt,"".concat(tt,"-multi-line"),!1),2===We||3===We?F(xt,"".concat(tt,"-").concat(We,"-line"),!0):We>3&&F(xt,"".concat(tt,"-multi-line"),!0)})}function F(At,xt,tt){At.nativeElement.classList.toggle(xt,tt)}Wt.\u0275fac=function(xt){return new(xt||Wt)},Wt.\u0275dir=D.lG2({type:Wt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var qe=(0,P.Z)(function At(){(0,E.Z)(this,At)});qe.\u0275fac=function(xt){return new(xt||qe)},qe.\u0275mod=D.oAB({type:qe}),qe.\u0275inj=D.cJS({imports:[fe,fe]});var Be=function(){function At(xt,tt,Et){var We=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,E.Z)(this,At),this._renderer=xt,this.element=tt,this.config=Et,this._animationForciblyDisabledThroughCss=We,this.state=3}return(0,P.Z)(At,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),At}(),se={enterDuration:225,exitDuration:150},Lt=(0,k.i$)({passive:!0}),zt=["mousedown","touchstart"],an=["mouseup","mouseleave","touchend","touchcancel"],Qt=function(){function At(xt,tt,Et,We){(0,E.Z)(this,At),this._target=xt,this._ngZone=tt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,O.fI)(Et))}return(0,P.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({},se),Ye.animation);Ye.centered&&(tt=Re.left+Re.width/2,Et=Re.top+Re.height/2);var vt=Ye.radius||vn(tt,Et,Re),fn=tt-Re.left,Un=Et-Re.top,Kt=Je.enterDuration,yt=document.createElement("div");yt.classList.add("mat-ripple-element"),yt.style.left="".concat(fn-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({},se),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,O.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,b.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,b.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 D.OlP("mat-ripple-global-options"),Jt=function(){function At(xt,tt,Et,We,Ye){(0,E.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,P.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)(D.Y36(D.SBq),D.Y36(D.R0b),D.Y36(k.t4),D.Y36(Vt,8),D.Y36(D.QbO,8))},Jt.\u0275dir=D.lG2({type:Jt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(xt,tt){2&xt&&D.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,P.Z)(function At(){(0,E.Z)(this,At)});Qe.\u0275fac=function(xt){return new(xt||Qe)},Qe.\u0275mod=D.oAB({type:Qe}),Qe.\u0275inj=D.cJS({imports:[fe,fe]});var Fe=(0,P.Z)(function At(xt){(0,E.Z)(this,At),this._animationMode=xt,this.state="unchecked",this.disabled=!1});Fe.\u0275fac=function(xt){return new(xt||Fe)(D.Y36(D.QbO,8))},Fe.\u0275cmp=D.Xpm({type:Fe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(xt,tt){2&xt&&D.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,P.Z)(function At(){(0,E.Z)(this,At)});ne.\u0275fac=function(xt){return new(xt||ne)},ne.\u0275mod=D.oAB({type:ne}),ne.\u0275inj=D.cJS({imports:[fe]});var ye=new D.OlP("MAT_OPTION_PARENT_COMPONENT"),he=je(function(){return(0,P.Z)(function At(){(0,E.Z)(this,At)})}()),Le=0,lt=function(At){(0,U.Z)(tt,At);var xt=(0,R.Z)(tt);function tt(Et){var We,Ye;return(0,E.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,P.Z)(tt)}(he);lt.\u0275fac=function(xt){return new(xt||lt)(D.Y36(ye,8))},lt.\u0275dir=D.lG2({type:lt,inputs:{label:"label"},features:[D.qOj]});var ut=new D.OlP("MatOptgroup"),Nt=function(At){(0,U.Z)(tt,At);var xt=(0,R.Z)(tt);function tt(){return(0,E.Z)(this,tt),xt.apply(this,arguments)}return(0,P.Z)(tt)}(lt);Nt.\u0275fac=function(){var At;return function(tt){return(At||(At=D.n5z(Nt)))(tt||Nt)}}(),Nt.\u0275cmp=D.Xpm({type:Nt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(xt,tt){2&xt&&(D.uIk("role",tt._inert?null:"group")("aria-disabled",tt._inert?null:tt.disabled.toString())("aria-labelledby",tt._inert?null:tt._labelId),D.ekj("mat-optgroup-disabled",tt.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[D._Bn([{provide:ut,useExisting:Nt}]),D.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&&(D.F$t(x),D.TgZ(0,"span",0),D._uU(1),D.Hsn(2),D.qZA(),D.Hsn(3,1)),2&xt&&(D.Q6J("id",tt._labelId),D.xp6(1),D.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,P.Z)(function At(xt){var tt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,E.Z)(this,At),this.source=xt,this.isUserInput=tt}),yn=function(){function At(xt,tt,Et,We){(0,E.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 D.vpe,this._stateChanges=new y.xQ}return(0,P.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,O.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===M.K5||tt.keyCode===M.L_)&&!(0,M.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){D.$Z()},yn.\u0275dir=D.lG2({type:yn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var ln=function(At){(0,U.Z)(tt,At);var xt=(0,R.Z)(tt);function tt(Et,We,Ye,Re){return(0,E.Z)(this,tt),xt.call(this,Et,We,Ye,Re)}return(0,P.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)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(ye,8),D.Y36(ut,8))},ln.\u0275cmp=D.Xpm({type:ln,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(xt,tt){1&xt&&D.NdJ("click",function(){return tt._selectViaInteraction()})("keydown",function(We){return tt._handleKeydown(We)}),2&xt&&(D.Ikx("id",tt.id),D.uIk("tabindex",tt._getTabIndex())("aria-selected",tt._getAriaSelected())("aria-disabled",tt.disabled.toString()),D.ekj("mat-selected",tt.selected)("mat-option-multiple",tt.multiple)("mat-active",tt.active)("mat-option-disabled",tt.disabled))},exportAs:["matOption"],features:[D.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&&(D.F$t(),D.YNc(0,B,1,2,"mat-pseudo-checkbox",0),D.TgZ(1,"span",1),D.Hsn(2),D.qZA(),D.YNc(3,X,2,1,"span",2),D._UZ(4,"div",3)),2&xt&&(D.Q6J("ngIf",tt.multiple),D.xp6(3),D.Q6J("ngIf",tt.group&&tt.group._inert),D.xp6(1),D.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,P.Z)(function At(){(0,E.Z)(this,At)});mn.\u0275fac=function(xt){return new(xt||mn)},mn.\u0275mod=D.oAB({type:mn}),mn.\u0275inj=D.cJS({imports:[Qe,v.ez,fe,ne]})},4834:function(De,K,m){"use strict";m.d(K,{d:function(){return P},t:function(){return E}});var G=m(5671),W=m(3144),A=m(5e3),U=m(3191),R=m(508),P=function(){function D(){(0,G.Z)(this,D),this._vertical=!1,this._inset=!1}return(0,W.Z)(D,[{key:"vertical",get:function(){return this._vertical},set:function(L){this._vertical=(0,U.Ig)(L)}},{key:"inset",get:function(){return this._inset},set:function(L){this._inset=(0,U.Ig)(L)}}]),D}();P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(j,L){2&j&&(A.uIk("aria-orientation",L.vertical?"vertical":"horizontal"),A.ekj("mat-divider-vertical",L.vertical)("mat-divider-horizontal",!L.vertical)("mat-divider-inset",L.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(j,L){},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 E=(0,W.Z)(function D(){(0,G.Z)(this,D)});E.\u0275fac=function(j){return new(j||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({imports:[R.BQ,R.BQ]})},7322:function(De,K,m){"use strict";m.d(K,{Eo:function(){return $t},G_:function(){return Lt},KE:function(){return zt},R9:function(){return H},TO:function(){return Rt},hX:function(){return Ve},lN:function(){return an}});var G=m(4902),W=m(136),A=m(9388),U=m(3144),R=m(5671),P=m(7144),E=m(9808),D=m(5e3),j=m(508),L=m(3191),v=m(8929),k=m(6787),b=m(3753),O=m(1059),S=m(7625),y=m(2986),T=m(1777),M=m(226),x=m(925),N=["connectionContainer"],B=["inputContainer"],X=["label"];function $(Qt,vn){1&Qt&&(D.ynx(0),D.TgZ(1,"div",14),D._UZ(2,"div",15)(3,"div",16)(4,"div",17),D.qZA(),D.TgZ(5,"div",18),D._UZ(6,"div",15)(7,"div",16)(8,"div",17),D.qZA(),D.BQk())}function V(Qt,vn){if(1&Qt){var Vt=D.EpF();D.TgZ(0,"div",19),D.NdJ("cdkObserveContent",function(){D.CHM(Vt);var Fe=D.oxw();return D.KtG(Fe.updateOutlineGap())}),D.Hsn(1,1),D.qZA()}if(2&Qt){var Jt=D.oxw();D.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)}}function Q(Qt,vn){if(1&Qt&&(D.ynx(0),D.Hsn(1,2),D.TgZ(2,"span"),D._uU(3),D.qZA(),D.BQk()),2&Qt){var Vt=D.oxw(2);D.xp6(3),D.Oqu(Vt._control.placeholder)}}function te(Qt,vn){1&Qt&&D.Hsn(0,3,["*ngSwitchCase","true"])}function be(Qt,vn){1&Qt&&(D.TgZ(0,"span",23),D._uU(1," *"),D.qZA())}function pe(Qt,vn){if(1&Qt){var Vt=D.EpF();D.TgZ(0,"label",20,21),D.NdJ("cdkObserveContent",function(){D.CHM(Vt);var Fe=D.oxw();return D.KtG(Fe.updateOutlineGap())}),D.YNc(2,Q,4,1,"ng-container",12),D.YNc(3,te,1,0,"ng-content",12),D.YNc(4,be,2,0,"span",22),D.qZA()}if(2&Qt){var Jt=D.oxw();D.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),D.Q6J("cdkObserveContentDisabled","outline"!=Jt.appearance)("id",Jt._labelId)("ngSwitch",Jt._hasLabel()),D.uIk("for",Jt._control.id)("aria-owns",Jt._control.id),D.xp6(2),D.Q6J("ngSwitchCase",!1),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngIf",!Jt.hideRequiredMarker&&Jt._control.required&&!Jt._control.disabled)}}function fe(Qt,vn){1&Qt&&(D.TgZ(0,"div",24),D.Hsn(1,4),D.qZA())}function ue(Qt,vn){if(1&Qt&&(D.TgZ(0,"div",25),D._UZ(1,"span",26),D.qZA()),2&Qt){var Vt=D.oxw();D.xp6(1),D.ekj("mat-accent","accent"==Vt.color)("mat-warn","warn"==Vt.color)}}function de(Qt,vn){if(1&Qt&&(D.TgZ(0,"div"),D.Hsn(1,5),D.qZA()),2&Qt){var Vt=D.oxw();D.Q6J("@transitionMessages",Vt._subscriptAnimationState)}}function ge(Qt,vn){if(1&Qt&&(D.TgZ(0,"div",30),D._uU(1),D.qZA()),2&Qt){var Vt=D.oxw(2);D.Q6J("id",Vt._hintLabelId),D.xp6(1),D.Oqu(Vt.hintLabel)}}function je(Qt,vn){if(1&Qt&&(D.TgZ(0,"div",27),D.YNc(1,ge,2,2,"div",28),D.Hsn(2,6),D._UZ(3,"div",29),D.Hsn(4,7),D.qZA()),2&Qt){var Vt=D.oxw();D.Q6J("@transitionMessages",Vt._subscriptAnimationState),D.xp6(1),D.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 D.OlP("MatError"),Rt=(0,U.Z)(function Qt(vn,Vt){(0,R.Z)(this,Qt),this.id="mat-error-".concat(Tt++),vn||Vt.nativeElement.setAttribute("aria-live","polite")});Rt.\u0275fac=function(vn){return new(vn||Rt)(D.$8M("aria-live"),D.Y36(D.SBq))},Rt.\u0275dir=D.lG2({type:Rt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(vn,Vt){2&vn&&D.uIk("id",Vt.id)},inputs:{id:"id"},features:[D._Bn([{provide:Dt,useExisting:Rt}])]});var Ze={transitionMessages:(0,T.X$)("transitionMessages",[(0,T.SB)("enter",(0,T.oB)({opacity:1,transform:"translateY(0%)"})),(0,T.eR)("void => enter",[(0,T.oB)({opacity:0,transform:"translateY(-5px)"}),(0,T.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$t=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt)});$t.\u0275fac=function(vn){return new(vn||$t)},$t.\u0275dir=D.lG2({type:$t});var Ot=0,_t=new D.OlP("MatHint"),Ct=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt),this.align="start",this.id="mat-hint-".concat(Ot++)});Ct.\u0275fac=function(vn){return new(vn||Ct)},Ct.\u0275dir=D.lG2({type:Ct,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(vn,Vt){2&vn&&(D.uIk("id",Vt.id)("align",null),D.ekj("mat-form-field-hint-end","end"===Vt.align))},inputs:{align:"align",id:"id"},features:[D._Bn([{provide:_t,useExisting:Ct}])]});var Ve=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt)});Ve.\u0275fac=function(vn){return new(vn||Ve)},Ve.\u0275dir=D.lG2({type:Ve,selectors:[["mat-label"]]});var at=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt)});at.\u0275fac=function(vn){return new(vn||at)},at.\u0275dir=D.lG2({type:at,selectors:[["mat-placeholder"]]});var ht=new D.OlP("MatPrefix"),Ut=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt)});Ut.\u0275fac=function(vn){return new(vn||Ut)},Ut.\u0275dir=D.lG2({type:Ut,selectors:[["","matPrefix",""]],features:[D._Bn([{provide:ht,useExisting:Ut}])]});var Wt=new D.OlP("MatSuffix"),H=(0,U.Z)(function Qt(){(0,R.Z)(this,Qt)});H.\u0275fac=function(vn){return new(vn||H)},H.\u0275dir=D.lG2({type:H,selectors:[["","matSuffix",""]],features:[D._Bn([{provide:Wt,useExisting:H}])]});var F=0,se=(0,j.pj)(function(){return(0,U.Z)(function Qt(vn){(0,R.Z)(this,Qt),this._elementRef=vn})}(),"primary"),t=new D.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Lt=new D.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,R.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(F++),lt._labelId="mat-form-field-label-".concat(F++),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,U.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,L.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,O.O)(null)).subscribe(function(){Qe._validatePlaceholders(),Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),Fe.ngControl&&Fe.ngControl.valueChanges&&Fe.ngControl.valueChanges.pipe((0,S.R)(this._destroyed)).subscribe(function(){return Qe._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Qe._ngZone.onStable.pipe((0,S.R)(Qe._destroyed)).subscribe(function(){Qe._outlineGapCalculationNeededOnStable&&Qe.updateOutlineGap()})}),(0,k.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Qe._outlineGapCalculationNeededOnStable=!0,Qe._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Qe._processHints(),Qe._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Qe._syncDescribedByIds(),Qe._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,S.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,b.R)(this._label.nativeElement,"transitionend").pipe((0,y.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}(se);zt.\u0275fac=function(vn){return new(vn||zt)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(M.Is,8),D.Y36(t,8),D.Y36(x.t4),D.Y36(D.R0b),D.Y36(D.QbO,8))},zt.\u0275cmp=D.Xpm({type:zt,selectors:[["mat-form-field"]],contentQueries:function(vn,Vt,Jt){var Qe;(1&vn&&(D.Suo(Jt,$t,5),D.Suo(Jt,$t,7),D.Suo(Jt,Ve,5),D.Suo(Jt,Ve,7),D.Suo(Jt,at,5),D.Suo(Jt,Dt,5),D.Suo(Jt,_t,5),D.Suo(Jt,ht,5),D.Suo(Jt,Wt,5)),2&vn)&&(D.iGM(Qe=D.CRH())&&(Vt._controlNonStatic=Qe.first),D.iGM(Qe=D.CRH())&&(Vt._controlStatic=Qe.first),D.iGM(Qe=D.CRH())&&(Vt._labelChildNonStatic=Qe.first),D.iGM(Qe=D.CRH())&&(Vt._labelChildStatic=Qe.first),D.iGM(Qe=D.CRH())&&(Vt._placeholderChild=Qe.first),D.iGM(Qe=D.CRH())&&(Vt._errorChildren=Qe),D.iGM(Qe=D.CRH())&&(Vt._hintChildren=Qe),D.iGM(Qe=D.CRH())&&(Vt._prefixChildren=Qe),D.iGM(Qe=D.CRH())&&(Vt._suffixChildren=Qe))},viewQuery:function(vn,Vt){var Jt;(1&vn&&(D.Gf(N,7),D.Gf(B,5),D.Gf(X,5)),2&vn)&&(D.iGM(Jt=D.CRH())&&(Vt._connectionContainerRef=Jt.first),D.iGM(Jt=D.CRH())&&(Vt._inputContainerRef=Jt.first),D.iGM(Jt=D.CRH())&&(Vt._label=Jt.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(vn,Vt){2&vn&&D.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:[D._Bn([{provide:Lt,useExisting:zt}]),D.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&&(D.F$t(ot),D.TgZ(0,"div",0)(1,"div",1,2),D.NdJ("click",function(Qe){return Vt._control.onContainerClick&&Vt._control.onContainerClick(Qe)}),D.YNc(3,$,9,0,"ng-container",3),D.YNc(4,V,2,1,"div",4),D.TgZ(5,"div",5,6),D.Hsn(7),D.TgZ(8,"span",7),D.YNc(9,pe,5,16,"label",8),D.qZA()(),D.YNc(10,fe,2,0,"div",9),D.qZA(),D.YNc(11,ue,2,4,"div",10),D.TgZ(12,"div",11),D.YNc(13,de,2,1,"div",12),D.YNc(14,je,5,2,"div",13),D.qZA()()),2&vn&&(D.xp6(3),D.Q6J("ngIf","outline"==Vt.appearance),D.xp6(1),D.Q6J("ngIf",Vt._prefixChildren.length),D.xp6(5),D.Q6J("ngIf",Vt._hasFloatingLabel()),D.xp6(1),D.Q6J("ngIf",Vt._suffixChildren.length),D.xp6(1),D.Q6J("ngIf","outline"!=Vt.appearance),D.xp6(1),D.Q6J("ngSwitch",Vt._getDisplayedMessages()),D.xp6(1),D.Q6J("ngSwitchCase","error"),D.xp6(1),D.Q6J("ngSwitchCase","hint"))},dependencies:[E.O5,E.RF,E.n9,P.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,U.Z)(function Qt(){(0,R.Z)(this,Qt)});an.\u0275fac=function(vn){return new(vn||an)},an.\u0275mod=D.oAB({type:an}),an.\u0275inj=D.cJS({imports:[E.ez,j.BQ,P.Q8,j.BQ]})},4107:function(De,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),U=m(7326),R=m(136),P=m(9388),E=m(3144),D=m(5671),j=m(1314),L=m(9808),v=m(5e3),k=m(508),b=m(7322),O=m(9071),S=m(5664),y=m(3191),T=m(449),M=m(1159),x=m(3075),N=m(8929),B=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,H=new v.OlP("mat-select-scroll-strategy");var qe=new v.OlP("MAT_SELECT_CONFIG"),Be={provide:H,deps:[j.aV],useFactory:function F(Vt){return function(){return Vt.scrollStrategies.reposition()}}},se=(0,E.Z)(function Vt(Jt,Qe){(0,D.Z)(this,Vt),this.source=Jt,this.value=Qe}),t=(0,k.Kr)((0,k.sb)((0,k.Id)((0,k.FD)(function(){return(0,E.Z)(function Vt(Jt,Qe,Fe,ne,ye){(0,D.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,E.Z)(function Vt(){(0,D.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,R.Z)(Qe,Vt);var Jt=(0,P.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,D.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,B.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,U.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,E.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(x.kI.required))&&void 0!==Le&&Le},set:function(ne){this._required=(0,y.Ig)(ne),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ne){this._selectionModel,this._multiple=(0,y.Ig)(ne)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ne){this._disableOptionCentering=(0,y.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,y.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 T.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===M.JH||ye===M.LH||ye===M.oh||ye===M.SV,Le=ye===M.K5||ye===M.L_,lt=this._keyManager;if(!lt.isTyping()&&Le&&!(0,M.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===M.JH||he===M.LH,lt=ye.isTyping();if(Le&&ne.altKey)ne.preventDefault(),this.close();else if(lt||he!==M.K5&&he!==M.L_||!ye.activeItem||(0,M.Vb)(ne))if(!lt&&this._multiple&&he===M.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 S.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(O.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(k.rD),v.Y36(v.SBq),v.Y36(de.Is,8),v.Y36(x.F,8),v.Y36(x.sg,8),v.Y36(b.G_,8),v.Y36(x.a5,10),v.$8M("tabindex"),v.Y36(H),v.Y36(S.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,R.Z)(Qe,Vt);var Jt=(0,P.Z)(Qe);function Qe(){var Fe;return(0,D.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,E.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,k.CB)(ne,this.options,this.optionGroups),he=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ne&&1===ye?0:(0,k.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 se(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,k.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,k.ey,5),v.Suo(Fe,k.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:b.Eo,useExisting:Qt},{provide:k.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:[L.mk,L.RF,L.n9,L.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,E.Z)(function Vt(){(0,D.Z)(this,Vt)});vn.\u0275fac=function(Jt){return new(Jt||vn)},vn.\u0275mod=v.oAB({type:vn}),vn.\u0275inj=v.cJS({providers:[Be],imports:[L.ez,j.U8,k.Ng,k.BQ,O.ZD,b.lN,k.Ng,k.BQ]})},3251:function(De,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),U=m(1120),R=m(136),P=m(9388),E=m(5671),D=m(3144),j=m(5664),L=m(7144),v=m(7429),k=m(9808),b=m(5e3),O=m(508),S=m(2986),y=m(1059),T=m(5778),M=m(7625),x=m(7545),N=m(1307),B=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&&b.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&&b.YNc(0,at,0,0,"ng-template",10),2&Kt){var et=b.oxw().$implicit;b.Q6J("cdkPortalOutlet",et.templateLabel)}}function Ut(Kt,yt){if(1&Kt&&b._uU(0),2&Kt){var et=b.oxw().$implicit;b.Oqu(et.textLabel)}}function Wt(Kt,yt){if(1&Kt){var et=b.EpF();b.TgZ(0,"div",6),b.NdJ("click",function(){var Vn=b.CHM(et),ir=Vn.$implicit,Pr=Vn.index,yi=b.oxw(),zi=b.MAs(1);return b.KtG(yi._handleClick(ir,zi,Pr))})("cdkFocusChange",function(Vn){var Pr=b.CHM(et).index,yi=b.oxw();return b.KtG(yi._tabFocusChanged(Vn,Pr))}),b.TgZ(1,"div",7),b.YNc(2,ht,1,1,"ng-template",8),b.YNc(3,Ut,1,1,"ng-template",null,9,b.W1O),b.qZA()()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=b.MAs(4),Hn=b.oxw();b.ekj("mat-tab-label-active",Hn.selectedIndex===wt),b.Q6J("id",Hn._getTabLabelId(wt))("ngClass",gt.labelClass)("disabled",gt.disabled)("matRippleDisabled",gt.disabled||Hn.disableRipple),b.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),b.xp6(2),b.Q6J("ngIf",gt.templateLabel)("ngIfElse",nn)}}function H(Kt,yt){if(1&Kt){var et=b.EpF();b.TgZ(0,"mat-tab-body",11),b.NdJ("_onCentered",function(){b.CHM(et);var Wn=b.oxw();return b.KtG(Wn._removeTabBodyWrapperHeight())})("_onCentering",function(Wn){b.CHM(et);var Vn=b.oxw();return b.KtG(Vn._setTabBodyWrapperHeight(Wn))}),b.qZA()}if(2&Kt){var gt=yt.$implicit,wt=yt.index,nn=b.oxw();b.ekj("mat-tab-body-active",nn.selectedIndex===wt),b.Q6J("id",nn._getTabContentId(wt))("ngClass",gt.bodyClass)("content",gt.content)("position",gt.position)("origin",gt.origin)("animationDuration",nn.animationDuration)("preserveContent",nn.preserveContent),b.uIk("tabindex",null!=nn.contentTabIndex&&nn.selectedIndex===wt?nn.contentTabIndex:null)("aria-labelledby",nn._getTabLabelId(wt))}}var qe=new b.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 se=function(){function Kt(yt,et,gt,wt){(0,E.Z)(this,Kt),this._elementRef=yt,this._ngZone=et,this._inkBarPositioner=gt,this._animationMode=wt}return(0,D.Z)(Kt,[{key:"alignToElement",value:function(et){var gt=this;this.show(),this._ngZone.run(function(){gt._ngZone.onStable.pipe((0,S.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}();se.\u0275fac=function(yt){return new(yt||se)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(qe),b.Y36(b.QbO,8))},se.\u0275dir=b.lG2({type:se,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(yt,et){2&yt&&b.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)}});var t=new b.OlP("MatTabContent"),Lt=(0,D.Z)(function Kt(yt){(0,E.Z)(this,Kt),this.template=yt});Lt.\u0275fac=function(yt){return new(yt||Lt)(b.Y36(b.Rgc))},Lt.\u0275dir=b.lG2({type:Lt,selectors:[["","matTabContent",""]],features:[b._Bn([{provide:t,useExisting:Lt}])]});var zt=new b.OlP("MatTabLabel"),an=new b.OlP("MAT_TAB"),Qt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn){var Hn;return(0,E.Z)(this,et),(Hn=yt.call(this,gt,wt))._closestTab=nn,Hn}return(0,D.Z)(et)}(v.ig);Qt.\u0275fac=function(yt){return new(yt||Qt)(b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(an,8))},Qt.\u0275dir=b.lG2({type:Qt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[b._Bn([{provide:zt,useExisting:Qt}]),b.qOj]});var vn=(0,O.Id)(function(){return(0,D.Z)(function Kt(){(0,E.Z)(this,Kt)})}()),Vt=new b.OlP("MAT_TAB_GROUP"),Jt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt){var nn;return(0,E.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,D.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)(b.Y36(b.s_b),b.Y36(Vt,8))},Jt.\u0275cmp=b.Xpm({type:Jt,selectors:[["mat-tab"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&(b.Suo(gt,zt,5),b.Suo(gt,t,7,b.Rgc)),2&yt)&&(b.iGM(wt=b.CRH())&&(et.templateLabel=wt.first),b.iGM(wt=b.CRH())&&(et._explicitContent=wt.first))},viewQuery:function(yt,et){var gt;(1&yt&&b.Gf(b.Rgc,7),2&yt)&&(b.iGM(gt=b.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:[b._Bn([{provide:an,useExisting:Jt}]),b.qOj,b.TTD],ngContentSelectors:Dt,decls:1,vars:0,template:function(yt,et){1&yt&&(b.F$t(),b.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,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn){var Wn;return(0,E.Z)(this,et),(Wn=yt.call(this,gt,wt,Hn))._host=nn,Wn._centeringSub=$.w.EMPTY,Wn._leavingSub=$.w.EMPTY,Wn}return(0,D.Z)(et,[{key:"ngOnInit",value:function(){var wt=this;(0,A.Z)((0,U.Z)(et.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,y.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,U.Z)(et.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),et}(v.Pl);Fe.\u0275fac=function(yt){return new(yt||Fe)(b.Y36(b._Vd),b.Y36(b.s_b),b.Y36((0,b.Gpc)(function(){return ye})),b.Y36(k.K0))},Fe.\u0275dir=b.lG2({type:Fe,selectors:[["","matTabBodyHost",""]],features:[b.qOj]});var ne=function(){function Kt(yt,et,gt){var wt=this;(0,E.Z)(this,Kt),this._elementRef=yt,this._dir=et,this._dirChangeSubscription=$.w.EMPTY,this._translateTabComplete=new X.xQ,this._onCentering=new b.vpe,this._beforeCentering=new b.vpe,this._afterLeavingCenter=new b.vpe,this._onCentered=new b.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,T.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,D.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)(b.Y36(b.SBq),b.Y36(de.Is,8),b.Y36(b.sBO))},ne.\u0275dir=b.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,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn){return(0,E.Z)(this,et),yt.call(this,gt,wt,nn)}return(0,D.Z)(et)}(ne);ye.\u0275fac=function(yt){return new(yt||ye)(b.Y36(b.SBq),b.Y36(de.Is,8),b.Y36(b.sBO))},ye.\u0275cmp=b.Xpm({type:ye,selectors:[["mat-tab-body"]],viewQuery:function(yt,et){var gt;(1&yt&&b.Gf(v.Pl,5),2&yt)&&(b.iGM(gt=b.CRH())&&(et._portalHost=gt.first))},hostAttrs:[1,"mat-tab-body"],features:[b.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(yt,et){1&yt&&(b.TgZ(0,"div",0,1),b.NdJ("@translateTab.start",function(wt){return et._onTranslateTabStarted(wt)})("@translateTab.done",function(wt){return et._translateTabComplete.next(wt)}),b.YNc(2,Rt,0,0,"ng-template",2),b.qZA()),2&yt&&b.Q6J("@translateTab",b.WLB(3,$t,et._position,b.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 b.OlP("MAT_TABS_CONFIG"),lt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt){var wt;return(0,E.Z)(this,et),(wt=yt.call(this)).elementRef=gt,wt}return(0,D.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,O.Id)(function(){return(0,D.Z)(function Kt(){(0,E.Z)(this,Kt)})}()));lt.\u0275fac=function(yt){return new(yt||lt)(b.Y36(b.SBq))},lt.\u0275dir=b.lG2({type:lt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(yt,et){2&yt&&(b.uIk("aria-disabled",!!et.disabled),b.ekj("mat-tab-disabled",et.disabled))},inputs:{disabled:"disabled"},features:[b.qOj]});var ut=(0,ot.i$)({passive:!0}),yn=function(){function Kt(yt,et,gt,wt,nn,Hn,Wn){var Vn=this;(0,E.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 b.vpe,this.indexFocused=new b.vpe,nn.runOutsideAngular(function(){(0,V.R)(yt.nativeElement,"mouseleave").pipe((0,M.R)(Vn._destroyed)).subscribe(function(){Vn._stopInterval()})})}return(0,D.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,M.R)(this._destroyed)).subscribe(function(){et._handlePaginatorPress("before")}),(0,V.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,M.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,S.q)(1)).subscribe(nn),(0,te.T)(gt,wt,this._items.changes,this._itemsResized()).pipe((0,M.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,M.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,y.O)(this._items),(0,x.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,B.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,M.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)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(St.rL),b.Y36(de.Is,8),b.Y36(b.R0b),b.Y36(ot.t4),b.Y36(b.QbO,8))},yn.\u0275dir=b.lG2({type:yn,inputs:{disablePagination:"disablePagination"}});var ln=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){var Pr;return(0,E.Z)(this,et),(Pr=yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir))._disableRipple=!1,Pr}return(0,D.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)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(St.rL),b.Y36(de.Is,8),b.Y36(b.R0b),b.Y36(ot.t4),b.Y36(b.QbO,8))},ln.\u0275dir=b.lG2({type:ln,inputs:{disableRipple:"disableRipple"},features:[b.qOj]});var Sn=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){return(0,E.Z)(this,et),yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir)}return(0,D.Z)(et)}(ln);Sn.\u0275fac=function(yt){return new(yt||Sn)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(St.rL),b.Y36(de.Is,8),b.Y36(b.R0b),b.Y36(ot.t4),b.Y36(b.QbO,8))},Sn.\u0275cmp=b.Xpm({type:Sn,selectors:[["mat-tab-header"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&b.Suo(gt,lt,4),2&yt)&&(b.iGM(wt=b.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(b.Gf(se,7),b.Gf(Ft,7),b.Gf(pn,7),b.Gf(rt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&yt)&&(b.iGM(gt=b.CRH())&&(et._inkBar=gt.first),b.iGM(gt=b.CRH())&&(et._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&(et._tabList=gt.first),b.iGM(gt=b.CRH())&&(et._tabListInner=gt.first),b.iGM(gt=b.CRH())&&(et._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(yt,et){2&yt&&b.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:[b.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&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&yt&&(b.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),b.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),b.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[O.wG,L.wD,se],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,D.Z)(function Kt(){(0,E.Z)(this,Kt)}),xt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn){var Wn,Vn;return(0,E.Z)(this,et),(Wn=yt.call(this,gt))._changeDetectorRef=wt,Wn._animationMode=Hn,Wn._tabs=new b.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 b.vpe,Wn.focusChange=new b.vpe,Wn.animationDone=new b.vpe,Wn.selectedTabChange=new b.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,D.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,y.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,O.pj)((0,O.Kr)(function(){return(0,D.Z)(function Kt(yt){(0,E.Z)(this,Kt),this._elementRef=yt})}()),"primary"));xt.\u0275fac=function(yt){return new(yt||xt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(he,8),b.Y36(b.QbO,8))},xt.\u0275dir=b.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:[b.qOj]});var tt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn){return(0,E.Z)(this,et),yt.call(this,gt,wt,nn,Hn)}return(0,D.Z)(et)}(xt);tt.\u0275fac=function(yt){return new(yt||tt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(he,8),b.Y36(b.QbO,8))},tt.\u0275cmp=b.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(yt,et,gt){var wt;(1&yt&&b.Suo(gt,Jt,5),2&yt)&&(b.iGM(wt=b.CRH())&&(et._allTabs=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(b.Gf(Ct,5),b.Gf(Ve,5)),2&yt)&&(b.iGM(gt=b.CRH())&&(et._tabBodyWrapper=gt.first),b.iGM(gt=b.CRH())&&(et._tabHeader=gt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(yt,et){2&yt&&b.ekj("mat-tab-group-dynamic-height",et.dynamicHeight)("mat-tab-group-inverted-header","below"===et.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[b._Bn([{provide:Vt,useExisting:tt}]),b.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&&(b.TgZ(0,"mat-tab-header",0,1),b.NdJ("indexFocused",function(wt){return et._focusChanged(wt)})("selectFocusedIndex",function(wt){return et.selectedIndex=wt}),b.YNc(2,Wt,5,15,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.YNc(5,H,1,11,"mat-tab-body",5),b.qZA()),2&yt&&(b.Q6J("selectedIndex",et.selectedIndex||0)("disableRipple",et.disableRipple)("disablePagination",et.disablePagination),b.xp6(2),b.Q6J("ngForOf",et._tabs),b.xp6(1),b.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),b.xp6(2),b.Q6J("ngForOf",et._tabs))},dependencies:[k.mk,k.sg,k.O5,v.Pl,O.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,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){var Pr;return(0,E.Z)(this,et),(Pr=yt.call(this,gt,Hn,Wn,wt,nn,Vn,ir))._disableRipple=!1,Pr.color="primary",Pr}return(0,D.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,y.O)(null),(0,M.R)(this._destroyed)).subscribe(function(){wt.updateActiveLink()}),(0,A.Z)((0,U.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)(b.Y36(b.SBq),b.Y36(de.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(St.rL),b.Y36(ot.t4),b.Y36(b.QbO,8))},We.\u0275dir=b.lG2({type:We,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[b.qOj]});var Ye=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir){return(0,E.Z)(this,et),yt.call(this,gt,wt,nn,Hn,Wn,Vn,ir)}return(0,D.Z)(et)}(We);Ye.\u0275fac=function(yt){return new(yt||Ye)(b.Y36(b.SBq),b.Y36(de.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(St.rL),b.Y36(ot.t4),b.Y36(b.QbO,8))},Ye.\u0275cmp=b.Xpm({type:Ye,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(yt,et,gt){var wt;(1&yt&&b.Suo(gt,vt,5),2&yt)&&(b.iGM(wt=b.CRH())&&(et._items=wt))},viewQuery:function(yt,et){var gt;(1&yt&&(b.Gf(se,7),b.Gf(Ft,7),b.Gf(pn,7),b.Gf(rt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&yt)&&(b.iGM(gt=b.CRH())&&(et._inkBar=gt.first),b.iGM(gt=b.CRH())&&(et._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&(et._tabList=gt.first),b.iGM(gt=b.CRH())&&(et._tabListInner=gt.first),b.iGM(gt=b.CRH())&&(et._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&(et._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(yt,et){2&yt&&(b.uIk("role",et._getRole()),b.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:[b.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&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(wt){return et._handlePaginatorPress("before",wt)})("touchend",function(){return et._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(wt){return et._handleKeydown(wt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(wt){return et._handlePaginatorPress("after",wt)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&yt&&(b.ekj("mat-tab-header-pagination-disabled",et._disableScrollBefore),b.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",et._disableScrollAfter),b.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[O.wG,L.wD,se],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,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn){var ir;return(0,E.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,D.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,O.sb)((0,O.Kr)((0,O.Id)(function(){return(0,D.Z)(function Kt(){(0,E.Z)(this,Kt)})}()))));Je.\u0275fac=function(yt){return new(yt||Je)(b.Y36(We),b.Y36(b.SBq),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},Je.\u0275dir=b.lG2({type:Je,inputs:{active:"active",id:"id"},features:[b.qOj]});var vt=function(Kt){(0,R.Z)(et,Kt);var yt=(0,P.Z)(et);function et(gt,wt,nn,Hn,Wn,Vn,ir,Pr){var yi;return(0,E.Z)(this,et),(yi=yt.call(this,gt,wt,Wn,Vn,ir,Pr))._tabLinkRipple=new O.IR((0,G.Z)(yi),nn,wt,Hn),yi._tabLinkRipple.setupTriggerEvents(wt.nativeElement),yi}return(0,D.Z)(et,[{key:"ngOnDestroy",value:function(){(0,A.Z)((0,U.Z)(et.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),et}(Je);vt.\u0275fac=function(yt){return new(yt||vt)(b.Y36(Ye),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(ot.t4),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},vt.\u0275dir=b.lG2({type:vt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(yt,et){1&yt&&b.NdJ("focus",function(){return et._handleFocus()})("keydown",function(wt){return et._handleKeydown(wt)}),2&yt&&(b.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()),b.ekj("mat-tab-disabled",et.disabled)("mat-tab-label-active",et.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[b.qOj]});var fn=(0,D.Z)(function Kt(){(0,E.Z)(this,Kt),this.id="mat-tab-nav-panel-".concat(Et++)});fn.\u0275fac=function(yt){return new(yt||fn)},fn.\u0275cmp=b.Xpm({type:fn,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(yt,et){2&yt&&b.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&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0});var Un=(0,D.Z)(function Kt(){(0,E.Z)(this,Kt)});Un.\u0275fac=function(yt){return new(yt||Un)},Un.\u0275mod=b.oAB({type:Un}),Un.\u0275inj=b.cJS({imports:[k.ez,O.BQ,v.eL,O.si,L.Q8,j.rt,O.BQ]})},907:function(De,K,m){"use strict";function G(W,A){(null==A||A>W.length)&&(A=W.length);for(var U=0,R=new Array(A);U<A;U++)R[U]=W[U];return R}m.d(K,{Z:function(){return G}})},3878:function(De,K,m){"use strict";function G(W){if(Array.isArray(W))return W}m.d(K,{Z:function(){return G}})},7326:function(De,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(De,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(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(9611),W=m(8814);function A(U,R,P){return(A=(0,W.Z)()?Reflect.construct.bind():function(D,j,L){var v=[null];v.push.apply(v,j);var b=new(Function.bind.apply(D,v));return L&&(0,G.Z)(b,L.prototype),b}).apply(null,arguments)}},3144:function(De,K,m){"use strict";function G(A,U){for(var R=0;R<U.length;R++){var P=U[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(A,P.key,P)}}function W(A,U,R){return U&&G(A.prototype,U),R&&G(A,R),Object.defineProperty(A,"prototype",{writable:!1}),A}m.d(K,{Z:function(){return W}})},7762:function(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(181);function W(A,U){var R="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!R){if(Array.isArray(A)||(R=(0,G.Z)(A))||U&&A&&"number"==typeof A.length){R&&(A=R);var P=0,E=function(){};return{s:E,n:function(){return P>=A.length?{done:!0}:{done:!1,value:A[P++]}},e:function(k){throw k},f:E}}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 L,D=!0,j=!1;return{s:function(){R=R.call(A)},n:function(){var k=R.next();return D=k.done,k},e:function(k){j=!0,L=k},f:function(){try{!D&&null!=R.return&&R.return()}finally{if(j)throw L}}}}},9388:function(De,K,m){"use strict";m.d(K,{Z:function(){return U}});var G=m(1120),W=m(8814),A=m(2963);function U(R){var P=(0,W.Z)();return function(){var j,D=(0,G.Z)(R);if(P){var L=(0,G.Z)(this).constructor;j=Reflect.construct(D,arguments,L)}else j=D.apply(this,arguments);return(0,A.Z)(this,j)}}},4942:function(De,K,m){"use strict";function G(W,A,U){return A in W?Object.defineProperty(W,A,{value:U,enumerable:!0,configurable:!0,writable:!0}):W[A]=U,W}m.d(K,{Z:function(){return G}})},3237:function(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1120);function W(U,R){for(;!Object.prototype.hasOwnProperty.call(U,R)&&null!==(U=(0,G.Z)(U)););return U}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(R,P,E){var D=W(R,P);if(D){var j=Object.getOwnPropertyDescriptor(D,P);return j.get?j.get.call(arguments.length<3?R:E):j.value}},A.apply(this,arguments)}},1120:function(De,K,m){"use strict";function G(W){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(W)}m.d(K,{Z:function(){return G}})},136:function(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(9611);function W(A,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(U&&U.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),U&&(0,G.Z)(A,U)}},8814:function(De,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(De,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(De,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(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1002),W=m(7326);function A(U,R){if(R&&("object"===(0,G.Z)(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return(0,W.Z)(U)}},9611:function(De,K,m){"use strict";function G(W,A){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,P){return R.__proto__=P,R})(W,A)}m.d(K,{Z:function(){return G}})},7685:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878);var A=m(181),U=m(5267);function R(P,E){return(0,G.Z)(P)||function W(P,E){var D=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=D){var k,b,j=[],L=!0,v=!1;try{for(D=D.call(P);!(L=(k=D.next()).done)&&(j.push(k.value),!E||j.length!==E);L=!0);}catch(O){v=!0,b=O}finally{try{!L&&null!=D.return&&D.return()}finally{if(v)throw b}}return j}}(P,E)||(0,A.Z)(P,E)||(0,U.Z)()}},4506:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878),W=m(9199),A=m(181),U=m(5267);function R(P){return(0,G.Z)(P)||(0,W.Z)(P)||(0,A.Z)(P)||(0,U.Z)()}},4902:function(De,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(907);var A=m(9199),U=m(181);function P(E){return function W(E){if(Array.isArray(E))return(0,G.Z)(E)}(E)||(0,A.Z)(E)||(0,U.Z)(E)||function R(){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(De,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(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(907);function W(A,U){if(A){if("string"==typeof A)return(0,G.Z)(A,U);var R=Object.prototype.toString.call(A).slice(8,-1);if("Object"===R&&A.constructor&&(R=A.constructor.name),"Map"===R||"Set"===R)return Array.from(A);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return(0,G.Z)(A,U)}}},5724:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(1120),W=m(9611);var U=m(5647);function R(P){var E="function"==typeof Map?new Map:void 0;return R=function(j){if(null===j||!function A(P){return-1!==Function.toString.call(P).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!==E){if(E.has(j))return E.get(j);E.set(j,L)}function L(){return(0,U.Z)(j,arguments,(0,G.Z)(this).constructor)}return L.prototype=Object.create(j.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),(0,W.Z)(L,j)},R(P)}},4147:function(De){"use strict";De.exports={i8:"3.0.0b2"}}},function(De){var G;G=3746,De(De.s=G)}]);