diff --git a/gns3server/static/web-ui/index.html b/gns3server/static/web-ui/index.html index 820fe55f..70846673 100644 --- a/gns3server/static/web-ui/index.html +++ b/gns3server/static/web-ui/index.html @@ -31,7 +31,7 @@ } })(); - + @@ -46,6 +46,6 @@ gtag('config', 'G-5D6FZL9923'); - + \ No newline at end of file diff --git a/gns3server/static/web-ui/main.e96a594ddfd24f33.js b/gns3server/static/web-ui/main.7309c0d705101a52.js similarity index 51% rename from gns3server/static/web-ui/main.e96a594ddfd24f33.js rename to gns3server/static/web-ui/main.7309c0d705101a52.js index d0c887c3..42f0069c 100644 --- a/gns3server/static/web-ui/main.e96a594ddfd24f33.js +++ b/gns3server/static/web-ui/main.7309c0d705101a52.js @@ -1 +1 @@ -(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(qe,J,m){"use strict";m.d(J,{o:function(){return L}});var z=m(5671),Y=m(3144),M=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new M.X([]),this.itemUpdated=new U.xQ}return(0,Y.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(y){this.findIndex(y)>=0?this.update(y):(this.data.push(y),this.dataChange.next(this.data))}},{key:"set",value:function(y){var K=this;y.forEach(function(E){var A=K.findIndex(E);if(A>=0){var k=Object.assign(K.data[A],E);K.data[A]=k}else K.data.push(E)}),this.data.filter(function(E){return 0===y.filter(function(A){return K.getItemKey(A)===K.getItemKey(E)}).length}).forEach(function(E){return K.remove(E)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(E){return K.getItemKey(E)===y});if(F>=0)return this.data[F]}},{key:"update",value:function(y){var K=this.findIndex(y);if(K>=0){var F=Object.assign(this.data[K],y);this.data[K]=F,this.dataChange.next(this.data),this.itemUpdated.next(F)}}},{key:"remove",value:function(y){var K=this.findIndex(y);K>=0&&(this.data.splice(K,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(y){var K=this;return this.data.findIndex(function(F){return K.getItemKey(F)===K.getItemKey(y)})}}]),P}()},6215:function(qe,J,m){"use strict";m.d(J,{F:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.link_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5366:function(qe,J,m){"use strict";m.d(J,{G:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.node_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5542:function(qe,J,m){"use strict";m.d(J,{X:function(){return P}});var z=m(5671),Y=m(3144),M=m(4766),U=m(5e3),L=m(2437),P=function(){function D(y){(0,z.Z)(this,D),this.httpController=y}return(0,Y.Z)(D,[{key:"getComputes",value:function(K){return this.httpController.get(K,"/computes")}},{key:"getUploadPath",value:function(K,F,E){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(M.N.current_version,"/").concat(F,"/images/").concat(E)}},{key:"getStatistics",value:function(K){return this.httpController.get(K,"/statistics")}}]),D}();P.\u0275fac=function(y){return new(y||P)(U.LFG(L.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(qe,J,m){"use strict";m.d(J,{CJ:function(){return A},zw:function(){return k}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),E=function(I){(0,M.Z)(w,I);var T=(0,U.Z)(w);function w(S){return(0,z.Z)(this,w),T.call(this,S)}return(0,Y.Z)(w,null,[{key:"fromError",value:function(N,R){var W=new w(N);return W.originalError=R,W}}]),w}((0,L.Z)(Error)),A=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var S=w;return"HttpErrorResponse"===w.name&&0===w.status&&(S=E.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(S)}}]),I}();A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac});var k=function(){function I(T,w){(0,z.Z)(this,I),this.http=T,this.errorHandler=w,this.requestsNotificationEmitter=new P.vpe}return(0,Y.Z)(I,[{key:"get",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getText",value:function(w,S,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(w,S,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"post",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.requestsNotificationEmitter.emit("POST ".concat(W.url)),this.http.post(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"put",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.requestsNotificationEmitter.emit("PUT ".concat(W.url)),this.http.put(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"delete",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("DELETE ".concat(R.url)),this.http.delete(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"patch",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.http.patch(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"head",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.http.head(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"options",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.http.options(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(w){return w||{responseType:"json"}}},{key:"getTextOptions",value:function(w){return w||{responseType:"text"}}},{key:"getBlobOptions",value:function(w){return w||{responseType:"blob"}}},{key:"getOptionsForController",value:function(w,S,N){return w&&w.host&&w.port?(w.protocol||(w.protocol=location.protocol),S="".concat(w.protocol,"//").concat(w.host,":").concat(w.port,"/").concat(D.N.current_version).concat(S)):S="/".concat(D.N.current_version).concat(S),N.headers||(N.headers={}),w&&w.authToken&&!w.tokenExpired&&(N.headers.Authorization="Bearer ".concat(w.authToken)),{url:S,options:N}}}]),I}();k.\u0275fac=function(T){return new(T||k)(P.LFG(F.eN),P.LFG(A))},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac})},9971:function(qe,J,m){"use strict";m.d(J,{Y:function(){return K}});var z=m(5671),Y=m(3144),M=m(4766),U=m(8929),L=m(5e3),P=m(2437),D=m(9449),y=m(9740),K=function(){function F(E,A,k){(0,z.Z)(this,F),this.httpController=E,this.settingsService=A,this.recentlyOpenedProjectService=k,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}return(0,Y.Z)(F,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(A,k){return this.httpController.getText(A,"/projects/".concat(k,"/files/README.txt"))}},{key:"postReadmeFile",value:function(A,k,I){return this.httpController.post(A,"/projects/".concat(k,"/files/README.txt"),I)}},{key:"get",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k))}},{key:"open",value:function(A,k){return this.httpController.post(A,"/projects/".concat(k,"/open"),{})}},{key:"close",value:function(A,k){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(A,"/projects/".concat(k,"/close"),{})}},{key:"list",value:function(A){return this.httpController.get(A,"/projects")}},{key:"nodes",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/nodes"))}},{key:"links",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/links"))}},{key:"drawings",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/drawings"))}},{key:"add",value:function(A,k,I){return this.httpController.post(A,"/projects",{name:k,project_id:I})}},{key:"update",value:function(A,k){return this.httpController.put(A,"/projects/".concat(k.project_id),{auto_close:k.auto_close,auto_open:k.auto_open,auto_start:k.auto_start,drawing_grid_size:k.drawing_grid_size,grid_size:k.grid_size,name:k.name,scene_width:k.scene_width,scene_height:k.scene_height,show_interface_labels:k.show_interface_labels})}},{key:"delete",value:function(A,k){return this.httpController.delete(A,"/projects/".concat(k))}},{key:"getUploadPath",value:function(A,k,I){return"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/import?name=").concat(I)}},{key:"getExportPath",value:function(A,k){return"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k.project_id,"/export")}},{key:"export",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/export"))}},{key:"getStatistics",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/stats"))}},{key:"duplicate",value:function(A,k,I){return this.httpController.post(A,"/projects/".concat(k,"/duplicate"),{name:I})}},{key:"isReadOnly",value:function(A){return!!A.readonly&&A.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(A,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=I.compression_level&&""!=I.compression_level?"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&compression_level=").concat(I.compression_level,"&token=").concat(A.authToken):"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&token=").concat(A.authToken)}}]),F}();K.\u0275fac=function(E){return new(E||K)(L.LFG(P.zw),L.LFG(D.g),L.LFG(y.p))},K.\u0275prov=L.Yz7({token:K,factory:K.\u0275fac})},9740:function(qe,J,m){"use strict";m.d(J,{p:function(){return U}});var z=m(5671),Y=m(3144),M=m(5e3),U=function(){function L(){(0,z.Z)(this,L)}return(0,Y.Z)(L,[{key:"setcontrollerId",value:function(D){this.controllerId=D}},{key:"setProjectId",value:function(D){this.projectId=D}},{key:"setcontrollerIdProjectList",value:function(D){this.controllerIdProjectList=D}},{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=""}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=M.Yz7({token:U,factory:U.\u0275fac})},9449:function(qe,J,m){"use strict";m.d(J,{g:function(){return U}});var z=m(5671),Y=m(3144),M=m(5e3),U=function(){function L(){(0,z.Z)(this,L),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,Y.Z)(L,[{key:"setReportsSettings",value:function(D){this.settings.crash_reports=D,this.removeItem(this.reportsSettings),D?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(D){this.settings.anonymous_statistics=D,this.removeItem(this.statisticsSettings),D?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(D){this.settings.console_command=D,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,D)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(D){localStorage.removeItem(D)}},{key:"setItem",value:function(D,y){localStorage.setItem(D,y)}},{key:"getItem",value:function(D){return localStorage.getItem(D)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(D){this.settings=D,this.setConsoleSettings(D.console_command),this.setReportsSettings(D.crash_reports),this.setStatisticsSettings(D.anonymous_statistics)}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=M.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(qe,J,m){"use strict";m.d(J,{f:function(){return L}});var z=m(5671),Y=m(3144),M=m(5e3),U=m(591),L=function(){function P(){(0,z.Z)(this,P),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new M.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,Y.Z)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(y){y?(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}();L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=M.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})},4766:function(qe,J,m){"use strict";m.d(J,{N:function(){return z}});var z={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},7581:function(qe,J,m){"use strict";var z={};m.r(z),m.d(z,{active:function(){return k1e},arc:function(){return fge},area:function(){return cQ},areaRadial:function(){return hQ},ascending:function(){return Nf},axisBottom:function(){return l8},axisLeft:function(){return u8},axisRight:function(){return s8},axisTop:function(){return a8},bisect:function(){return O_},bisectLeft:function(){return V6},bisectRight:function(){return HM},bisector:function(){return U1},brush:function(){return Mse},brushSelection:function(){return kse},brushX:function(){return Tse},brushY:function(){return Ese},chord:function(){return xse},clientPoint:function(){return h5},cluster:function(){return nde},color:function(){return KR},contourDensity:function(){return ple},contours:function(){return kY},create:function(){return N_e},creator:function(){return f5},cross:function(){return tl},csvFormat:function(){return wle},csvFormatRows:function(){return kle},csvParse:function(){return ble},csvParseRows:function(){return Cle},cubehelix:function(){return CY},curveBasis:function(){return Oge},curveBasisClosed:function(){return Ige},curveBasisOpen:function(){return Pge},curveBundle:function(){return Rge},curveCardinal:function(){return Lge},curveCardinalClosed:function(){return Zge},curveCardinalOpen:function(){return Nge},curveCatmullRom:function(){return Bge},curveCatmullRomClosed:function(){return Fge},curveCatmullRomOpen:function(){return Uge},curveLinear:function(){return g5},curveLinearClosed:function(){return Hge},curveMonotoneX:function(){return jge},curveMonotoneY:function(){return zge},curveNatural:function(){return Wge},curveStep:function(){return Vge},curveStepAfter:function(){return Gge},curveStepBefore:function(){return Yge},customEvent:function(){return I_e},descending:function(){return I_},deviation:function(){return Q4},dispatch:function(){return Ff},drag:function(){return W_},dragDisable:function(){return jf},dragEnable:function(){return X1},dsvFormat:function(){return yU},easeBack:function(){return PY},easeBackIn:function(){return Kle},easeBackInOut:function(){return PY},easeBackOut:function(){return Jle},easeBounce:function(){return TS},easeBounceIn:function(){return Gle},easeBounceInOut:function(){return qle},easeBounceOut:function(){return TS},easeCircle:function(){return IY},easeCircleIn:function(){return Nle},easeCircleInOut:function(){return IY},easeCircleOut:function(){return Ble},easeCubic:function(){return jR},easeCubicIn:function(){return fse},easeCubicInOut:function(){return jR},easeCubicOut:function(){return pse},easeElastic:function(){return RY},easeElasticIn:function(){return Qle},easeElasticInOut:function(){return Xle},easeElasticOut:function(){return RY},easeExp:function(){return OY},easeExpIn:function(){return Lle},easeExpInOut:function(){return OY},easeExpOut:function(){return Zle},easeLinear:function(){return xle},easePoly:function(){return SY},easePolyIn:function(){return Ole},easePolyInOut:function(){return SY},easePolyOut:function(){return Ile},easeQuad:function(){return MY},easeQuadIn:function(){return Dle},easeQuadInOut:function(){return MY},easeQuadOut:function(){return Ale},easeSin:function(){return AY},easeSinIn:function(){return Ple},easeSinInOut:function(){return AY},easeSinOut:function(){return Rle},entries:function(){return zse},event:function(){return Ih},extent:function(){return hh},forceCenter:function(){return $le},forceCollide:function(){return vue},forceLink:function(){return bue},forceManyBody:function(){return Mue},forceRadial:function(){return Sue},forceSimulation:function(){return Eue},forceX:function(){return xue},forceY:function(){return Due},format:function(){return WY},formatDefaultLocale:function(){return YY},formatLocale:function(){return zY},formatPrefix:function(){return VY},formatSpecifier:function(){return iL},geoAlbers:function(){return oq},geoAlbersUsa:function(){return Zce},geoArea:function(){return Hue},geoAzimuthalEqualArea:function(){return Nce},geoAzimuthalEqualAreaRaw:function(){return c7},geoAzimuthalEquidistant:function(){return Bce},geoAzimuthalEquidistantRaw:function(){return d7},geoBounds:function(){return Vue},geoCentroid:function(){return Que},geoCircle:function(){return Xue},geoClipAntimeridian:function(){return zU},geoClipCircle:function(){return SG},geoClipExtent:function(){return oce},geoClipRectangle:function(){return xL},geoConicConformal:function(){return Uce},geoConicConformalRaw:function(){return lq},geoConicEqualArea:function(){return FL},geoConicEqualAreaRaw:function(){return iq},geoConicEquidistant:function(){return jce},geoConicEquidistantRaw:function(){return uq},geoContains:function(){return fce},geoDistance:function(){return AS},geoEquirectangular:function(){return Hce},geoEquirectangularRaw:function(){return FS},geoGnomonic:function(){return zce},geoGnomonicRaw:function(){return f7},geoGraticule:function(){return NG},geoGraticule10:function(){return pce},geoIdentity:function(){return Wce},geoInterpolate:function(){return hce},geoLength:function(){return xG},geoMercator:function(){return Fce},geoMercatorRaw:function(){return BS},geoNaturalEarth1:function(){return Vce},geoNaturalEarth1Raw:function(){return p7},geoOrthographic:function(){return Yce},geoOrthographicRaw:function(){return h7},geoPath:function(){return Mce},geoProjection:function(){return Dh},geoProjectionMutator:function(){return l7},geoRotation:function(){return yG},geoStereographic:function(){return Gce},geoStereographicRaw:function(){return m7},geoStream:function(){return Nd},geoTransform:function(){return Sce},geoTransverseMercator:function(){return qce},geoTransverseMercatorRaw:function(){return _7},hcl:function(){return _Y},hierarchy:function(){return g7},histogram:function(){return e8},hsl:function(){return sY},interpolate:function(){return A7},interpolateArray:function(){return Fq},interpolateBasis:function(){return Lq},interpolateBasisClosed:function(){return Zq},interpolateBlues:function(){return $he},interpolateBrBG:function(){return Ihe},interpolateBuGn:function(){return Hhe},interpolateBuPu:function(){return jhe},interpolateCool:function(){return cme},interpolateCubehelix:function(){return yfe},interpolateCubehelixDefault:function(){return lme},interpolateCubehelixLong:function(){return bfe},interpolateDate:function(){return Uq},interpolateGnBu:function(){return zhe},interpolateGreens:function(){return eme},interpolateGreys:function(){return tme},interpolateHcl:function(){return _fe},interpolateHclLong:function(){return gfe},interpolateHsl:function(){return ffe},interpolateHslLong:function(){return pfe},interpolateInferno:function(){return hme},interpolateLab:function(){return mfe},interpolateMagma:function(){return pme},interpolateNumber:function(){return Xf},interpolateObject:function(){return Hq},interpolateOrRd:function(){return Whe},interpolateOranges:function(){return ime},interpolatePRGn:function(){return Phe},interpolatePiYG:function(){return Rhe},interpolatePlasma:function(){return mme},interpolatePuBu:function(){return Yhe},interpolatePuBuGn:function(){return Vhe},interpolatePuOr:function(){return Lhe},interpolatePuRd:function(){return Ghe},interpolatePurples:function(){return nme},interpolateRainbow:function(){return dme},interpolateRdBu:function(){return Zhe},interpolateRdGy:function(){return Nhe},interpolateRdPu:function(){return qhe},interpolateRdYlBu:function(){return Bhe},interpolateRdYlGn:function(){return Fhe},interpolateReds:function(){return rme},interpolateRgb:function(){return S7},interpolateRgbBasis:function(){return $de},interpolateRgbBasisClosed:function(){return efe},interpolateRound:function(){return rfe},interpolateSpectral:function(){return Uhe},interpolateString:function(){return jq},interpolateTransformCss:function(){return afe},interpolateTransformSvg:function(){return sfe},interpolateViridis:function(){return fme},interpolateWarm:function(){return ume},interpolateYlGn:function(){return Jhe},interpolateYlGnBu:function(){return Khe},interpolateYlOrBr:function(){return Qhe},interpolateYlOrRd:function(){return Xhe},interpolateZoom:function(){return dfe},interrupt:function(){return YX},interval:function(){return Bye},isoFormat:function(){return Rye},isoParse:function(){return Nye},keys:function(){return Hse},lab:function(){return mY},line:function(){return v5},lineRadial:function(){return pQ},linkHorizontal:function(){return Cge},linkRadial:function(){return kge},linkVertical:function(){return wge},local:function(){return aQ},map:function(){return j_},matcher:function(){return GJ},max:function(){return J6},mean:function(){return WM},median:function(){return VM},merge:function(){return YM},min:function(){return Q6},mouse:function(){return F_e},namespace:function(){return d9},namespaces:function(){return c9},nest:function(){return Nse},now:function(){return H_},pack:function(){return Sde},packEnclose:function(){return dq},packSiblings:function(){return Tde},pairs:function(){return Y6},partition:function(){return xde},path:function(){return Zd},permute:function(){return X6},pie:function(){return mge},pointRadial:function(){return sx},polygonArea:function(){return wfe},polygonCentroid:function(){return kfe},polygonContains:function(){return Sfe},polygonHull:function(){return Mfe},polygonLength:function(){return xfe},precisionFixed:function(){return Lue},precisionPrefix:function(){return Zue},precisionRound:function(){return Nue},quadtree:function(){return nL},quantile:function(){return L_},quantize:function(){return Cfe},radialArea:function(){return hQ},radialLine:function(){return pQ},randomBates:function(){return Ofe},randomExponential:function(){return Ife},randomIrwinHall:function(){return hK},randomLogNormal:function(){return Afe},randomNormal:function(){return pK},randomUniform:function(){return Dfe},range:function(){return Nl},rgb:function(){return oY},ribbon:function(){return Zse},scaleBand:function(){return Y7},scaleIdentity:function(){return SK},scaleImplicit:function(){return W7},scaleLinear:function(){return MK},scaleLog:function(){return IK},scaleOrdinal:function(){return V7},scalePoint:function(){return Pfe},scalePow:function(){return Q7},scaleQuantile:function(){return PK},scaleQuantize:function(){return RK},scaleSequential:function(){return fJ},scaleSqrt:function(){return epe},scaleThreshold:function(){return LK},scaleTime:function(){return vhe},scaleUtc:function(){return whe},scan:function(){return $6},schemeAccent:function(){return The},schemeBlues:function(){return RJ},schemeBrBG:function(){return pJ},schemeBuGn:function(){return wJ},schemeBuPu:function(){return kJ},schemeCategory10:function(){return khe},schemeDark2:function(){return Ehe},schemeGnBu:function(){return TJ},schemeGreens:function(){return LJ},schemeGreys:function(){return ZJ},schemeOrRd:function(){return EJ},schemeOranges:function(){return FJ},schemePRGn:function(){return hJ},schemePaired:function(){return Mhe},schemePastel1:function(){return She},schemePastel2:function(){return xhe},schemePiYG:function(){return mJ},schemePuBu:function(){return SJ},schemePuBuGn:function(){return MJ},schemePuOr:function(){return _J},schemePuRd:function(){return xJ},schemePurples:function(){return NJ},schemeRdBu:function(){return gJ},schemeRdGy:function(){return vJ},schemeRdPu:function(){return DJ},schemeRdYlBu:function(){return yJ},schemeRdYlGn:function(){return bJ},schemeReds:function(){return BJ},schemeSet1:function(){return Dhe},schemeSet2:function(){return Ahe},schemeSet3:function(){return Ohe},schemeSpectral:function(){return CJ},schemeYlGn:function(){return OJ},schemeYlGnBu:function(){return AJ},schemeYlOrBr:function(){return IJ},schemeYlOrRd:function(){return PJ},select:function(){return oQ},selectAll:function(){return U_e},selection:function(){return Z_e},selector:function(){return f9},selectorAll:function(){return VJ},set:function(){return Use},shuffle:function(){return eR},stack:function(){return Kge},stackOffsetDiverging:function(){return Qge},stackOffsetExpand:function(){return Jge},stackOffsetNone:function(){return IC},stackOffsetSilhouette:function(){return Xge},stackOffsetWiggle:function(){return $ge},stackOrderAscending:function(){return NQ},stackOrderDescending:function(){return eve},stackOrderInsideOut:function(){return tve},stackOrderNone:function(){return PC},stackOrderReverse:function(){return nve},stratify:function(){return Ide},style:function(){return JJ},sum:function(){return t8},symbol:function(){return Age},symbolCircle:function(){return T9},symbolCross:function(){return mQ},symbolDiamond:function(){return gQ},symbolSquare:function(){return bQ},symbolStar:function(){return yQ},symbolTriangle:function(){return CQ},symbolWye:function(){return wQ},symbols:function(){return Dge},thresholdFreedmanDiaconis:function(){return W1},thresholdScott:function(){return K6},thresholdSturges:function(){return z1},tickIncrement:function(){return mh},tickStep:function(){return R_},ticks:function(){return P_},timeDay:function(){return sve},timeDays:function(){return lve},timeFormat:function(){return EX},timeFormatDefaultLocale:function(){return SX},timeFormatLocale:function(){return hX},timeFriday:function(){return $Q},timeFridays:function(){return pve},timeHour:function(){return ove},timeHours:function(){return ave},timeInterval:function(){return xs},timeMillisecond:function(){return FQ},timeMilliseconds:function(){return UQ},timeMinute:function(){return rve},timeMinutes:function(){return ive},timeMonday:function(){return KQ},timeMondays:function(){return uve},timeMonth:function(){return mve},timeMonths:function(){return _ve},timeParse:function(){return MX},timeSaturday:function(){return eX},timeSaturdays:function(){return hve},timeSecond:function(){return WQ},timeSeconds:function(){return VQ},timeSunday:function(){return R9},timeSundays:function(){return tX},timeThursday:function(){return XQ},timeThursdays:function(){return fve},timeTuesday:function(){return JQ},timeTuesdays:function(){return cve},timeWednesday:function(){return QQ},timeWednesdays:function(){return dve},timeWeek:function(){return R9},timeWeeks:function(){return tX},timeYear:function(){return gve},timeYears:function(){return vve},timeout:function(){return gS},timer:function(){return _S},timerFlush:function(){return DV},touch:function(){return H_e},touches:function(){return j_e},transition:function(){return p$},transpose:function(){return GM},tree:function(){return Bde},treemap:function(){return Fde},treemapBinary:function(){return Ude},treemapDice:function(){return HS},treemapResquarify:function(){return jde},treemapSlice:function(){return YL},treemapSliceDice:function(){return Hde},treemapSquarify:function(){return Eq},tsvFormat:function(){return Mle},tsvFormatRows:function(){return Sle},tsvParse:function(){return Tle},tsvParseRows:function(){return Ele},utcDay:function(){return kve},utcDays:function(){return Tve},utcFormat:function(){return B9},utcFriday:function(){return cX},utcFridays:function(){return Dve},utcHour:function(){return Cve},utcHours:function(){return wve},utcMillisecond:function(){return FQ},utcMilliseconds:function(){return UQ},utcMinute:function(){return yve},utcMinutes:function(){return bve},utcMonday:function(){return aX},utcMondays:function(){return Eve},utcMonth:function(){return Ove},utcMonths:function(){return Ive},utcParse:function(){return F9},utcSaturday:function(){return dX},utcSaturdays:function(){return Ave},utcSecond:function(){return WQ},utcSeconds:function(){return VQ},utcSunday:function(){return Z9},utcSundays:function(){return fX},utcThursday:function(){return uX},utcThursdays:function(){return xve},utcTuesday:function(){return sX},utcTuesdays:function(){return Mve},utcWednesday:function(){return lX},utcWednesdays:function(){return Sve},utcWeek:function(){return Z9},utcWeeks:function(){return fX},utcYear:function(){return Pve},utcYears:function(){return Rve},values:function(){return jse},variance:function(){return G6},voronoi:function(){return j1e},window:function(){return p9},zip:function(){return n8},zoom:function(){return S$},zoomIdentity:function(){return U5},zoomTransform:function(){return E$}});var Y={};m.r(Y),m.d(Y,{safe:function(){return Gte},spec:function(){return jAe}});var M={};m.r(M),m.d(M,{getTrace:function(){return Rne},isKeyword:function(){return mIe},isProperty:function(){return hIe},isType:function(){return pIe}});var U={};m.r(U),m.d(U,{generate:function(){return AIe},name:function(){return xIe},parse:function(){return Wne},structure:function(){return DIe}});var L={};m.r(L),m.d(L,{generate:function(){return LIe},name:function(){return IIe},parse:function(){return Yne},structure:function(){return RIe},walkContext:function(){return PIe}});var P={};m.r(P),m.d(P,{generate:function(){return FIe},name:function(){return ZIe},parse:function(){return Gne},structure:function(){return BIe},walkContext:function(){return NIe}});var D={};m.r(D),m.d(D,{generate:function(){return GIe},name:function(){return VIe},parse:function(){return Kne},structure:function(){return YIe}});var y={};m.r(y),m.d(y,{generate:function(){return $Ie},name:function(){return JIe},parse:function(){return Xne},structure:function(){return XIe},walkContext:function(){return QIe}});var K={};m.r(K),m.d(K,{generate:function(){return nPe},name:function(){return ePe},parse:function(){return $ne},structure:function(){return tPe}});var F={};m.r(F),m.d(F,{generate:function(){return oPe},name:function(){return rPe},parse:function(){return ere},structure:function(){return iPe}});var E={};m.r(E),m.d(E,{generate:function(){return lPe},name:function(){return aPe},parse:function(){return tre},structure:function(){return sPe}});var A={};m.r(A),m.d(A,{generate:function(){return fPe},name:function(){return cPe},parse:function(){return nre},structure:function(){return dPe}});var k={};m.r(k),m.d(k,{generate:function(){return vPe},name:function(){return _Pe},parse:function(){return ire},structure:function(){return gPe}});var I={};m.r(I),m.d(I,{generate:function(){return kPe},name:function(){return CPe},parse:function(){return ore},structure:function(){return wPe}});var T={};m.r(T),m.d(T,{generate:function(){return LPe},name:function(){return IPe},parse:function(){return lre},structure:function(){return RPe},walkContext:function(){return PPe}});var w={};m.r(w),m.d(w,{generate:function(){return HPe},name:function(){return FPe},parse:function(){return ure},structure:function(){return UPe}});var S={};m.r(S),m.d(S,{generate:function(){return WPe},name:function(){return jPe},parse:function(){return cre},structure:function(){return zPe}});var N={};m.r(N),m.d(N,{generate:function(){return qPe},name:function(){return VPe},parse:function(){return dre},structure:function(){return GPe},walkContext:function(){return YPe}});var R={};m.r(R),m.d(R,{generate:function(){return XPe},name:function(){return JPe},parse:function(){return fre},structure:function(){return QPe},xxx:function(){return KPe}});var W={};m.r(W),m.d(W,{generate:function(){return t3e},name:function(){return $Pe},parse:function(){return pre},structure:function(){return e3e}});var $={};m.r($),m.d($,{generate:function(){return i3e},name:function(){return n3e},parse:function(){return hre},structure:function(){return r3e}});var ce={};m.r(ce),m.d(ce,{generate:function(){return s3e},name:function(){return o3e},parse:function(){return mre},structure:function(){return a3e}});var se={};m.r(se),m.d(se,{generate:function(){return c3e},name:function(){return l3e},parse:function(){return _re},structure:function(){return u3e}});var ee={};m.r(ee),m.d(ee,{generate:function(){return p3e},name:function(){return d3e},parse:function(){return gre},structure:function(){return f3e}});var oe={};m.r(oe),m.d(oe,{generate:function(){return _3e},name:function(){return h3e},parse:function(){return vre},structure:function(){return m3e}});var ge={};m.r(ge),m.d(ge,{generate:function(){return y3e},name:function(){return g3e},parse:function(){return yre},structure:function(){return v3e}});var Oe={};m.r(Oe),m.d(Oe,{generate:function(){return w3e},name:function(){return b3e},parse:function(){return bre},structure:function(){return C3e}});var ot={};m.r(ot),m.d(ot,{generate:function(){return E3e},name:function(){return k3e},parse:function(){return Cre},structure:function(){return T3e}});var xe={};m.r(xe),m.d(xe,{generate:function(){return x3e},name:function(){return M3e},parse:function(){return wre},structure:function(){return S3e}});var _e={};m.r(_e),m.d(_e,{generate:function(){return I3e},name:function(){return D3e},parse:function(){return kre},structure:function(){return O3e},walkContext:function(){return A3e}});var ke={};m.r(ke),m.d(ke,{generate:function(){return Z3e},name:function(){return P3e},parse:function(){return Tre},structure:function(){return L3e},walkContext:function(){return R3e}});var Be={};m.r(Be),m.d(Be,{generate:function(){return H3e},name:function(){return F3e},parse:function(){return Mre},structure:function(){return U3e}});var ct={};m.r(ct),m.d(ct,{generate:function(){return V3e},name:function(){return z3e},parse:function(){return Sre},structure:function(){return W3e}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return J3e},name:function(){return G3e},parse:function(){return Dre},structure:function(){return K3e},walkContext:function(){return q3e}});var Nt={};m.r(Nt),m.d(Nt,{generate:function(){return $3e},name:function(){return Q3e},parse:function(){return Are},structure:function(){return X3e}});var Xt={};m.r(Xt),m.d(Xt,{generate:function(){return r6e},name:function(){return e6e},parse:function(){return Ore},structure:function(){return n6e},walkContext:function(){return t6e}});var en={};m.r(en),m.d(en,{generate:function(){return s6e},name:function(){return o6e},parse:function(){return Lre},structure:function(){return a6e}});var qt={};m.r(qt),m.d(qt,{generate:function(){return f6e},name:function(){return u6e},parse:function(){return Nre},structure:function(){return d6e},walkContext:function(){return c6e}});var Xe={};m.r(Xe),m.d(Xe,{generate:function(){return _6e},name:function(){return h6e},parse:function(){return Fre},structure:function(){return m6e}});var jt={};m.r(jt),m.d(jt,{generate:function(){return C6e},name:function(){return y6e},parse:function(){return jre},structure:function(){return b6e}});var rt={};m.r(rt),m.d(rt,{generate:function(){return A6e},name:function(){return x6e},parse:function(){return Wre},structure:function(){return D6e}});var vt={};m.r(vt),m.d(vt,{generate:function(){return P6e},name:function(){return O6e},parse:function(){return Vre},structure:function(){return I6e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return N6e},name:function(){return L6e},parse:function(){return Yre},structure:function(){return Z6e}});var Rt={};m.r(Rt),m.d(Rt,{AnPlusB:function(){return U},Atrule:function(){return L},AtrulePrelude:function(){return P},AttributeSelector:function(){return D},Block:function(){return y},Brackets:function(){return K},CDC:function(){return F},CDO:function(){return E},ClassSelector:function(){return A},Combinator:function(){return k},Comment:function(){return I},Declaration:function(){return T},DeclarationList:function(){return w},Dimension:function(){return S},Function:function(){return N},Hash:function(){return R},IdSelector:function(){return $},Identifier:function(){return W},MediaFeature:function(){return ce},MediaQuery:function(){return se},MediaQueryList:function(){return ee},Nth:function(){return oe},Number:function(){return ge},Operator:function(){return Oe},Parentheses:function(){return ot},Percentage:function(){return xe},PseudoClassSelector:function(){return _e},PseudoElementSelector:function(){return ke},Ratio:function(){return Be},Raw:function(){return ct},Rule:function(){return Mt},Selector:function(){return Nt},SelectorList:function(){return Xt},String:function(){return en},StyleSheet:function(){return qt},TypeSelector:function(){return Xe},UnicodeRange:function(){return jt},Url:function(){return rt},Value:function(){return vt},WhiteSpace:function(){return nt}});var It={};m.r(It),m.d(It,{AtrulePrelude:function(){return W6e},Selector:function(){return eRe},Value:function(){return rRe}});var on={};m.r(on),m.d(on,{AnPlusB:function(){return Wne},Atrule:function(){return Yne},AtrulePrelude:function(){return Gne},AttributeSelector:function(){return Kne},Block:function(){return Xne},Brackets:function(){return $ne},CDC:function(){return ere},CDO:function(){return tre},ClassSelector:function(){return nre},Combinator:function(){return ire},Comment:function(){return ore},Declaration:function(){return lre},DeclarationList:function(){return ure},Dimension:function(){return cre},Function:function(){return dre},Hash:function(){return fre},IdSelector:function(){return hre},Identifier:function(){return pre},MediaFeature:function(){return mre},MediaQuery:function(){return _re},MediaQueryList:function(){return gre},Nth:function(){return vre},Number:function(){return yre},Operator:function(){return bre},Parentheses:function(){return Cre},Percentage:function(){return wre},PseudoClassSelector:function(){return kre},PseudoElementSelector:function(){return Tre},Ratio:function(){return Mre},Raw:function(){return Sre},Rule:function(){return Dre},Selector:function(){return Are},SelectorList:function(){return Ore},String:function(){return Lre},StyleSheet:function(){return Nre},TypeSelector:function(){return Fre},UnicodeRange:function(){return jre},Url:function(){return Wre},Value:function(){return Vre},WhiteSpace:function(){return Yre}});var _n={};m.r(_n),m.d(_n,{Lexer:function(){return Z0},Parser:function(){return N0},Renderer:function(){return hN},Slugger:function(){return Yj},TextRenderer:function(){return Vj},Tokenizer:function(){return pN},defaults:function(){return L0},getDefaults:function(){return Wj},lexer:function(){return DLe},marked:function(){return ii},options:function(){return wLe},parse:function(){return SLe},parseInline:function(){return MLe},parser:function(){return xLe},setOptions:function(){return kLe},use:function(){return TLe},walkTokens:function(){return ELe}});var wn,t,An=m(2313),Gt=m(245),Zt=m(4506),Et=m(5647),Ut=m(7685),Ht=m(3237),sn=m(1120),yt=m(136),mt=m(9388),cn=m(7762),$t=m(4902),j=m(5671),V=m(3144);function Jn(){Jn=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function Bt(t){if(":"!=t[0])return[null,t];var r=t.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(t,'" expecting ":namespace:name"'));return[t.slice(1,r),t.slice(r+1)]}function dt(t){return"ng-container"===Bt(t)[1]}function de(t){return"ng-content"===Bt(t)[1]}function ue(t){return null===t?null:Bt(t)[0]}function We(t,r){return t?":".concat(t,":").concat(r):r}(t=wn||(wn={}))[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA";var Dt,tn,at=function(){function t(){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?wn.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,f=e.isVoid,h=void 0!==f&&f,v=e.ignoreFirstLf,C=void 0!==v&&v,B=e.preventNamespaceInheritance,G=void 0!==B&&B;(0,j.Z)(this,t),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=G}return(0,V.Z)(t,[{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}}]),t}();function Jt(t){var r,e;return tn||(Dt=new at,tn={base:new at({isVoid:!0}),meta:new at({isVoid:!0}),area:new at({isVoid:!0}),embed:new at({isVoid:!0}),link:new at({isVoid:!0}),img:new at({isVoid:!0}),input:new at({isVoid:!0}),param:new at({isVoid:!0}),hr:new at({isVoid:!0}),br:new at({isVoid:!0}),source:new at({isVoid:!0}),track:new at({isVoid:!0}),wbr:new at({isVoid:!0}),p:new at({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 at({closedByChildren:["tbody","tfoot"]}),tbody:new at({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new at({closedByChildren:["tbody"],closedByParent:!0}),tr:new at({closedByChildren:["tr"],closedByParent:!0}),td:new at({closedByChildren:["td","th"],closedByParent:!0}),th:new at({closedByChildren:["td","th"],closedByParent:!0}),col:new at({isVoid:!0}),svg:new at({implicitNamespacePrefix:"svg"}),foreignObject:new at({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new at({implicitNamespacePrefix:"math"}),li:new at({closedByChildren:["li"],closedByParent:!0}),dt:new at({closedByChildren:["dt","dd"]}),dd:new at({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new at({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new at({closedByChildren:["optgroup"],closedByParent:!0}),option:new at({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new at({ignoreFirstLf:!0}),listing:new at({ignoreFirstLf:!0}),style:new at({contentType:wn.RAW_TEXT}),script:new at({contentType:wn.RAW_TEXT}),title:new at({contentType:{default:wn.ESCAPABLE_RAW_TEXT,svg:wn.PARSABLE_DATA}}),textarea:new at({contentType:wn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=tn[t])&&void 0!==r?r:tn[t.toLowerCase()])&&void 0!==e?e:Dt}var jn,mn,nn=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),dn=function(){function t(){(0,j.Z)(this,t),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,V.Z)(t,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a0&&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"):"<".concat(e).concat(i).concat(o,">")}},{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;i0&&!G.element&&0==G.classNames.length&&0==G.attrs.length&&(G.element="*"),B.push(G)},a=new t,l=a,u=!1;for(nn.lastIndex=0;s=nn.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new t,a.notSelectors.push(l)}var f=s[2];if(f){var h=s[3];"#"===h?l.addAttribute("id",f.substr(1)):"."===h?l.addClassName(f.substr(1)):l.setElement(f)}var v=s[4];if(v&&l.addAttribute(l.unescapeAttribute(v),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 t}}return o(i,a),i}}]),t}();!function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(jn||(jn={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(mn||(mn={}));var tt,Ue,lr={name:"custom-elements"},Yn={name:"no-errors-schema"};function bt(t){var r=function Ee(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return[t.element&&"*"!==t.element?t.element:""].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r))}(t),e=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(function(i){return function He(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return t.element?[5,t.element].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.attrs.length?[3].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.classNames&&t.classNames.length?[9].concat((0,$t.Z)(t.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,$t.Z)(e))}function Yt(t){return t?dn.parse(t).map(bt):[]}!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(tt||(tt={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(Ue||(Ue={}));var rr=/-+([a-z0-9])/g;function lt(t,r){return Ae(t,":",r)}function Ae(t,r,e){var i=t.indexOf(r);return-1==i?e:[t.slice(0,i).trim(),t.slice(i+1).trim()]}function _t(t){throw new Error("Internal Error: ".concat(t))}function gn(t){for(var r=[],e=0;e=55296&&i<=56319&&t.length>e+1){var o=t.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 Rn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Rn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var r=t.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var cr=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Rr="undefined"!=typeof window&&window,Xr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Hi="undefined"!=typeof global&&global||Rr||Xr;var Ka=function(){function t(r){(0,j.Z)(this,t),this.digits=r}return(0,V.Z)(t,[{key:"clone",value:function(){return new t(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=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 t([0])}},{key:"one",value:function(){return new t([1])}}]),t}(),Za=function(){function t(r){(0,j.Z)(this,t),this.powerOfTwos=[r]}return(0,V.Z)(t,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Ka.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]}}]),t}(),Go=function(){function t(r){(0,j.Z)(this,t),this.base=r,this.exponents=[new Za(Ka.one())]}return(0,V.Z)(t,[{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 Za(o)}return this.exponents[e]}}]),t}();function qo(t){return function lo(t){var r=gn(t),e=function Ko(t,r){for(var e=t.length+3>>>2,i=[],o=0;o>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function Nr(t){return t.reduce(function(r,e){return r.concat(function ws(t){for(var r=[],e=0;e<4;e++)r.push(t>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,f]))}(function Pr(t){return t.map(function(r){return r.visit(or,null)})}(t.nodes).join("")+"[".concat(t.meaning,"]"))}function yi(t){return t.id||Ja(t)}function Ja(t){var r=new ci;return Bo(t.nodes.map(function(i){return i.visit(r,null)}).join(""),t.meaning)}var zi=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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?''):'').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'').concat(e.value,""):'')}},{key:"visitIcuPlaceholder",value:function(e,i){return'').concat(e.value.visit(this),"")}}]),t}(),or=new zi;var Wi,ci=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(zi);function uo(t,r,e,i){return t<20?[r&e|~r&i,1518500249]:t<40?[r^e^i,1859775393]:t<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function mi(t){var r=gn(t),e=$r(r,0),i=$r(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Bo(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=mi(t);if(r){var i=mi(r);e=Qa(_i(e,1),i)}var o=e[0],a=e[1];return vn(2147483647&o,a)}function $r(t,r){var o,e=2654435769,i=2654435769,a=t.length;for(o=0;o+12<=a;o+=12){var s=Pi(e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,bi(t,o+8,Wi.Little)));e=s[0],i=s[1],r=s[2]}return e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,a),Pi(e,i,r=hr(r,bi(t,o+8,Wi.Little)<<8))[2]}function Pi(t,r,e){return t=Ri(t,r),t=Ri(t,e),t^=e>>>13,r=Ri(r,e),r=Ri(r,t),r^=t<<8,e=Ri(e,t),e=Ri(e,r),e^=r>>>13,t=Ri(t,r),t=Ri(t,e),t^=e>>>12,r=Ri(r,e),r=Ri(r,t),r^=t<<16,e=Ri(e,t),e=Ri(e,r),e^=r>>>5,t=Ri(t,r),t=Ri(t,e),t^=e>>>3,r=Ri(r,e),r=Ri(r,t),r^=t<<10,e=Ri(e,t),e=Ri(e,r),[t,r,e^=r>>>15]}function hr(t,r){return Js(t,r)[1]}function Js(t,r){var e=(65535&t)+(65535&r),i=(t>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function Qa(t,r){var e=t[0],i=t[1],o=r[0],s=Js(i,r[1]),l=s[0],u=s[1];return[hr(hr(e,o),l),u]}function Ri(t,r){var e=(65535&t)-(65535&r);return(t>>16)-(r>>16)+(e>>16)<<16|65535&e}function Do(t,r){return t<>>32-r}function _i(t,r){var e=t[0],i=t[1];return[e<>>32-r,i<>>32-r]}function ga(t,r){return r>=t.length?0:t[r]}function bi(t,r,e){var i=0;if(e===Wi.Big)for(var o=0;o<4;o++)i+=ga(t,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=ga(t,r+a)<<8*a;return i}!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Wi||(Wi={}));var bn,Na=new Go(256);function vn(t,r){var e=Na.toThePowerOf(0).multiplyBy(r);return Na.toThePowerOf(4).multiplyByAndAddTo(t,e),e.toString()}!function(t){t[t.None=0]="None",t[t.Const=1]="Const"}(bn||(bn={}));var Li,oi=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bn.None;(0,j.Z)(this,t),this.modifiers=r}return(0,V.Z)(t,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Li||(Li={}));var mo,tr,qi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(oi),ei=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,j.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(oi),Ki=new qi(Li.Dynamic),Ci=new qi(Li.Inferred),Co=new qi(Li.Bool),Uo=(new qi(Li.Int),new qi(Li.Number)),ya=new qi(Li.String),Ji=(new qi(Li.Function),new qi(Li.None));function Ba(t,r){return null==t||null==r?t==r:t.isEquivalent(r)}function Oo(t,r,e){var i=t.length;if(i!==r.length)return!1;for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new un(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new ar(tr.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new ar(tr.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new ar(tr.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new ar(tr.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new ar(tr.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new ar(tr.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new ar(tr.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new ar(tr.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new ar(tr.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new ar(tr.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new ar(tr.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new ar(tr.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new ar(tr.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new ar(tr.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new ar(tr.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new ar(tr.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(be,e)}},{key:"nullishCoalesce",value:function(e,i){return new ar(tr.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Ir(this,null)}}]),t}(),la=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,V.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 Is(this.name,o,null,this.sourceSpan)}}]),e}(Kr),Jo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,V.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}(Kr),br=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,V.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}(Kr),Is=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,V.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 nr(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ci,Je.Final)}}]),e}(Kr),us=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,V.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}(Kr),ba=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,V.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}(Kr),Qi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&io(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}(Kr),Xa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Oo(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&io(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Kr),Ps=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&io(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Kr),$a=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,V.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}(Kr),Fa=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.elements=r,this.expressions=e}),Tu=(0,V.Z)(function t(r,e,i){var o;(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:Pe(Ha(r))}),Ua=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e}),Qo=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),wo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,ya,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,V.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)}),Ge(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(Bo(s.associatedMessage.messageString,s.associatedMessage.meaning))),Ge(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Kr),Ha=function(r){return r.replace(/\\/g,"\\\\")},Eu=function(r){return r.replace(/^:/,"\\:")},ve=function(r){return r.replace(/:/g,"\\:")},Pe=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function Ge(t,r,e){return""===t?{cooked:r,raw:Pe(Eu(Ha(r))),range:e}:{cooked:":".concat(t,":").concat(r),raw:Pe(":".concat(ve(Ha(t)),":").concat(Ha(r))),range:e}}var Je,gt=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,V.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}(Kr),un=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Ba(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Kr),Mn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,Co,o)).condition=i,a}return(0,V.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}(Kr),Pn=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,j.Z)(this,t),this.name=r,this.type=e}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),t}(),Or=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(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 Lr(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Kr),jr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a||Uo,s)).operator=i,l.expr=o,l.parens=u,l}return(0,V.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}(Kr),ar=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,j.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=f,u.lhs=o,u}return(0,V.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}(Kr),ai=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,V.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 ba(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Kr),Xi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,V.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 us(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Kr),So=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,V.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Kr),xi=function(){function t(r,e,i){(0,j.Z)(this,t),this.key=r,this.value=e,this.quoted=i}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),t}(),Xo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(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}(Kr),Le=new $a(null,null,null),be=new $a(null,Ci,null);!function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"}(Je||(Je={}));var Ke=function(){function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,V.Z)(t,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),t}(),Pt=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,V.Z)(e,[{key:"toString",value:function(){return function $e(t){if(0===t.length)return"";if(1===t.length&&t[0].tagName&&!t[0].text)return"*".concat(Ze(t[0])," ");var i,r="*\n",e=(0,cn.Z)(t);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=Ze(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(Ke),an=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Je.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,j.Z)(this,t),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,V.Z)(t,[{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)}}]),t}(),nr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,s,l,u)).name=i,f.value=o,f.type=a||o&&o.type||null,f}return(0,V.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}(an),Lr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,l,u,f)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(an),Ir=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,Je.None,o,a)).expr=i,s}return(0,V.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}(an),_o=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(o=r.call(this,Je.None,a,s)).value=i,o}return(0,V.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}(an),uf=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,Je.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&io(this.trueCase,o.trueCase)&&io(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(an);function oc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Pt(t)}function si(t,r,e){return new la(t,r,e)}function dr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new gt(t,null,r,e)}function Nn(t,r,e){return new ei(t,r,e)}function wi(t){return new Jo(t)}function pi(t,r,e){return new So(t,r,e)}function Di(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Xo(t.map(function(e){return new xi(e.key,e.value,e.quoted)}),r,null)}function Mu(t,r){return new Mn(t,r)}function ji(t,r,e,i,o){return new Or(t,r,e,i,o)}function hl(t,r,e,i,o){return new uf(t,r,e,i,o)}function ze(t,r,e,i){return new Xa(t,r,e,i)}function me(t,r,e){return new $a(t,r,e)}function ie(t,r,e,i,o){return new wo(t,r,e,i,o)}function fe(t){return t instanceof $a&&null===t.value}function Ze(t){var r="";if(t.tagName&&(r+=" @".concat(t.tagName)),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+t.text.replace(/@/g,"\\@")}return r}var Vt=si(""),Qt={},Qn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,V.Z)(e,[{key:"visitExpression",value:function(o,a){return a===Qt?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}(Kr),ir=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,j.Z)(this,t),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,V.Z)(t,[{key:"getConstLiteral",value:function(e,i){if(e instanceof $a&&!Ne(e)||e instanceof Qn)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new Qn(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,f,l=this.freshName();this.isClosureCompilerEnabled&&Ne(e)?(u=si(l).set(new Or([],[new _o(e)])),f=si(l).callFn([])):(u=si(l).set(e),f=si(l)),this.statements.push(u.toDeclStmt(Ci,Je.Final)),a.fixup(f)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof So){var i=e.entries.map(function(l){return l.isConstant()?l:Vt}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=Di(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Vt,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Di(l.map(function(u,f){return{key:e.entries[f].key,value:u,quoted:e.entries[f].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,B){return C.isConstant()?a.getConstLiteral(C,!0):si("a".concat(B))}),h=ji(u.filter(di).map(function(C){return new Pn(C.name,Ki)}),[new _o(o(u))],Ci),v=this.freshName();this.statements.push(si(v).set(h).toDeclStmt(Ci,Je.Final)),s=si(v),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 _r,Qt)}}]),t}(),_r=function(){function t(){(0,j.Z)(this,t),this.visitWrappedNodeExpr=gr,this.visitWriteVarExpr=gr,this.visitWriteKeyExpr=gr,this.visitWritePropExpr=gr,this.visitInvokeFunctionExpr=gr,this.visitTaggedTemplateExpr=gr,this.visitInstantiateExpr=gr,this.visitConditionalExpr=gr,this.visitNotExpr=gr,this.visitAssertNotNullExpr=gr,this.visitCastExpr=gr,this.visitFunctionExpr=gr,this.visitUnaryOperatorExpr=gr,this.visitBinaryOperatorExpr=gr,this.visitReadPropExpr=gr,this.visitReadKeyExpr=gr,this.visitCommaExpr=gr,this.visitLocalizedString=gr}return(0,V.Z)(t,[{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 f=u.quoted?'"':"";return"".concat(f).concat(u.key).concat(f)}(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))}}]),t}();function gr(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function di(t){return t instanceof la}function Ne(t){return t instanceof $a&&"string"==typeof t.value&&t.value.length>=50}var we="@angular/core",X=(0,V.Z)(function t(){(0,j.Z)(this,t)});X.NEW_METHOD="factory",X.TRANSFORM_METHOD="transform",X.PATCH_DEPS="patchedDeps",X.core={name:null,moduleName:we},X.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:we},X.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:we},X.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:we},X.element={name:"\u0275\u0275element",moduleName:we},X.elementStart={name:"\u0275\u0275elementStart",moduleName:we},X.elementEnd={name:"\u0275\u0275elementEnd",moduleName:we},X.advance={name:"\u0275\u0275advance",moduleName:we},X.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:we},X.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:we},X.attribute={name:"\u0275\u0275attribute",moduleName:we},X.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:we},X.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:we},X.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:we},X.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:we},X.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:we},X.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:we},X.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:we},X.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:we},X.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:we},X.classProp={name:"\u0275\u0275classProp",moduleName:we},X.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:we},X.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:we},X.elementContainer={name:"\u0275\u0275elementContainer",moduleName:we},X.styleMap={name:"\u0275\u0275styleMap",moduleName:we},X.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:we},X.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:we},X.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:we},X.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:we},X.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:we},X.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:we},X.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:we},X.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:we},X.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:we},X.classMap={name:"\u0275\u0275classMap",moduleName:we},X.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:we},X.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:we},X.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:we},X.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:we},X.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:we},X.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:we},X.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:we},X.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:we},X.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:we},X.styleProp={name:"\u0275\u0275styleProp",moduleName:we},X.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:we},X.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:we},X.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:we},X.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:we},X.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:we},X.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:we},X.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:we},X.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:we},X.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:we},X.nextContext={name:"\u0275\u0275nextContext",moduleName:we},X.templateCreate={name:"\u0275\u0275template",moduleName:we},X.text={name:"\u0275\u0275text",moduleName:we},X.enableBindings={name:"\u0275\u0275enableBindings",moduleName:we},X.disableBindings={name:"\u0275\u0275disableBindings",moduleName:we},X.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:we},X.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:we},X.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:we},X.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:we},X.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:we},X.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:we},X.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:we},X.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:we},X.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:we},X.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:we},X.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:we},X.restoreView={name:"\u0275\u0275restoreView",moduleName:we},X.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:we},X.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:we},X.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:we},X.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:we},X.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:we},X.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:we},X.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:we},X.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:we},X.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:we},X.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:we},X.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:we},X.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:we},X.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:we},X.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:we},X.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:we},X.hostProperty={name:"\u0275\u0275hostProperty",moduleName:we},X.property={name:"\u0275\u0275property",moduleName:we},X.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:we},X.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:we},X.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:we},X.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:we},X.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:we},X.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:we},X.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:we},X.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:we},X.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:we},X.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:we},X.i18n={name:"\u0275\u0275i18n",moduleName:we},X.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:we},X.i18nExp={name:"\u0275\u0275i18nExp",moduleName:we},X.i18nStart={name:"\u0275\u0275i18nStart",moduleName:we},X.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:we},X.i18nApply={name:"\u0275\u0275i18nApply",moduleName:we},X.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:we},X.pipe={name:"\u0275\u0275pipe",moduleName:we},X.projection={name:"\u0275\u0275projection",moduleName:we},X.projectionDef={name:"\u0275\u0275projectionDef",moduleName:we},X.reference={name:"\u0275\u0275reference",moduleName:we},X.inject={name:"\u0275\u0275inject",moduleName:we},X.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:we},X.directiveInject={name:"\u0275\u0275directiveInject",moduleName:we},X.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:we},X.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:we},X.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:we},X.forwardRef={name:"forwardRef",moduleName:we},X.resolveForwardRef={name:"resolveForwardRef",moduleName:we},X.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:we},X.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:we},X.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:we},X.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:we},X.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:we},X.resolveBody={name:"\u0275\u0275resolveBody",moduleName:we},X.defineComponent={name:"\u0275\u0275defineComponent",moduleName:we},X.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:we},X.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:we},X.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:we},X.ViewEncapsulation={name:"ViewEncapsulation",moduleName:we},X.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:we},X.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:we},X.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:we},X.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:we},X.defineDirective={name:"\u0275\u0275defineDirective",moduleName:we},X.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:we},X.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:we},X.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:we},X.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:we},X.defineInjector={name:"\u0275\u0275defineInjector",moduleName:we},X.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:we},X.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:we},X.ModuleWithProviders={name:"ModuleWithProviders",moduleName:we},X.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:we},X.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:we},X.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:we},X.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:we},X.definePipe={name:"\u0275\u0275definePipe",moduleName:we},X.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:we},X.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:we},X.setClassMetadata={name:"\u0275setClassMetadata",moduleName:we},X.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:we},X.viewQuery={name:"\u0275\u0275viewQuery",moduleName:we},X.loadQuery={name:"\u0275\u0275loadQuery",moduleName:we},X.contentQuery={name:"\u0275\u0275contentQuery",moduleName:we},X.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:we},X.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:we},X.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:we},X.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:we},X.listener={name:"\u0275\u0275listener",moduleName:we},X.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:we},X.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:we},X.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:we},X.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:we},X.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:we},X.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:we},X.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:we},X.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:we},X.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:we};var it=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,j.Z)(this,t),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,V.Z)(t,[{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>2),r+=Sr((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Sr((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Sr(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),t}();function fn(t){t=t<0?1+(-t<<1):t<<1;var r="";do{var e=31&t;(t>>=5)>0&&(e|=32),r+=Sr(e)}while(t>0);return r}function Sr(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}var Ti=/'|\\|\n|\r|\$/g,jo=/^[$A-Z_][0-9A-Z_$]*$/i,Ts=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),eo=function(){function t(r){(0,j.Z)(this,t),this._indent=r,this._lines=[new Ts(r)]}return(0,V.Z)(t,[{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 Ts(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?Em(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 it(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;la)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 t(0)}}]),t}(),df=function(){function t(r){(0,j.Z)(this,t),this._escapeDollarInStrings=r}return(0,V.Z)(t,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,cn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof Pt?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;o0&&(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)})}}]),t}();function au(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==t)return null;var i=t.replace(Ti,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||!jo.test(i);return o?"'".concat(i,"'"):i}function Em(t){for(var r="",e=0;e0?Di(r):null}(i);return null!==o?(r=!0,o):me(null)});return r?Nn(pi(e)):Ji}(t.deps):Ji;return Nn(dr(X.FactoryDeclaration,[id(t.type.type,t.typeArgumentCount),r]))}function $o(t,r){return t.map(function(e,i){return function xu(t,r,e){if(null===t.token)return dr(X.invalidFactoryDep).callFn([me(e)]);if(null===t.attributeNameType){var i=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(r===ur.Pipe?16:0),o=0!==i||t.optional?me(i):null,a=[t.token];o&&a.push(o);var s=function Ca(t){switch(t){case ur.Component:case ur.Directive:case ur.Pipe:return X.directiveInject;case ur.NgModule:case ur.Injectable:default:return X.inject}}(r);return dr(s).callFn(a)}return dr(X.injectAttribute).callFn([t.token])}(e,r,i)})}function uc(t){return void 0!==t.delegateType}!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"}(lc||(lc={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(ur||(ur={}));var Au=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),t}(),Dm=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitText(this)}}]),t}(),cs=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),t}(),Ou=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),t}(),cc=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{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 t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),t}(),dc=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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,V.Z)(t,[{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 t(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),t}(),sd=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.i18n=h}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitElement(this)}}]),t}(),rv=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),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=f,this.startSourceSpan=h,this.endSourceSpan=v,this.i18n=C}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),t}(),YN=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitContent(this)}}]),t}(),xI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),t}(),iv=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitReference(this)}}]),t}(),Mb=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),t}();function AI(t,r){var e=[];if(t.visit){var o,i=(0,cn.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;t.visit(a)||a.visit(t)}}catch(v){i.e(v)}finally{i.f()}}else{var u,l=(0,cn.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(t);h&&e.push(h)}}catch(v){l.e(v)}finally{l.f()}}return e}var ld=(0,V.Z)(function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 II(t){var r=new Om,e=t.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=[]}),ov=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),t}(),Am=function(){function t(r,e){(0,j.Z)(this,t),this.children=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),t}(),OI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),t}(),qN=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),t}(),av=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),t}(),hf=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),t}();var Om=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,"}")}}]),t}(),sT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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(""),"")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"")}},{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"")}}]),t}();new sT;function xb(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var ml="i18n-";function Rm(t){return"i18n"===t||t.startsWith(ml)}function Lm(t){return t instanceof ld}function Db(t){return Lm(t)&&1===t.nodes.length&&t.nodes[0]instanceof OI}function eB(t){return!!t.i18n}function tB(t){return t.nodes[0]}function fv(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(t).concat(e).concat("\ufffd")}function uT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;return function(){return r++}}function Lp(t){var r={};return t.forEach(function(e,i){r[i]=me(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function cT(t,r){for(var e=t.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=new Map,a=t instanceof ld?t.nodes.find(function(s){return s instanceof Am}):t;return a&&a.children.filter(function(s){return s instanceof av}).forEach(function(s,l){var u=fv(i+l,e);cT(o,s.name,u)}),o}function fT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return t&&Object.keys(t).length&&Object.keys(t).forEach(function(i){return e[Ab(i,r)]=t[i]}),e}function Ab(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=xb(t);if(!r)return e;var o,i=e.split("_");if(1===i.length)return t.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 BI(t){return"".concat("MSG_").concat(t).toUpperCase()}function nB(t){return new nr(t.name,void 0,Ci,void 0,t.sourceSpan)}var rB=/[-.]/,Ob="_t",Ll="ctx",mf="rf",pv="restoredCtx",aB=new Set([X.element,X.elementStart,X.elementEnd,X.elementContainer,X.elementContainerStart,X.elementContainerEnd,X.i18nExp,X.listener,X.classProp,X.syntheticHostListener,X.hostProperty,X.syntheticHostProperty,X.property,X.propertyInterpolate1,X.propertyInterpolate2,X.propertyInterpolate3,X.propertyInterpolate4,X.propertyInterpolate5,X.propertyInterpolate6,X.propertyInterpolate7,X.propertyInterpolate8,X.propertyInterpolateV,X.attribute,X.attributeInterpolate1,X.attributeInterpolate2,X.attributeInterpolate3,X.attributeInterpolate4,X.attributeInterpolate5,X.attributeInterpolate6,X.attributeInterpolate7,X.attributeInterpolate8,X.attributeInterpolateV,X.styleProp,X.stylePropInterpolate1,X.stylePropInterpolate2,X.stylePropInterpolate3,X.stylePropInterpolate4,X.stylePropInterpolate5,X.stylePropInterpolate6,X.stylePropInterpolate7,X.stylePropInterpolate8,X.stylePropInterpolateV,X.textInterpolate,X.textInterpolate1,X.textInterpolate2,X.textInterpolate3,X.textInterpolate4,X.textInterpolate5,X.textInterpolate6,X.textInterpolate7,X.textInterpolate8,X.textInterpolateV]);function hv(t,r,e){return dr(r,null,t).callFn(e,t)}function hT(t,r){var e=null;return function(){return e||(t.push(new nr("_t",void 0,Ki)),e=si(r)),e}}function mv(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function Ls(t){return Array.isArray(t)?pi(t.map(Ls)):me(t,Ci)}function _v(t,r){return Object.getOwnPropertyNames(t).length>0?function sB(t,r){return Di(Object.getOwnPropertyNames(t).map(function(e){var o,a,s,l,i=t[e];if(Array.isArray(i)){var u=(0,Ut.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else{var f=lt(e,[e,i]),h=(0,Ut.Z)(f,2);s=o=h[0],l=(a=h[1])!==o&&e.includes(":")}return{key:s,quoted:rB.test(s),value:r&&l?pi([Ls(a),Ls(o)]):Ls(a)}}))}(t,r):null}function ns(t){for(;fe(t[t.length-1]);)t.pop();return t}function FI(t,r){if(Array.isArray(t.predicate)){var e=[];return t.predicate.forEach(function(i){var o=i.split(",").map(function(a){return me(a.trim())});e.push.apply(e,(0,$t.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return dr(X.resolveForwardRef).callFn([t.predicate.expression])}}var fs=function(){function t(){(0,j.Z)(this,t),this.values=[]}return(0,V.Z)(t,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Di(this.values)}}]),t}();function Iu(t){var r=t.expressions,e=t.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function Ib(t){var r,l,e=[],i=null,o=null,a=0,s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,f=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(f)?f:[f];a<500&&o===u.reference&&aB.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=hv(u.span,u.reference,h),o=u.reference,a=0)}}catch(v){s.e(v)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function HI(t,r){var e=null,i={name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:t.typeArgumentCount,deps:[],target:ur.Injectable};if(void 0!==t.useClass){var o=t.useClass.expression.isEquivalent(t.internalType),a=void 0;void 0!==t.deps&&(a=t.deps),e=void 0!==a?Wr(Object.assign(Object.assign({},i),{delegate:t.useClass.expression,delegateDeps:a,delegateType:lc.Class})):o?Wr(i):{statements:[],expression:gv(t.type.value,t.useClass.expression,r)}}else e=void 0!==t.useFactory?void 0!==t.deps?Wr(Object.assign(Object.assign({},i),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:lc.Function})):{statements:[],expression:ji([],[new _o(t.useFactory.callFn([]))])}:void 0!==t.useValue?Wr(Object.assign(Object.assign({},i),{expression:t.useValue.expression})):void 0!==t.useExisting?Wr(Object.assign(Object.assign({},i),{expression:dr(X.inject).callFn([t.useExisting.expression])})):{statements:[],expression:gv(t.type.value,t.internalType,r)};var s=t.internalType,l=new fs;return l.set("token",s),l.set("factory",e.expression),null!==t.providedIn.expression.value&&l.set("providedIn",sc(t.providedIn)),{expression:dr(X.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:jI(t),statements:e.statements}}function jI(t){return new ei(dr(X.InjectableDeclaration,[id(t.type.type,t.typeArgumentCount)]))}function gv(t,r,e){return t.node===r.node?r.prop("\u0275fac"):Zm(e?dr(X.resolveForwardRef).callFn([r]):r)}function Zm(t){return ji([new Pn("t",Ki)],[new _o(t.prop("\u0275fac").callFn([si("t")]))])}var Pb=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var mT=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,null,[{key:"fromArray",value:function(e){return e?(function Nm(t,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(t,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];Pb.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new t(e[0],e[1])):su}}]),t}(),su=new mT("{{","}}"),fd=123,hc=125;function wT(t){return t>=9&&t<=32||160==t}function pd(t){return 48<=t&&t<=57}function kT(t){return t>=97&&t<=122||t>=65&&t<=90}function oP(t){return 10===t||13===t}function aP(t){return 48<=t&&t<=55}function Bb(t){return 39===t||34===t||96===t}var hd,vf=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,V.Z)(t,[{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 f=i.substr(0,a-1).lastIndexOf(String.fromCharCode(10));l=f>0?a-f:a}else l--}for(;a0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new t(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;l0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,j.Z)(this,t),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,V.Z)(t,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(hd||(hd={}));var uu=function(){function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;(0,j.Z)(this,t),this.span=r,this.msg=e,this.level=i}return(0,V.Z)(t,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(hd[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)}}]),t}();var lP=0;function zp(t){return t.replace(/\W/g,"_")}var Ub,uP='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',_B=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,!1)}return(0,V.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(uP,"(")),a.print(o,"[".concat(l.map(function(u){return au(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return au(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(uP,"("));for(var l=[o.serializeI18nHead()],u=1;u0&&!function cu(t){return t.isEquivalent(me("use strict").toStmt())}(i[0])&&(i=[me("use strict").toStmt()].concat((0,$t.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 f in o)u.push(o[f]),l.push(f);if(a){var h=yB.apply(void 0,(0,$t.Z)(l.concat("return null;"))).toString(),v=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,v).toJsComment())}var C=yB.apply(void 0,(0,$t.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,$t.Z)(i))}}]),t}(),Cv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,V.Z)(e,[{key:"createReturnStmt",value:function(o){new _o(new Xo(this._evalExportedVars.map(function(s){return new xi(s,si(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a=0?(e="anonymous_".concat(lP++),r.__anonymousType=e):e=zp(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(_B);function Hb(t){var r=new fs;return null!==t.providers&&r.set("providers",t.providers),t.imports.length>0&&r.set("imports",pi(t.imports)),{expression:dr(X.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:ET(t),statements:[]}}function ET(t){return new ei(dr(X.InjectorDeclaration,[new ei(t.type.type)]))}var cP=function(){function t(r){(0,j.Z)(this,t),this.context=r}return(0,V.Z)(t,[{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]}}]),t}();function Ns(t){var r=t.internalType,e=t.bootstrap,i=t.declarations,o=t.imports,a=t.exports,s=t.schemas,l=t.containsForwardDecls,u=t.emitInline,f=t.id,h=[],v=new fs;if(v.set("type",r),e.length>0&&v.set("bootstrap",ts(e,l)),u)i.length>0&&v.set("declarations",ts(i,l)),o.length>0&&v.set("imports",ts(o,l)),a.length>0&&v.set("exports",ts(a,l));else{var C=function bB(t){var r=t.adjacentType,e=t.declarations,i=t.imports,o=t.exports,a=t.containsForwardDecls,s=new fs;if(e.length>0&&s.set("declarations",ts(e,a)),i.length>0&&s.set("imports",ts(i,a)),o.length>0&&s.set("exports",ts(o,a)),0===Object.keys(s.values).length)return null;var u=function Pp(t){return nv("ngJitMode",t)}(new Qi(dr(X.setNgModuleScope),[r,s.toLiteralMap()])),f=new Or([],[u.toStmt()]);return new Qi(f,[]).toStmt()}(t);null!==C&&h.push(C)}return null!==s&&s.length>0&&v.set("schemas",pi(s.map(function(q){return q.value}))),null!==f&&v.set("id",f),{expression:dr(X.defineNgModule).callFn([v.toLiteralMap()],void 0,!0),type:jb(t),statements:h}}function jb(t){var r=t.type,e=t.declarations,i=t.imports,o=t.exports;return new ei(dr(X.NgModuleDeclaration,[new ei(r.type),MT(e),MT(i),MT(o)]))}function MT(t){var r=t.map(function(e){return wi(e.type)});return t.length>0?Nn(pi(r)):Ji}function ST(t){var r=[];return r.push({key:"name",value:me(t.pipeName),quoted:!1}),r.push({key:"type",value:t.type.value,quoted:!1}),r.push({key:"pure",value:me(t.pure),quoted:!1}),{expression:dr(X.definePipe).callFn([Di(r)],void 0,!0),type:dP(t),statements:[]}}function dP(t){return new ei(dr(X.PipeDeclaration,[id(t.type.type,t.typeArgumentCount),new ei(new $a(t.pipeName))]))}var Vp,zb=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),Wm=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,[{key:"toAbsolute",value:function(e){return new Wa(e+this.start,e+this.end)}}]),t}(),za=function(){function t(r,e){(0,j.Z)(this,t),this.span=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"AST"}}]),t}(),Wb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,V.Z)(e)}(za),fP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).prefix=a,u.uninterpretedExpression=s,u.location=l,u}return(0,V.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitQuote(this,a)}},{key:"toString",value:function(){return"Quote"}}]),e}(za),gl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(za),kv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(za),xT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(kv),Tv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(za),DT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,V.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}(za),yf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a)).receiver=s,f.name=l,f.value=u,f}return(0,V.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}(Wb),AT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(za),Yb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(za),OT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,V.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}(za),Gb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,u)).exp=a,f.name=s,f.args=l,f}return(0,V.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}(Wb),vl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,V.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}(za),qb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(za),IT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,V.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}(za),Qs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,V.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}(za),mc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,V.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}(za),Ym=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,l,u,f)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,V.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 vl(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new vl(o,a,0))}}]),e}(mc),Kb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(za),Jb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(za),Gm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(za),md=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(za),Wa=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}),Wp=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,new Wm(0,null===o?0:o.length),new Wa(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,V.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}(za),pP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),hP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),$z=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:"visitQuote",value:function(e,i){}},{key:"visitAll",value:function(e,i){var a,o=(0,cn.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()}}}]),t}(),Ev=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new Qs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new vl(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new yf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new Vm(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new AT(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new qb(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new IT(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Ym.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Ym.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 mc(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new Kb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new Jb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new DT(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new Gb(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Vb(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new OT(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new Gm(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new md(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=0;i--)e.unshift($b(r,i))}(u.temporaryCount,i,f),u.usesImplicitReceiver&&t.notifyImplicitReceiverUse();var h=f.length-1;if(h>=0){var v=f[h];v instanceof Ir&&(f[h]=new _o(v.expr))}return f}Qb.event=si("$event");var co,mP=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.stmts=r,this.currValExpr=e});function CB(t,r,e,i){t||(t=new vP);var o=new e1(t,r,i,!1),a=e.visit(o,co.Expression),s=Xb(o,i);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),new mP(s,a)}function Xb(t,r){for(var e=[],i=0;i":o=tr.Bigger;break;case"<=":o=tr.LowerEquals;break;case">=":o=tr.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return Xs(i,new ar(o,this._visit(e.left,co.Expression),this._visit(e.right,co.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function kB(t,r){if(t!==co.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 Xs(i,this._visit(e.condition,co.Expression).conditional(this._visit(e.trueExp,co.Expression),this._visit(e.falseExp,co.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 gP(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");gP(i,e);for(var o=[],a=0;a=9&&(o=[pi(o)]),new FT(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):Xs(i,this._visit(e.receiver,co.Expression).key(this._visit(e.key,co.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this._visit(e.key,co.Expression),s=this._visit(e.value,co.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Xs(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?Ci:void 0;return Xs(i,me(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 xT?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return Xs(i,Mu(this._visit(e.expression,co.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return Xs(i,this._visit(e.expression,co.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,co.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))),Xs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof ai)){var u=e.name,f=e.value instanceof yf?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(f,'" 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))),Xs(i,s.set(this._visit(e.value,co.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:"visitQuote",value:function(e,i){throw new Error("Quotes are not supported for evaluation!\n Statement: ".concat(e.uninterpretedExpression," located at ").concat(e.location))}},{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,co.Expression);if(e instanceof Km)return Xs(i,e.converter(a));var s=e.receiver;if(s instanceof yf&&s.receiver instanceof kv&&!(s.receiver instanceof xT)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return Xs(i,a[0])}return Xs(i,this._visit(s,co.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,co.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 md?this._nodeMap.set(i,new Gm(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Yb?this._nodeMap.set(i,new Vb(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new yf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,co.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),Xs(o,l.conditional(Le,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,co.Expression),a=this._visit(e.right,co.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),Xs(i,s.set(o).notIdentical(Le).and(s.notIdentical(me(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},visitQuote: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(f){return o(l,f)})}(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},visitQuote: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 la(BT(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=BT(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 ja(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),t}();function t1(t,r){Array.isArray(t)?t.forEach(function(e){return t1(e,r)}):r.push(t)}function n1(){throw new Error("Unsupported operation")}var FT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=n1,o.isEquivalent=n1,o.visitExpression=n1,o}return(0,V.Z)(e)}(Kr),vP=function(){function t(r){(0,j.Z)(this,t),this.globals=r}return(0,V.Z)(t,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Qb.event.name?Qb.event:null}}]),t}(),Km=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,new gl(i,o),a,null)).converter=s,l}return(0,V.Z)(e)}(Gm),yP=function(){function t(){(0,j.Z)(this,t),this.strictStyling=!0}return(0,V.Z)(t,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=MB(e);e=EB(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,$t.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(Yp,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(CP,function(){for(var i=arguments.length,o=new Array(i),a=0;a0;)for(var a=o.length,s=t.pop(),l=0;l-1)ht=a._applySimpleSelectorScope(ft,i,o);else{var Re=ft.replace(bf,"");if(Re.length>0){var ut=Re.match(/([^:]*)(:*)(.*)/);ut&&(ht=ut[1]+l+ut[2]+ut[3])}}return ht},f=new bP(e),h="",v=0,B=/( |>|\+|~(?!=))\s*/g,q=!((e=f.content()).indexOf(_d)>-1);null!==(C=B.exec(e));){var ae=C[1],he=e.slice(v,C.index).trim(),Ye=(q=q||he.indexOf(_d)>-1)?u(he):he;h+="".concat(Ye," ").concat(ae," "),v=B.lastIndex}var Me=e.substring(v);return h+=(q=q||Me.indexOf(_d)>-1)?u(Me):Me,f.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(zT,Jm).replace(MP,r1)}}]),t}(),bP=function(){function t(r){var e=this;(0,j.Z)(this,t),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,V.Z)(t,[{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})}}]),t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,CP=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,UT=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,r1="-shadowcsshost",Jm="-shadowcsscontext",HT="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",wP=new RegExp(r1+HT,"gim"),kP=new RegExp(Jm+HT,"gim"),TP=new RegExp(Jm+HT,"im"),_d=r1+"-no-combinator",jT=/-shadowcsshost-no-combinator([^\s]*)/,i1=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],xv=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,EP="([>\\s~+[.,{:][\\s\\S]*)?$",bf=/-shadowcsshost/gim,MP=/:host/gim,zT=/:host-context/gim,Dv=/\/\*[\s\S]*?\*\//g;function EB(t){return t.replace(Dv,"")}var SP=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function MB(t){return t.match(SP)||[]}var WT="%BLOCK%",VT=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,DP=/%QUOTED%/g,eW=new Map([["{","}"]]),AP=new Map([['"','"'],["'","'"]]),YT=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.selector=r,this.content=e});function GT(t,r){var e=OP(t,AP,"%QUOTED%"),i=OP(e.escapedString,eW,WT),o=0,a=0;return i.escapedString.replace(VT,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],f="";u&&u.startsWith("{"+WT)&&(l=i.blocks[o++],u=u.substring(WT.length+1),f="{");var h=r(new YT(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(f).concat(h.content).concat(u)}).replace(DP,function(){return e.blocks[a++]})}var SB=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.escapedString=r,this.blocks=e});function OP(t,r,e){for(var u,f,i=[],o=[],a=0,s=0,l=-1,h=0;h0,0===o?o=39:39===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=RP(t.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=t.substring(a,e-1).trim();r.push(l,u?PP(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var v=t.substr(a).trim();r.push(l,u?PP(v):v)}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(me(1));for(var i=0;i0?t.substring(0,e):"",r=!0);var i=null,o=t,a=t.lastIndexOf(".");return a>0&&(i=t.substr(a+1),o=t.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function NP(t){switch(Iu(t)){case 1:return X.styleProp;case 3:return X.stylePropInterpolate1;case 5:return X.stylePropInterpolate2;case 7:return X.stylePropInterpolate3;case 9:return X.stylePropInterpolate4;case 11:return X.stylePropInterpolate5;case 13:return X.stylePropInterpolate6;case 15:return X.stylePropInterpolate7;case 17:return X.stylePropInterpolate8;default:return X.stylePropInterpolateV}}function KT(t){return t instanceof Wp&&(t=t.ast),t instanceof gl}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"}(hi||(hi={}));var Zu=["var","let","as","null","undefined","true","false","if","else","this"],JT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"tokenize",value:function(e){for(var i=new Ov(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),t}(),gd=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,V.Z)(t,[{key:"isCharacter",value:function(e){return this.type==hi.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==hi.Number}},{key:"isString",value:function(){return this.type==hi.String}},{key:"isOperator",value:function(e){return this.type==hi.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==hi.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==hi.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==hi.Keyword}},{key:"isKeywordLet",value:function(){return this.type==hi.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==hi.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==hi.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==hi.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==hi.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==hi.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==hi.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==hi.Error}},{key:"toNumber",value:function(){return this.type==hi.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case hi.Character:case hi.Identifier:case hi.Keyword:case hi.Operator:case hi.PrivateIdentifier:case hi.String:case hi.Error:return this.strValue;case hi.Number:return this.numValue.toString();default:return null}}}]),t}();function a1(t,r,e){return new gd(t,r,hi.Character,e,String.fromCharCode(e))}function Av(t,r,e){return new gd(t,r,hi.Operator,0,e)}var Qm=new gd(-1,-1,hi.Character,0,""),Ov=function(){function t(r){(0,j.Z)(this,t),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,V.Z)(t,[{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(Iv(o))return this.scanIdentifier();if(pd(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),pd(this.peek)?this.scanNumber(s):a1(s,this.index,46);case 40:case 41:case fd:case hc: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(;wT(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(),a1(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),Av(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),Av(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();Pv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Zu.indexOf(i)>-1?function FP(t,r,e){return new gd(t,r,hi.Keyword,0,e)}(e,this.index,i):function vd(t,r,e){return new gd(t,r,hi.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!Iv(this.peek))return this.error("Invalid character [#]",-1);for(;Pv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function QT(t,r,e){return new gd(t,r,hi.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!pd(this.peek))if(95===this.peek){if(!pd(this.input.charCodeAt(this.index-1))||!pd(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!rW(this.peek))break;if(this.advance(),OB(this.peek)&&this.advance(),!pd(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 PB(t){var r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}(a):parseFloat(a);return function UP(t,r,e){return new gd(t,r,hi.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 f=0;f<5;f++)this.advance()}else l=IB(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 tW(t,r,e){return new gd(t,r,hi.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()),Av(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function nW(t,r,e){return new gd(t,r,hi.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),t}();function Iv(t){return 97<=t&&t<=122||65<=t&&t<=90||95==t||36==t}function Pv(t){return kT(t)||pd(t)||95==t||36==t}function rW(t){return 101==t||69==t}function OB(t){return 45==t||43==t}function IB(t){switch(t){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}var Xm,RB=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.strings=r,this.expressions=e,this.offsets=i}),HP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.templateBindings=r,this.warnings=e,this.errors=i}),LB=function(){function t(r){(0,j.Z)(this,t),this._lexer=r,this.errors=[]}return(0,V.Z)(t,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),f=1;i&&(f|=2);var h=new s1(e,o,a,u,f,this.errors,0).parseChain();return new Wp(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,s=this._parseBindingAst(e,i,o,a);return new Wp(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new jP;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,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 Wp(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new zb(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){var s=this._parseQuote(e,i,o);if(null!=s)return s;this._checkNoInterpolation(e,i,a);var l=this._stripComments(e),u=this._lexer.tokenize(l);return new s1(e,i,o,u,0,this.errors,0).parseChain()}},{key:"_parseQuote",value:function(e,i,o){if(null==e)return null;var a=e.indexOf(":");if(-1==a)return null;var s=e.substring(0,a).trim();if(!function XT(t){if(0==t.length)return!1;var r=new Ov(t);if(!Iv(r.peek))return!1;for(r.advance();0!==r.peek;){if(!Pv(r.peek))return!1;r.advance()}return!0}(s))return null;var l=e.substring(a+1),u=new Wm(0,e.length);return new fP(u,u.toAbsolute(o),s,l,i)}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new s1(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Wa(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su,l=this.splitInterpolation(e,i,a,s),u=l.strings,f=l.expressions,h=l.offsets;if(0===f.length)return null;for(var v=[],C=0;C3&&void 0!==arguments[3]?arguments[3]:su,l=[],u=[],f=[],h=o?zP(o):null,v=0,C=!1,B=!1,G=a.start,q=a.end;v-1)break}}catch(C){f.e(C)}finally{f.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,cn.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:Jn().mark(function r(e,i){var o,a,s,l;return Jn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o=null,a=0,s=i;case 3:if(!(s=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 Wm(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===Qm?"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":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new mc(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==hi.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Ym.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Ym.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new Kb(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 Jb(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 vl(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new vl(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new vl(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new vl(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new xT(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new qb(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(fd))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new kv(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new vl(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new vl(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new gl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new gl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new gl(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(fd),!this.consumeOptionalCharacter(hc)){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),f=this.sourceSpan(a);i.push(new yf(u,f,f,new kv(u,f),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(hc)}return new IT(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var f,a=this,s=this.inputIndex,l=this.withContext(Xm.Writable,function(){var v,C=null!==(v=a.expectIdentifierOrKeyword())&&void 0!==v?v:"";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"),f=new gl(this.span(i),this.sourceSpan(i))):f=new AT(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 gl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();f=new Vm(this.span(i),this.sourceSpan(i),u,e,l,h)}else f=new yf(this.span(i),this.sourceSpan(i),u,e,l);return f}},{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),f=this.sourceSpan(i);return o?new md(u,f,e,s,l):new Gm(u,f,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 Wa(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,$t.Z)(this.parseDirectiveKeywordBindings(e)));this.index1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new zb(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),e5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,j.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=f,u}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Rv),eE=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),t}();function _c(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=t.visit?function(a){return t.visit(a,e)||a.visit(t,e)}:function(a){return a.visit(t,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var tE={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"};tE.ngsp="\ue500";var VP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,V.Z)(e)}(uu),Cf=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var t_,NB=/\r\n?/g;function e_(t){var r=0===t?"EOF":String.fromCharCode(t);return'Unexpected character "'.concat(r,'"')}function l1(t){return'Unknown entity "'.concat(t,'" - use the "&#;" or "&#x;" syntax')}!function(t){t.HEX="hexadecimal",t.DEC="decimal"}(t_||(t_={}));var rE=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.error=r}),wf=function(){function t(r,e,i){(0,j.Z)(this,t),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||su,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 i_(r,o):new u1(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,V.Z)(t,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(NB,"\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 FB(t){return t!==hc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===hc){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 VP("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 VP("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 VP(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new rE(o)}},{key:"handleError",value:function(e){if(e instanceof Gp&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof rE))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 UB(t,r){return n_(t)===n_(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(e_(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()")}),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()&&!iE(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(GP,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!kT(this._cursor.peek()))throw this._createError(e_(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(yl);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(yl),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(yl),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(yl);this._consumeTagOpenEnd()}catch(l){if(l instanceof rE)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===wn.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===wn.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(yl),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(yl),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(e_(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 GP(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(yl);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(yl),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(fd),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(yl),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(yl)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(fd).trim();this._endToken([e]),this._attemptCharCodeUntilFn(yl),this._beginToken(21),this._requireCharCode(fd),this._endToken([]),this._attemptCharCodeUntilFn(yl),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(hc),this._endToken([]),this._attemptCharCodeUntilFn(yl),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(hc),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 f=this._cursor.clone();if(this._isTagStart())return this._cursor=f,a.push(this._getProcessedChars(s,f)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,f)),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&&Bb(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()===hc&&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()!==fd)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),t}();function yl(t){return!wT(t)||0===t}function GP(t){return wT(t)||62===t||60===t||47===t||39===t||34===t||61===t||0===t}function iE(t){return(t<97||12257)}function BB(t){return 59===t||0===t||!function mB(t){return t>=97&&t<=102||t>=65&&t<=70||pd(t)}(t)}function qP(t){return 59===t||0===t||!kT(t)}function n_(t){return t>=97&&t<=122?t-97+65:t}function r_(t){for(var r=[],e=void 0,i=0;i0&&-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 ja(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 Gp('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):oP(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 vf(e.file,e.state.offset,e.state.line,e.state.column)}}]),t}(),i_=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.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,Gt.Z)(a)}return(0,V.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ht.Z)((0,sn.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ht.Z)((0,sn.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.offset3&&void 0!==arguments[3]?arguments[3]:{},o=new wf(new Fb(t,r),e,i);return o.tokenize(),new Cf(r_(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new JP(a.tokens,this.getTagDefinition);return s.build(),new oE(s.rootNodes,a.errors.concat(s.errors))}}]),t}(),JP=function(){function t(r,e){(0,j.Z)(this,t),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,V.Z)(t,[{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._index0)return this.errors=this.errors.concat(s.errors),null;var l=new ja(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new ja(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new iW(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(!c1(o,21))return this.errors.push(bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!c1(o,19))return this.errors.push(bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(bl.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,d1):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new $m(a,new ja(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,Ut.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 f=this.getTagDefinition(l);f.canSelfClose||null!==ue(l)||f.isVoid||this.errors.push(bl.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,v=new ja(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new ja(e.sourceSpan.start,h,e.sourceSpan.fullStart),B=new WP(l,s,[],v,C,void 0);this._pushElement(B),u?this._popElement(l,v):4===e.type&&(this._popElement(l,null),this.errors.push(bl.create(l,v,'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(bl.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(bl.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=We(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,d1):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 ja(l.start,u,l.fullStart);return new oW(i,a,new ja(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=Bt(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ue(o.name))}return We(e,i)}}]),t}();function c1(t,r){return t.length>0&&t[t.length-1]===r}function d1(t,r){return void 0!==tE[r]?tE[r]||t:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):t}var QP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,Jt)}return(0,V.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ht.Z)((0,sn.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(KP),Lv="ngPreserveWhitespaces",HB=new Set(["pre","template","textarea","script","style"]),aE=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",aW=new RegExp("[^".concat(aE,"]")),XP=new RegExp("[".concat(aE,"]{2,}"),"g");function e3(t){return t.replace(new RegExp("\ue500","g")," ")}var lE,sE=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e,i){return HB.has(e.name)||function $P(t){return t.some(function(r){return r.name===Lv})}(e.attrs)?new WP(e.name,_c(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new WP(e.name,e.attrs,function zB(t,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(t,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!==Lv?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(aW),a=i&&(i.prev instanceof $T||i.next instanceof $T);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function jB(t){var r=t.type,e=t.parts,i=t.sourceSpan;return{type:r,parts:[t3(e[0])],sourceSpan:i}}(u):u}),l=t3(e.value);return new $m(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}}]),t}();function t3(t){return e3(t).replace(XP," ")}function n3(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Di(Object.keys(t).map(function(e){return{key:e,quoted:r,value:t[e]}}))}function uE(){return lE||(lE={},cE(tt.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),cE(tt.STYLE,["*|style"]),cE(tt.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),cE(tt.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"])),lE}function cE(t,r){var i,e=(0,cn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;lE[o.toLowerCase()]=t}}catch(a){e.e(a)}finally{e.f()}}var WB=(0,V.Z)(function t(){(0,j.Z)(this,t)}),o3=["[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:|"],dE={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},a3=Object.keys(dE).reduce(function(t,r){return t[dE[r]]=r,t},{}),s3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.call(this))._schema={},i._eventSchema={},o3.forEach(function(o){var a={},s=new Set,l=o.split("|"),u=(0,Ut.Z)(l,2),f=u[0],v=u[1].split(","),C=f.split("^"),B=(0,Ut.Z)(C,2),G=B[0],q=B[1];G.split(",").forEach(function(Fe){i._schema[Fe.toLowerCase()]=a,i._eventSchema[Fe.toLowerCase()]=s});var ae=q&&i._schema[q.toLowerCase()];if(ae){Object.keys(ae).forEach(function(Fe){a[Fe]=ae[Fe]});var Ye,he=(0,cn.Z)(i._eventSchema[q.toLowerCase()]);try{for(he.s();!(Ye=he.n()).done;){var Me=Ye.value;s.add(Me)}}catch(Fe){he.e(Fe)}finally{he.f()}}v.forEach(function(Fe){if(Fe.length>0)switch(Fe[0]){case"*":s.add(Fe.substring(1));break;case"!":a[Fe.substring(1)]="boolean";break;case"#":a[Fe.substring(1)]="number";break;case"%":a[Fe.substring(1)]="object";break;default:a[Fe]="string"}})}),i}return(0,V.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===Yn.name}))return!0;if(o.indexOf("-")>-1){if(dt(o)||de(o))return!1;if(s.some(function(u){return u.name===lr.name}))return!0}return!!(this._schema[o.toLowerCase()]||this._schema.unknown)[a]}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===Yn.name})||o.indexOf("-")>-1&&(dt(o)||de(o)||a.some(function(s){return s.name===lr.name})))||!!this._schema[o.toLowerCase()]}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=uE()[o+"|"+a];return l||((l=uE()["*|"+a])||tt.NONE)}},{key:"getMappedPropName",value:function(o){return dE[o]||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 Object.keys(this._schema)}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema[o.toLowerCase()]||this._schema.unknown;return Object.keys(a).map(function(s){var l;return null!==(l=a3[s])&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema[o.toLowerCase()])&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function pn(t){return t.replace(rr,function(){for(var r=arguments.length,e=new Array(r),i=0;i2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new LT(i.name,4,tt.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,f=i.name.split("."),h=void 0;if(f.length>1)if("attr"==f[0]){u=f.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=_E(this._schemaRegistry,e,u,!0);var v=u.indexOf(":");if(v>-1){var C=u.substring(0,v),B=u.substring(v+1);u=We(C,B)}l=1}else"class"==f[0]?(u=f[1],l=2,h=[tt.NONE]):"style"==f[0]&&(s=f.length>2?f[2]:null,u=f[1],l=3,h=[tt.STYLE]);if(null===u){var G=this._schemaRegistry.getMappedPropName(i.name);u=a?G:i.name,h=_E(this._schemaRegistry,e,G,!1),l=0,o||this._validatePropertyOrAttributeName(G,i.sourceSpan,!1)}return new LT(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,f){0===e.length&&this._reportError("Event name is missing in binding",a),mE(e)?(e=e.substr(1),void 0!==f&&(f=vc(f,new Wa(f.start.offset+1,f.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,f)):this._parseRegularEvent(e,i,o,a,s,l,u,f)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return _E(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var f=function Se(t,r){return Ae(t,".",r)}(e,[e,""]),h=f[0],v=f[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new RT(h,v,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),v?"start"!==v&&"done"!==v&&this._reportError('The provided animation output phase value "'.concat(v,'" 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,f){var h=lt(e,[null,e]),v=(0,Ut.Z)(h,2),C=v[0],B=v[1],G=this._parseAction(i,o,s);l.push([e,G.source]),u.push(new RT(B,C,0,G,a,s,f))}},{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 gl?(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]:hd.ERROR;this.errors.push(new uu(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,cn.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,hd.ERROR)}}]),t}();function mE(t){return"@"==t[0]}function _E(t,r,e,i){var o=[];return dn.parse(r).forEach(function(a){var s=a.element?[a.element]:t.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(f){return f.isElementSelector()}).map(function(f){return f.element})),u=s.filter(function(f){return!l.has(f)});o.push.apply(o,(0,$t.Z)(u.map(function(f){return t.securityContext(f,e,i)})))}),0===o.length?[tt.NONE]:Array.from(new Set(o)).sort()}function vc(t,r){var e=r.start-t.start.offset,i=r.end-t.end.offset;return new ja(t.start.moveBy(e),t.end.moveBy(i),t.fullStart.moveBy(e),t.details)}var Cl,XB=/^([^:/?#]+):/;function eF(t){var r=null,e=null,i=null,o=!1,a="";t.attrs.forEach(function(u){var f=u.name.toLowerCase();"select"==f?r=u.value:"href"==f?e=u.value:"rel"==f?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function p3(t){return null===t||0===t.length?"*":t}(r);var s=t.name.toLowerCase(),l=Cl.OTHER;return de(s)?l=Cl.NG_CONTENT:"style"==s?l=Cl.STYLE:"script"==s?l=Cl.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Cl.STYLESHEET),new f3(l,r,e,o,a)}!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(Cl||(Cl={}));var f3=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var h3=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,bc_BANANA_BOX={start:"[(",end:")]"},bc_PROPERTY={start:"[",end:"]"},bc_EVENT={start:"(",end:")"};function TE(t,r,e){var i=new Nv(r,e),s={nodes:_c(i,t),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var Cc,Nv=function(){function t(r,e){(0,j.Z)(this,t),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=this,o=Lm(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=eF(e);if(a.type===Cl.SCRIPT)return null;if(a.type===Cl.STYLE){var s=function SE(t){return 1===t.children.length&&t.children[0]instanceof $m?t.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Cl.STYLESHEET&&function QB(t){if(null==t||0===t.length||"/"==t[0])return!1;var r=t.match(XB);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Ye,l=function Te(t){return"ng-template"===Bt(t)[1]}(e.name),u=[],f=[],h=[],v=[],C=[],B={},G=[],q=[],ae=!1,he=(0,cn.Z)(e.attrs);try{for(he.s();!(Ye=he.n()).done;){var Me=Ye.value,Fe=!1,ft=ME(Me.name),ht=!1;if(Me.i18n&&(B[Me.name]=Me.i18n),ft.startsWith("*")){ae&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Me.sourceSpan),ht=!0,ae=!0;var Re=Me.value,ut=ft.substring("*".length),kt=[],x=Me.valueSpan?Me.valueSpan.start.offset:Me.sourceSpan.start.offset+Me.name.length;this.bindingParser.parseInlineTemplateBinding(ut,Re,Me.sourceSpan,x,[],G,kt,!0),q.push.apply(q,(0,$t.Z)(kt.map(function(Hn){return new xI(Hn.name,Hn.value,Hn.sourceSpan,Hn.keySpan,Hn.valueSpan)})))}else Fe=this.parseAttribute(l,Me,[],u,f,h,v);!Fe&&!ht&&C.push(this.visitAttribute(Me))}}catch(Hn){he.e(Hn)}finally{he.f()}var O,g=_c(a.nonBindable?EE:this,e.children);if(a.type===Cl.NG_CONTENT){e.children&&!e.children.every(function(Hn){return function _3(t){return t instanceof $m&&0==t.value.trim().length}(Hn)||function rF(t){return t instanceof eE}(Hn)})&&this.reportError(" element cannot have content.",e.sourceSpan);var H=a.selectAttr,te=e.attrs.map(function(Hn){return i.visitAttribute(Hn)});O=new YN(H,te,e.sourceSpan,e.i18n),this.ngContentSelectors.push(H)}else if(l){var re=this.extractAttributes(e.name,u,B);O=new rv(e.name,C,re.bound,f,[],g,v,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var ye=this.extractAttributes(e.name,u,B);O=new sd(e.name,C,ye.bound,f,g,v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(ae){var pt=this.extractAttributes("ng-template",G,B),xt=[];pt.literal.forEach(function(Hn){return xt.push(Hn)}),pt.bound.forEach(function(Hn){return xt.push(Hn)});var Ce=O instanceof sd?{attributes:O.attributes,inputs:O.inputs,outputs:O.outputs}:{attributes:[],inputs:[],outputs:[]},st=l&&o?void 0:e.i18n,Lt=O instanceof rv?null:O.name;O=new rv(Lt,Ce.attributes,Ce.inputs,Ce.outputs,xt,[O],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,st)}return o&&(this.inI18nBlock=!1),O}},{key:"visitAttribute",value:function(e){return new Ou(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(!Lm(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 f=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[f]=new cs(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new Mb(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 Au(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var f=o[u.name];if(u.isLiteral)l.push(new Ou(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,f));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(cc.fromBoundElementProperty(h,f))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var f,h=ME(i.name),v=i.value,C=i.sourceSpan,B=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function G(xt,Ce,st){var Lt=i.name.length-h.length,Hn=xt.start.moveBy(Ce.length+Lt),er=Hn.moveBy(st.length);return new ja(Hn,er,Hn,st)}var q=h.match(h3);if(q){if(null!=q[1]){var ae=q[7],he=G(C,q[1],ae);this.bindingParser.parsePropertyBinding(ae,v,!1,C,B,i.valueSpan,o,a,he)}else if(q[2])if(e){var Ye=q[7],Me=G(C,q[2],Ye);this.parseVariable(Ye,v,C,Me,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Fe=q[7],ft=G(C,q[3],Fe);this.parseReference(Fe,v,C,ft,i.valueSpan,u)}else if(q[4]){var ht=[],Re=q[7],ut=G(C,q[4],Re);this.bindingParser.parseEvent(Re,v,!1,C,i.valueSpan||C,o,ht,ut),h1(ht,s)}else if(q[5]){var kt=q[7],x=G(C,q[5],kt);this.bindingParser.parsePropertyBinding(kt,v,!1,C,B,i.valueSpan,o,a,x),this.parseAssignmentEvent(kt,v,C,i.valueSpan,o,s,x)}else if(q[6]){var g=G(C,"",h);this.bindingParser.parseLiteralAttr(h,v,C,B,i.valueSpan,o,a,g)}return!0}var O=null;if(h.startsWith(bc_BANANA_BOX.start)?O=bc_BANANA_BOX:h.startsWith(bc_PROPERTY.start)?O=bc_PROPERTY:h.startsWith(bc_EVENT.start)&&(O=bc_EVENT),null!==O&&h.endsWith(O.end)&&h.length>O.start.length+O.end.length){var H=h.substring(O.start.length,h.length-O.end.length),te=G(C,O.start,H);if(O.start===bc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,te),this.parseAssignmentEvent(H,v,C,i.valueSpan,o,s,te);else if(O.start===bc_PROPERTY.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,te);else{var re=[];this.bindingParser.parseEvent(H,v,!1,C,i.valueSpan||C,o,re,te),h1(re,s)}return!0}var ye=G(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,v,C,i.valueSpan,o,a,ye,null!==(f=i.valueTokens)&&void 0!==f?f:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=e3(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new cs(l,i,a):new Dm(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 xI(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 iv(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var f=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,f,u),h1(f,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;this.errors.push(new uu(i,e,o))}}]),t}(),nF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=eF(e);if(i.type===Cl.SCRIPT||i.type===Cl.STYLE||i.type===Cl.STYLESHEET)return null;var o=_c(this,e.children,null);return new sd(e.name,_c(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new Ou(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Dm(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),t}(),EE=new nF;function ME(t){return/^data-/i.test(t)?t.substring(5):t}function h1(t,r){r.push.apply(r,(0,$t.Z)(t.map(function(e){return dc.fromParsedEvent(e)})))}function iF(){return{getUniqueId:uT(),icus:new Map}}!function(t){t[t.ELEMENT=0]="ELEMENT",t[t.TEMPLATE=1]="TEMPLATE"}(Cc||(Cc={}));var g3=function(){function t(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,j.Z)(this,t),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||iF(),this.id=this._registry.getUniqueId()}return(0,V.Z)(t,[{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};cT(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(oF))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){cT(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;dT(e,this.bindings.size,this.id).forEach(function(a,s){return cT.apply(void 0,[i.placeholders,s].concat((0,$t.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Cc.TEMPLATE,e,i,!1),this.appendTag(Cc.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Cc.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Cc.ELEMENT,e,i,!1),this.appendTag(Cc.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new t(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(v3(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(v3(e.id,e.templateIndex));if(u>=0){var f=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(f?0:1),0].concat((0,$t.Z)(a)));else a[f?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,$t.Z)(a)))}else l.push.apply(l,(0,$t.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),t}();function kf(t,r,e,i){var o=i?"/":"";return fv("".concat(o).concat(t).concat(r),e)}function m1(t,r,e){var i=r.index,o=r.ctx;return r.isVoid?kf(t,i,o)+kf(t,i,o,!0):kf(t,i,o,e)}function v3(t,r){return function(e){return"object"==typeof e&&e.type===Cc.TEMPLATE&&e.index===r&&e.ctx===t}}function oF(t){var r=function(a,s){return m1("#",a,s)},e=function(a,s){return m1("*",a,s)};switch(t.type){case Cc.ELEMENT:return t.closed?r(t,!0)+(t.tmpl?e(t.tmpl,!0):""):t.tmpl?e(t.tmpl)+r(t)+(t.isVoid?e(t.tmpl,!0):""):r(t);case Cc.TEMPLATE:return e(t,t.closed);default:return t}}var o_=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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(Ab(e,!1),"}")}}]),t}(),aF=new o_;function y3(t){return t.visit(aF)}var b3={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"},sF=function(){function t(){(0,j.Z)(this,t),this._placeHolderNameCounts={},this._signatureToName={}}return(0,V.Z)(t,[{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=b3[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=b3[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?"/>":">"))}},{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)}}]),t}(),Bs=new LB(new JT);function lF(t){var r=new cF(Bs,t);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function uF(t,r){return r}var cF=function(){function t(r,e){(0,j.Z)(this,t),this._expressionParser=r,this._interpolationConfig=e}return(0,V.Z)(t,[{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 $T,icuDepth:0,placeholderRegistry:new sF,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||uF},u=_c(this,e,l);return new ld(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=_c(this,e.children,i),s={};e.attrs.forEach(function(v){s[v.name]=v.value});var l=Jt(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var f="";l||(f=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[f]={text:""),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new qN(e.name,s,u,f,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 ov(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 ov(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 OI(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new Am(h.expression.map(function(v){return v.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 f=new hf(s,u,e.sourceSpan);return i.visitNodeFn(e,f)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var f,s=[],l=!1,u=(0,cn.Z)(e);try{for(u.s();!(f=u.n()).done;){var h=f.value;switch(h.type){case 8:case 17:l=!0;var v=h.parts[1],C=pF(v)||"INTERPOLATION",B=o.placeholderRegistry.getPlaceholderName(C,v);o.placeholderToContent[B]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new av(v,B,h.sourceSpan));break;default:if(h.parts[0].length>0){var G=s[s.length-1];G instanceof ov?(G.value+=h.parts[0],G.sourceSpan=new ja(G.sourceSpan.start,h.sourceSpan.end,G.sourceSpan.fullStart,G.sourceSpan.details)):s.push(new ov(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function C3(t,r){if(r instanceof ld&&(function dF(t){var r=t.nodes;if(1!==r.length||!(r[0]instanceof Am))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof Am){!function dW(t,r){if(t.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(t.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,t);for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:su,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=lF(this.interpolationConfig)}return(0,V.Z)(t,[{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,f=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(f,i),this._setLegacyIds(f,i),f}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new oE(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function Qz(t){return t.attrs.some(function(r){return Rm(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,cn.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var f=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,f,w3)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(ml)){var h=u.name.slice(ml.length);pE(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,v=(0,cn.Z)(o);try{for(v.s();!(C=v.n()).done;){var B=C.value,G=a[B.name];void 0!==G&&B.value&&(B.i18n=this._generateI18nMessage([B],B.i18n||G))}}catch(q){v.e(q)}finally{v.f()}}this.keepI18nAttrs||(e.attrs=o)}return _c(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof hf){var s=a.name;tB(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 gF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t=t.trim()){var s,o=t.indexOf("@@"),a=t.indexOf("|"),l=o>-1?[t.slice(0,o),t.slice(o+2)]:[t,""],u=(0,Ut.Z)(l,2);s=u[0],r=u[1];var f=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Ut.Z)(f,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof ld?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof ld&&i.id||yi(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[qo(e),Ja(e)];else if("string"!=typeof i){var o=i instanceof ld?i:i instanceof hf?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new fW(e.sourceSpan,i))}}]),t}();function xE(t,r,e,i){var o=function T3(t){return t.nodes.map(function(r){return r.visit(k3,null)}).join("")}(r),a=[me(o)];Object.keys(i).length&&a.push(n3(i,!0));var s=e.set(si("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function pW(t){var r=[];return t.description?r.push({tagName:"desc",text:t.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&r.push({tagName:"meaning",text:t.meaning}),oc(r)}(r)),[s,new Ir(t.set(e))]}var vF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"formatPh",value:function(e){return"{$".concat(Ab(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 y3(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)}}]),t}(),k3=new vF;function mW(t,r,e){var i=function _W(t){var r=[],e=new Nu(t.placeholderToMessage,r);return t.nodes.forEach(function(i){return i.visit(e)}),function E3(t){var r=[],e=[];t[0]instanceof Qo&&r.push(_1(t[0].sourceSpan.start));for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.type,o=t.name,a=t.target,s=t.phase,l=t.handler;if(a&&!g1.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(g1.keys()),"."));var u="$event",f=new Set,h=null===e||0===e.bindingLevel?si(Ll):e.getOrCreateSharedContextVar(0),v=ZT(e,h,l,"b",t.handlerSpan,f,bF),C=[];e&&(C.push.apply(C,(0,$t.Z)(e.variableDeclarations())),C.unshift.apply(C,(0,$t.Z)(e.restoreViewStatement()))),C.push.apply(C,(0,$t.Z)(v));var B=1===i?ff(o,s):o,G=r&&zp(r),q=[];f.has(u)&&q.push(new Pn(u,Ki));var ae=ji(q,C,Ci,null,G),he=[me(B),ae];return a&&he.push(me(!1),dr(g1.get(a))),he}function CF(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var wF=function(){function t(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,f=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,v=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:CF();(0,j.Z)(this,t),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=f,this.i18nUseExternalIds=v,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=mv,this.visitVariable=mv,this.visitTextAttribute=mv,this.visitBoundAttribute=mv,this.visitBoundEvent=mv,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new S3(r,function(){return i.allocateDataSlot()},function(B){return i.allocatePureFunctionSlots(B)},function(B,G,q,ae){i._bindingScope.set(i.level,G,ae),i.creationInstruction(null,X.pipe,[me(q),me(B)])})}return(0,V.Z)(t,[{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!==X.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(he){return o.registerContextVariables(he)});var l=this.i18nContext||Lm(s)&&!Db(s)&&!(d_(e)&&e[0].i18n===s),u=Mf(e);if(l&&this.i18nStart(null,s,u),AI(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(he){return he()}),0===this.level&&this._ngContentReservedSlots.length){var f=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(he){return"*"!==he?Yt(he):he});f.push(this.constantPool.getConstLiteral(Ls(h),!0))}this.creationInstruction(null,X.projectionDef,f,!0)}l&&this.i18nEnd(null,u);var v=Ib(this._creationCodeFns),C=Ib(this._updateCodeFns),B=this._bindingScope.viewSnapshotStatements(),G=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=v.length>0?[Tf(1,B.concat(v))]:[],ae=C.length>0?[Tf(2,G.concat(C))]:[];return ji([new Pn(mf,Uo),new Pn(Ll,null)],[].concat((0,$t.Z)(this._prefixCode),q,ae),Ci,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),f=p_(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,$t.Z)(f)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=si(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=si(pv),s.notifyRestoredViewContextUse()):u=si(Ll):u=s.getSharedContextName(o)||Ef(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 Dm)o[a]=me(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof Qs){var u=l.strings,f=l.expressions,h=i.i18n,v=h.id,B=function Rl(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t.length)return"";for(var i="",o=t.length-1,a=0;a1})||Object.keys(f).length)&&(C=function(G){var q=[G];return Object.keys(f).length&&q.push(n3(f,!0)),hv(null,X.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 g3(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,f=[me(a),this.addToConsts(u)];l>0&&f.push(me(l)),this.creationInstruction(e,o?X.i18n:X.i18nStart,f)}},{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 f,u=(0,cn.Z)(l);try{var h=function(){var C=f.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,X.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(f=u.n()).done;)h()}catch(v){u.e(v)}finally{u.f()}this.updateInstruction(i,X.i18nApply,[me(s)])}o||this.creationInstruction(i,X.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var v=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof Qs){var G=Lp(dT(v));l.push(me(h.name),a.i18nTranslate(v,G)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,X.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=me(this.allocateDataSlot()),f=this.addToConsts(pi(l));this.creationInstruction(o,X.i18nAttributes,[u,f]),s&&this.updateInstruction(o,X.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return X.namespaceMathML;case"svg":return X.namespaceSVG;default:return X.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[me(o)].concat((0,$t.Z)(u.getUpdateInstructionArguments(s)),(0,$t.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[me(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(me(o),pi(l)):0!==o&&a.push(me(o)),this.creationInstruction(e.sourceSpan,X.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,he,i=this,s=this.allocateDataSlot(),l=new qT(null),u=!1,f=Lm(e.i18n)&&!Db(e.i18n),h=[],v=Bt(e.name),C=(0,Ut.Z)(v,2),B=C[0],G=C[1],q=dt(e.name),ae=(0,cn.Z)(e.attributes);try{for(ae.s();!(he=ae.n()).done;){var Ye=he.value,Me=Ye.name,Fe=Ye.value;"ngNonBindable"===Me?u=!0:"style"===Me?l.registerStyleAttr(Fe):"class"===Me?l.registerClassAttr(Fe):h.push(Ye)}}catch(kn){ae.e(kn)}finally{ae.f()}var ft=[me(s)];q||ft.push(me(G));var ht=[],Re=[];e.inputs.forEach(function(kn){l.registerBoundInput(kn)||(0===kn.type&&kn.i18n?Re.push(kn):ht.push(kn))});var ut=this.getAttributeExpressions(e.name,h,ht,e.outputs,l,[],Re);ft.push(this.addAttrsToConsts(ut));var kt=this.prepareRefsArray(e.references);ft.push(this.addToConsts(kt));var x=this._namespace,g=this.getNamespaceInstruction(B);g!==x&&this.addNamespaceInstruction(g,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var O=!f&&this.i18n?!Mf(e.children):e.children.length>0,H=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Re.length&&!O,te=!H&&Mf(e.children);if(H)this.creationInstruction(e.sourceSpan,q?X.elementContainer:X.element,ns(ft));else{if(this.creationInstruction(e.startSourceSpan,q?X.elementContainerStart:X.elementStart,ns(ft)),u&&this.creationInstruction(e.startSourceSpan,X.disableBindings),Re.length>0&&this.i18nAttributesInstruction(s,Re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var ye,re=(0,cn.Z)(e.outputs);try{for(re.s();!(ye=re.n()).done;){var pt=ye.value;this.creationInstruction(pt.sourceSpan,X.listener,this.prepareListenerParameter(e.name,pt,s))}}catch(kn){re.e(kn)}finally{re.f()}}f&&this.i18nStart(e.startSourceSpan,e.i18n,te)}for(var xt=l.buildUpdateLevelInstructions(this._valueConverter),Ce=xt.length-1,st=0;st<=Ce;st++){var Lt=xt[st];this._bindingSlots+=this.processStylingUpdateInstruction(s,Lt)}var Hn=me(void 0),er=[],Zn=[];ht.forEach(function(kn){var Br=kn.type;if(4===Br){var qr=kn.value.visit(i._valueConverter),Yo=!(qr instanceof vl)||!!qr.value;i.allocateBindingSlots(qr),er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return Yo?i.convertPropertyBinding(qr):Hn},Mm(kn.name))})}else{if(kn.i18n)return;var Yi=kn.value.visit(i._valueConverter);if(void 0!==Yi){var Cs=[],VN=Bt(kn.name),Woe=(0,Ut.Z)(VN,2),Voe=Woe[0],SI=Woe[1],YVe=1===Br,Wz=Kp(kn.securityContext,YVe);if(Wz&&Cs.push(Wz),Voe){var Yoe=me(Voe);Wz?Cs.push(Yoe):Cs.push(me(null),Yoe)}if(i.allocateBindingSlots(Yi),0===Br)Yi instanceof Qs?i.interpolatedUpdateInstruction(l_(Yi),s,SI,kn,Yi,Cs):er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(Yi)},SI,Cs)});else if(1===Br)if(Yi instanceof Qs&&Iu(Yi)>1)i.interpolatedUpdateInstruction(function Fs(t){switch(Iu(t)){case 3:return X.attributeInterpolate1;case 5:return X.attributeInterpolate2;case 7:return X.attributeInterpolate3;case 9:return X.attributeInterpolate4;case 11:return X.attributeInterpolate5;case 13:return X.attributeInterpolate6;case 15:return X.attributeInterpolate7;case 17:return X.attributeInterpolate8;default:return X.attributeInterpolateV}}(Yi),s,SI,kn,Yi,Cs);else{var GVe=Yi instanceof Qs?Yi.expressions[0]:Yi;Zn.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(GVe)},SI,Cs)})}else i.updateInstructionWithAdvance(s,kn.sourceSpan,X.classProp,function(){return[me(s),me(SI),i.convertPropertyBinding(Yi)].concat(Cs)})}}});for(var Cn=0,ma=er;Cn0&&this.i18nAttributesInstruction(s,ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),he.length>0&&this.templatePropertyBindings(s,he);var Me,Ye=(0,cn.Z)(e.outputs);try{for(Ye.s();!(Me=Ye.n()).done;){var Fe=Me.value;this.creationInstruction(Fe.sourceSpan,X.listener,this.prepareListenerParameter("ng_template",Fe,s))}}catch(ft){Ye.e(ft)}finally{Ye.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 Qs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,X.text,[me(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof Qs?this.updateInstructionWithAdvance(a,e.sourceSpan,function qp(t){switch(Iu(t)){case 1:return X.textInterpolate;case 3:return X.textInterpolate1;case 5:return X.textInterpolate2;case 7:return X.textInterpolate3;case 9:return X.textInterpolate4;case 11:return X.textInterpolate5;case 13:return X.textInterpolate6;case 15:return X.textInterpolate7;case 17:return X.textInterpolate8;default:return X.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):_t("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,X.text,[me(this.allocateDataSlot()),me(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(v){var B=fT(Object.assign(Object.assign({},a),s),!1);return hv(null,X.i18nPostprocess,[v,n3(B,!0)])};if(Db(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var f=this.i18nTranslate(l,{},void 0,u);o.appendIcu(tB(l).name,f)}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(Ls(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,cn.Z)(i);try{var u=function(){var G=l.value;if(!(G instanceof cc))return"continue";var q=G.value.visit(o._valueConverter);if(void 0===q)return"continue";if(o.allocateBindingSlots(q),q instanceof Qs){o.interpolatedUpdateInstruction(l_(q),e,G.name,G,q,[])}else a.push({span:G.sourceSpan,paramsOrFn:yd(function(){return o.convertPropertyBinding(q)},G.name)})};for(s.s();!(l=s.n()).done;)u()}catch(B){s.e(B)}finally{s.f()}for(var h=0,v=a;h4&&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,cn.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(v){return h.supportsInterpolation&&v instanceof Qs?o.getUpdateInstructionArguments(v):o.convertPropertyBinding(v)})})};for(s.s();!(l=s.n()).done;)u()}catch(f){s.e(f)}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,X.advance,[me(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 Qs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?si(Ll):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=CB(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,$t.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function qm(t,r,e,i){var o=new e1(t,r,i,!0),a=o.visitInterpolation(e,co.Expression);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),{stmts:Xb(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,$t.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var v,B,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],f=new Set,h=[],C=(0,cn.Z)(i);try{for(C.s();!(B=C.n()).done;){var G=B.value;if(G.name===yF&&(v=G),G.i18n){var q=this._constants.i18nVarRefsCache,ae=void 0;q.has(G.i18n)?ae=q.get(G.i18n):(ae=this.i18nTranslate(G.i18n),q.set(G.i18n,ae)),h.push(me(G.name),ae)}else h.push.apply(h,(0,$t.Z)(a_(G.name)).concat([c_(e,G)]))}}catch(Re){C.e(Re)}finally{C.f()}function he(Re,ut){"string"==typeof Re?f.has(Re)||(h.push.apply(h,(0,$t.Z)(a_(Re))),void 0!==ut&&h.push(ut),f.add(Re)):h.push(me(Re))}if(v&&h.push.apply(h,(0,$t.Z)(wc(v))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Ye=h.length,Me=0;Me0?this.addToConsts(pi(e)):be}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Ls(C1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,f=si(l);return i._bindingScope.set(u,a.name,f,0,function(h,v){var C=v>0?[Ef(v).toStmt()]:[],B=f.set(dr(X.reference).callFn([me(s)]));return C.concat(B.toConstDecl())},!0),[a.name,a.value]}))):be}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?pf(s,i.phase):zp(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),f=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,bF);return v1(i,u,f)}}}]),t}(),S3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,V.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),f=new yf(o.span,o.sourceSpan,o.nameSpan,new kv(o.span,o.sourceSpan),l),h=function TF(t){var r=kF[t.length];return{identifier:r||X.pipeBindV,isVarLength:!r}}(o.args),v=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,dr(v));var B=[o.exp].concat((0,$t.Z)(o.args)),G=C?this.visitAll([new qb(o.span,o.sourceSpan,B)]):this.visitAll(B),q=new Gm(o.span,o.sourceSpan,f,[new vl(o.span,o.sourceSpan,s),new vl(o.span,o.sourceSpan,u)].concat((0,$t.Z)(G)),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 Km(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return x3(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Km(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Di(l.map(function(f,h){return{key:o.keys[h].key,value:f,quoted:o.keys[h].quoted}}));return x3(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(PT),kF=[X.pipeBind1,X.pipeBind2,X.pipeBind3,X.pipeBind4];var EF=[X.pureFunction0,X.pureFunction1,X.pureFunction2,X.pureFunction3,X.pureFunction4,X.pureFunction5,X.pureFunction6,X.pureFunction7,X.pureFunction8];function Ef(t){return dr(X.nextContext).callFn(t>1?[me(t)]:[])}function x3(t,r,e){var i=t.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function y1(t){var r=EF[t.length];return{identifier:r||X.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,f=l.isVarLength,h=[me(s),o];return f?h.push(pi(a)):h.push.apply(h,(0,$t.Z)(a)),dr(u).callFn(h)}function a_(t){var r=Bt(t),e=(0,Ut.Z)(r,2),i=e[0],a=me(e[1]);return i?[me(0),me(i),a]:[a]}var s_="$$shared_ctx$$",MF=function(){function t(){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,j.Z)(this,t),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,cn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,si(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,V.Z)(t,[{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;_t("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(s_+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new t(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=s_+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(s_+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel0&&void 0!==arguments[0]?arguments[0]:su;return new c3(new LB(new JT),t,Zl,[])}function Kp(t,r){switch(t){case tt.HTML:return dr(X.sanitizeHtml);case tt.SCRIPT:return dr(X.sanitizeScript);case tt.STYLE:return r?dr(X.sanitizeStyle):null;case tt.URL:return dr(X.sanitizeUrl);case tt.RESOURCE_URL:return dr(X.sanitizeResourceUrl);default:return null}}function c_(t,r){var e=Ls(r.value);if(!pE(t,r.name))return e;switch(Zl.securityContext(t,r.name,!0)){case tt.HTML:return ze(dr(X.trustConstantHtml),new Fa([new Tu(r.value)],[]),void 0,r.valueSpan);case tt.RESOURCE_URL:return ze(dr(X.trustConstantResourceUrl),new Fa([new Tu(r.value)],[]),void 0,r.valueSpan);default:return e}}function d_(t){return 1===t.length&&t[0]instanceof sd}function f_(t){return t instanceof Dm||t instanceof cs||t instanceof Mb}function Mf(t){return t.every(f_)}function yd(t,r,e){return function(){var i=t(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,$t.Z)(e)),r&&o.unshift(me(r)),o}}var Jp="ngI18nClosureMode";function p_(t,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[nB(r),hl(h_(),xE(r,t,e,fT(i,!0)),mW(r,t,fT(i,!1)))];return o&&a.push(new Ir(r.set(o(r)))),a}function h_(){return wi(si(Jp)).notIdentical(me("undefined",ya)).and(si(Jp))}function C1(t){return t.reduce(function(r,e){var i=Array.isArray(e)?C1(e):e;return r.concat(i)},[])}var AE=/attr\.([^\]]+)/,A3="_nghost-".concat("%COMP%"),O3="_ngcontent-".concat("%COMP%");function IE(t,r,e){var i=new fs,o=Yt(t.selector);return i.set("type",t.internalType),o.length>0&&i.set("selectors",Ls(o)),t.queries.length>0&&i.set("contentQueries",function SF(t,r,e){var l,i=[],o=[],a=hT(o,"_t"),s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(dr(X.contentQuery).callFn([si("dirIndex")].concat((0,$t.Z)(L3(u,r)))).toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Ll).prop(u.propertyName).set(u.first?f.prop("first"):f);o.push(v.and(C).toStmt())}}catch(G){s.e(G)}finally{s.f()}var B=e?"".concat(e,"_ContentQueries"):null;return ji([new Pn(mf,Uo),new Pn(Ll,null),new Pn("dirIndex",null)],[Tf(1,i),Tf(2,o)],Ci,null,B)}(t.queries,r,t.name)),t.viewQueries.length&&i.set("viewQuery",function DF(t,r,e){var i=[],o=[],a=hT(o,Ob);t.forEach(function(l){var u=dr(X.viewQuery).callFn(L3(l,r));i.push(u.toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Ll).prop(l.propertyName).set(l.first?f.prop("first"):f);o.push(v.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return ji([new Pn(mf,Uo),new Pn(Ll,null)],[Tf(1,i),Tf(2,o)],Ci,null,s)}(t.viewQueries,r,t.name)),i.set("hostBindings",function AF(t,r,e,i,o,a,s){var l=si(Ll),u=new qT(l),f=t.specialAttributes,h=f.styleAttr,v=f.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==v&&u.registerClassAttr(v);var C=[],B=[],G=[],q=r,ae=e.createDirectiveHostEventAsts(t.listeners,q);ae&&ae.length&&C.push.apply(C,(0,$t.Z)(function OF(t,r){var s,e=[],i=[],o=[],a=(0,cn.Z)(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&zp(l.name),f=1===l.type?pf(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(f,"_HostBindingHandler"):null,v=v1(dc.fromParsedEvent(l),h);1==l.type?i.push(v):e.push(v)}}catch(Ye){a.e(Ye)}finally{a.f()}for(var C=0,B=i;C-1&&xt.indexOf(tt.RESOURCE_URL)>-1?dr(X.sanitizeUrlOrResourceUrl):Kp(xt[0],pt));var st=[me(re),H.currValExpr];Ce&&st.push(Ce),G.push.apply(G,(0,$t.Z)(H.stmts)),ye===X.hostProperty?ht.push(st):ye===X.attribute?Re.push(st):ye===X.syntheticHostProperty?ut.push(st):B.push({reference:ye,paramsOrFn:st,span:null})}for(var Lt=0,Hn=ht;Lt0||B.length>0){var yr=a?"".concat(a,"_HostBindings"):null,kn=[];return C.length>0&&kn.push(Tf(1,Ib(C))),B.length>0&&kn.push(Tf(2,G.concat(Ib(B)))),ji([new Pn(mf,Uo),new Pn(Ll,null)],kn,Ci,null,yr)}return null}(t.host,t.typeSourceSpan,e,r,t.selector||"",t.name,i)),i.set("inputs",_v(t.inputs,!0)),i.set("outputs",_v(t.outputs)),null!==t.exportAs&&i.set("exportAs",pi(t.exportAs.map(function(a){return me(a)}))),i}function PE(t,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new So([])];o&&a.push(o),e.push(dr(X.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(dr(X.InheritDefinitionFeature)),r.fullInheritance&&e.push(dr(X.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(dr(X.NgOnChangesFeature)),e.length&&t.set("features",pi(e))}function P3(t,r,e){var i=IE(t,r,e);PE(i,t);var o=t.selector&&dn.parse(t.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(x){return me(null!=x?x:void 0)})),!0))}var l=t.name,u=l?"".concat(l,"_Template"):null,f=t.changeDetection,h=t.template,v=new wF(r,MF.createRootScope(),0,l,null,null,u,X.namespaceHTML,t.relativeContextFilePath,t.i18nUseExternalIds),C=v.buildTemplateFunction(h.nodes,[]),B=v.getNgContentSelectors();B&&i.set("ngContentSelectors",B),i.set("decls",me(v.getConstCount())),i.set("vars",me(v.getVarCount()));var G=v.getConsts(),q=G.constExpressions,ae=G.prepareStatements;if(q.length>0){var he=pi(q);ae.length>0&&(he=ji([],[].concat((0,$t.Z)(ae),[new _o(he)]))),i.set("consts",he)}if(i.set("template",C),t.directives.length>0){var Me=RE(pi(t.directives.map(function(x){return x.type})),t.declarationListEmitMode);i.set("directives",Me)}if(t.pipes.size>0){var ft=RE(pi(Array.from(t.pipes.values())),t.declarationListEmitMode);i.set("pipes",ft)}if(null===t.encapsulation&&(t.encapsulation=jn.Emulated),t.styles&&t.styles.length){var ht=t.encapsulation==jn.Emulated?function LF(t,r,e){var i=new yP;return t.map(function(o){return i.shimCssText(o,r,e)})}(t.styles,O3,A3):t.styles,Re=ht.map(function(x){return r.getConstLiteral(me(x))});i.set("styles",pi(Re))}else t.encapsulation===jn.Emulated&&(t.encapsulation=jn.None);return t.encapsulation!==jn.Emulated&&i.set("encapsulation",me(t.encapsulation)),null!==t.animations&&i.set("data",Di([{key:"animation",value:t.animations,quoted:!1}])),null!=f&&f!==mn.Default&&i.set("changeDetection",me(f)),{expression:dr(X.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:R3(t),statements:[]}}function R3(t){var r=NE(t);return r.push(ZE(t.template.ngContentSelectors)),Nn(dr(X.ComponentDeclaration,r))}function RE(t,r){switch(r){case 0:return t;case 1:return ji([],[new _o(t)]);case 2:var e=t.prop("map").callFn([dr(X.resolveForwardRef)]);return ji([],[new _o(e)])}}function L3(t,r){var e=[FI(t,r),me(Z3(t))];return t.read&&e.push(t.read),e}function Z3(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function xF(t){return Nn(me(t))}function LE(t){return Nn(Di(Object.keys(t).map(function(e){return{key:e,value:me(Array.isArray(t[e])?t[e][0]:t[e]),quoted:!0}})))}function ZE(t){return t.length>0?Nn(pi(t.map(function(r){return me(r)}))):Ji}function NE(t){var r=null!==t.selector?t.selector.replace(/\n/g,""):null;return[id(t.type.type,t.typeArgumentCount),null!==r?xF(r):Ji,null!==t.exportAs?ZE(t.exportAs):Ji,LE(t.inputs),LE(t.outputs),ZE(t.queries.map(function(e){return e.propertyName}))]}function B3(t){var r=NE(t);return Nn(dr(X.DirectiveDeclaration,r))}function F3(t,r){return CB(null,t,r,"b")}function BE(t,r,e){return t.params(function(i){return e(r,i).currValExpr})}function FE(t){var e,r=t.name,i=r.match(AE);return i?(r=i[1],e=X.attribute):t.isAnimation?(r=Mm(r),e=X.syntheticHostProperty):e=X.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var IF=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var U3=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ZF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Xz;(0,j.Z)(this,t),this.jitEvaluator=r,this.FactoryTarget=ur,this.ResourceLoader=U3,this.elementSchemaRegistry=new s3}return(0,V.Z)(t,[{key:"compilePipe",value:function(e,i,o){var s=ST({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function w1(t){var r;return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:null===(r=t.pure)||void 0===r||r}}(o),s=ST(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=HI({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:YE(o.providedIn),useClass:m_(o,H3),useFactory:VE(o,bd),useValue:m_(o,j3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(__)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=HI({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,providedIn:YE(o.providedIn),useClass:m_(o,H3),useFactory:VE(o,bd),useValue:m_(o,j3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(qE)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=Hb({name:o.name,type:ko(o.type),internalType:new br(o.type),providers:new br(o.providers),imports:o.imports.map(function(l){return new br(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function k1(t){return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),providers:void 0!==t.providers?new br(t.providers):null,imports:void 0!==t.imports?t.imports.map(function(r){return new br(r)}):[]}}(o),s=Hb(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=Ns({type:ko(o.type),internalType:new br(o.type),adjacentType:new br(o.type),bootstrap:o.bootstrap.map(ko),declarations:o.declarations.map(ko),imports:o.imports.map(ko),exports:o.exports.map(ko),emitInline:!0,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(ko):null,id:o.id?new br(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function wv(t){var r=new fs;return r.set("type",new br(t.type)),void 0!==t.bootstrap&&r.set("bootstrap",new br(t.bootstrap)),void 0!==t.declarations&&r.set("declarations",new br(t.declarations)),void 0!==t.imports&&r.set("imports",new br(t.imports)),void 0!==t.exports&&r.set("exports",new br(t.exports)),void 0!==t.schemas&&r.set("schemas",new br(t.schemas)),void 0!==t.id&&r.set("id",new br(t.id)),dr(X.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=W3(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=zE(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new ir,l=function I3(t,r,e){var i=IE(t,r,e);return PE(i,t),{expression:dr(X.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:B3(t),statements:[]}}(o,a,u_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=WE(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),W3(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarationListEmitMode:0,styles:[].concat((0,$t.Z)(o.styles),(0,$t.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new br(o.animations):null,viewProviders:null!=o.viewProviders?new br(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),f="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,f,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function FF(t,r,e){var i,o,a,s,l,u,f=WE(t.template,t.type.name,e,null!==(i=t.preserveWhitespaces)&&void 0!==i&&i,t.interpolation),h=f.template,v=f.interpolation;return Object.assign(Object.assign({},zE(t,r)),{template:h,styles:null!==(o=t.styles)&&void 0!==o?o:[],directives:(null!==(a=t.components)&&void 0!==a?a:[]).concat(null!==(s=t.directives)&&void 0!==s?s:[]).map(UF),pipes:HF(t.pipes),viewProviders:void 0!==t.viewProviders?new br(t.viewProviders):null,animations:void 0!==t.animations?new br(t.animations):null,changeDetection:null!==(l=t.changeDetection)&&void 0!==l?l:mn.Default,encapsulation:null!==(u=t.encapsulation)&&void 0!==u?u:jn.Emulated,interpolation:v,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 ir,l=P3(o,a,u_(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=Wr({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,deps:GE(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=Wr({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(qE):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function sP(t,r,e){var i="in ".concat(t," ").concat(r," in ").concat(e),o=new Fb("",i);return new ja(new vf(o,-1,-1,-1),new vf(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,$t.Z)(a),[new nr("$def",e,void 0,Je.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new cP(i),!0).$def}}]),t}(),H3=Object.keys({useClass:null})[0],bd=Object.keys({useFactory:null})[0],j3=Object.keys({useValue:null})[0],UE=Object.keys({useExisting:null})[0];function z3(t){return Object.assign(Object.assign({},t),{predicate:jE(t.predicate),read:t.read?new br(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function HE(t){var r,e,i,o;return{propertyName:t.propertyName,first:null!==(r=t.first)&&void 0!==r&&r,predicate:jE(t.predicate),descendants:null!==(e=t.descendants)&&void 0!==e&&e,read:t.read?new br(t.read):null,static:null!==(i=t.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=t.emitDistinctChangesOnly)||void 0===o||o}}function jE(t){return Array.isArray(t)?t:Sm(new br(t),1)}function W3(t){var r=Y3(t.inputs||[]),e=Y3(t.outputs||[]),i=t.propMetadata,o={},a={},s=function(f){i.hasOwnProperty(f)&&i[f].forEach(function(h){!function JE(t){return"Input"===t.ngMetadataName}(h)?function QE(t){return"Output"===t.ngMetadataName}(h)&&(a[f]=h.bindingPropertyName||f):o[f]=h.bindingPropertyName?[h.bindingPropertyName,f]:f})};for(var l in i)s(l);return Object.assign(Object.assign({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:ko(t.type),internalType:new br(t.type),deps:null,host:jF(t.propMetadata,t.typeSourceSpan,t.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:t.queries.map(z3),providers:null!=t.providers?new br(t.providers):null,viewQueries:t.viewQueries.map(z3),fullInheritance:!1})}function zE(t,r){var e,i,o,a,s,l,u,f;return{name:t.type.name,type:ko(t.type),typeSourceSpan:r,internalType:new br(t.type),selector:null!==(e=t.selector)&&void 0!==e?e:null,inputs:null!==(i=t.inputs)&&void 0!==i?i:{},outputs:null!==(o=t.outputs)&&void 0!==o?o:{},host:NF(t.host),queries:(null!==(a=t.queries)&&void 0!==a?a:[]).map(HE),viewQueries:(null!==(s=t.viewQueries)&&void 0!==s?s:[]).map(HE),providers:void 0!==t.providers?new br(t.providers):null,exportAs:null!==(l=t.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=t.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(f=t.usesOnChanges)&&void 0!==f&&f},deps:null,typeArgumentCount:0,fullInheritance:!1}}function NF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:BF(null!==(r=t.attributes)&&void 0!==r?r:{}),listeners:null!==(e=t.listeners)&&void 0!==e?e:{},properties:null!==(i=t.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function BF(t){for(var r={},e=0,i=Object.keys(t);e2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=u_(i),u=(new QP).parse(t,r,Object.assign(Object.assign({leadingTriviaChars:DE},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var f={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(f.commentNodes=[]),f}var h=u.rootNodes,v=new hF(i,!o,a),C=v.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var B={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(B.commentNodes=[]),B}h=C.rootNodes,o||(h=_c(new sE,h),v.hasI18nMeta&&(h=_c(new hF(i,!1),h)));var G=TE(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=G.nodes,ae=G.errors,he=G.styleUrls,Ye=G.styles,Me=G.ngContentSelectors,Fe=G.commentNodes;ae.push.apply(ae,(0,$t.Z)(u.errors).concat((0,$t.Z)(C.errors)));var ft={interpolationConfig:i,preserveWhitespaces:o,errors:ae.length>0?ae:null,nodes:q,styleUrls:he,styles:Ye,ngContentSelectors:Me};return e.collectCommentNodes&&(ft.commentNodes=Fe),ft}(t,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 m_(t,r){if(t.hasOwnProperty(r))return Sm(new br(t[r]),0)}function VE(t,r){if(t.hasOwnProperty(r))return new br(t[r])}function YE(t){return Sm("function"==typeof t?new br(t):new $a(null!=t?t:null),0)}function GE(t){return null==t?null:t.map(__)}function __(t){var r=null!=t.attribute,e=null===t.token?null:new br(t.token);return KE(r?new br(t.attribute):e,r,t.host,t.optional,t.self,t.skipSelf)}function qE(t){var r,e,i,o,a,s=null!==(r=t.attribute)&&void 0!==r&&r;return KE(null===t.token?null:new br(t.token),s,null!==(e=t.host)&&void 0!==e&&e,null!==(i=t.optional)&&void 0!==i&&i,null!==(o=t.self)&&void 0!==o&&o,null!==(a=t.skipSelf)&&void 0!==a&&a)}function KE(t,r,e,i,o,a){return{token:t,attributeNameType:r?me("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function jF(t,r,e){var i=function PF(t){for(var r={},e={},i={},o={},a=0,s=Object.keys(t);a-1?1:1e3;return parseFloat(t)*r}function h6(t,r){return t.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function S1(t){var r=t.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 pM(t,r,e){var i=t.top,o=t.bottom,a=t.left,s=t.right;return e>=i&&e<=o&&r>=a&&r<=s}function Hv(t,r,e){t.top+=r,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function hM(t,r,e,i){var o=t.top,a=t.right,s=t.bottom,l=t.left,h=t.width*r,v=t.height*r;return i>o-v&&il-h&&e=l._config.dragStartThreshold){var B=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),G=l._dropContainer;if(!B)return void l._endDragSequence(u);(!G||!G.isDragging()&&!G.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 f=l._getTargetHandle(u);f&&!l._disabledHandles.has(f)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new mM(i),s.registerDragItem(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Un.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return wd(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,Un.fI)(a)}),this._handles.forEach(function(a){return wd(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,Un.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,x1),o.addEventListener("touchstart",i._pointerDown,g_),o.addEventListener("dragstart",i._nativeDragStart,x1)}),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,Un.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),wd(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),wd(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){v_(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(),p6(o,!1,vM),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),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=v_(i),l=!s&&0!==i.button,u=this._rootElement,f=(0,Zi.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),v=s?(0,Ai.yG)(i):(0,Ai.X6)(i);if(f&&f.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||v)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),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=S1(this._boundaryElement));var B=this._previewTemplate;this._pickupPositionInElement=B&&B.template&&!B.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;p6(this._rootElement,!0,vM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),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}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s),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,f=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(f=this._initialContainer),f&&f!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=f,o._dropContainer.enter(o,a,s,f===o._initialContainer&&f.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:f,currentIndex:f.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),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._rootElement.getBoundingClientRect():null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=g6(l,this._document),this._previewRef=l,e.matchSize?y_(a,s):a.style.transform=jv(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var u=this._rootElement;y_(a=_M(u),u.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return fM(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},vM),wd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(f){return a.classList.add(f)}):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 $s(t){var r=getComputedStyle(t),e=h6(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=h6(r,"transition-duration"),s=h6(r,"transition-delay");return Uv(a[o])+Uv(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(f){var h;(!f||(0,Zi.sA)(f)===e._preview&&"transform"===f.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=g6(this._placeholderRef,this._document)):o=_M(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i){var o=this._rootElement.getBoundingClientRect(),a=e===this._rootElement?null:e,s=a?a.getBoundingClientRect():o,l=v_(i)?i.targetTouches[0]:i,u=this._getViewportScrollPosition(),f=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-o.left+f,y:s.top-o.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=v_(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):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,f=l.y,h=this._boundaryRect,v=this._getPreviewRect(),C=v.width,B=v.height,G=h.top+f,q=h.bottom-(B-f);a=yM(a,h.left+u,h.right-(C-u)),s=yM(s,G,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,wd(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,x1),e.removeEventListener("touchstart",this._pointerDown,g_),e.removeEventListener("dragstart",this._nativeDragStart,x1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=jv(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Xp(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=jv(e,i);this._preview.style.transform=Xp(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._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var l=a.left-s.left,u=s.right-a.right,f=a.top-s.top,h=s.bottom-a.bottom;a.width>s.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,a.height>s.height?(f>0&&(o+=f),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:v_(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Zi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Hv(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,Zi.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,Un.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),t}();function jv(t,r){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(r),"px, 0)")}function yM(t,r,e){return Math.max(r,Math.min(e,t))}function v_(t){return"t"===t.type[0]}function g6(t,r){var e=t.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 y_(t,r){t.style.width="".concat(r.width,"px"),t.style.height="".concat(r.height,"px"),t.style.transform=jv(r.left,r.top)}function Wv(t,r){return Math.max(0,Math.min(r,t))}var v6=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),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 qn.xQ,this.entered=new qn.xQ,this.exited=new qn.xQ,this.dropped=new qn.xQ,this.sorted=new qn.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Io.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new qn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,M4.F)(0,S4.Z).pipe((0,Yr.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,Un.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new mM(i)}return(0,V.Z)(t,[{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){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(s=this._getItemIndexFromPointerPosition(e,i,o)):s=a;var l=this._activeDraggables,u=l.indexOf(e),f=e.getPlaceholderElement(),h=l[s];if(h===e&&(h=l[s+1]),!h&&(null==s||-1===s||s-1&&l.splice(u,1),h&&!this._dragDropRegistry.isDragging(h)){var v=h.getRootElement();v.parentElement.insertBefore(f,v),l.splice(s,0,e)}else(0,Un.fI)(this.element).appendChild(f),l.push(e);f.style.transform="",this._cacheItemPositions(),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){this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u})}},{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._cacheItems());return this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,Un.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,$t.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===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&&hM(this._clientRect,.05,i,o)){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(!(-1===l&&s.length>0)){var u="horizontal"===this._orientation,f=s.findIndex(function(he){return he.drag===e}),h=s[l],v=s[f].clientRect,C=h.clientRect,B=f>l?1:-1,G=this._getItemOffsetPx(v,C,B),q=this._getSiblingOffsetPx(f,s,B),ae=s.slice();(function zv(t,r,e){var i=Wv(r,t.length-1),o=Wv(e,t.length-1);if(i!==o){for(var a=t[i],s=o0&&(s=1):t.scrollHeight-u>t.clientHeight&&(s=2)}if(a){var f=t.scrollLeft;1===a?f>0&&(l=1):t.scrollWidth-f>t.clientWidth&&(l=2)}return[s,l]}(B,C.clientRect,e,i),q=(0,Ut.Z)(G,2);s=q[0],l=q[1],(s||l)&&(a=B)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),f=u.width,h=u.height,v={width:f,height:h,top:0,right:f,bottom:h,left:0};s=y6(v,i),l=wM(v,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,Un.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,Un.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{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:S1(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,Un.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var l=null===(a=e._itemPositions.find(function(u){return u.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=l||""}}),this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{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 f=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[f]-s[h]:u+=s[f]-l.clientRect[h]}return u}},{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:"_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(f){var h=f.drag,v=f.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(v.left)&&i=Math.floor(v.top)&&o-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._itemPositions.forEach(function(a){Hv(a.clientRect,o.top,o.left)}),e._itemPositions.forEach(function(a){var s=a.drag;e._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,Zi.kV)((0,Un.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),t}();function y6(t,r){var e=t.top,i=t.bottom,a=.05*t.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function wM(t,r){var e=t.left,i=t.right,a=.05*t.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var A1=(0,Zi.i$)({passive:!1,capture:!0}),Vv=function(){function t(r,e){var i=this;(0,j.Z)(this,t),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 qn.xQ,this.pointerUp=new qn.xQ,this.scroll=new qn.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,V.Z)(t,[{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,A1)})}},{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,A1)}},{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:A1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:A1}),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 fo.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(f){i._activeDragInstances.length&&a.next(f)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),To.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()}}]),t}();Vv.\u0275fac=function(r){return new(r||Vv)(n.LFG(n.R0b),n.LFG(Ct.K0))},Vv.\u0275prov=n.Yz7({token:Vv,factory:Vv.\u0275fac,providedIn:"root"});var WW={dragStartThreshold:5,pointerDirectionChangeThreshold:5},$p=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,V.Z)(t,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WW;return new D1(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new v6(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();$p.\u0275fac=function(r){return new(r||$p)(n.LFG(Ct.K0),n.LFG(n.R0b),n.LFG(ka.rL),n.LFG(Vv))},$p.\u0275prov=n.Yz7({token:$p,factory:$p.\u0275fac,providedIn:"root"});var b6=new n.OlP("CDK_DRAG_PARENT"),O1=new n.OlP("CdkDropListGroup"),Sf=function(){function t(){(0,j.Z)(this,t),this._items=new Set,this._disabled=!1}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Un.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),t}();Sf.\u0275fac=function(r){return new(r||Sf)},Sf.\u0275dir=n.lG2({type:Sf,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[n._Bn([{provide:O1,useExisting:Sf}])]});var C6=new n.OlP("CDK_DRAG_CONFIG");var w6=0,b_=new n.OlP("CdkDropList"),C_=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new qn.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(w6++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(f,h){return u.enterPredicate(f.data,h.data)},this._dropListRef.sortPredicate=function(f,h,v){return u.sortPredicate(f,h.data,v.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Un.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=t._dropLists.indexOf(this);e>-1&&t._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,ua.O)(this._dir.value),(0,Yr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Un.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?t._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,Un.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Un.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Un.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}),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}))}}]),t}();C_._dropLists=[],C_.\u0275fac=function(r){return new(r||C_)(n.Y36(n.SBq),n.Y36($p),n.Y36(n.sBO),n.Y36(ka.mF),n.Y36(Es.Is,8),n.Y36(O1,12),n.Y36(C6,8))},C_.\u0275dir=n.lG2({type:C_,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(n.uIk("id",e.id),n.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:[n._Bn([{provide:O1,useValue:void 0},{provide:b_,useExisting:C_}])]});var kM=new n.OlP("CdkDragHandle"),Yv=function(){function t(r,e){(0,j.Z)(this,t),this.element=r,this._stateChanges=new qn.xQ,this._disabled=!1,this._parentDrag=e}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Un.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),t}();Yv.\u0275fac=function(r){return new(r||Yv)(n.Y36(n.SBq),n.Y36(b6,12))},Yv.\u0275dir=n.lG2({type:Yv,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[n._Bn([{provide:kM,useExisting:Yv}])]});var k6=new n.OlP("CdkDragPlaceholder"),Gv=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});Gv.\u0275fac=function(r){return new(r||Gv)(n.Y36(n.Rgc))},Gv.\u0275dir=n.lG2({type:Gv,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[n._Bn([{provide:k6,useExisting:Gv}])]});var TM=new n.OlP("CdkDragPreview"),qv=function(){function t(r){(0,j.Z)(this,t),this.templateRef=r,this._matchSize=!1}return(0,V.Z)(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Un.Ig)(e)}}]),t}();qv.\u0275fac=function(r){return new(r||qv)(n.Y36(n.Rgc))},qv.\u0275dir=n.lG2({type:qv,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[n._Bn([{provide:TM,useExisting:qv}])]});var Bu=function(){function t(r,e,i,o,a,s,l,u,f,h,v){var C=this;(0,j.Z)(this,t),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=f,this._selfHandle=h,this._parentDrag=v,this._destroyed=new qn.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new fo.y(function(B){var G=C._dragRef.moved.pipe((0,mr.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(B);return function(){G.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,t._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,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Un.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:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,to.q)(1),(0,Yr.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=t._dragInstances.indexOf(this);i>-1&&t._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,Un.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,Un.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,to.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=t._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(){i.started.emit({source:i}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){i.released.emit({source:i})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint}),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})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,f=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),f&&(this.rootElementSelector=f),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,ua.O)(this._handles),(0,hs.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,xo.w)(function(i){return To.T.apply(void 0,(0,$t.Z)(i.map(function(o){return o._stateChanges.pipe((0,ua.O)(o))})))}),(0,Yr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),t}();Bu._dragInstances=[],Bu.\u0275fac=function(r){return new(r||Bu)(n.Y36(n.SBq),n.Y36(b_,12),n.Y36(Ct.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(C6,8),n.Y36(Es.Is,8),n.Y36($p),n.Y36(n.sBO),n.Y36(kM,10),n.Y36(b6,12))},Bu.\u0275dir=n.lG2({type:Bu,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,TM,5),n.Suo(i,k6,5),n.Suo(i,kM,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._previewTemplate=o.first),n.iGM(o=n.CRH())&&(e._placeholderTemplate=o.first),n.iGM(o=n.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:b6,useExisting:Bu}]),n.TTD]});var w_=(0,V.Z)(function t(){(0,j.Z)(this,t)});w_.\u0275fac=function(r){return new(r||w_)},w_.\u0275mod=n.oAB({type:w_}),w_.\u0275inj=n.cJS({providers:[$p],imports:[ka.ZD]});var Ao=m(1314),po=m(449),el=m(3527),go=m(591),I1=m(4715),pr=m(1086),EM=[[["caption"]],[["colgroup"],["col"]]];function T6(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function E6(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}function MM(t){return function(r){(0,yt.Z)(i,r);var e=(0,mt.Z)(i);function i(){var o;(0,j.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l4&&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,j.Z)(this,t),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,V.Z)(t,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,cn.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 f=0;f3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(i.some(function(G){return G})||o.some(function(G){return G}))){var l=e[0],u=l.children.length,f=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(f,i),v=this._getStickyEndColumnPositions(f,o),C=i.lastIndexOf(!0),B=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Ye,G="rtl"===a.direction,q=G?"right":"left",ae=G?"left":"right",he=(0,cn.Z)(e);try{for(he.s();!(Ye=he.n()).done;)for(var Me=Ye.value,Fe=0;Fe1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),t}();var Af=new n.OlP("CDK_SPL"),Jv=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jv.\u0275fac=function(r){return new(r||Jv)},Jv.\u0275dir=n.lG2({type:Jv,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var oh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});oh.\u0275fac=function(r){return new(r||oh)(n.Y36(n.s_b),n.Y36(n.SBq))},oh.\u0275dir=n.lG2({type:oh,selectors:[["","rowOutlet",""]]});var Sd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Sd.\u0275fac=function(r){return new(r||Sd)(n.Y36(n.s_b),n.Y36(n.SBq))},Sd.\u0275dir=n.lG2({type:Sd,selectors:[["","headerRowOutlet",""]]});var xd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});xd.\u0275fac=function(r){return new(r||xd)(n.Y36(n.s_b),n.Y36(n.SBq))},xd.\u0275dir=n.lG2({type:xd,selectors:[["","footerRowOutlet",""]]});var Of=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Of.\u0275fac=function(r){return new(r||Of)(n.Y36(n.s_b),n.Y36(n.SBq))},Of.\u0275dir=n.lG2({type:Of,selectors:[["","noDataRowOutlet",""]]});n.a5r;var Sc=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=f,this._viewportRuler=h,this._stickyPositioningListener=v,this._ngZone=C,this._onDestroy=new qn.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 n.vpe,this.viewChange=new go.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,V.Z)(t,[{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,Un.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,Un.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,Yr.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,po.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&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,to.q)(1),(0,Yr.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,$t.Z)(i),(0,$t.Z)(o),(0,$t.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;u0&&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;o3&&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,cn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Us.mostRecentCellOutlet&&Us.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 open-instant",(0,rn.jt)("0ms")),(0,rn.eR)("void <=> open, open-instant => void",(0,rn.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var z4=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function W4(){return!1}}),RM=new n.OlP("MAT_DRAWER_CONTAINER");var Dd=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ka.PQ);Dd.\u0275fac=function(r){return new(r||Dd)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return ah})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},Dd.\u0275cmp=n.Xpm({type:Dd,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:Dd}]),n.qOj],ngContentSelectors:Qv,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var M_=function(){function t(r,e,i,o,a,s,l,u){var f=this;(0,j.Z)(this,t),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 qn.xQ,this._animationEnd=new qn.xQ,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ei.h)(function(h){return h}),(0,mr.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,D6.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ei.h)(function(h){return!h}),(0,mr.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,D6.h)(void 0)),this._destroyed=new qn.xQ,this.onPositionChanged=new n.vpe,this._modeChanged=new qn.xQ,this.openedChange.subscribe(function(h){h?(f._doc&&(f._elementFocusedBeforeDrawerWasOpened=f._doc.activeElement),f._takeFocus()):f._isFocusWithinDrawer()&&f._restoreFocus(f._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,Pf.R)(f._elementRef.nativeElement,"keydown").pipe((0,Ei.h)(function(h){return h.keyCode===Gr.hY&&!f.disableClose&&!(0,Gr.Vb)(h)}),(0,Yr.R)(f._destroyed)).subscribe(function(h){return f._ngZone.run(function(){f.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,OM.x)(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===v||"void"===C&&0===v.indexOf("open"))&&f.openedChange.emit(f._opened)})}return(0,V.Z)(t,[{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,Un.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,Un.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Un.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,to.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)}}]),t}();M_.\u0275fac=function(r){return new(r||M_)(n.Y36(n.SBq),n.Y36(Ai.qV),n.Y36(Ai.tE),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Ai.ic),n.Y36(Ct.K0,8),n.Y36(RM,8))},M_.\u0275cmp=n.Xpm({type:M_,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(E_,5),2&r)&&(n.iGM(i=n.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&n.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(n.uIk("align",null),n.d8E("@transform",e._animationState),n.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:Qv,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var ah=function(){function t(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,j.Z)(this,t),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new qn.xQ,this._doCheckSubject=new qn.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qn.xQ,r&&r.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,V.Z)(t,[{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,Un.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,Un.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,ua.O)(this._allDrawers),(0,Yr.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,ua.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,A6.b)(10),(0,Yr.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,Ei.h)(function(o){return o.fromState!==o.toState}),(0,Yr.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,Yr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Yr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,to.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Yr.R)((0,To.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}}]),t}();ah.\u0275fac=function(r){return new(r||ah)(n.Y36(Es.Is,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(z4),n.Y36(Ta.Qb,8))},ah.\u0275cmp=n.Xpm({type:ah,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Dd,5),n.Suo(i,M_,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(Dd,5),2&r)&&(n.iGM(i=n.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:RM,useExisting:ah}])],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&&(n.F$t(H4),n.YNc(0,QW,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,O6,2,0,"mat-drawer-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[Dd,Ct.O5],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}\n'],encapsulation:2,changeDetection:0});var sh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){return(0,j.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,V.Z)(e)}(Dd);sh.\u0275fac=function(r){return new(r||sh)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return Rf})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},sh.\u0275cmp=n.Xpm({type:sh,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:sh}]),n.qOj],ngContentSelectors:Qv,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var xc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,V.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Un.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Un.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Un.su)(o)}}]),e}(M_);xc.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xc)))(e||xc)}}(),xc.\u0275cmp=n.Xpm({type:xc,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(n.uIk("align",null),n.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),n.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:[n.qOj],ngContentSelectors:Qv,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var Rf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ah);Rf.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Rf)))(e||Rf)}}(),Rf.\u0275cmp=n.Xpm({type:Rf,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,sh,5),n.Suo(i,xc,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:RM,useExisting:Rf}]),n.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&&(n.F$t(P6),n.YNc(0,I6,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,$W,2,0,"mat-sidenav-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[sh,Ct.O5],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}\n'],encapsulation:2,changeDetection:0});var lh=(0,V.Z)(function t(){(0,j.Z)(this,t)});lh.\u0275fac=function(r){return new(r||lh)},lh.\u0275mod=n.oAB({type:lh}),lh.\u0275inj=n.cJS({imports:[[Ct.ez,ln.BQ,ka.ZD],ka.ZD,ln.BQ]});var Z1=m(839),uh=m(6053),Ea=m(1709),ch=m(8117),LM=m(2821),L6=m(3906),ZM=m(519);function NM(t,r){return t=function V4(t,r){return void 0===t?void 0===r?t:r:t}(t,r),"function"==typeof t?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s0;)e[i]=r[i+1];return Dc(t,e=e.map(Lf))}function N6(t){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(Lf).reduce(function(o,a){var s=Z6(t,a);return-1!==s?o.concat(t.splice(s,1)):o},[])}function Lf(t,r){if("string"==typeof t)try{return document.querySelector(t)}catch(e){throw e}if(!S_(t)&&!r)throw new TypeError(t+" is not a DOM element.");return t}function B6(t){if(t===window)return function q4(){var t={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({},t);var r={};return Object.defineProperties(r,t),r}();try{var r=t.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 "+t)}}var r,dh=void 0;"function"!=typeof Object.create?(r=function(){},dh=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}):dh=Object.create;var K4=dh,fh=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function B1(t,r){r=r||{};for(var e=K4(t),i=0;iO.right-e.margin.right?Math.ceil(Math.min(1,(s.x-O.right)/e.margin.right+1)*e.maxSpeed.right):0,te=s.yO.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-O.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(g,{pageX:s.pageX+H,pageY:s.pageY+te,clientX:s.x+H,clientY:s.y+te}),setTimeout(function(){te&&function kt(g,O){g===window?window.scrollTo(g.pageXOffset,g.pageYOffset+O):g.scrollTop+=O}(g,te),H&&function x(g,O){g===window?window.scrollTo(g.pageXOffset+O,g.pageYOffset):g.scrollLeft+=O}(g,H)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",ae,!1),window.addEventListener("touchend",ae,!1),window.addEventListener("pointerup",ae,!1),window.addEventListener("mousemove",ft,!1),window.addEventListener("touchmove",ft,!1),window.addEventListener("mouseleave",Ye,!1),window.addEventListener("scroll",G,!0)}function U6(t,r,e){return e?t.y>e.top&&t.ye.left&&t.xe.top&&t.ye.left&&t.x0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,To.T)(e.pointerUp$,e.pointerDown$,f,e.destroy$).pipe((0,ch.B)()),v=(0,uh.aj)([e.pointerMove$,l]).pipe((0,mr.U)(function(G){var q=(0,Ut.Z)(G,2),ae=q[0],he=q[1];return{currentDrag$:u,transformX:ae.clientX-o.clientX,transformY:ae.clientY-o.clientY,clientX:ae.clientX,clientY:ae.clientY,scrollLeft:he.left,scrollTop:he.top,target:ae.event.target}}),(0,mr.U)(function(G){return e.dragSnapGrid.x&&(G.transformX=Math.round(G.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(G.transformY=Math.round(G.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),G}),(0,mr.U)(function(G){return e.dragAxis.x||(G.transformX=0),e.dragAxis.y||(G.transformY=0),G}),(0,mr.U)(function(G){var q=G.scrollLeft-s.left,ae=G.scrollTop-s.top;return Object.assign(Object.assign({},G),{x:G.transformX+q,y:G.transformY+ae})}),(0,Ei.h)(function(G){var q=G.x,ae=G.y,he=G.transformX,Ye=G.transformY;return!e.validateDrag||e.validateDrag({x:q,y:ae,transform:{x:he,y:Ye}})}),(0,Yr.R)(h),(0,ch.B)()),C=v.pipe((0,to.q)(1),(0,ch.B)()),B=v.pipe((0,LM.h)(1),(0,ch.B)());return C.subscribe(function(G){var q=G.clientX,ae=G.clientY,he=G.x,Ye=G.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:f})}),e.scroller=H6([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),FM(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Me=e.element.nativeElement.getBoundingClientRect(),Fe=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Fe):e.element.nativeElement.parentNode.insertBefore(Fe,e.element.nativeElement.nextSibling),e.ghostElement=Fe,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Fe,{position:"fixed",top:"".concat(Me.top,"px"),left:"".concat(Me.left,"px"),width:"".concat(Me.width,"px"),height:"".concat(Me.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var ft=e.vcr.createEmbeddedView(e.ghostElementTemplate);Fe.innerHTML="",ft.rootNodes.filter(function(ht){return ht instanceof Node}).forEach(function(ht){Fe.appendChild(ht)}),B.subscribe(function(){e.vcr.remove(e.vcr.indexOf(ft))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-he,clientY:ae-Ye,element:Fe})}),B.subscribe(function(){Fe.parentElement.removeChild(Fe),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),B.pipe((0,Ea.zg)(function(G){var q=f.pipe((0,L6.Q)(),(0,to.q)(1),(0,mr.U)(function(ae){return Object.assign(Object.assign({},G),{dragCancelled:ae>0})}));return f.complete(),q})).subscribe(function(G){var q=G.x,ae=G.y,he=G.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:ae,dragCancelled:he})}),F1(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,To.T)(h,B).pipe((0,to.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),v}),(0,ch.B)());(0,To.T)(i.pipe((0,to.q)(1),(0,mr.U)(function(o){return[,o]})),i.pipe((0,ZM.G)())).pipe((0,Ei.h)(function(o){var a=(0,Ut.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,mr.U)(function(o){var a=(0,Ut.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,f=o.clientY,h=o.transformX,v=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 B="translate3d(".concat(h,"px, ").concat(v,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:B,"-webkit-transform":B,"-ms-transform":B,"-moz-transform":B,"-o-transform":B})}}),l.next({clientX:u,clientY:f,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,Pf.R)(this.document,"contextmenu").subscribe(function(f){f.preventDefault()}),u=(0,Pf.R)(this.document,"touchmove",{passive:!1}).subscribe(function(f){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,f,o)),(!i.touchStartLongPress||!s||a)&&(f.preventDefault(),i.pointerMove$.next({event:f,clientX:f.targetTouches[0].clientX,clientY:f.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),f=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(f>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}}]),t}();function j6(t,r,e){return t>=e.left&&t<=e.right&&r>=e.top&&r<=e.bottom}ty.\u0275fac=function(r){return new(r||ty)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(A_,8),n.Y36(Ct.K0))},ty.\u0275dir=n.lG2({type:ty,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:[n.TTD]});var ny=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new n.vpe,this.dragLeave=new n.vpe,this.dragOver=new n.vpe,this.drop=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){FM(e.renderer,e.element,e.dragActiveClass);var s,f,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,mr.U)(function(h){var v=h.clientX,C=h.clientY,B=h.dropData,G=h.target;s={clientX:v,clientY:C,dropData:B,target:G},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=j6(v,C,o.rect),ae=!e.validateDrop||e.validateDrop({clientX:v,clientY:C,target:G,dropData:B});return o.scrollContainerRect?q&&ae&&j6(v,C,o.scrollContainerRect):q&&ae})),u=l.pipe((0,OM.x)());u.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){f=!0,FM(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,ZM.G)(),(0,Ei.h)(function(h){var v=(0,Ut.Z)(h,2),C=v[0],B=v[1];return C&&!B})).subscribe(function(){f=!1,F1(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),F1(e.renderer,e.element,e.dragActiveClass),f&&(F1(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()}}]),t}();ny.\u0275fac=function(r){return new(r||ny)(n.Y36(n.SBq),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(A_,8))},ny.\u0275dir=n.lG2({type:ny,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Zf=(0,V.Z)(function t(){(0,j.Z)(this,t)});Zf.\u0275fac=function(r){return new(r||Zf)},Zf.\u0275mod=n.oAB({type:Zf}),Zf.\u0275inj=n.cJS({});var UM=m(2072);function Nf(t,r){return tr?1:t>=r?0:NaN}function U1(t){return 1===t.length&&(t=function z6(t){return function(r,e){return Nf(t(r),e)}}(t)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o>>1;t(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>>1;t(e[s],i)>0?a=s:o=s+1}return o}}}var W6=U1(Nf),HM=W6.right,V6=W6.left,O_=HM;function Y6(t,r){null==r&&(r=jM);for(var e=0,i=t.length-1,o=t[0],a=new Array(i<0?0:i);et?1:r>=t?0:NaN}function Bf(t){return null===t?NaN:+t}function G6(t,r){var s,l,e=t.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o1)return u/(i-1)}function Q4(t,r){var e=G6(t,r);return e&&Math.sqrt(e)}function hh(t,r){var o,a,s,e=t.length,i=-1;if(null==r){for(;++i=o)for(a=s=o;++io&&(a=o),s=o)for(a=s=o;++io&&(a=o),s0)return[t];if((i=r0)for(t=Math.ceil(t/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-t+1));++o=0?(a>=iy?10:a>=H1?5:a>=j1?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=iy?10:a>=H1?5:a>=j1?2:1)}function R_(t,r,e){var i=Math.abs(r-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=iy?o*=10:a>=H1?o*=5:a>=j1&&(o*=2),rv;)C.pop(),--B;var q,G=new Array(B+1);for(a=0;a<=B;++a)(q=G[a]=[]).x0=a>0?C[a-1]:h,q.x1=a=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*r,a=Math.floor(o),s=+e(t[a],a,t);return s+(+e(t[a+1],a+1,t)-s)*(o-a)}}function W1(t,r,e){return t=X4.call(t,Bf).sort(Nf),Math.ceil((e-r)/(2*(L_(t,.75)-L_(t,.25))*Math.pow(t.length,-1/3)))}function K6(t,r,e){return Math.ceil((e-r)/(3.5*Q4(t)*Math.pow(t.length,-1/3)))}function J6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i=o)for(a=o;++ia&&(a=o)}else for(;++i=o)for(a=o;++ia&&(a=o);return a}function WM(t,r){var a,e=t.length,i=e,o=-1,s=0;if(null==r)for(;++o=0;)for(e=(s=t[r]).length;--e>=0;)a[--o]=s[e];return a}function Q6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i=o)for(a=o;++io&&(a=o)}else for(;++i=o)for(a=o;++io&&(a=o);return a}function X6(t,r){for(var e=r.length,i=new Array(e);e--;)i[e]=t[r[e]];return i}function $6(t,r){if(e=t.length){var e,a,i=0,o=0,s=t[o];for(null==r&&(r=Nf);++i=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 aR(t,r){for(var o,e=0,i=t.length;e0)for(var a,s,i=new Array(a),o=0;or?1:t>=r?0:NaN}var K1="http://www.w3.org/1999/xhtml",mR={svg:"http://www.w3.org/2000/svg",xhtml:K1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ac(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),mR.hasOwnProperty(r)?{space:mR[r],local:t}:t}function F_(t){return function(){this.removeAttribute(t)}}function b8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function C8(t,r){return function(){this.setAttribute(t,r)}}function tS(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function gh(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function _R(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function vR(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function iV(t){return function(){this.style.removeProperty(t)}}function w8(t,r,e){return function(){this.style.setProperty(t,r,e)}}function k8(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function vh(t,r){return t.style.getPropertyValue(r)||vR(t).getComputedStyle(t,null).getPropertyValue(r)}function E8(t){return function(){delete this[t]}}function M8(t,r){return function(){this[t]=r}}function oV(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Hf(t){return t.trim().split(/^|\s+/)}function rS(t){return t.classList||new yR(t)}function yR(t){this._node=t,this._names=Hf(t.getAttribute("class")||"")}function iS(t,r){for(var e=rS(t),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var J1={},Kn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(J1={mouseenter:"mouseover",mouseleave:"mouseout"}));function mV(t,r,e){return t=R8(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function R8(t,r,e){return function(i){var o=Kn;Kn=i;try{t.call(this,this.__data__,r,e)}finally{Kn=o}}}function _V(t){return t.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 gV(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function _8(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Uf);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?iV:"function"==typeof r?k8:w8)(t,r,null==e?"":e)):vh(this.node(),t)},property:function nS(t,r){return arguments.length>1?this.each((null==r?E8:"function"==typeof r?oV:M8)(t,r)):this.node()[t]},classed:function CR(t,r){var e=Hf(t+"");if(arguments.length<2){for(var i=rS(this.node()),o=-1,a=e.length;++o>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Q(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Q(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=yV.exec(t))?new Ie(r[1],r[2],r[3],1):(r=N8.exec(t))?new Ie(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=bV.exec(t))?Q(r[1],r[2],r[3],r[4]):(r=CV.exec(t))?Q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=wV.exec(t))?zt(r[1],r[2]/100,r[3]/100,1):(r=kV.exec(t))?zt(r[1],r[2]/100,r[3]/100,r[4]):c.hasOwnProperty(t)?Z(c[t]):"transparent"===t?new Ie(NaN,NaN,NaN,0):null}function Z(t){return new Ie(t>>16&255,t>>8&255,255&t,1)}function Q(t,r,e,i){return i<=0&&(t=r=e=NaN),new Ie(t,r,e,i)}function le(t){return t instanceof ay||(t=b(t)),t?new Ie((t=t.rgb()).r,t.g,t.b,t.opacity):new Ie}function pe(t,r,e,i){return 1===arguments.length?le(t):new Ie(t,r,e,null==i?1:i)}function Ie(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function et(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)}function Tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Ot(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function zt(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Xn(t,r,e,i)}function hn(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof ay||(t=b(t)),!t)return new Xn;if(t instanceof Xn)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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*(e0&&u<1?0:s,new Xn(s,l,u,t.opacity)}function Xn(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function fr(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function xn(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Ni(t){return function(){return t}}function Po(t,r){return function(e){return t+e*r}}function Fl(t){return 1==(t=+t)?Ul:function(r,e){return e-r?function rs(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):Ni(isNaN(r)?e:r)}}function Ul(t,r){var e=r-t;return e?Po(t,e):Ni(isNaN(t)?r:t)}$1(ay,b,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function p(){return hn(this).formatHsl()},formatRgb:_,toString:_}),$1(Ie,pe,PR(ay,{brighter:function(r){return r=null==r?ju:Math.pow(ju,r),new Ie(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ie(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:et,formatHex:et,formatRgb:Tt,toString:Tt})),$1(Xn,function Bn(t,r,e,i){return 1===arguments.length?hn(t):new Xn(t,r,e,null==i?1:i)},PR(ay,{brighter:function(r){return r=null==r?ju:Math.pow(ju,r),new Xn(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Xn(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 Ie(fr(r>=240?r-240:r+120,a,o),fr(r,a,o),fr(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 zf=function t(r){var e=Fl(r);function i(o,a){var s=e((o=pe(o)).r,(a=pe(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Ul(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function U_(t){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=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=ie&&(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:Oc(i,o)})),e=F8.lastIndex;return e=0&&t._call.call(null,r),t=t._next;--rC}function AV(){cy=(ZR=hS.now())+NR,rC=dS=0;try{DV()}finally{rC=0,function aae(){for(var t,e,r=LR,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:LR=e);pS=t,U8(i)}(),cy=0}}function oae(){var t=hS.now(),r=t-ZR;r>1e3&&(NR-=r,ZR=t)}function U8(t){rC||(dS&&(dS=clearTimeout(dS)),t-cy>24?(t<1/0&&(dS=setTimeout(AV,t-hS.now()-NR)),fS&&(fS=clearInterval(fS))):(fS||(ZR=hS.now(),fS=setInterval(oae,1e3)),rC=1,xV(AV)))}function gS(t,r,e){var i=new mS;return r=null==r?0:+r,i.restart(function(o){i.stop(),t(o+r)},r,e),i}mS.prototype=_S.prototype={constructor:mS,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?H_():+i)+(null==e?0:+e),!this._next&&pS!==this&&(pS?pS._next=this:LR=this,pS=this),this._call=r,this._time=i,U8()},stop:function(){this._call&&(this._call=null,this._time=1/0,U8())}};var sae=Ff("start","end","cancel","interrupt"),lae=[];function UR(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function uae(t,r,e){var o,i=t.__transition;function a(f){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var h,v,C,B;if(1!==e.state)return u();for(h in i)if((B=i[h]).name===e.name){if(3===B.state)return gS(s);4===B.state?(B.state=6,B.timer.stop(),B.on.call("interrupt",t,t.__data__,B.index,B.group),delete i[h]):+h0)throw new Error("too late; already scheduled");return e}function wh(t,r){var e=Ld(t,r);if(e.state>3)throw new Error("too late; already running");return e}function Ld(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function iC(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}var vS,V8,ZV,HR,RV=180/Math.PI,W8={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function LV(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Oc(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Oc(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Oc(f,v)},{i:q-2,x:Oc(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?z8:wh;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Gae=Id.prototype.constructor;function FV(t){return function(){this.style.removeProperty(t)}}function ese(t,r,e){return function(i){this.style.setProperty(t,r.call(this,i),e)}}function tse(t,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&ese(t,s,e)),i}return a._value=r,a}function ase(t){return function(r){this.textContent=t.call(this,r)}}function sse(t){var r,e;function i(){var o=t.apply(this,arguments);return o!==e&&(r=(e=o)&&ase(o)),r}return i._value=t,i}var dse=0;function kh(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function G8(t){return Id().transition(t)}function UV(){return++dse}var oC=Id.prototype;function fse(t){return t*t*t}function pse(t){return--t*t*t+1}function jR(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}kh.prototype=G8.prototype={constructor:kh,select:function Vae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=lR(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;sMath.abs(Br[1]-er[1])?Lt=!0:st=!0),er=Br,xt=!0,zR(),Wn()}function Wn(){var Br;switch(ye=er[0]-Hn[0],pt=er[1]-Hn[1],G){case K8:case zV:q&&(ye=Math.max(Fe-ft,Math.min(x-g,ye)),ht=ft+ye,O=g+ye),ae&&(pt=Math.max(Re-ut,Math.min(H-te,pt)),kt=ut+pt,re=te+pt);break;case aC:q<0?(ye=Math.max(Fe-ft,Math.min(x-ft,ye)),ht=ft+ye,O=g):q>0&&(ye=Math.max(Fe-g,Math.min(x-g,ye)),ht=ft,O=g+ye),ae<0?(pt=Math.max(Re-ut,Math.min(H-ut,pt)),kt=ut+pt,re=te):ae>0&&(pt=Math.max(Re-te,Math.min(H-te,pt)),kt=ut,re=te+pt);break;case sC:q&&(ht=Math.max(Fe,Math.min(x,ft-ye*q)),O=Math.max(Fe,Math.min(x,g+ye*q))),ae&&(kt=Math.max(Re,Math.min(H,ut-pt*ae)),re=Math.max(Re,Math.min(H,te+pt*ae)))}O0&&(ft=ht-ye),ae<0?te=re-pt:ae>0&&(ut=kt-pt),G=K8,ma.attr("cursor",Th.selection),Wn());break;default:return}zR()}function kn(){switch(Kn.keyCode){case 16:Ce&&(st=Lt=Ce=!1,Wn());break;case 18:G===sC&&(q<0?g=O:q>0&&(ft=ht),ae<0?te=re:ae>0&&(ut=kt),G=aC,Wn());break;case 32:G===K8&&(Kn.altKey?(q&&(g=O-ye*q,ft=ht+ye*q),ae&&(te=re-pt*ae,ut=kt+pt*ae),G=sC):(q<0?g=O:q>0&&(ft=ht),ae<0?te=re:ae>0&&(ut=kt),G=aC),ma.attr("cursor",Th[B]),Wn());break;default:return}zR()}}function v(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=t,C}return s.move=function(C,B){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 G=this,q=G.__brush,ae=u(G,arguments),he=q.selection,Ye=t.input("function"==typeof B?B.apply(this,arguments):B,q.extent),Me=RR(he,Ye);function Fe(ft){q.selection=1===ft&&Q8(Ye)?null:Me(ft),l.call(G),ae.brush()}return he&&Ye?Fe:Fe(1)}):C.each(function(){var G=this,q=arguments,ae=G.__brush,he=t.input("function"==typeof B?B.apply(G,q):B,ae.extent),Ye=u(G,q).beforestart();iC(G),ae.selection=null==he||Q8(he)?null:he,l.call(G),Ye.start().brush().end()})},f.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(B){Q1(new gse(s,B,t.output(this.state.selection)),i.apply,i,[B,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:HV([[+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:HV(!!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 YV=Math.cos,GV=Math.sin,qV=Math.PI,YR=qV/2,KV=2*qV,JV=Math.max;function Sse(t){return function(r,e){return t(r.source.value+r.target.value,e.source.value+e.target.value)}}function xse(){var t=0,r=null,e=null,i=null;function o(a){var B,G,q,ae,he,Ye,s=a.length,l=[],u=Nl(s),f=[],h=[],v=h.groups=new Array(s),C=new Array(s*s);for(B=0,he=-1;++hedy)if(Math.abs(v*u-f*h)>dy&&a){var B=i-s,G=o-l,q=u*u+f*f,ae=B*B+G*G,he=Math.sqrt(q),Ye=Math.sqrt(C),Me=a*Math.tan((eU-Math.acos((q+C-ae)/(2*he*Ye)))/2),Fe=Me/Ye,ft=Me/he;Math.abs(Fe-1)>dy&&(this._+="L"+(r+Fe*h)+","+(e+Fe*v)),this._+="A"+a+","+a+",0,0,"+ +(v*B>h*G)+","+(this._x1=r+ft*u)+","+(this._y1=e+ft*f)}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),f=r+l,h=e+u,v=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>dy||Math.abs(this._y1-h)>dy)&&(this._+="L"+f+","+h),i&&(C<0&&(C=C%tU+tU),C>Ase?this._+="A"+i+","+i+",0,1,"+v+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+v+","+(this._x1=f)+","+(this._y1=h):C>dy&&(this._+="A"+i+","+i+",0,"+ +(C>=eU)+","+v+","+(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 Zd=QV;function Ose(t){return t.source}function Ise(t){return t.target}function Pse(t){return t.radius}function Rse(t){return t.startAngle}function Lse(t){return t.endAngle}function Zse(){var t=Ose,r=Ise,e=Pse,i=Rse,o=Lse,a=null;function s(){var l,u=Dse.call(arguments),f=t.apply(this,u),h=r.apply(this,u),v=+e.apply(this,(u[0]=f,u)),C=i.apply(this,u)-YR,B=o.apply(this,u)-YR,G=v*YV(C),q=v*GV(C),ae=+e.apply(this,(u[0]=h,u)),he=i.apply(this,u)-YR,Ye=o.apply(this,u)-YR;if(a||(a=l=Zd()),a.moveTo(G,q),a.arc(0,0,v,C,B),(C!==he||B!==Ye)&&(a.quadraticCurveTo(0,0,ae*YV(he),ae*GV(he)),a.arc(0,0,ae,he,Ye)),a.quadraticCurveTo(0,0,G,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:$8(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:$8(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:$8(+l),s):o},s.source=function(l){return arguments.length?(t=l,s):t},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 Ic="$";function GR(){}function XV(t,r){var e=new GR;if(t instanceof GR)t.each(function(l,u){e.set(u,l)});else if(Array.isArray(t)){var a,i=-1,o=t.length;if(null==r)for(;++i=t.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var G,q,he,v=-1,C=l.length,B=t[u++],ae=j_(),Ye=f();++vt.length)return l;var f,h=r[u-1];return null!=i&&u>=t.length?f=l.entries():(f=[],l.each(function(v,C){f.push({key:C,values:s(v,u)})})),null!=h?f.sort(function(v,C){return h(v.key,C.key)}):f}return o={object:function(u){return a(u,0,Bse,Fse)},map:function(u){return a(u,0,$V,eY)},entries:function(u){return s(a(u,0,$V,eY),0)},key:function(u){return t.push(u),o},sortKeys:function(u){return r[t.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Bse(){return{}}function Fse(t,r,e){t[r]=e}function $V(){return j_()}function eY(t,r,e){t.set(r,e)}function qR(){}var fy=j_.prototype;function tY(t,r){var e=new qR;if(t instanceof qR)t.each(function(a){e.add(a)});else if(t){var i=-1,o=t.length;if(null==r)for(;++i>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Vse.exec(t))?rY(parseInt(r[1],16)):(r=Yse.exec(t))?new rl(r[1],r[2],r[3],1):(r=Gse.exec(t))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qse.exec(t))?iY(r[1],r[2],r[3],r[4]):(r=Kse.exec(t))?iY(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jse.exec(t))?aY(r[1],r[2]/100,r[3]/100,1):(r=Qse.exec(t))?aY(r[1],r[2]/100,r[3]/100,r[4]):nY.hasOwnProperty(t)?rY(nY[t]):"transparent"===t?new rl(NaN,NaN,NaN,0):null}function rY(t){return new rl(t>>16&255,t>>8&255,255&t,1)}function iY(t,r,e,i){return i<=0&&(t=r=e=NaN),new rl(t,r,e,i)}function rU(t){return t instanceof z_||(t=KR(t)),t?new rl((t=t.rgb()).r,t.g,t.b,t.opacity):new rl}function oY(t,r,e,i){return 1===arguments.length?rU(t):new rl(t,r,e,null==i?1:i)}function rl(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function aY(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Vf(t,r,e,i)}function Xse(t){if(t instanceof Vf)return new Vf(t.h,t.s,t.l,t.opacity);if(t instanceof z_||(t=KR(t)),!t)return new Vf;if(t instanceof Vf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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*(e0&&u<1?0:s,new Vf(s,l,u,t.opacity)}function sY(t,r,e,i){return 1===arguments.length?Xse(t):new Vf(t,r,e,null==i?1:i)}function Vf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function iU(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}lC(z_,KR,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),lC(rl,oY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rl(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+")")}})),lC(Vf,sY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new Vf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Vf(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 rl(iU(r>=240?r-240:r+120,a,o),iU(r,a,o),iU(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 lY=Math.PI/180,uY=180/Math.PI,pY=4/29,dC=6/29,hY=3*dC*dC;function oU(t){if(t instanceof Yf)return new Yf(t.l,t.a,t.b,t.opacity);if(t instanceof Eh){if(isNaN(t.h))return new Yf(t.l,0,0,t.opacity);var r=t.h*lY;return new Yf(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}t instanceof rl||(t=rU(t));var s,l,e=uU(t.r),i=uU(t.g),o=uU(t.b),a=aU((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=aU((.4360747*e+.3850649*i+.1430804*o)/.96422),l=aU((.0139322*e+.0971045*i+.7141733*o)/.82521)),new Yf(116*a-16,500*(s-a),200*(a-l),t.opacity)}function mY(t,r,e,i){return 1===arguments.length?oU(t):new Yf(t,r,e,null==i?1:i)}function Yf(t,r,e,i){this.l=+t,this.a=+r,this.b=+e,this.opacity=+i}function aU(t){return t>.008856451679035631?Math.pow(t,1/3):t/hY+pY}function sU(t){return t>dC?t*t*t:hY*(t-pY)}function lU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function uU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ele(t){if(t instanceof Eh)return new Eh(t.h,t.c,t.l,t.opacity);if(t instanceof Yf||(t=oU(t)),0===t.a&&0===t.b)return new Eh(NaN,0,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*uY;return new Eh(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function _Y(t,r,e,i){return 1===arguments.length?ele(t):new Eh(t,r,e,null==i?1:i)}function Eh(t,r,e,i){this.h=+t,this.c=+r,this.l=+e,this.opacity=+i}lC(Yf,mY,bS(z_,{brighter:function(r){return new Yf(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Yf(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 rl(lU(3.1338561*(e=.96422*sU(e))-1.6168667*(r=1*sU(r))-.4906146*(i=.82521*sU(i))),lU(-.9787684*e+1.9161415*r+.033454*i),lU(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),lC(Eh,_Y,bS(z_,{brighter:function(r){return new Eh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Eh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return oU(this).rgb()}}));var cU=1.78277,dU=-.29227,QR=-.90649,wS=1.97294,vY=wS*QR,yY=wS*cU,bY=cU*dU- -.14861*QR;function tle(t){if(t instanceof hy)return new hy(t.h,t.s,t.l,t.opacity);t instanceof rl||(t=rU(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(bY*i+vY*r-yY*e)/(bY+vY-yY),a=i-o,s=(wS*(e-o)-dU*a)/QR,l=Math.sqrt(s*s+a*a)/(wS*o*(1-o)),u=l?Math.atan2(s,a)*uY-120:NaN;return new hy(u<0?u+360:u,l,o,t.opacity)}function CY(t,r,e,i){return 1===arguments.length?tle(t):new hy(t,r,e,null==i?1:i)}function hy(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}lC(hy,CY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new hy(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new hy(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*lY,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new rl(255*(e+i*(-.14861*o+cU*a)),255*(e+i*(dU*o+QR*a)),255*(e+i*(wS*o)),this.opacity)}}));var wY=Array.prototype.slice;function rle(t,r){return t-r}function my(t){return function(){return t}}function ole(t,r){for(var o,e=-1,i=r.length;++ei!=B>i&&e<(C-f)*(i-h)/(B-h)+f&&(o=-o)}return o}function sle(t,r,e){var i;return function lle(t,r,e){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])}(t,r,e)&&function ule(t,r,e){return t<=r&&r<=e||e<=r&&r<=t}(t[i=+(t[0]===r[0])],e[i],r[i])}function cle(){}var Mh=[[],[[[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 kY(){var t=1,r=1,e=z1,i=u;function o(f){var h=e(f);if(Array.isArray(h))h=h.slice().sort(rle);else{var v=hh(f),C=v[0],B=v[1];h=R_(C,B,h),h=Nl(Math.floor(C/h)*h,Math.floor(B/h)*h,h)}return h.map(function(G){return a(f,G)})}function a(f,h){var v=[],C=[];return function s(f,h,v){var G,q,ae,he,Ye,Me,C=new Array,B=new Array;for(G=q=-1,he=f[0]>=h,Mh[he<<1].forEach(Fe);++G=h,Mh[ae|he<<1].forEach(Fe);for(Mh[he<<0].forEach(Fe);++q=h,Ye=f[q*t]>=h,Mh[he<<1|Ye<<2].forEach(Fe);++G=h,Me=Ye,Ye=f[q*t+G+1]>=h,Mh[ae|he<<1|Ye<<2|Me<<3].forEach(Fe);Mh[he|Ye<<3].forEach(Fe)}for(G=-1,Ye=f[q*t]>=h,Mh[Ye<<2].forEach(Fe);++G=h,Mh[Ye<<2|Me<<3].forEach(Fe);function Fe(ft){var x,g,ht=[ft[0][0]+G,ft[0][1]+q],Re=[ft[1][0]+G,ft[1][1]+q],ut=l(ht),kt=l(Re);(x=B[ut])?(g=C[kt])?(delete B[x.end],delete C[g.start],x===g?(x.ring.push(Re),v(x.ring)):C[x.start]=B[g.end]={start:x.start,end:g.end,ring:x.ring.concat(g.ring)}):(delete B[x.end],x.ring.push(Re),B[x.end=kt]=x):(x=C[kt])?(g=B[ut])?(delete C[x.start],delete B[g.end],x===g?(x.ring.push(Re),v(x.ring)):C[g.start]=B[x.end]={start:g.start,end:x.end,ring:g.ring.concat(x.ring)}):(delete C[x.start],x.ring.unshift(ht),C[x.start=ut]=x):C[ut]=B[kt]={start:ut,end:kt,ring:[ht,Re]}}Mh[Ye<<3].forEach(Fe)}(f,h,function(B){i(B,f,h),function ile(t){for(var r=0,e=t.length,i=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r0?v.push([B]):C.push(B)}),C.forEach(function(B){for(var ae,G=0,q=v.length;G0&&B0&&G0&&v>0))throw new Error("invalid size");return t=h,r=v,o},o.thresholds=function(f){return arguments.length?(e="function"==typeof f?f:Array.isArray(f)?my(wY.call(f)):my(f),o):e},o.smooth=function(f){return arguments.length?(i=f?u:cle,o):i===u},o}function fU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=t.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function pU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=t.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function dle(t){return t[0]}function fle(t){return t[1]}function ple(){var t=dle,r=fle,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,f=my(20);function h(ae){var he=new Float32Array(l*u),Ye=new Float32Array(l*u);ae.forEach(function(ft,ht,Re){var ut=t(ft,ht,Re)+s>>a,kt=r(ft,ht,Re)+s>>a;ut>=0&&ut=0&&kt>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a),fU({width:l,height:u,data:he},{width:l,height:u,data:Ye},o>>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a),fU({width:l,height:u,data:he},{width:l,height:u,data:Ye},o>>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a);var Me=f(he);if(!Array.isArray(Me)){var Fe=J6(he);Me=R_(0,Fe,Me),(Me=Nl(0,Math.floor(Fe/Me)*Me,Me)).shift()}return kY().thresholds(Me).size([l,u])(he).map(v)}function v(ae){return ae.value*=Math.pow(2,-2*a),ae.coordinates.forEach(C),ae}function C(ae){ae.forEach(B)}function B(ae){ae.forEach(G)}function G(ae){ae[0]=ae[0]*Math.pow(2,a)-s,ae[1]=ae[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(ae){return arguments.length?(t="function"==typeof ae?ae:my(+ae),h):t},h.y=function(ae){return arguments.length?(r="function"==typeof ae?ae:my(+ae),h):r},h.size=function(ae){if(!arguments.length)return[e,i];var he=Math.ceil(ae[0]),Ye=Math.ceil(ae[1]);if(!(he>=0||he>=0))throw new Error("invalid size");return e=he,i=Ye,q()},h.cellSize=function(ae){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(ae)/Math.LN2),q()},h.thresholds=function(ae){return arguments.length?(f="function"==typeof ae?ae:Array.isArray(ae)?my(wY.call(ae)):my(ae),h):f},h.bandwidth=function(ae){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((ae=+ae)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*ae*ae+1)-1)/2),q()},h}function hU(t,r,e){arguments.length<3&&(e=r,r=EV().changedTouches);for(var a,i=0,o=r?r.length:0;iv}o.mouse("drag")}function q(){gi(Kn.view).on("mousemove.drag mouseup.drag",null),X1(Kn.view,f),bh(),o.mouse("end")}function ae(){if(t.apply(this,arguments)){var Re,ut,Fe=Kn.changedTouches,ft=r.apply(this,arguments),ht=Fe.length;for(Re=0;Re=C?ae=!0:10===(ht=f.charCodeAt(B++))?he=!0:13===ht&&(he=!0,10===f.charCodeAt(B)&&++B),f.slice(ft+1,Fe-1).replace(/""/g,'"')}for(;B=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[he=ae<<1|q]))return o[he]=s,t;if(B=+t._x.call(null,a.data),G=+t._y.call(null,a.data),r===B&&e===G)return s.next=a,o?o[he]=s:t._root=s,t;do{o=o?o[he]=new Array(4):t._root=new Array(4),(q=r>=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C}while((he=ae<<1|q)==(Ye=(G>=C)<<1|B>=v));return o[Ye]=a,o[he]=s,t}function Hl(t,r,e,i,o){this.node=t,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function fue(t){return t[0]}function hue(t){return t[1]}function nL(t,r,e){var i=new EU(null==r?fue:r,null==e?hue:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function EU(t,r,e,i,o,a){this._x=t,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function ZY(t){for(var r={data:t.data},e=r;t=t.next;)e=e.next={data:t.data};return r}var jl=nL.prototype=EU.prototype;function _ue(t){return t.x+t.vx}function gue(t){return t.y+t.vy}function vue(t){var r,e,i=1,o=1;function a(){for(var u,h,v,C,B,G,q,f=r.length,ae=0;aeC+kt||ftB+kt||htv.index){var x=C-Re.x-Re.vx,g=B-Re.y-Re.vy,O=x*x+g*g;Ou.r&&(u.r=u[f].r)}function l(){if(r){var u,h,f=r.length;for(e=new Array(f),u=0;uh&&(h=o),av&&(v=a));if(u>h||f>v)return this;for(this.cover(u,f).cover(h,v),e=0;et||t>=o||i>r||r>=a;)switch(f=(rh||(l=G.y0)>v||(u=G.x1)=he)<<1|t>=ae)&&(G=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=G)}else{var Ye=t-+this._x.call(null,B.data),Me=r-+this._y.call(null,B.data),Fe=Ye*Ye+Me*Me;if(Fe=(C=(s+u)/2))?s=C:u=C,(q=v>=(B=(l+f)/2))?l=B:f=B,r=e,!(e=e[ae=q<<1|G]))return this;if(!e.length)break;(r[ae+1&3]||r[ae+2&3]||r[ae+3&3])&&(i=r,he=ae)}for(;e.data!==t;)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[ae]=a:delete r[ae],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[he]=e:this._root=e),this):(this._root=a,this)},jl.removeAll=function sue(t){for(var r=0,e=t.length;r1?(null==ae?l.remove(q):l.set(q,B(ae)),r):l.get(q)},find:function(q,ae,he){var Fe,ft,ht,Re,ut,Ye=0,Me=t.length;for(null==he?he=1/0:he*=he,Ye=0;Ye1?(f.on(q,ae),r):f.on(q)}}}function Mue(){var t,r,e,o,i=Ms(-30),a=1,s=1/0,l=.81;function u(C){var B,G=t.length,q=nL(t,Cue,wue).visitAfter(h);for(e=C,B=0;B=s)){(C.data!==r||C.next)&&(0===ae&&(Me+=(ae=Y_())*ae),0===he&&(Me+=(he=Y_())*he),Me1?i[0]+i.slice(2):i,+t.slice(e+1)]}function pC(t){return(t=rL(Math.abs(t)))?t[1]:NaN}function FY(t,r){var e=rL(t,r);if(!e)return t+"";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 UY={"":function Iue(t,r){e:for(var a,e=(t=t.toPrecision(r)).length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(a+1):t},"%":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 FY(100*r,e)},r:FY,s:function Pue(t,r){var e=rL(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(BY=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")+rL(t,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)}},Rue=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function iL(t){return new MU(t)}function MU(t){if(!(r=Rue.exec(t)))throw new Error("invalid format: "+t);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],f=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):UY[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=f,this.type=h}function HY(t){return t}iL.prototype=MU.prototype,MU.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 oL,WY,VY,jY=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zY(t){var r=t.grouping&&t.thousands?function Aue(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(t.grouping,t.thousands):HY,e=t.currency,i=t.decimal,o=t.numerals?function Oue(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):HY,a=t.percent||"%";function s(u){var f=(u=iL(u)).fill,h=u.align,v=u.sign,C=u.symbol,B=u.zero,G=u.width,q=u.comma,ae=u.precision,he=u.type,Ye="$"===C?e[0]:"#"===C&&/[boxX]/.test(he)?"0"+he.toLowerCase():"",Me="$"===C?e[1]:/[%p]/.test(he)?a:"",Fe=UY[he],ft=!he||/[defgprs%]/.test(he);function ht(Re){var x,g,O,ut=Ye,kt=Me;if("c"===he)kt=Fe(Re)+kt,Re="";else{var H=(Re=+Re)<0;if(Re=Fe(Math.abs(Re),ae),H&&0==+Re&&(H=!1),ut=(H?"("===v?v:"-":"-"===v||"("===v?"":v)+ut,kt=("s"===he?jY[8+BY/3]:"")+kt+(H&&"("===v?")":""),ft)for(x=-1,g=Re.length;++x(O=Re.charCodeAt(x))||O>57){kt=(46===O?i+Re.slice(x+1):Re.slice(x))+kt,Re=Re.slice(0,x);break}}q&&!B&&(Re=r(Re,1/0));var te=ut.length+Re.length+kt.length,re=te>1)+ut+Re+kt+re.slice(te);break;default:Re=re+ut+Re+kt}return o(Re)}return ae=null==ae?he?6:12:/[gprs]/.test(he)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae)),ht.toString=function(){return u+""},ht}return{format:s,formatPrefix:function l(u,f){var h=s(((u=iL(u)).type="f",u)),v=3*Math.max(-8,Math.min(8,Math.floor(pC(f)/3))),C=Math.pow(10,-v),B=jY[8+v/3];return function(G){return h(C*G)+B}}}}function YY(t){return oL=zY(t),WY=oL.format,VY=oL.formatPrefix,oL}function Lue(t){return Math.max(0,-pC(Math.abs(t)))}function Zue(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pC(r)/3)))-pC(Math.abs(t)))}function Nue(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,pC(r)-pC(t))+1}function G_(){return new aL}function aL(){this.reset()}YY({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),aL.prototype={constructor:aL,reset:function(){this.s=this.t=0},add:function(r){GY(sL,r,this.t),GY(this,sL.s,this.s),this.s?this.t+=sL.t:this.s=sL.t},valueOf:function(){return this.s}};var sL=new aL;function GY(t,r,e){var i=t.s=r+e,o=i-r,a=i-o;t.t=r-a+(e-o)}var Fr=1e-6,oo=Math.PI,Va=oo/2,lL=oo/4,pu=2*oo,ea=180/oo,Jr=oo/180,Eo=Math.abs,hC=Math.atan,zl=Math.atan2,Ur=Math.cos,uL=Math.ceil,KY=Math.exp,cL=(Math.floor,Math.log),SU=Math.pow,Dr=Math.sin,ES=Math.sign||function(t){return t>0?1:t<0?-1:0},Ss=Math.sqrt,xU=Math.tan;function JY(t){return t>1?0:t<-1?oo:Math.acos(t)}function zu(t){return t>1?Va:t<-1?-Va:Math.asin(t)}function QY(t){return(t=Dr(t/2))*t}function Ma(){}function dL(t,r){t&&$Y.hasOwnProperty(t.type)&&$Y[t.type](t,r)}var XY={Feature:function(r,e){dL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o=0?1:-1,o=i*e,a=Ur(r=(r*=Jr)/2+lL),s=Dr(r),l=IU*s,u=OU*a+l*Ur(o),f=l*i*Dr(o);fL.add(zl(f,u)),AU=t,OU=a,IU=s}function Hue(t){return pL.reset(),Nd(t,Gf),2*pL}function hL(t){return[zl(t[1],t[0]),zu(t[2])]}function _y(t){var r=t[0],e=t[1],i=Ur(e);return[i*Ur(r),i*Dr(r),Dr(e)]}function mL(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]}function mC(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function PU(t,r){t[0]+=r[0],t[1]+=r[1],t[2]+=r[2]}function _L(t,r){return[t[0]*r,t[1]*r,t[2]*r]}function gL(t){var r=Ss(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=r,t[1]/=r,t[2]/=r}var Ya,Wu,is,Pc,gy,iG,oG,_C,q_,Sh,MS=G_(),xh={point:RU,lineStart:sG,lineEnd:lG,polygonStart:function(){xh.point=uG,xh.lineStart=jue,xh.lineEnd=zue,MS.reset(),Gf.polygonStart()},polygonEnd:function(){Gf.polygonEnd(),xh.point=RU,xh.lineStart=sG,xh.lineEnd=lG,fL<0?(Ya=-(is=180),Wu=-(Pc=90)):MS>Fr?Pc=90:MS<-Fr&&(Wu=-90),Sh[0]=Ya,Sh[1]=is}};function RU(t,r){q_.push(Sh=[Ya=t,is=t]),rPc&&(Pc=r)}function aG(t,r){var e=_y([t*Jr,r*Jr]);if(_C){var i=mC(_C,e),a=mC([i[1],-i[0],0],i);gL(a),a=hL(a);var f,s=t-gy,l=s>0?1:-1,u=a[0]*ea*l,h=Eo(s)>180;h^(l*gyPc&&(Pc=f):h^(l*gy<(u=(u+360)%360-180)&&uPc&&(Pc=r)),h?tVu(Ya,is)&&(is=t):Vu(t,is)>Vu(Ya,is)&&(Ya=t):is>=Ya?(tis&&(is=t)):t>gy?Vu(Ya,t)>Vu(Ya,is)&&(is=t):Vu(t,is)>Vu(Ya,is)&&(Ya=t)}else q_.push(Sh=[Ya=t,is=t]);rPc&&(Pc=r),_C=e,gy=t}function sG(){xh.point=aG}function lG(){Sh[0]=Ya,Sh[1]=is,xh.point=RU,_C=null}function uG(t,r){if(_C){var e=t-gy;MS.add(Eo(e)>180?e+(e>0?360:-360):e)}else iG=t,oG=r;Gf.point(t,r),aG(t,r)}function jue(){Gf.lineStart()}function zue(){uG(iG,oG),Gf.lineEnd(),Eo(MS)>Fr&&(Ya=-(is=180)),Sh[0]=Ya,Sh[1]=is,_C=null}function Vu(t,r){return(r-=t)<0?r+360:r}function Wue(t,r){return t[0]-r[0]}function cG(t,r){return t[0]<=t[1]?t[0]<=r&&r<=t[1]:rVu(i[0],i[1])&&(i[1]=o[1]),Vu(o[0],i[1])>Vu(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=Vu(i[1],o[0]))>s&&(s=l,Ya=o[0],is=i[1])}return q_=Sh=null,Ya===1/0||Wu===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ya,Wu],[is,Pc]]}var SS,vL,yL,bL,CL,wL,kL,TL,LU,ZU,NU,dG,fG,Wl,Vl,Yl,Bd={sphere:Ma,point:BU,lineStart:pG,lineEnd:hG,polygonStart:function(){Bd.lineStart=que,Bd.lineEnd=Kue},polygonEnd:function(){Bd.lineStart=pG,Bd.lineEnd=hG}};function BU(t,r){t*=Jr;var e=Ur(r*=Jr);xS(e*Ur(t),e*Dr(t),Dr(r))}function xS(t,r,e){++SS,yL+=(t-yL)/SS,bL+=(r-bL)/SS,CL+=(e-CL)/SS}function pG(){Bd.point=Yue}function Yue(t,r){t*=Jr;var e=Ur(r*=Jr);Wl=e*Ur(t),Vl=e*Dr(t),Yl=Dr(r),Bd.point=Gue,xS(Wl,Vl,Yl)}function Gue(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Dr(t),a=Dr(r),s=zl(Ss((s=Vl*a-Yl*o)*s+(s=Yl*i-Wl*a)*s+(s=Wl*o-Vl*i)*s),Wl*i+Vl*o+Yl*a);vL+=s,wL+=s*(Wl+(Wl=i)),kL+=s*(Vl+(Vl=o)),TL+=s*(Yl+(Yl=a)),xS(Wl,Vl,Yl)}function hG(){Bd.point=BU}function que(){Bd.point=Jue}function Kue(){mG(dG,fG),Bd.point=BU}function Jue(t,r){dG=t,fG=r,t*=Jr,r*=Jr,Bd.point=mG;var e=Ur(r);Wl=e*Ur(t),Vl=e*Dr(t),Yl=Dr(r),xS(Wl,Vl,Yl)}function mG(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Dr(t),a=Dr(r),s=Vl*a-Yl*o,l=Yl*i-Wl*a,u=Wl*o-Vl*i,f=Ss(s*s+l*l+u*u),h=zu(f),v=f&&-h/f;LU+=v*s,ZU+=v*l,NU+=v*u,vL+=h,wL+=h*(Wl+(Wl=i)),kL+=h*(Vl+(Vl=o)),TL+=h*(Yl+(Yl=a)),xS(Wl,Vl,Yl)}function Que(t){SS=vL=yL=bL=CL=wL=kL=TL=LU=ZU=NU=0,Nd(t,Bd);var r=LU,e=ZU,i=NU,o=r*r+e*e+i*i;return o<1e-12&&(r=wL,e=kL,i=TL,vLoo?t-pu:t<-oo?t+pu:t,r]}function HU(t,r,e){return(t%=pu)?r||e?FU(gG(t),vG(r,e)):gG(t):r||e?vG(r,e):UU}function _G(t){return function(r,e){return[(r+=t)>oo?r-pu:r<-oo?r+pu:r,e]}}function gG(t){var r=_G(t);return r.invert=_G(-t),r}function vG(t,r){var e=Ur(t),i=Dr(t),o=Ur(r),a=Dr(r);function s(l,u){var f=Ur(u),h=Ur(l)*f,v=Dr(l)*f,C=Dr(u),B=C*e+h*i;return[zl(v*o-B*a,h*e-C*i),zu(B*o+v*a)]}return s.invert=function(l,u){var f=Ur(u),h=Ur(l)*f,v=Dr(l)*f,C=Dr(u),B=C*o-v*a;return[zl(v*o+C*a,h*e+B*i),zu(B*e-h*i)]},s}function yG(t){function r(e){return(e=t(e[0]*Jr,e[1]*Jr))[0]*=ea,e[1]*=ea,e}return t=HU(t[0]*Jr,t[1]*Jr,t.length>2?t[2]*Jr:0),r.invert=function(e){return(e=t.invert(e[0]*Jr,e[1]*Jr))[0]*=ea,e[1]*=ea,e},r}function bG(t,r,e,i,o,a){if(e){var s=Ur(r),l=Dr(r),u=i*e;null==o?(o=r+i*pu,a=r-u/2):(o=CG(s,o),a=CG(s,a),(i>0?oa)&&(o+=i*pu));for(var f,h=o;i>0?h>a:h1&&t.push(t.pop().concat(t.shift()))},result:function(){var i=t;return t=[],r=null,i}}}function EL(t,r){return Eo(t[0]-r[0])=0;--l)o.point((v=h[l])[0],v[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,B=!B}while(!C.v);o.lineEnd()}}}function TG(t){if(r=t.length){for(var r,o,e=0,i=t[0];++e=0?1:-1,kt=ut*Re,x=kt>oo,g=q*ft;if(jU.add(zl(g*ut*Dr(kt),ae*ht+g*Ur(kt))),s+=x?Re+ut*pu:Re,x^B>=e^Me>=e){var O=mC(_y(C),_y(Ye));gL(O);var H=mC(a,O);gL(H);var te=(x^Re>=0?-1:1)*zu(H[2]);(i>te||i===te&&(O[0]||O[1]))&&(l+=x^Re>=0?1:-1)}}return(s<-Fr||s0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ht=0;ht1&&2&Fe&&ft.push(ft.pop().concat(ft.shift())),h.push(ft.filter($ue))}}return C}}function $ue(t){return t.length>1}function ece(t,r){return((t=t.x)[0]<0?t[1]-Va-Fr:Va-t[1])-((r=r.x)[0]<0?r[1]-Va-Fr:Va-r[1])}var zU=MG(function(){return!0},function tce(t){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){t.lineStart(),o=1},point:function(s,l){var u=s>0?oo:-oo,f=Eo(s-r);Eo(f-oo)0?Va:-Va),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),t.point(s,e),o=0):i!==u&&f>=oo&&(Eo(r-i)Fr?hC((Dr(r)*(a=Ur(i))*Dr(e)-Dr(i)*(o=Ur(r))*Dr(t))/(o*a*s)):(r+i)/2}(r,e,s,l),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),o=0),t.point(r=s,e=l),i=u},lineEnd:function(){t.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function rce(t,r,e,i){var o;if(null==t)o=e*Va,i.point(-oo,o),i.point(0,o),i.point(oo,o),i.point(oo,0),i.point(oo,-o),i.point(0,-o),i.point(-oo,-o),i.point(-oo,0),i.point(-oo,o);else if(Eo(t[0]-r[0])>Fr){var a=t[0]0,o=Eo(r)>Fr;function s(h,v){return Ur(h)*Ur(v)>r}function u(h,v,C){var q=[1,0,0],ae=mC(_y(h),_y(v)),he=mL(ae,ae),Ye=ae[0],Me=he-Ye*Ye;if(!Me)return!C&&h;var Fe=r*he/Me,ft=-r*Ye/Me,ht=mC(q,ae),Re=_L(q,Fe);PU(Re,_L(ae,ft));var kt=ht,x=mL(Re,kt),g=mL(kt,kt),O=x*x-g*(mL(Re,Re)-1);if(!(O<0)){var H=Ss(O),te=_L(kt,(-x-H)/g);if(PU(te,Re),te=hL(te),!C)return te;var Ce,re=h[0],ye=v[0],pt=h[1],xt=v[1];ye0^te[1]<(Eo(te[0]-re)oo^(re<=te[0]&&te[0]<=ye)){var er=_L(kt,(-x+H)/g);return PU(er,Re),[te,hL(er)]}}}function f(h,v){var C=i?t:oo-t,B=0;return h<-C?B|=1:h>C&&(B|=2),v<-C?B|=4:v>C&&(B|=8),B}return MG(s,function l(h){var v,C,B,G,q;return{lineStart:function(){G=B=!1,q=1},point:function(he,Ye){var Fe,Me=[he,Ye],ft=s(he,Ye),ht=i?ft?0:f(he,Ye):ft?f(he+(he<0?oo:-oo),Ye):0;if(!v&&(G=B=ft)&&h.lineStart(),ft!==B&&((!(Fe=u(v,Me))||EL(v,Fe)||EL(Me,Fe))&&(Me[0]+=Fr,Me[1]+=Fr,ft=s(Me[0],Me[1]))),ft!==B)q=0,ft?(h.lineStart(),Fe=u(Me,v),h.point(Fe[0],Fe[1])):(Fe=u(v,Me),h.point(Fe[0],Fe[1]),h.lineEnd()),v=Fe;else if(o&&v&&i^ft){var Re;!(ht&C)&&(Re=u(Me,v,!0))&&(q=0,i?(h.lineStart(),h.point(Re[0][0],Re[0][1]),h.point(Re[1][0],Re[1][1]),h.lineEnd()):(h.point(Re[1][0],Re[1][1]),h.lineEnd(),h.lineStart(),h.point(Re[0][0],Re[0][1])))}ft&&(!v||!EL(v,Me))&&h.point(Me[0],Me[1]),v=Me,B=ft,C=ht},lineEnd:function(){B&&h.lineEnd(),v=null},clean:function(){return q|(G&&B)<<1}}},function a(h,v,C,B){bG(B,t,e,C,h,v)},i?[0,-t]:[-oo,t-oo])}var DS=1e9,SL=-DS;function xL(t,r,e,i){function o(f,h){return t<=f&&f<=e&&r<=h&&h<=i}function a(f,h,v,C){var B=0,G=0;if(null==f||(B=s(f,v))!==(G=s(h,v))||u(f,h)<0^v>0)do{C.point(0===B||3===B?t:e,B>1?i:r)}while((B=(B+v+4)%4)!==G);else C.point(h[0],h[1])}function s(f,h){return Eo(f[0]-t)0?0:3:Eo(f[0]-e)0?2:1:Eo(f[1]-r)0?1:0:h>0?3:2}function l(f,h){return u(f.x,h.x)}function u(f,h){var v=s(f,1),C=s(h,1);return v!==C?v-C:0===v?h[1]-f[1]:1===v?f[0]-h[0]:2===v?f[1]-h[1]:h[0]-f[0]}return function(f){var C,B,G,q,ae,he,Ye,Me,Fe,ft,ht,h=f,v=wG(),Re={point:ut,lineStart:function O(){Re.point=te,B&&B.push(G=[]),ft=!0,Fe=!1,Ye=Me=NaN},lineEnd:function H(){C&&(te(q,ae),he&&Fe&&v.rejoin(),C.push(v.result())),Re.point=ut,Fe&&h.lineEnd()},polygonStart:function x(){h=v,C=[],B=[],ht=!0},polygonEnd:function g(){var re=function kt(){for(var re=0,ye=0,pt=B.length;yei&&(Zn-Hn)*(i-er)>(Cn-er)*(t-Hn)&&++re:Cn<=i&&(Zn-Hn)*(i-er)<(Cn-er)*(t-Hn)&&--re;return re}(),ye=ht&&re,pt=(C=YM(C)).length;(ye||pt)&&(f.polygonStart(),ye&&(f.lineStart(),a(null,null,1,f),f.lineEnd()),pt&&kG(C,l,re,a,f),f.polygonEnd()),h=f,C=B=G=null}};function ut(re,ye){o(re,ye)&&h.point(re,ye)}function te(re,ye){var pt=o(re,ye);if(B&&G.push([re,ye]),ft)q=re,ae=ye,he=pt,ft=!1,pt&&(h.lineStart(),h.point(re,ye));else if(pt&&Fe)h.point(re,ye);else{var xt=[Ye=Math.max(SL,Math.min(DS,Ye)),Me=Math.max(SL,Math.min(DS,Me))],Ce=[re=Math.max(SL,Math.min(DS,re)),ye=Math.max(SL,Math.min(DS,ye))];!function ice(t,r,e,i,o,a){var G,s=t[0],l=t[1],h=0,v=1,C=r[0]-s,B=r[1]-l;if(G=e-s,C||!(G>0)){if(G/=C,C<0){if(G0){if(G>v)return;G>h&&(h=G)}if(G=o-s,C||!(G<0)){if(G/=C,C<0){if(G>v)return;G>h&&(h=G)}else if(C>0){if(G0)){if(G/=B,B<0){if(G0){if(G>v)return;G>h&&(h=G)}if(G=a-l,B||!(G<0)){if(G/=B,B<0){if(G>v)return;G>h&&(h=G)}else if(B>0){if(G0&&(t[0]=s+h*C,t[1]=l+h*B),v<1&&(r[0]=s+v*C,r[1]=l+v*B),!0}}}}}(xt,Ce,t,r,e,i)?pt&&(h.lineStart(),h.point(re,ye),ht=!1):(Fe||(h.lineStart(),h.point(xt[0],xt[1])),h.point(Ce[0],Ce[1]),pt||h.lineEnd(),ht=!1)}Ye=re,Me=ye,Fe=pt}return Re}}function oce(){var o,a,s,t=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=xL(t,r,e,i)(a=u)},extent:function(u){return arguments.length?(t=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[t,r],[e,i]]}}}var VU,DL,AL,WU=G_(),vC={sphere:Ma,point:Ma,lineStart:function ace(){vC.point=lce,vC.lineEnd=sce},lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma};function sce(){vC.point=vC.lineEnd=Ma}function lce(t,r){VU=t*=Jr,DL=Dr(r*=Jr),AL=Ur(r),vC.point=uce}function uce(t,r){t*=Jr;var e=Dr(r*=Jr),i=Ur(r),o=Eo(t-VU),a=Ur(o),l=i*Dr(o),u=AL*e-DL*i*a,f=DL*e+AL*i*a;WU.add(zl(Ss(l*l+u*u),f)),VU=t,DL=e,AL=i}function xG(t){return WU.reset(),Nd(t,vC),+WU}var YU=[null,null],cce={type:"LineString",coordinates:YU};function AS(t,r){return YU[0]=t,YU[1]=r,xG(cce)}var DG={Feature:function(r,e){return OL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++oFr}).map(C)).concat(Nl(uL(a/f)*f,o,f).filter(function(Me){return Eo(Me%v)>Fr}).map(B))}return he.lines=function(){return Ye().map(function(Me){return{type:"LineString",coordinates:Me}})},he.outline=function(){return{type:"Polygon",coordinates:[G(i).concat(q(s).slice(1),G(e).reverse().slice(1),q(l).reverse().slice(1))]}},he.extent=function(Me){return arguments.length?he.extentMajor(Me).extentMinor(Me):he.extentMinor()},he.extentMajor=function(Me){return arguments.length?(i=+Me[0][0],e=+Me[1][0],l=+Me[0][1],s=+Me[1][1],i>e&&(Me=i,i=e,e=Me),l>s&&(Me=l,l=s,s=Me),he.precision(ae)):[[i,l],[e,s]]},he.extentMinor=function(Me){return arguments.length?(r=+Me[0][0],t=+Me[1][0],a=+Me[0][1],o=+Me[1][1],r>t&&(Me=r,r=t,t=Me),a>o&&(Me=a,a=o,o=Me),he.precision(ae)):[[r,a],[t,o]]},he.step=function(Me){return arguments.length?he.stepMajor(Me).stepMinor(Me):he.stepMinor()},he.stepMajor=function(Me){return arguments.length?(h=+Me[0],v=+Me[1],he):[h,v]},he.stepMinor=function(Me){return arguments.length?(u=+Me[0],f=+Me[1],he):[u,f]},he.precision=function(Me){return arguments.length?(ae=+Me,C=LG(a,o,90),B=ZG(r,t,ae),G=LG(l,s,90),q=ZG(i,e,ae),he):ae},he.extentMajor([[-180,-90+Fr],[180,90-Fr]]).extentMinor([[-180,-80-Fr],[180,80+Fr]])}function pce(){return NG()()}function hce(t,r){var e=t[0]*Jr,i=t[1]*Jr,o=r[0]*Jr,a=r[1]*Jr,s=Ur(i),l=Dr(i),u=Ur(a),f=Dr(a),h=s*Ur(e),v=s*Dr(e),C=u*Ur(o),B=u*Dr(o),G=2*zu(Ss(QY(a-i)+s*u*QY(o-e))),q=Dr(G),ae=G?function(he){var Ye=Dr(he*=G)/q,Me=Dr(G-he)/q,Fe=Me*h+Ye*C,ft=Me*v+Ye*B,ht=Me*l+Ye*f;return[zl(ft,Fe)*ea,zl(ht,Ss(Fe*Fe+ft*ft))*ea]}:function(){return[e*ea,i*ea]};return ae.distance=G,ae}function vy(t){return t}var BG,FG,KU,JU,GU=G_(),qU=G_(),K_={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){K_.lineStart=mce,K_.lineEnd=gce},polygonEnd:function(){K_.lineStart=K_.lineEnd=K_.point=Ma,GU.add(Eo(qU)),qU.reset()},result:function(){var r=GU/2;return GU.reset(),r}};function mce(){K_.point=_ce}function _ce(t,r){K_.point=UG,BG=KU=t,FG=JU=r}function UG(t,r){qU.add(JU*t-KU*r),KU=t,JU=r}function gce(){UG(BG,FG)}var HG=K_,yC=1/0,IL=yC,OS=-yC,PL=OS,vce={point:function yce(t,r){tOS&&(OS=t),rPL&&(PL=r)},lineStart:Ma,lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma,result:function(){var r=[[yC,IL],[OS,PL]];return OS=PL=-(IL=yC=1/0),r}};var jG,zG,qf,Kf,RL=vce,QU=0,XU=0,IS=0,LL=0,ZL=0,bC=0,$U=0,e7=0,PS=0,Fd={point:yy,lineStart:WG,lineEnd:VG,polygonStart:function(){Fd.lineStart=wce,Fd.lineEnd=kce},polygonEnd:function(){Fd.point=yy,Fd.lineStart=WG,Fd.lineEnd=VG},result:function(){var r=PS?[$U/PS,e7/PS]:bC?[LL/bC,ZL/bC]:IS?[QU/IS,XU/IS]:[NaN,NaN];return QU=XU=IS=LL=ZL=bC=$U=e7=PS=0,r}};function yy(t,r){QU+=t,XU+=r,++IS}function WG(){Fd.point=bce}function bce(t,r){Fd.point=Cce,yy(qf=t,Kf=r)}function Cce(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);LL+=o*(qf+t)/2,ZL+=o*(Kf+r)/2,bC+=o,yy(qf=t,Kf=r)}function VG(){Fd.point=yy}function wce(){Fd.point=Tce}function kce(){YG(jG,zG)}function Tce(t,r){Fd.point=YG,yy(jG=qf=t,zG=Kf=r)}function YG(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);LL+=o*(qf+t)/2,ZL+=o*(Kf+r)/2,bC+=o,$U+=(o=Kf*t-qf*r)*(qf+t),e7+=o*(Kf+r),PS+=3*o,yy(qf=t,Kf=r)}var GG=Fd;function qG(t){this._context=t}qG.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,pu)}},result:Ma};var n7,KG,JG,RS,LS,t7=G_(),NL={point:Ma,lineStart:function(){NL.point=Ece},lineEnd:function(){n7&&QG(KG,JG),NL.point=Ma},polygonStart:function(){n7=!0},polygonEnd:function(){n7=null},result:function(){var r=+t7;return t7.reset(),r}};function Ece(t,r){NL.point=QG,KG=RS=t,JG=LS=r}function QG(t,r){RS-=t,LS-=r,t7.add(Ss(RS*RS+LS*LS)),RS=t,LS=r}var XG=NL;function $G(){this._string=[]}function eq(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Mce(t,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Nd(s,i(o))),o.result()}return a.area=function(s){return Nd(s,i(HG)),HG.result()},a.measure=function(s){return Nd(s,i(XG)),XG.result()},a.bounds=function(s){return Nd(s,i(RL)),RL.result()},a.centroid=function(s){return Nd(s,i(GG)),GG.result()},a.projection=function(s){return arguments.length?(i=null==s?(t=null,vy):(t=s).stream,a):t},a.context=function(s){return arguments.length?(o=null==s?(r=null,new $G):new qG(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(t).context(r)}function Sce(t){return{stream:ZS(t)}}function ZS(t){return function(r){var e=new r7;for(var i in t)e[i]=t[i];return e.stream=r,e}}function r7(){}function i7(t,r,e){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),Nd(e,t.stream(RL)),r(RL.result()),null!=i&&t.clipExtent(i),t}function BL(t,r,e){return i7(t,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;t.scale(150*s).translate([l,u])},e)}function o7(t,r,e){return BL(t,[[0,0],r],e)}function a7(t,r,e){return i7(t,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];t.scale(150*a).translate([s,l])},e)}function s7(t,r,e){return i7(t,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;t.scale(150*a).translate([s,l])},e)}$G.prototype={_radius:4.5,_circle:eq(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=eq(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}},r7.prototype={constructor:r7,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 xce=Ur(30*Jr);function nq(t,r){return+r?function Ace(t,r){function e(i,o,a,s,l,u,f,h,v,C,B,G,q,ae){var he=f-i,Ye=h-o,Me=he*he+Ye*Ye;if(Me>4*r&&q--){var Fe=s+C,ft=l+B,ht=u+G,Re=Ss(Fe*Fe+ft*ft+ht*ht),ut=zu(ht/=Re),kt=Eo(Eo(ht)-1)r||Eo((he*H+Ye*te)/Me-.5)>.3||s*C+l*B+u*G2?H[2]%360*Jr:0,g()):[l*ea,u*ea,f*ea]},kt.angle=function(H){return arguments.length?(v=H%360*Jr,g()):v*ea},kt.precision=function(H){return arguments.length?(Fe=nq(ft,Me=H*H),O()):Ss(Me)},kt.fitExtent=function(H,te){return BL(kt,H,te)},kt.fitSize=function(H,te){return o7(kt,H,te)},kt.fitWidth=function(H,te){return a7(kt,H,te)},kt.fitHeight=function(H,te){return s7(kt,H,te)},function(){return r=t.apply(this,arguments),kt.invert=r.invert&&x,g()}}function u7(t){var r=0,e=oo/3,i=l7(t),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Jr,e=a[1]*Jr):[r*ea,e*ea]},o}function iq(t,r){var e=Dr(t),i=(e+Dr(r))/2;if(Eo(i)=.12&&ae<.234&&q>=-.425&&q<-.214?o:ae>=.166&&ae<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return t&&r===C?t:t=function Lce(t){var r=t.length;return{point:function(i,o){for(var a=-1;++a0?l<-Va+Fr&&(l=-Va+Fr):l>Va-Fr&&(l=Va-Fr);var u=o/SU(UL(l),i);return[u*Dr(i*s),o-u*Ur(i*s)]}return a.invert=function(s,l){var u=o-l,f=ES(i)*Ss(s*s+u*u);return[zl(s,Eo(u))/i*ES(u),2*hC(SU(o/f,1/i))-Va]},a}function Uce(){return u7(lq).scale(109.5).parallels([30,30])}function FS(t,r){return[t,r]}function Hce(){return Dh(FS).scale(152.63)}function uq(t,r){var e=Ur(t),i=t===r?Dr(t):(e-Ur(r))/(r-t),o=e/i+t;if(Eo(i)2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function Kce(t,r){return t.parent===r.parent?1:2}function Qce(t,r){return t+r.x}function $ce(t,r){return Math.max(t,r.y)}function nde(){var t=Kce,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var B=C.children;B?(C.x=function Jce(t){return t.reduce(Qce,0)/t.length}(B),C.y=function Xce(t){return 1+t.reduce($ce,0)}(B)):(C.x=s?l+=t(C,s):0,C.y=0,s=C)});var u=function ede(t){for(var r;r=t.children;)t=r[0];return t}(a),f=function tde(t){for(var r;r=t.children;)t=r[r.length-1];return t}(a),h=u.x-t(u,f)/2,v=f.x+t(f,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)/(v-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(t=a,o):t},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 rde(t){var r=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;t.value=r}function g7(t,r){var o,s,l,u,f,e=new CC(t),i=+t.value&&(e.value=t.value),a=[e];for(null==r&&(r=gde);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(f=l.length))for(o.children=new Array(f),u=f-1;u>=0;--u)a.push(s=o.children[u]=new CC(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(cq)}function gde(t){return t.children}function vde(t){t.data=t.data.data}function cq(t){var r=0;do{t.height=r}while((t=t.parent)&&t.height<++r)}function CC(t){this.data=t,this.depth=this.height=0,this.parent=null}d7.invert=NS(function(t){return t}),BS.invert=function(t,r){return[t,2*hC(KY(r))-Va]},FS.invert=FS,f7.invert=NS(hC),p7.invert=function(t,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(Eo(o)>Fr&&--i>0);return[t/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},h7.invert=NS(zu),m7.invert=NS(function(t){return 2*hC(t)}),_7.invert=function(t,r){return[-r,2*hC(KY(t))-Va]},CC.prototype=g7.prototype={constructor:CC,count:function ide(){return this.eachAfter(rde)},each:function ode(t){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(t(r),o=r.children)for(a=0,s=o.length;a=0;--o)e.push(i[o]);return this},sum:function lde(t){return this.eachAfter(function(r){for(var e=+t(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function ude(t){return this.eachBefore(function(r){r.children&&r.children.sort(t)})},path:function cde(t){for(var r=this,e=function dde(t,r){if(t===r)return t;var e=t.ancestors(),i=r.ancestors(),o=null;for(t=e.pop(),r=i.pop();t===r;)o=t,t=e.pop(),r=i.pop();return o}(r,t),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;t!==e;)i.splice(o,0,t),t=t.parent;return i},ancestors:function fde(){for(var t=this,r=[t];t=t.parent;)r.push(t);return r},descendants:function pde(){var t=[];return this.each(function(r){t.push(r)}),t},leaves:function hde(){var t=[];return this.eachBefore(function(r){r.children||t.push(r)}),t},links:function mde(){var t=this,r=[];return t.each(function(e){e!==t&&r.push({source:e.parent,target:e})}),r},copy:function _de(){return g7(this).eachBefore(vde)}};var yde=Array.prototype.slice;function dq(t){for(var o,a,r=0,e=(t=function bde(t){for(var e,i,r=t.length;r;)i=Math.random()*r--|0,e=t[r],t[r]=t[i],t[i]=e;return t}(yde.call(t))).length,i=[];r0&&e*e>i*i+o*o}function v7(t,r){for(var e=0;e(u*=u)?(o=(f+u-a)/(2*f),l=Math.sqrt(Math.max(0,u/f-o*o)),e.x=t.x-o*i-l*s,e.y=t.y-o*s+l*i):(o=(f+a-u)/(2*f),l=Math.sqrt(Math.max(0,a/f-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 mq(t,r){var e=t.r+r.r-1e-6,i=r.x-t.x,o=r.y-t.y;return e>0&&e*e>i*i+o*o}function _q(t){var r=t._,e=t.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 zL(t){this._=t,this.next=null,this.previous=null}function gq(t){if(!(o=t.length))return 0;var r,e,i,o,a,s,l,u,f,h,v;if((r=t[0]).x=0,r.y=0,!(o>1))return r.r;if(e=t[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;hq(e,r,i=t[2]),r=new zL(r),e=new zL(e),i=new zL(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(t=WL(i),e):t},e.parentId=function(i){return arguments.length?(r=WL(i),e):r},e}function Pde(t,r){return t.parent===r.parent?1:2}function b7(t){var r=t.children;return r?r[0]:t.t}function C7(t){var r=t.children;return r?r[r.length-1]:t.t}function Rde(t,r,e){var i=e/(r.i-t.i);r.c-=i,r.s+=e,t.c+=i,r.z+=e,r.m+=e}function Zde(t,r,e){return t.a.parent===r.parent?t.a:e}function VL(t,r){this._=t,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 Bde(){var t=Pde,r=1,e=1,i=null;function o(f){var h=function Nde(t){for(var e,o,a,s,l,r=new VL(t,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 VL(a[s],s)),o.parent=e;return(r.parent=new VL(null,0)).children=[r],r}(f);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)f.eachBefore(u);else{var v=f,C=f,B=f;f.eachBefore(function(Ye){Ye.xC.x&&(C=Ye),Ye.depth>B.depth&&(B=Ye)});var G=v===C?1:t(v,C)/2,q=G-v.x,ae=r/(C.x+G+q),he=e/(B.depth||1);f.eachBefore(function(Ye){Ye.x=(Ye.x+q)*ae,Ye.y=Ye.depth*he})}return f}function a(f){var h=f.children,v=f.parent.children,C=f.i?v[f.i-1]:null;if(h){!function Lde(t){for(var a,r=0,e=0,i=t.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(f);var B=(h[0].z+h[h.length-1].z)/2;C?(f.z=C.z+t(f._,C._),f.m=f.z-B):f.z=B}else C&&(f.z=C.z+t(f._,C._));f.parent.A=function l(f,h,v){if(h){for(var Fe,C=f,B=f,G=h,q=C.parent.children[0],ae=C.m,he=B.m,Ye=G.m,Me=q.m;G=C7(G),C=b7(C),G&&C;)q=b7(q),(B=C7(B)).a=f,(Fe=G.z+Ye-C.z-ae+t(G._,C._))>0&&(Rde(Zde(G,f,v),f,Fe),ae+=Fe,he+=Fe),Ye+=G.m,ae+=C.m,Me+=q.m,he+=B.m;G&&!C7(B)&&(B.t=G,B.m+=Ye-he),C&&!b7(q)&&(q.t=C,q.m+=ae-Me,v=f)}return v}(f,C,f.parent.A||v[0])}function s(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f){f.x*=r,f.y=f.depth*e}return o.separation=function(f){return arguments.length?(t=f,o):t},o.size=function(f){return arguments.length?(i=!1,r=+f[0],e=+f[1],o):i?null:[r,e]},o.nodeSize=function(f){return arguments.length?(i=!0,r=+f[0],e=+f[1],o):i?[r,e]:null},o}function YL(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(o-e)/t.value;++lYe&&(Ye=f),ht=ae*ae*ft,(Me=Math.max(Ye/ht,ht/he))>Fe){ae-=f;break}Fe=Me}s.push(u={value:ae,dice:B1?i:1)},e}(kq);function Fde(){var t=Eq,r=!1,e=1,i=1,o=[0],a=by,s=by,l=by,u=by,f=by;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(v),o=[0],r&&C.eachBefore(bq),C}function v(C){var B=o[C.depth],G=C.x0+B,q=C.y0+B,ae=C.x1-B,he=C.y1-B;ae=C-1){var Ye=a[v];return Ye.x0=G,Ye.y0=q,Ye.x1=ae,void(Ye.y1=he)}for(var Me=f[v],Fe=B/2+Me,ft=v+1,ht=C-1;ft>>1;f[Re]he-q){var x=(G*kt+ae*ut)/B;h(v,ft,ut,G,q,x,he),h(ft,C,kt,x,q,ae,he)}else{var g=(q*kt+he*ut)/B;h(v,ft,ut,G,q,ae,g),h(ft,C,kt,G,g,ae,he)}}(0,l,t.value,r,e,i,o)}function Hde(t,r,e,i,o){(1&t.depth?YL:HS)(t,r,e,i,o)}var jde=function t(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,f,h,v,B,C=-1,G=u.length,q=i.value;++C1?i:1)},e}(kq);function kC(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function jS(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function J_(){}var TC=1/.7,EC="\\s*([+-]?\\d+)\\s*",zS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zde=/^#([0-9a-f]{3,8})$/,Wde=new RegExp("^rgb\\("+[EC,EC,EC]+"\\)$"),Vde=new RegExp("^rgb\\("+[Jf,Jf,Jf]+"\\)$"),Yde=new RegExp("^rgba\\("+[EC,EC,EC,zS]+"\\)$"),Gde=new RegExp("^rgba\\("+[Jf,Jf,Jf,zS]+"\\)$"),qde=new RegExp("^hsl\\("+[zS,Jf,Jf]+"\\)$"),Kde=new RegExp("^hsla\\("+[zS,Jf,Jf,zS]+"\\)$"),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 Sq(){return this.rgb().formatHex()}function xq(){return this.rgb().formatRgb()}function WS(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=zde.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Dq(r):3===e?new il(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?GL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?GL(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=Wde.exec(t))?new il(r[1],r[2],r[3],1):(r=Vde.exec(t))?new il(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Yde.exec(t))?GL(r[1],r[2],r[3],r[4]):(r=Gde.exec(t))?GL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=qde.exec(t))?Iq(r[1],r[2]/100,r[3]/100,1):(r=Kde.exec(t))?Iq(r[1],r[2]/100,r[3]/100,r[4]):Mq.hasOwnProperty(t)?Dq(Mq[t]):"transparent"===t?new il(NaN,NaN,NaN,0):null}function Dq(t){return new il(t>>16&255,t>>8&255,255&t,1)}function GL(t,r,e,i){return i<=0&&(t=r=e=NaN),new il(t,r,e,i)}function w7(t){return t instanceof J_||(t=WS(t)),t?new il((t=t.rgb()).r,t.g,t.b,t.opacity):new il}function qL(t,r,e,i){return 1===arguments.length?w7(t):new il(t,r,e,null==i?1:i)}function il(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function Aq(){return"#"+k7(this.r)+k7(this.g)+k7(this.b)}function Oq(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function k7(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Iq(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Qf(t,r,e,i)}function Pq(t){if(t instanceof Qf)return new Qf(t.h,t.s,t.l,t.opacity);if(t instanceof J_||(t=WS(t)),!t)return new Qf;if(t instanceof Qf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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*(e0&&u<1?0:s,new Qf(s,l,u,t.opacity)}function T7(t,r,e,i){return 1===arguments.length?Pq(t):new Qf(t,r,e,null==i?1:i)}function Qf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function E7(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function Rq(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Lq(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i180||e<-180?e-360*Math.round(e/360):e):KL(isNaN(t)?r:t)}function Xde(t){return 1==(t=+t)?Hs:function(r,e){return e-r?function Qde(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):KL(isNaN(r)?e:r)}}function Hs(t,r){var e=r-t;return e?Nq(t,e):KL(isNaN(t)?r:t)}kC(J_,WS,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:Sq,formatHex:Sq,formatHsl:function Jde(){return Pq(this).formatHsl()},formatRgb:xq,toString:xq}),kC(il,qL,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new il(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new il(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:Aq,formatHex:Aq,formatRgb:Oq,toString:Oq})),kC(Qf,T7,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new Qf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Qf(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 il(E7(r>=240?r-240:r+120,a,o),E7(r,a,o),E7(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 S7=function t(r){var e=Xde(r);function i(o,a){var s=e((o=qL(o)).r,(a=qL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Hs(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function Bq(t){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;se&&(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:Xf(i,o)})),e=D7.lastIndex;return e180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Xf(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Xf(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Xf(f,v)},{i:q-2,x:Xf(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G.008856451679035631?Math.pow(t,1/3):t/nK+tK}function Z7(t){return t>MC?t*t*t:nK*(t-tK)}function N7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function B7(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function iK(t){if(t instanceof $f)return new $f(t.h,t.c,t.l,t.opacity);if(t instanceof Ud||(t=rK(t)),0===t.a&&0===t.b)return new $f(NaN,01&&Tfe(t[e[i-2]],t[e[i-1]],t[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Mfe(t){if((e=t.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r=0;--r)f.push(t[i[a[r]][2]]);for(r=+l;ra!=l>a&&o<(s-u)*(a-f)/(l-f)+u&&(h=!h),s=u,l=f;return h}function xfe(t){for(var o,a,r=-1,e=t.length,i=t[e-1],s=i[0],l=i[1],u=0;++r1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=t,e}(SC),Afe=function t(r){function e(){var i=pK.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=t,e}(SC),hK=function t(r){function e(i){return function(){for(var o=0,a=0;a2?Bfe:Nfe,l=u=null,h}function h(v){return(l||(l=s(e,i,a?function Lfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(t):t,o)))(+v)}return h.invert=function(v){return(u||(u=s(i,e,q7,a?function Zfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+v)},h.domain=function(v){return arguments.length?(e=z7.call(v,gK),f()):e.slice()},h.range=function(v){return arguments.length?(i=Q_.call(v),f()):i.slice()},h.rangeRound=function(v){return i=Q_.call(v),o=Rfe,f()},h.clamp=function(v){return arguments.length?(a=!!v,f()):a},h.interpolate=function(v){return arguments.length?(o=v,f()):o},f()}var yK,Ffe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function t5(t){if(!(r=Ffe.exec(t)))throw new Error("invalid format: "+t);var r;return new K7({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 K7(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function n5(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function xC(t){return(t=n5(Math.abs(t)))?t[1]:NaN}function bK(t,r){var e=n5(t,r);if(!e)return t+"";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")}t5.prototype=K7.prototype,K7.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 CK={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Ufe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.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 bK(100*r,e)},r:bK,s:function Vfe(t,r){var e=n5(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(yK=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")+n5(t,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 wK(t){return t}var r5,J7,EK,kK=Array.prototype.map,TK=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Yfe(t){var r=void 0===t.grouping||void 0===t.thousands?wK:function jfe(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(kK.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?wK:function zfe(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(kK.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(v){var C=(v=t5(v)).fill,B=v.align,G=v.sign,q=v.symbol,ae=v.zero,he=v.width,Ye=v.comma,Me=v.precision,Fe=v.trim,ft=v.type;"n"===ft?(Ye=!0,ft="g"):CK[ft]||(void 0===Me&&(Me=12),Fe=!0,ft="g"),(ae||"0"===C&&"="===B)&&(ae=!0,C="0",B="=");var ht="$"===q?e:"#"===q&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",Re="$"===q?i:/[%p]/.test(ft)?s:"",ut=CK[ft],kt=/[defgprs%]/.test(ft);function x(g){var te,re,ye,O=ht,H=Re;if("c"===ft)H=ut(g)+H,g="";else{var pt=(g=+g)<0||1/g<0;if(g=isNaN(g)?u:ut(Math.abs(g),Me),Fe&&(g=function Wfe(t){e:for(var o,r=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(o+1):t}(g)),pt&&0==+g&&"+"!==G&&(pt=!1),O=(pt?"("===G?G:l:"-"===G||"("===G?"":G)+O,H=("s"===ft?TK[8+yK/3]:"")+H+(pt&&"("===G?")":""),kt)for(te=-1,re=g.length;++te(ye=g.charCodeAt(te))||ye>57){H=(46===ye?o+g.slice(te+1):g.slice(te))+H,g=g.slice(0,te);break}}Ye&&!ae&&(g=r(g,1/0));var xt=O.length+g.length+H.length,Ce=xt>1)+O+g+H+Ce.slice(xt);break;default:g=Ce+O+g+H}return a(g)}return Me=void 0===Me?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,Me)):Math.max(0,Math.min(20,Me)),x.toString=function(){return v+""},x}return{format:f,formatPrefix:function h(v,C){var B=f(((v=t5(v)).type="f",v)),G=3*Math.max(-8,Math.min(8,Math.floor(xC(C)/3))),q=Math.pow(10,-G),ae=TK[8+G/3];return function(he){return B(q*he)+ae}}}}function Jfe(t,r,e){var s,i=t[0],o=t[t.length-1],a=R_(i,o,null==r?10:r);switch((e=t5(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Hfe(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xC(r)/3)))-xC(Math.abs(t)))}(a,l))&&(e.precision=s),EK(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function qfe(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,xC(r)-xC(t))+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 Kfe(t){return Math.max(0,-xC(Math.abs(t)))}(a))&&(e.precision=s-2*("%"===e.type))}return J7(e)}function qS(t){var r=t.domain;return t.ticks=function(e){var i=r();return P_(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){return Jfe(r(),e,i)},t.nice=function(e){null==e&&(e=10);var u,i=r(),o=0,a=i.length-1,s=i[o],l=i[a];return l0?u=mh(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=mh(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)),t},t}function MK(){var t=e5(q7,Oc);return t.copy=function(){return $L(t,MK())},qS(t)}function SK(){var t=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=z7.call(e,gK),r):t.slice()},r.copy=function(){return SK().domain(t)},qS(r)}function xK(t,r){var s,e=0,i=(t=t.slice()).length-1,o=t[e],a=t[i];return a0){for(;vf)break;he.push(q)}}else for(;v=1;--G)if(!((q=B*G)f)break;he.push(q)}}else he=P_(v,C,Math.min(C-v,ae)).map(o);return h?he.reverse():he},t.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=J7(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/t.ticks().length);return function(f){var h=f/o(Math.round(i(f)));return h*e0?e[s-1]:t[0],s=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return RK().domain([t,r]).range(o)},qS(a)}function LK(){var t=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[O_(t,o,0,e)]}return i.domain=function(o){return arguments.length?(t=Q_.call(o),e=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(o){return arguments.length?(r=Q_.call(o),e=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[t[a-1],t[a]]},i.copy=function(){return LK().domain(t).range(r)},i}!function Gfe(t){return r5=Yfe(t),J7=r5.format,EK=r5.formatPrefix,r5}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var X7=new Date,$7=new Date;function js(t,r,e,i){function o(a){return t(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return t(a=new Date(+a)),a},o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f=s)for(;t(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 X7.setTime(+a),$7.setTime(+s),t(X7),t($7),Math.floor(e(X7,$7))},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 e9=js(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});e9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var Hd=e9,ZK=(e9.range,js(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),tpe=ZK,ky=(ZK.range,6e4),o5=36e5,BK=6048e5;function Ty(t){return js(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*ky)/BK})}var a5=Ty(0),Ey=Ty(1),npe=Ty(2),rpe=Ty(3),Ah=Ty(4),ipe=Ty(5),ope=Ty(6),FK=(a5.range,Ey.range,npe.range,rpe.range,Ah.range,ipe.range,ope.range,js(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ky)/864e5},function(t){return t.getDate()-1})),KS=FK,UK=(FK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*ky)},function(t,r){t.setTime(+t+r*o5)},function(t,r){return(r-t)/o5},function(t){return t.getHours()})),ape=UK,HK=(UK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*ky)},function(t,r){return(r-t)/ky},function(t){return t.getMinutes()})),spe=HK,jK=(HK.range,js(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()})),zK=jK,s5=(jK.range,js(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t}));s5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?js(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):s5:null};var WK=s5;s5.range;function My(t){return js(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/BK})}var l5=My(0),Sy=My(1),lpe=My(2),upe=My(3),Oh=My(4),cpe=My(5),dpe=My(6),VK=(l5.range,Sy.range,lpe.range,upe.range,Oh.range,cpe.range,dpe.range,js(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1})),JS=VK,t9=(VK.range,js(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));t9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var jd=t9;t9.range;function n9(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r9(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function QS(t,r,e){return{y:t,m:r,d:e,H:0,M:0,S:0,L:0}}var AC,aJ,sJ,YK={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,ppe=/^%/,hpe=/[\\^$*+?|[\]().{}]/g;function vo(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function Cpe(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function wpe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function kpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function KK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Tpe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function JK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Epe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Mpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Spe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function xpe(t,r,e){var i=zs.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Dpe(t,r,e){var i=ppe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Ape(t,r,e){var i=zs.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Ope(t,r,e){var i=zs.exec(r.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function QK(t,r){return vo(t.getDate(),r,2)}function Ipe(t,r){return vo(t.getHours(),r,2)}function Ppe(t,r){return vo(t.getHours()%12||12,r,2)}function Rpe(t,r){return vo(1+KS.count(Hd(t),t),r,3)}function XK(t,r){return vo(t.getMilliseconds(),r,3)}function Lpe(t,r){return XK(t,r)+"000"}function Zpe(t,r){return vo(t.getMonth()+1,r,2)}function Npe(t,r){return vo(t.getMinutes(),r,2)}function Bpe(t,r){return vo(t.getSeconds(),r,2)}function Fpe(t){var r=t.getDay();return 0===r?7:r}function Upe(t,r){return vo(a5.count(Hd(t)-1,t),r,2)}function $K(t){var r=t.getDay();return r>=4||0===r?Ah(t):Ah.ceil(t)}function Hpe(t,r){return t=$K(t),vo(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function jpe(t){return t.getDay()}function zpe(t,r){return vo(Ey.count(Hd(t)-1,t),r,2)}function Wpe(t,r){return vo(t.getFullYear()%100,r,2)}function Vpe(t,r){return vo((t=$K(t)).getFullYear()%100,r,2)}function Ype(t,r){return vo(t.getFullYear()%1e4,r,4)}function Gpe(t,r){var e=t.getDay();return vo((t=e>=4||0===e?Ah(t):Ah.ceil(t)).getFullYear()%1e4,r,4)}function qpe(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function eJ(t,r){return vo(t.getUTCDate(),r,2)}function Kpe(t,r){return vo(t.getUTCHours(),r,2)}function Jpe(t,r){return vo(t.getUTCHours()%12||12,r,2)}function Qpe(t,r){return vo(1+JS.count(jd(t),t),r,3)}function tJ(t,r){return vo(t.getUTCMilliseconds(),r,3)}function Xpe(t,r){return tJ(t,r)+"000"}function $pe(t,r){return vo(t.getUTCMonth()+1,r,2)}function ehe(t,r){return vo(t.getUTCMinutes(),r,2)}function the(t,r){return vo(t.getUTCSeconds(),r,2)}function nhe(t){var r=t.getUTCDay();return 0===r?7:r}function rhe(t,r){return vo(l5.count(jd(t)-1,t),r,2)}function nJ(t){var r=t.getUTCDay();return r>=4||0===r?Oh(t):Oh.ceil(t)}function ihe(t,r){return t=nJ(t),vo(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function ohe(t){return t.getUTCDay()}function ahe(t,r){return vo(Sy.count(jd(t)-1,t),r,2)}function she(t,r){return vo(t.getUTCFullYear()%100,r,2)}function lhe(t,r){return vo((t=nJ(t)).getUTCFullYear()%100,r,2)}function uhe(t,r){return vo(t.getUTCFullYear()%1e4,r,4)}function che(t,r){var e=t.getUTCDay();return vo((t=e>=4||0===e?Oh(t):Oh.ceil(t)).getUTCFullYear()%1e4,r,4)}function dhe(){return"+0000"}function rJ(){return"%"}function iJ(t){return+t}function oJ(t){return Math.floor(+t/1e3)}!function hhe(t){return AC=function fpe(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=XS(o),h=$S(o),v=XS(a),C=$S(a),B=XS(s),G=$S(s),q=XS(l),ae=$S(l),he=XS(u),Ye=$S(u),Me={a:function pt(Wn){return s[Wn.getDay()]},A:function xt(Wn){return a[Wn.getDay()]},b:function Ce(Wn){return u[Wn.getMonth()]},B:function st(Wn){return l[Wn.getMonth()]},c:null,d:QK,e:QK,f:Lpe,g:Vpe,G:Gpe,H:Ipe,I:Ppe,j:Rpe,L:XK,m:Zpe,M:Npe,p:function Lt(Wn){return o[+(Wn.getHours()>=12)]},q:function Hn(Wn){return 1+~~(Wn.getMonth()/3)},Q:iJ,s:oJ,S:Bpe,u:Fpe,U:Upe,V:Hpe,w:jpe,W:zpe,x:null,X:null,y:Wpe,Y:Ype,Z:qpe,"%":rJ},Fe={a:function er(Wn){return s[Wn.getUTCDay()]},A:function Zn(Wn){return a[Wn.getUTCDay()]},b:function Cn(Wn){return u[Wn.getUTCMonth()]},B:function ma(Wn){return l[Wn.getUTCMonth()]},c:null,d:eJ,e:eJ,f:Xpe,g:lhe,G:che,H:Kpe,I:Jpe,j:Qpe,L:tJ,m:$pe,M:ehe,p:function Tr(Wn){return o[+(Wn.getUTCHours()>=12)]},q:function zr(Wn){return 1+~~(Wn.getUTCMonth()/3)},Q:iJ,s:oJ,S:the,u:nhe,U:rhe,V:ihe,w:ohe,W:ahe,x:null,X:null,y:she,Y:uhe,Z:dhe,"%":rJ},ft={a:function x(Wn,In,yr){var kn=B.exec(In.slice(yr));return kn?(Wn.w=G[kn[0].toLowerCase()],yr+kn[0].length):-1},A:function g(Wn,In,yr){var kn=v.exec(In.slice(yr));return kn?(Wn.w=C[kn[0].toLowerCase()],yr+kn[0].length):-1},b:function O(Wn,In,yr){var kn=he.exec(In.slice(yr));return kn?(Wn.m=Ye[kn[0].toLowerCase()],yr+kn[0].length):-1},B:function H(Wn,In,yr){var kn=q.exec(In.slice(yr));return kn?(Wn.m=ae[kn[0].toLowerCase()],yr+kn[0].length):-1},c:function te(Wn,In,yr){return ut(Wn,r,In,yr)},d:KK,e:KK,f:xpe,g:qK,G:GK,H:JK,I:JK,j:Tpe,L:Spe,m:kpe,M:Epe,p:function kt(Wn,In,yr){var kn=f.exec(In.slice(yr));return kn?(Wn.p=h[kn[0].toLowerCase()],yr+kn[0].length):-1},q:wpe,Q:Ape,s:Ope,S:Mpe,u:gpe,U:vpe,V:ype,w:_pe,W:bpe,x:function re(Wn,In,yr){return ut(Wn,e,In,yr)},X:function ye(Wn,In,yr){return ut(Wn,i,In,yr)},y:qK,Y:GK,Z:Cpe,"%":Dpe};function ht(Wn,In){return function(yr){var Yi,Cs,VN,kn=[],Br=-1,qr=0,Yo=Wn.length;for(yr instanceof Date||(yr=new Date(+yr));++Br53)return null;"w"in kn||(kn.w=1),"Z"in kn?(Yo=(qr=r9(QS(kn.y,0,1))).getUTCDay(),qr=Yo>4||0===Yo?Sy.ceil(qr):Sy(qr),qr=JS.offset(qr,7*(kn.V-1)),kn.y=qr.getUTCFullYear(),kn.m=qr.getUTCMonth(),kn.d=qr.getUTCDate()+(kn.w+6)%7):(Yo=(qr=n9(QS(kn.y,0,1))).getDay(),qr=Yo>4||0===Yo?Ey.ceil(qr):Ey(qr),qr=KS.offset(qr,7*(kn.V-1)),kn.y=qr.getFullYear(),kn.m=qr.getMonth(),kn.d=qr.getDate()+(kn.w+6)%7)}else("W"in kn||"U"in kn)&&("w"in kn||(kn.w="u"in kn?kn.u%7:"W"in kn?1:0),Yo="Z"in kn?r9(QS(kn.y,0,1)).getUTCDay():n9(QS(kn.y,0,1)).getDay(),kn.m=0,kn.d="W"in kn?(kn.w+6)%7+7*kn.W-(Yo+5)%7:kn.w+7*kn.U-(Yo+6)%7);return"Z"in kn?(kn.H+=kn.Z/100|0,kn.M+=kn.Z%100,r9(kn)):n9(kn)}}function ut(Wn,In,yr,kn){for(var Yi,Cs,Br=0,qr=In.length,Yo=yr.length;Br=Yo)return-1;if(37===(Yi=In.charCodeAt(Br++))){if(Yi=In.charAt(Br++),!(Cs=ft[Yi in YK?In.charAt(Br++):Yi])||(kn=Cs(Wn,yr,kn))<0)return-1}else if(Yi!=yr.charCodeAt(kn++))return-1}return kn}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Fe.x=ht(e,Fe),Fe.X=ht(i,Fe),Fe.c=ht(r,Fe),{format:function(In){var yr=ht(In+="",Me);return yr.toString=function(){return In},yr},parse:function(In){var yr=Re(In+="",!1);return yr.toString=function(){return In},yr},utcFormat:function(In){var yr=ht(In+="",Fe);return yr.toString=function(){return In},yr},utcParse:function(In){var yr=Re(In+="",!0);return yr.toString=function(){return In},yr}}}(t),aJ=AC.format,AC.parse,sJ=AC.utcFormat,AC.utcParse,AC}({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 ex=1e3,tx=6e4,nx=60*tx,rx=24*nx,lJ=30*rx,i9=365*rx;function _he(t){return new Date(t)}function ghe(t){return t instanceof Date?+t:+new Date(+t)}function o9(t,r,e,i,o,a,s,l,u){var f=e5(q7,Oc),h=f.invert,v=f.domain,C=u(".%L"),B=u(":%S"),G=u("%I:%M"),q=u("%I %p"),ae=u("%a %d"),he=u("%b %d"),Ye=u("%B"),Me=u("%Y"),Fe=[[s,1,ex],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,tx],[a,5,5*tx],[a,15,15*tx],[a,30,30*tx],[o,1,nx],[o,3,3*nx],[o,6,6*nx],[o,12,12*nx],[i,1,rx],[i,2,2*rx],[e,1,6048e5],[r,1,lJ],[r,3,3*lJ],[t,1,i9]];function ft(Re){return(s(Re)180||e<-180?e-360*Math.round(e/360):e):Ni(isNaN(t)?r:t)});var l9=WJ(Ul),lme=l9(ep(300,.5,0),ep(-240,.5,1)),ume=l9(ep(-100,.75,.35),ep(80,1.5,.8)),cme=l9(ep(260,.75,.35),ep(80,1.5,.8)),c5=ep();function dme(t){(t<0||t>1)&&(t-=Math.floor(t));var r=Math.abs(t-.5);return c5.h=360*t-100,c5.s=1.5-1.5*r,c5.l=.8-.9*r,c5+""}function d5(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var fme=d5(Mi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),pme=d5(Mi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),hme=d5(Mi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mme=d5(Mi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),u9="http://www.w3.org/1999/xhtml",c9={svg:"http://www.w3.org/2000/svg",xhtml:u9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function d9(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),c9.hasOwnProperty(r)?{space:c9[r],local:t}:t}function _me(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===u9&&r.documentElement.namespaceURI===u9?r.createElement(t):r.createElementNS(e,t)}}function gme(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f5(t){var r=d9(t);return(r.local?gme:_me)(r)}function vme(){}function f9(t){return null==t?vme:function(){return this.querySelector(t)}}function bme(){return[]}function VJ(t){return null==t?bme:function(){return this.querySelectorAll(t)}}var YJ=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var ox=document.documentElement;if(!ox.matches){var wme=ox.webkitMatchesSelector||ox.msMatchesSelector||ox.mozMatchesSelector||ox.oMatchesSelector;YJ=function(r){return function(){return wme.call(this,r)}}}}var GJ=YJ;function qJ(t){return new Array(t.length)}function p5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}p5.prototype={constructor:p5,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 Mme(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;sr?1:t>=r?0:NaN}function Ume(t){return function(){this.removeAttribute(t)}}function Hme(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jme(t,r){return function(){this.setAttribute(t,r)}}function zme(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function Wme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Vme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function p9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Gme(t){return function(){this.style.removeProperty(t)}}function qme(t,r,e){return function(){this.style.setProperty(t,r,e)}}function Kme(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function JJ(t,r){return t.style.getPropertyValue(r)||p9(t).getComputedStyle(t,null).getPropertyValue(r)}function Qme(t){return function(){delete this[t]}}function Xme(t,r){return function(){this[t]=r}}function $me(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function QJ(t){return t.trim().split(/^|\s+/)}function h9(t){return t.classList||new XJ(t)}function XJ(t){this._node=t,this._names=QJ(t.getAttribute("class")||"")}function $J(t,r){for(var e=h9(t),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var tQ={},Ih=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tQ={mouseenter:"mouseover",mouseleave:"mouseout"}));function S_e(t,r,e){return t=nQ(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function nQ(t,r,e){return function(i){var o=Ih;Ih=i;try{t.call(this,this.__data__,r,e)}finally{Ih=o}}}function x_e(t){return t.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 D_e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Ime(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Pme);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Gme:"function"==typeof r?Kme:qme)(t,r,null==e?"":e)):JJ(this.node(),t)},property:function e_e(t,r){return arguments.length>1?this.each((null==r?Qme:"function"==typeof r?$me:Xme)(t,r)):this.node()[t]},classed:function i_e(t,r){var e=QJ(t+"");if(arguments.length<2){for(var i=h9(this.node()),o=-1,a=e.length;++o1?0:t<-1?Ay:Math.acos(t)}function lQ(t){return t>=1?m5:t<=-1?-m5:Math.asin(t)}function age(t){return t.innerRadius}function sge(t){return t.outerRadius}function lge(t){return t.startAngle}function uge(t){return t.endAngle}function cge(t){return t&&t.padAngle}function dge(t,r,e,i,o,a,s,l){var u=e-t,f=i-r,h=s-o,v=l-a,C=v*u-h*f;if(!(C*Cte*te+re*re&&(ut=x,kt=g),{cx:ut,cy:kt,x01:-h,y01:-v,x11:ut*(o/ft-1),y11:kt*(o/ft-1)}}function fge(){var t=age,r=sge,e=Bi(0),i=null,o=lge,a=uge,s=cge,l=null;function u(){var f,h,v=+t.apply(this,arguments),C=+r.apply(this,arguments),B=o.apply(this,arguments)-m5,G=a.apply(this,arguments)-m5,q=sQ(G-B),ae=G>B;if(l||(l=f=Zd()),Col)if(q>Ph-ol)l.moveTo(C*Dy(B),C*tp(B)),l.arc(0,0,C,B,G,!ae),v>ol&&(l.moveTo(v*Dy(G),v*tp(G)),l.arc(0,0,v,G,B,ae));else{var O,H,he=B,Ye=G,Me=B,Fe=G,ft=q,ht=q,Re=s.apply(this,arguments)/2,ut=Re>ol&&(i?+i.apply(this,arguments):OC(v*v+C*C)),kt=v9(sQ(C-v)/2,+e.apply(this,arguments)),x=kt,g=kt;if(ut>ol){var te=lQ(ut/v*tp(Re)),re=lQ(ut/C*tp(Re));(ft-=2*te)>ol?(Me+=te*=ae?1:-1,Fe-=te):(ft=0,Me=Fe=(B+G)/2),(ht-=2*re)>ol?(he+=re*=ae?1:-1,Ye-=re):(ht=0,he=Ye=(B+G)/2)}var ye=C*Dy(he),pt=C*tp(he),xt=v*Dy(Fe),Ce=v*tp(Fe);if(kt>ol){var Zn,st=C*Dy(Ye),Lt=C*tp(Ye),Hn=v*Dy(Me),er=v*tp(Me);if(q<=Ph-ol&&(Zn=dge(ye,pt,Hn,er,st,Lt,xt,Ce))){var Cn=ye-Zn[0],ma=pt-Zn[1],Tr=st-Zn[0],zr=Lt-Zn[1],Wn=1/tp(oge((Cn*Tr+ma*zr)/(OC(Cn*Cn+ma*ma)*OC(Tr*Tr+zr*zr)))/2),In=OC(Zn[0]*Zn[0]+Zn[1]*Zn[1]);x=v9(kt,(v-In)/(Wn-1)),g=v9(kt,(C-In)/(Wn+1))}}ht>ol?g>ol?(O=_5(Hn,er,ye,pt,C,g,ae),H=_5(st,Lt,xt,Ce,C,g,ae),l.moveTo(O.cx+O.x01,O.cy+O.y01),gol&&ft>ol?x>ol?(O=_5(xt,Ce,st,Lt,v,-x,ae),H=_5(ye,pt,Hn,er,v,-x,ae),l.lineTo(O.cx+O.x01,O.cy+O.y01),x=C;--B)l.point(Ye[B],Me[B]);l.lineEnd(),l.areaEnd()}ae&&(Ye[v]=+t(q,v,h),Me[v]=+e(q,v,h),l.point(r?+r(q,v,h):Ye[v],i?+i(q,v,h):Me[v]))}if(he)return l=null,he+""||null}function f(){return v5().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),r=null,u):t},u.x0=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),u):t},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:Bi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:Bi(+h),u):i},u.lineX0=u.lineY0=function(){return f().x(t).y(e)},u.lineY1=function(){return f().x(t).y(i)},u.lineX1=function(){return f().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:Bi(!!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 pge(t,r){return rt?1:r>=t?0:NaN}function hge(t){return t}function mge(){var t=hge,r=pge,e=null,i=Bi(0),o=Bi(Ph),a=Bi(0);function s(l){var u,h,v,he,Fe,f=l.length,C=0,B=new Array(f),G=new Array(f),q=+i.apply(this,arguments),ae=Math.min(Ph,Math.max(-Ph,o.apply(this,arguments)-q)),Ye=Math.min(Math.abs(ae)/f,a.apply(this,arguments)),Me=Ye*(ae<0?-1:1);for(u=0;u0&&(C+=Fe);for(null!=r?B.sort(function(ft,ht){return r(G[ft],G[ht])}):null!=e&&B.sort(function(ft,ht){return e(l[ft],l[ht])}),u=0,v=C?(ae-f*Me)/C:0;u0?Fe*v:0)+Me,G[h]={data:l[h],index:u,value:Fe,startAngle:q,endAngle:he,padAngle:Ye};return G}return s.value=function(l){return arguments.length?(t="function"==typeof l?l:Bi(+l),s):t},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:Bi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:Bi(+l),s):a},s}uQ.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 dQ=C9(g5);function fQ(t){this._curve=t}function C9(t){function r(e){return new fQ(t(e))}return r._curve=t,r}function ax(t){var r=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(e){return arguments.length?r(C9(e)):r()._curve},t}function pQ(){return ax(v5().curve(dQ))}function hQ(){var t=cQ().curve(dQ),r=t.curve,e=t.lineX0,i=t.lineX1,o=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ax(e())},delete t.lineX0,t.lineEndAngle=function(){return ax(i())},delete t.lineX1,t.lineInnerRadius=function(){return ax(o())},delete t.lineY0,t.lineOuterRadius=function(){return ax(a())},delete t.lineY1,t.curve=function(s){return arguments.length?r(C9(s)):r()._curve},t}function sx(t,r){return[(r=+r)*Math.cos(t-=Math.PI/2),r*Math.sin(t)]}fQ.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 w9=Array.prototype.slice;function _ge(t){return t.source}function gge(t){return t.target}function k9(t){var r=_ge,e=gge,i=y9,o=b9,a=null;function s(){var l,u=w9.call(arguments),f=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Zd()),t(a,+i.apply(this,(u[0]=f,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:Bi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function vge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function yge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function bge(t,r,e,i,o){var a=sx(r,e),s=sx(r,e=(e+o)/2),l=sx(i,e),u=sx(i,o);t.moveTo(a[0],a[1]),t.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function Cge(){return k9(vge)}function wge(){return k9(yge)}function kge(){var t=k9(bge);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var T9={draw:function(r,e){var i=Math.sqrt(e/Ay);r.moveTo(i,0),r.arc(0,0,i,0,Ph)}},mQ={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()}},_Q=Math.sqrt(1/3),Tge=2*_Q,gQ={draw:function(r,e){var i=Math.sqrt(e/Tge),o=i*_Q;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},vQ=Math.sin(Ay/10)/Math.sin(7*Ay/10),Mge=Math.sin(Ph/10)*vQ,Sge=-Math.cos(Ph/10)*vQ,yQ={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=Mge*i,a=Sge*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=Ph*s/5,u=Math.cos(l),f=Math.sin(l);r.lineTo(f*i,-u*i),r.lineTo(u*o-f*a,f*o+u*a)}r.closePath()}},bQ={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},E9=Math.sqrt(3),CQ={draw:function(r,e){var i=-Math.sqrt(e/(3*E9));r.moveTo(0,2*i),r.lineTo(-E9*i,-i),r.lineTo(E9*i,-i),r.closePath()}},Rc=-.5,Lc=Math.sqrt(3)/2,M9=1/Math.sqrt(12),xge=3*(M9/2+1),wQ={draw:function(r,e){var i=Math.sqrt(e/xge),o=i/2,a=i*M9,s=o,l=i*M9+i,u=-s,f=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,f),r.lineTo(Rc*o-Lc*a,Lc*o+Rc*a),r.lineTo(Rc*s-Lc*l,Lc*s+Rc*l),r.lineTo(Rc*u-Lc*f,Lc*u+Rc*f),r.lineTo(Rc*o+Lc*a,Rc*a-Lc*o),r.lineTo(Rc*s+Lc*l,Rc*l-Lc*s),r.lineTo(Rc*u+Lc*f,Rc*f-Lc*u),r.closePath()}},Dge=[T9,mQ,gQ,bQ,yQ,CQ,wQ];function Age(){var t=Bi(T9),r=Bi(64),e=null;function i(){var o;if(e||(e=o=Zd()),t.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(t="function"==typeof o?o:Bi(o),i):t},i.size=function(o){return arguments.length?(r="function"==typeof o?o:Bi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function X_(){}function y5(t,r,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+r)/6,(t._y0+4*t._y1+e)/6)}function b5(t){this._context=t}function Oge(t){return new b5(t)}function kQ(t){this._context=t}function Ige(t){return new kQ(t)}function TQ(t){this._context=t}function Pge(t){return new TQ(t)}function EQ(t,r){this._basis=new b5(t),this._beta=r}b5.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:y5(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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},kQ.prototype={areaStart:X_,areaEnd:X_,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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},TQ.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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},EQ.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 f,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)f=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+f*s),this._beta*e[u]+(1-this._beta)*(a+f*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var Rge=function t(r){function e(i){return 1===r?new b5(i):new EQ(i,r)}return e.beta=function(i){return t(+i)},e}(.85);function C5(t,r,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-r),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function S9(t,r){this._context=t,this._k=(1-r)/6}S9.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:C5(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:C5(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 Lge=function t(r){function e(i){return new S9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function x9(t,r){this._context=t,this._k=(1-r)/6}x9.prototype={areaStart:X_,areaEnd:X_,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:C5(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 Zge=function t(r){function e(i){return new x9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function D9(t,r){this._context=t,this._k=(1-r)/6}D9.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:C5(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 Nge=function t(r){function e(i){return new D9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function A9(t,r,e){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>ol){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>ol){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*f+t._x1*t._l23_2a-r*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function MQ(t,r){this._context=t,this._alpha=r}MQ.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:A9(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 Bge=function t(r){function e(i){return r?new MQ(i,r):new S9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function SQ(t,r){this._context=t,this._alpha=r}SQ.prototype={areaStart:X_,areaEnd:X_,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:A9(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 Fge=function t(r){function e(i){return r?new SQ(i,r):new x9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function xQ(t,r){this._context=t,this._alpha=r}xQ.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:A9(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 Uge=function t(r){function e(i){return r?new xQ(i,r):new D9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function DQ(t){this._context=t}function Hge(t){return new DQ(t)}function AQ(t){return t<0?-1:1}function OQ(t,r,e){var i=t._x1-t._x0,o=r-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(e-t._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(AQ(a)+AQ(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function IQ(t,r){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-r)/2:r}function O9(t,r,e){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,l=(a-i)/3;t._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function w5(t){this._context=t}function PQ(t){this._context=new RQ(t)}function RQ(t){this._context=t}function jge(t){return new w5(t)}function zge(t){return new PQ(t)}function LQ(t){this._context=t}function ZQ(t){var r,i,e=t.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],r=1;r=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(t[e]+o[e-1])/2,r=0;r1)for(var i,o,s,e=1,a=t[r[0]],l=a.length;e=0;)e[r]=r;return e}function qge(t,r){return t[r]}function Kge(){var t=Bi([]),r=PC,e=IC,i=qge;function o(a){var l,v,s=t.apply(this,arguments),u=a.length,f=s.length,h=new Array(f);for(l=0;l0){for(var e,i,s,o=0,a=t[0].length;o1)for(var e,o,a,s,l,u,i=0,f=t[r[0]].length;i=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function Xge(t,r){if((o=t.length)>0){for(var o,e=0,i=t[r[0]],a=i.length;e0&&(a=(o=t[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i=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 I9=new Date,P9=new Date;function xs(t,r,e,i){function o(a){return t(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f=s)for(;t(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 I9.setTime(+a),P9.setTime(+s),t(I9),t(P9),Math.floor(e(I9,P9))},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 T5=xs(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t});T5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?xs(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):T5:null};var FQ=T5,UQ=T5.range,Oy=6e4,M5=36e5,jQ=6048e5,zQ=xs(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()}),WQ=zQ,VQ=zQ.range,YQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Oy)},function(t,r){return(r-t)/Oy},function(t){return t.getMinutes()}),rve=YQ,ive=YQ.range,GQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Oy)},function(t,r){t.setTime(+t+r*M5)},function(t,r){return(r-t)/M5},function(t){return t.getHours()}),ove=GQ,ave=GQ.range,qQ=xs(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Oy)/864e5},function(t){return t.getDate()-1}),sve=qQ,lve=qQ.range;function Iy(t){return xs(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*Oy)/jQ})}var R9=Iy(0),KQ=Iy(1),JQ=Iy(2),QQ=Iy(3),XQ=Iy(4),$Q=Iy(5),eX=Iy(6),tX=R9.range,uve=KQ.range,cve=JQ.range,dve=QQ.range,fve=XQ.range,pve=$Q.range,hve=eX.range,nX=xs(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),mve=nX,_ve=nX.range,L9=xs(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});L9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var gve=L9,vve=L9.range,rX=xs(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*Oy)},function(t,r){return(r-t)/Oy},function(t){return t.getUTCMinutes()}),yve=rX,bve=rX.range,iX=xs(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*M5)},function(t,r){return(r-t)/M5},function(t){return t.getUTCHours()}),Cve=iX,wve=iX.range,oX=xs(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1}),kve=oX,Tve=oX.range;function Py(t){return xs(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/jQ})}var Z9=Py(0),aX=Py(1),sX=Py(2),lX=Py(3),uX=Py(4),cX=Py(5),dX=Py(6),fX=Z9.range,Eve=aX.range,Mve=sX.range,Sve=lX.range,xve=uX.range,Dve=cX.range,Ave=dX.range,pX=xs(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCMonth(t.getUTCMonth()+r)},function(t,r){return r.getUTCMonth()-t.getUTCMonth()+12*(r.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Ove=pX,Ive=pX.range,N9=xs(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});N9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var Pve=N9,Rve=N9.range;function Lve(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function S5(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function lx(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function hX(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=ux(o),h=cx(o),v=ux(a),C=cx(a),B=ux(s),G=cx(s),q=ux(l),ae=cx(l),he=ux(u),Ye=cx(u),Me={a:function pt(Tr){return s[Tr.getDay()]},A:function xt(Tr){return a[Tr.getDay()]},b:function Ce(Tr){return u[Tr.getMonth()]},B:function st(Tr){return l[Tr.getMonth()]},c:null,d:vX,e:vX,f:oye,H:nye,I:rye,j:iye,L:yX,m:aye,M:sye,p:function Lt(Tr){return o[+(Tr.getHours()>=12)]},Q:kX,s:TX,S:lye,u:uye,U:cye,V:dye,w:fye,W:pye,x:null,X:null,y:hye,Y:mye,Z:_ye,"%":wX},Fe={a:function Hn(Tr){return s[Tr.getUTCDay()]},A:function er(Tr){return a[Tr.getUTCDay()]},b:function Zn(Tr){return u[Tr.getUTCMonth()]},B:function Cn(Tr){return l[Tr.getUTCMonth()]},c:null,d:bX,e:bX,f:bye,H:gye,I:vye,j:yye,L:CX,m:Cye,M:wye,p:function ma(Tr){return o[+(Tr.getUTCHours()>=12)]},Q:kX,s:TX,S:kye,u:Tye,U:Eye,V:Mye,w:Sye,W:xye,x:null,X:null,y:Dye,Y:Aye,Z:Oye,"%":wX},ft={a:function x(Tr,zr,Wn){var In=B.exec(zr.slice(Wn));return In?(Tr.w=G[In[0].toLowerCase()],Wn+In[0].length):-1},A:function g(Tr,zr,Wn){var In=v.exec(zr.slice(Wn));return In?(Tr.w=C[In[0].toLowerCase()],Wn+In[0].length):-1},b:function O(Tr,zr,Wn){var In=he.exec(zr.slice(Wn));return In?(Tr.m=Ye[In[0].toLowerCase()],Wn+In[0].length):-1},B:function H(Tr,zr,Wn){var In=q.exec(zr.slice(Wn));return In?(Tr.m=ae[In[0].toLowerCase()],Wn+In[0].length):-1},c:function te(Tr,zr,Wn){return ut(Tr,r,zr,Wn)},d:_X,e:_X,f:Xve,H:gX,I:gX,j:qve,L:Qve,m:Gve,M:Kve,p:function kt(Tr,zr,Wn){var In=f.exec(zr.slice(Wn));return In?(Tr.p=h[In[0].toLowerCase()],Wn+In[0].length):-1},Q:eye,s:tye,S:Jve,u:Uve,U:Hve,V:jve,w:Fve,W:zve,x:function re(Tr,zr,Wn){return ut(Tr,e,zr,Wn)},X:function ye(Tr,zr,Wn){return ut(Tr,i,zr,Wn)},y:Vve,Y:Wve,Z:Yve,"%":$ve};function ht(Tr,zr){return function(Wn){var qr,Yo,Yi,In=[],yr=-1,kn=0,Br=Tr.length;for(Wn instanceof Date||(Wn=new Date(+Wn));++yr53)return null;"w"in In||(In.w=1),"Z"in In?(Br=(kn=S5(lx(In.y))).getUTCDay(),kn=Br>4||0===Br?Sy.ceil(kn):Sy(kn),kn=JS.offset(kn,7*(In.V-1)),In.y=kn.getUTCFullYear(),In.m=kn.getUTCMonth(),In.d=kn.getUTCDate()+(In.w+6)%7):(Br=(kn=zr(lx(In.y))).getDay(),kn=Br>4||0===Br?Ey.ceil(kn):Ey(kn),kn=KS.offset(kn,7*(In.V-1)),In.y=kn.getFullYear(),In.m=kn.getMonth(),In.d=kn.getDate()+(In.w+6)%7)}else("W"in In||"U"in In)&&("w"in In||(In.w="u"in In?In.u%7:"W"in In?1:0),Br="Z"in In?S5(lx(In.y)).getUTCDay():zr(lx(In.y)).getDay(),In.m=0,In.d="W"in In?(In.w+6)%7+7*In.W-(Br+5)%7:In.w+7*In.U-(Br+6)%7);return"Z"in In?(In.H+=In.Z/100|0,In.M+=In.Z%100,S5(In)):zr(In)}}function ut(Tr,zr,Wn,In){for(var qr,Yo,yr=0,kn=zr.length,Br=Wn.length;yr=Br)return-1;if(37===(qr=zr.charCodeAt(yr++))){if(qr=zr.charAt(yr++),!(Yo=ft[qr in mX?zr.charAt(yr++):qr])||(In=Yo(Tr,Wn,In))<0)return-1}else if(qr!=Wn.charCodeAt(In++))return-1}return In}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Fe.x=ht(e,Fe),Fe.X=ht(i,Fe),Fe.c=ht(r,Fe),{format:function(zr){var Wn=ht(zr+="",Me);return Wn.toString=function(){return zr},Wn},parse:function(zr){var Wn=Re(zr+="",Lve);return Wn.toString=function(){return zr},Wn},utcFormat:function(zr){var Wn=ht(zr+="",Fe);return Wn.toString=function(){return zr},Wn},utcParse:function(zr){var Wn=Re(zr,S5);return Wn.toString=function(){return zr},Wn}}}var RC,EX,MX,B9,F9,mX={"-":"",_:" ",0:"0"},al=/^\s*\d+/,Zve=/^%/,Nve=/[\\^$*+?|[\]().{}]/g;function Ro(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function Yve(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Gve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function _X(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function qve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function gX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Kve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Jve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Qve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function Xve(t,r,e){var i=al.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function $ve(t,r,e){var i=Zve.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function eye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function tye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=1e3*+i[0],e+i[0].length):-1}function vX(t,r){return Ro(t.getDate(),r,2)}function nye(t,r){return Ro(t.getHours(),r,2)}function rye(t,r){return Ro(t.getHours()%12||12,r,2)}function iye(t,r){return Ro(1+KS.count(Hd(t),t),r,3)}function yX(t,r){return Ro(t.getMilliseconds(),r,3)}function oye(t,r){return yX(t,r)+"000"}function aye(t,r){return Ro(t.getMonth()+1,r,2)}function sye(t,r){return Ro(t.getMinutes(),r,2)}function lye(t,r){return Ro(t.getSeconds(),r,2)}function uye(t){var r=t.getDay();return 0===r?7:r}function cye(t,r){return Ro(a5.count(Hd(t),t),r,2)}function dye(t,r){var e=t.getDay();return t=e>=4||0===e?Ah(t):Ah.ceil(t),Ro(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function fye(t){return t.getDay()}function pye(t,r){return Ro(Ey.count(Hd(t),t),r,2)}function hye(t,r){return Ro(t.getFullYear()%100,r,2)}function mye(t,r){return Ro(t.getFullYear()%1e4,r,4)}function _ye(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ro(r/60|0,"0",2)+Ro(r%60,"0",2)}function bX(t,r){return Ro(t.getUTCDate(),r,2)}function gye(t,r){return Ro(t.getUTCHours(),r,2)}function vye(t,r){return Ro(t.getUTCHours()%12||12,r,2)}function yye(t,r){return Ro(1+JS.count(jd(t),t),r,3)}function CX(t,r){return Ro(t.getUTCMilliseconds(),r,3)}function bye(t,r){return CX(t,r)+"000"}function Cye(t,r){return Ro(t.getUTCMonth()+1,r,2)}function wye(t,r){return Ro(t.getUTCMinutes(),r,2)}function kye(t,r){return Ro(t.getUTCSeconds(),r,2)}function Tye(t){var r=t.getUTCDay();return 0===r?7:r}function Eye(t,r){return Ro(l5.count(jd(t),t),r,2)}function Mye(t,r){var e=t.getUTCDay();return t=e>=4||0===e?Oh(t):Oh.ceil(t),Ro(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function Sye(t){return t.getUTCDay()}function xye(t,r){return Ro(Sy.count(jd(t),t),r,2)}function Dye(t,r){return Ro(t.getUTCFullYear()%100,r,2)}function Aye(t,r){return Ro(t.getUTCFullYear()%1e4,r,4)}function Oye(){return"+0000"}function wX(){return"%"}function kX(t){return+t}function TX(t){return Math.floor(+t/1e3)}function SX(t){return RC=hX(t),EX=RC.format,MX=RC.parse,B9=RC.utcFormat,F9=RC.utcParse,RC}SX({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 xX="%Y-%m-%dT%H:%M:%S.%LZ";var Pye=Date.prototype.toISOString?function Iye(t){return t.toISOString()}:B9(xX),Rye=Pye;var Zye=+new Date("2000-01-01T00:00:00.000Z")?function Lye(t){var r=new Date(t);return isNaN(r)?null:r}:F9(xX),Nye=Zye;function Bye(t,r,e){var i=new mS,o=r;return null==r?(i.restart(t,r,e),i):(r=+r,e=null==e?H_():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),t(s)},r,e),i)}function Fye(){}function U9(t){return null==t?Fye:function(){return this.querySelector(t)}}function Hye(){return[]}function DX(t){return null==t?Hye:function(){return this.querySelectorAll(t)}}function AX(t){return function(){return this.matches(t)}}function OX(t){return new Array(t.length)}function x5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}x5.prototype={constructor:x5,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 Yye(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;sr?1:t>=r?0:NaN}var H9="http://www.w3.org/1999/xhtml",PX={svg:"http://www.w3.org/2000/svg",xhtml:H9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function D5(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),PX.hasOwnProperty(r)?{space:PX[r],local:t}:t}function s0e(t){return function(){this.removeAttribute(t)}}function l0e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function u0e(t,r){return function(){this.setAttribute(t,r)}}function c0e(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function d0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function f0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function RX(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function h0e(t){return function(){this.style.removeProperty(t)}}function m0e(t,r,e){return function(){this.style.setProperty(t,r,e)}}function _0e(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function LC(t,r){return t.style.getPropertyValue(r)||RX(t).getComputedStyle(t,null).getPropertyValue(r)}function v0e(t){return function(){delete this[t]}}function y0e(t,r){return function(){this[t]=r}}function b0e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function LX(t){return t.trim().split(/^|\s+/)}function j9(t){return t.classList||new ZX(t)}function ZX(t){this._node=t,this._names=LX(t.getAttribute("class")||"")}function NX(t,r){for(var e=j9(t),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var UX={},Ry=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(UX={mouseenter:"mouseover",mouseleave:"mouseout"}));function J0e(t,r,e){return t=HX(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function HX(t,r,e){return function(i){var o=Ry;Ry=i;try{t.call(this,this.__data__,r,e)}finally{Ry=o}}}function Q0e(t){return t.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 X0e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function $ye(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=e0e);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?h0e:"function"==typeof r?_0e:m0e)(t,r,null==e?"":e)):LC(this.node(),t)},property:function C0e(t,r){return arguments.length>1?this.each((null==r?v0e:"function"==typeof r?b0e:y0e)(t,r)):this.node()[t]},classed:function E0e(t,r){var e=LX(t+"");if(arguments.length<2){for(var i=j9(this.node()),o=-1,a=e.length;++o0)throw new Error("too late; already scheduled");return e}function Ly(t,r){var e=Wd(t,r);if(e.state>2)throw new Error("too late; already started");return e}function Wd(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function YX(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}function $_(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}var fx,q9,KX,P5,GX=180/Math.PI,G9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qX(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:$_(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:$_(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:$_(f,v)},{i:q-2,x:$_(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?L5(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?L5(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=gbe.exec(t))?new Yu(r[1],r[2],r[3],1):(r=vbe.exec(t))?new Yu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=ybe.exec(t))?L5(r[1],r[2],r[3],r[4]):(r=bbe.exec(t))?L5(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Cbe.exec(t))?i$(r[1],r[2]/100,r[3]/100,1):(r=wbe.exec(t))?i$(r[1],r[2]/100,r[3]/100,r[4]):XX.hasOwnProperty(t)?t$(XX[t]):"transparent"===t?new Yu(NaN,NaN,NaN,0):null}function t$(t){return new Yu(t>>16&255,t>>8&255,255&t,1)}function L5(t,r,e,i){return i<=0&&(t=r=e=NaN),new Yu(t,r,e,i)}function Tbe(t){return t instanceof px||(t=_x(t)),t?new Yu((t=t.rgb()).r,t.g,t.b,t.opacity):new Yu}function Z5(t,r,e,i){return 1===arguments.length?Tbe(t):new Yu(t,r,e,null==i?1:i)}function Yu(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function n$(){return"#"+Q9(this.r)+Q9(this.g)+Q9(this.b)}function r$(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Q9(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function i$(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new rp(t,r,e,i)}function o$(t){if(t instanceof rp)return new rp(t.h,t.s,t.l,t.opacity);if(t instanceof px||(t=_x(t)),!t)return new rp;if(t instanceof rp)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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*(e0&&u<1?0:s,new rp(s,l,u,t.opacity)}function rp(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function X9(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function a$(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function s$(t){return function(){return t}}function l$(t,r){return function(e){return t+e*r}}function Dbe(t){return 1==(t=+t)?u$:function(r,e){return e-r?function xbe(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):s$(isNaN(r)?e:r)}}function u$(t,r){var e=r-t;return e?l$(t,e):s$(isNaN(t)?r:t)}J9(px,_x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:$X,formatHex:$X,formatHsl:function kbe(){return o$(this).formatHsl()},formatRgb:e$,toString:e$}),J9(Yu,Z5,QX(px,{brighter:function(r){return r=null==r?R5:Math.pow(R5,r),new Yu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Yu(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:n$,formatHex:n$,formatRgb:r$,toString:r$})),J9(rp,function Ebe(t,r,e,i){return 1===arguments.length?o$(t):new rp(t,r,e,null==i?1:i)},QX(px,{brighter:function(r){return r=null==r?R5:Math.pow(R5,r),new rp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rp(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 Yu(X9(r>=240?r-240:r+120,a,o),X9(r,a,o),X9(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 c$=function t(r){var e=Dbe(r);function i(o,a){var s=e((o=Z5(o)).r,(a=Z5(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=u$(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function d$(t){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=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=ie&&(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:$_(i,o)})),e=eH.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Y9:Ly;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var a1e=dx.prototype.constructor;function p1e(t,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(t,a(s),e)}}return i._value=r,i}var y1e=0;function ip(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function p$(t){return dx().transition(t)}function h$(){return++y1e}var NC=dx.prototype;ip.prototype=p$.prototype={constructor:ip,select:function i1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=U9(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new ip([[t]],w1e,r,+o);return null}function m$(t){return function(){return t}}function T1e(t){return t[0]}function E1e(t){return t[1]}function nH(){this._=null}function N5(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function gx(t,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function vx(t,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function _$(t){for(;t.L;)t=t.L;return t}nH.prototype={constructor:nH,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=_$(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&&(gx(this,i),i=(r=i).U),i.C=!1,o.C=!0,vx(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(vx(this,i),i=(r=i).U),i.C=!1,o.C=!0,gx(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?_$(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,gx(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,vx(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,gx(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,vx(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,gx(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,vx(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var g$=nH;function yx(t,r,e,i){var o=[null,null],a=Tl.push(o)-1;return o.left=t,o.right=r,e&&B5(o,t,r,e),i&&B5(o,r,t,i),Gu[t.index].halfedges.push(a),Gu[r.index].halfedges.push(a),o}function bx(t,r,e){var i=[r,e];return i.left=t,i}function B5(t,r,e,i){t[0]||t[1]?t.left===e?t[1]=i:t[0]=i:(t[0]=i,t.left=r,t.right=e)}function M1e(t,r,e,i,o){var q,a=t[0],s=t[1],l=a[0],u=a[1],v=0,C=1,B=s[0]-l,G=s[1]-u;if(q=r-l,B||!(q>0)){if(q/=B,B<0){if(q0){if(q>C)return;q>v&&(v=q)}if(q=i-l,B||!(q<0)){if(q/=B,B<0){if(q>C)return;q>v&&(v=q)}else if(B>0){if(q0)){if(q/=G,G<0){if(q0){if(q>C)return;q>v&&(v=q)}if(q=o-u,G||!(q<0)){if(q/=G,G<0){if(q>C)return;q>v&&(v=q)}else if(G>0){if(q0)&&!(C<1)||(v>0&&(t[0]=[l+v*B,u+v*G]),C<1&&(t[1]=[l+C*B,u+C*G])),!0}}}}}function S1e(t,r,e,i,o){var a=t[1];if(a)return!0;var q,ae,s=t[0],l=t.left,u=t.right,f=l[0],h=l[1],v=u[0],C=u[1],B=(f+v)/2,G=(h+C)/2;if(C===h){if(B=i)return;if(f>v){if(s){if(s[1]>=o)return}else s=[B,e];a=[B,o]}else{if(s){if(s[1]1)if(f>v){if(s){if(s[1]>=o)return}else s=[(e-ae)/q,e];a=[(o-ae)/q,o]}else{if(s){if(s[1]=i)return}else s=[r,q*r+ae];a=[i,q*i+ae]}else{if(s){if(s[0]=-F1e)){var B=u*u+f*f,G=h*h+v*v,q=(v*B-f*G)/C,ae=(u*G-h*B)/C,he=y$.pop()||new R1e;he.arc=t,he.site=o,he.x=q+s,he.y=(he.cy=ae+l)+Math.sqrt(q*q+ae*ae),t.circle=he;for(var Ye=null,Me=Cx._;Me;)if(he.yLo)l=l.L;else{if(!((s=r-B1e(l,e))>Lo)){a>-Lo?(i=l.P,o=l):s>-Lo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function D1e(t){return Gu[t.index]={site:t,halfedges:[]}}(t);var u=C$(t);if(UC.insert(i,u),i||o){if(i===o)return FC(i),o=C$(i.site),UC.insert(u,o),u.edge=o.edge=yx(i.site,u.site),BC(i),void BC(o);if(!o)return void(u.edge=yx(i.site,u.site));FC(i),FC(o);var f=i.site,h=f[0],v=f[1],C=t[0]-h,B=t[1]-v,G=o.site,q=G[0]-h,ae=G[1]-v,he=2*(C*ae-B*q),Ye=C*C+B*B,Me=q*q+ae*ae,Fe=[(ae*Ye-B*Me)/he+h,(C*Me-q*Ye)/he+v];B5(o.edge,f,G,Fe),u.edge=yx(f,t,null,Fe),o.edge=yx(t,G,null,Fe),BC(i),BC(o)}}function w$(t,r){var e=t.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=t.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],f=u-r;if(!f)return l;var h=l-i,v=1/a-1/f,C=h/f;return v?(-C+Math.sqrt(C*C-2*v*(h*h/(-2*f)-u+f/2+o-a/2)))/v+i:(i+l)/2}function B1e(t,r){var e=t.N;if(e)return w$(e,r);var i=t.site;return i[1]===r?i[0]:1/0}var UC,Gu,Cx,Tl,Lo=1e-6,F1e=1e-12;function U1e(t,r,e){return(t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1])}function H1e(t,r){return r[1]-t[1]||r[0]-t[0]}function oH(t,r){var i,o,a,e=t.sort(H1e).pop();for(Tl=[],Gu=new Array(t.length),UC=new g$,Cx=new g$;;)if(a=rH,e&&(!a||e[1]Lo||Math.abs(a[0][1]-a[1][1])>Lo)||delete Tl[o]})(s,l,u,f),function P1e(t,r,e,i){var a,s,l,u,f,h,v,C,B,G,q,ae,o=Gu.length,he=!0;for(a=0;aLo||Math.abs(ae-B)>Lo)&&(f.splice(u,0,Tl.push(bx(l,G,Math.abs(q-t)Lo?[t,Math.abs(C-t)Lo?[Math.abs(B-i)Lo?[e,Math.abs(C-e)Lo?[Math.abs(B-r)=l)return null;var f=r-u.site[0],h=e-u.site[1],v=f*f+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var B=o.edges[C],G=B.left;if(G!==u.site&&G||(G=B.right)){var q=r-G[0],ae=e-G[1],he=q*q+ae*ae;hei?(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 S$(){var h,v,t=q1e,r=K1e,e=X1e,i=J1e,o=Q1e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Y1e,f=Ff("start","zoom","end"),C=500,G=0;function q(O){O.property("__zoom",M$).on("wheel.zoom",ht).on("mousedown.zoom",Re).on("dblclick.zoom",ut).filter(o).on("touchstart.zoom",kt).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ae(O,H){return(H=Math.max(a[0],Math.min(a[1],H)))===O.k?O:new Rh(H,O.x,O.y)}function he(O,H,te){var re=H[0]-te[0]*O.k,ye=H[1]-te[1]*O.k;return re===O.x&&ye===O.y?O:new Rh(O.k,re,ye)}function Ye(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function Me(O,H,te){O.on("start.zoom",function(){Fe(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Fe(this,arguments).end()}).tween("zoom",function(){var re=this,ye=arguments,pt=Fe(re,ye),xt=r.apply(re,ye),Ce=te||Ye(xt),st=Math.max(xt[1][0]-xt[0][0],xt[1][1]-xt[0][1]),Lt=re.__zoom,Hn="function"==typeof H?H.apply(re,ye):H,er=u(Lt.invert(Ce).concat(st/Lt.k),Hn.invert(Ce).concat(st/Hn.k));return function(Zn){if(1===Zn)Zn=Hn;else{var Cn=er(Zn),ma=st/Cn[2];Zn=new Rh(ma,Ce[0]-Cn[0]*ma,Ce[1]-Cn[1]*ma)}pt.zoom(null,Zn)}})}function Fe(O,H,te){return!te&&O.__zooming||new ft(O,H)}function ft(O,H){this.that=O,this.args=H,this.active=0,this.extent=r.apply(O,H),this.taps=0}function ht(){if(t.apply(this,arguments)){var O=Fe(this,arguments),H=this.__zoom,te=Math.max(a[0],Math.min(a[1],H.k*Math.pow(2,i.apply(this,arguments)))),re=Rd(this);H.k!==te&&(O.wheel?((O.mouse[0][0]!==re[0]||O.mouse[0][1]!==re[1])&&(O.mouse[1]=H.invert(O.mouse[0]=re)),clearTimeout(O.wheel)):(O.mouse=[re,H.invert(re)],iC(this),O.start()),kx(),O.wheel=setTimeout(ye,150),O.zoom("mouse",e(he(ae(H,te),O.mouse[0],O.mouse[1]),O.extent,s)))}function ye(){O.wheel=null,O.end()}}function Re(){if(!v&&t.apply(this,arguments)){var O=Fe(this,arguments,!0),H=gi(Kn.view).on("mousemove.zoom",pt,!0).on("mouseup.zoom",xt,!0),te=Rd(this),re=Kn.clientX,ye=Kn.clientY;jf(Kn.view),sH(),O.mouse=[te,this.__zoom.invert(te)],iC(this),O.start()}function pt(){if(kx(),!O.moved){var Ce=Kn.clientX-re,st=Kn.clientY-ye;O.moved=Ce*Ce+st*st>G}O.zoom("mouse",e(he(O.that.__zoom,O.mouse[0]=Rd(O.that),O.mouse[1]),O.extent,s))}function xt(){H.on("mousemove.zoom mouseup.zoom",null),X1(Kn.view,O.moved),kx(),O.end()}}function ut(){if(t.apply(this,arguments)){var O=this.__zoom,H=Rd(this),te=O.invert(H),re=O.k*(Kn.shiftKey?.5:2),ye=e(he(ae(O,re),H,te),r.apply(this,arguments),s);kx(),l>0?gi(this).transition().duration(l).call(Me,ye,H):gi(this).call(q.transform,ye)}}function kt(){if(t.apply(this,arguments)){var re,ye,pt,xt,O=Kn.touches,H=O.length,te=Fe(this,arguments,Kn.changedTouches.length===H);for(sH(),ye=0;ye=0;l--)(s=t[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,n.GSi)(),function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)}("design:paramtypes",[])],lH);var op=m(8723);function tCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"linearGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.outerLinearGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function nCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"radialGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.radialGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function rCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.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 iCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.Q2q("fill","url(#",e.svg.radialGradient.id,")"),n.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 oCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,rCe,1,7,"circle",2),n.YNc(2,iCe,1,7,"circle",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",e.options.backgroundGradient)}}function aCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(2);n.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 sCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.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 lCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.Q2q("stroke","url(#",e.svg.outerLinearGradient.id,")"),n.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function uCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,sCe,1,5,"path",2),n.YNc(2,lCe,1,5,"path",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",e.options.outerStrokeGradient)}}function cCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function dCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,cCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.title.tspans)}}function fCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=n.oxw(3);n.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),n.xp6(1),n.Oqu(e.svg.units.text)}}function pCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function hCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,pCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.subtitle.tspans)}}function mCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"text",7),n.YNc(1,dCe,2,1,"ng-container",2),n.YNc(2,fCe,2,4,"tspan",2),n.YNc(3,hCe,2,1,"ng-container",2),n.qZA()),2&t){var e=n.oxw(2);n.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),n.xp6(1),n.Q6J("ngIf",e.options.showTitle),n.xp6(1),n.Q6J("ngIf",e.options.showUnits),n.xp6(1),n.Q6J("ngIf",e.options.showSubtitle)}}function _Ce(t,r){if(1&t&&(n.O4$(),n._UZ(0,"image",9)),2&t){var e=n.oxw(2);n.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 gCe(t,r){if(1&t){var e=n.EpF();n.O4$(),n.TgZ(0,"svg",1),n.NdJ("click",function(a){return n.CHM(e),n.oxw().emitClickEvent(a)}),n.TgZ(1,"defs"),n.YNc(2,tCe,3,5,"linearGradient",2),n.YNc(3,nCe,3,5,"radialGradient",2),n.qZA(),n.YNc(4,oCe,3,2,"ng-container",2),n.YNc(5,aCe,1,6,"circle",2),n.YNc(6,uCe,3,2,"ng-container",2),n.YNc(7,mCe,4,6,"text",3),n.YNc(8,_Ce,1,5,"image",4),n.qZA()}if(2&t){var i=n.oxw();n.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),n.xp6(2),n.Q6J("ngIf",i.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",i.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",i.options.showBackground),n.xp6(1),n.Q6J("ngIf",i.options.showInnerStroke),n.xp6(1),n.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),n.xp6(1),n.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),n.xp6(1),n.Q6J("ngIf",i.options.showImage)}}var Tx=(0,V.Z)(function t(){(0,j.Z)(this,t),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=void 0,this.imageWidth=void 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}),Zy=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.elRef=e,this.document=i,this.onClick=new n.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new n.vpe,this._viewportChangedSubscriber=null,this.options=new Tx,this.defaultOptions=new Tx,this._lastPercent=0,this._gradientUUID=null,this.render=function(){o.applyOptions(),o.options.lazy?(null===o.svgElement&&o.draw(o._lastPercent),o.isInViewport&&(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)):(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)},this.polarToCartesian=function(a,s,l,u){var f=u*Math.PI/180;return{x:a+Math.sin(f)*l,y:s-Math.cos(f)*l}},this.draw=function(a){var s=(a=void 0===a?o.options.percent:Math.abs(a))>100?100:a,l=2*o.options.radius+2*o.options.outerStrokeWidth;o.options.showBackground&&(l+=2*o.options.backgroundStrokeWidth+o.max(0,2*o.options.backgroundPadding));var v,C,u={x:l/2,y:l/2},f={x:u.x,y:u.y-o.options.radius},h=o.polarToCartesian(u.x,u.y,o.options.radius,360*(o.options.clockwise?s:100-s)/100);if(100===s&&(h.x=h.x+(o.options.clockwise?-.01:.01)),s>50){var B=o.options.clockwise?[1,1]:[1,0],G=(0,Ut.Z)(B,2);v=G[0],C=G[1]}else{var q=o.options.clockwise?[0,1]:[0,0],ae=(0,Ut.Z)(q,2);v=ae[0],C=ae[1]}var he=o.options.animateTitle?a:o.options.percent,Ye=he>o.options.maxPercent?"".concat(o.options.maxPercent.toFixed(o.options.toFixed),"+"):he.toFixed(o.options.toFixed),Me=o.options.animateSubtitle?a:o.options.percent,Fe={x:u.x,y:u.y,textAnchor:"middle",color:o.options.titleColor,fontSize:o.options.titleFontSize,fontWeight:o.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.titleFormat&&"Function"===o.options.titleFormat.constructor.name){var ft=o.options.titleFormat(he);ft instanceof Array?Fe.texts=(0,$t.Z)(ft):Fe.texts.push(ft.toString())}else"auto"===o.options.title?Fe.texts.push(Ye):o.options.title instanceof Array?Fe.texts=(0,$t.Z)(o.options.title):Fe.texts.push(o.options.title.toString());var ht={x:u.x,y:u.y,textAnchor:"middle",color:o.options.subtitleColor,fontSize:o.options.subtitleFontSize,fontWeight:o.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.subtitleFormat&&"Function"===o.options.subtitleFormat.constructor.name){var Re=o.options.subtitleFormat(Me);Re instanceof Array?ht.texts=(0,$t.Z)(Re):ht.texts.push(Re.toString())}else o.options.subtitle instanceof Array?ht.texts=(0,$t.Z)(o.options.subtitle):ht.texts.push(o.options.subtitle.toString());var ut={text:"".concat(o.options.units),fontSize:o.options.unitsFontSize,fontWeight:o.options.unitsFontWeight,color:o.options.unitsColor},kt=0,x=1;if(o.options.showTitle&&(kt+=Fe.texts.length),o.options.showSubtitle&&(kt+=ht.texts.length),o.options.showTitle){var O,g=(0,cn.Z)(Fe.texts);try{for(g.s();!(O=g.n()).done;){var H=O.value;Fe.tspans.push({span:H,dy:o.getRelativeY(x,kt)}),x++}}catch(pt){g.e(pt)}finally{g.f()}}if(o.options.showSubtitle){var re,te=(0,cn.Z)(ht.texts);try{for(te.s();!(re=te.n()).done;){var ye=re.value;ht.tspans.push({span:ye,dy:o.getRelativeY(x,kt)}),x++}}catch(pt){te.e(pt)}finally{te.f()}}null===o._gradientUUID&&(o._gradientUUID=o.uuid()),o.svg={viewBox:"0 0 ".concat(l," ").concat(l),width:o.options.responsive?"100%":l,height:o.options.responsive?"100%":l,backgroundCircle:{cx:u.x,cy:u.y,r:o.options.radius+o.options.outerStrokeWidth/2+o.options.backgroundPadding,fill:o.options.backgroundColor,fillOpacity:o.options.backgroundOpacity,stroke:o.options.backgroundStroke,strokeWidth:o.options.backgroundStrokeWidth},path:{d:"M ".concat(f.x," ").concat(f.y,"\n A ").concat(o.options.radius," ").concat(o.options.radius," 0 ").concat(v," ").concat(C," ").concat(h.x," ").concat(h.y),stroke:o.options.outerStrokeColor,strokeWidth:o.options.outerStrokeWidth,strokeLinecap:o.options.outerStrokeLinecap,fill:"none"},circle:{cx:u.x,cy:u.y,r:o.options.radius-o.options.space-o.options.outerStrokeWidth/2-o.options.innerStrokeWidth/2,fill:"none",stroke:o.options.innerStrokeColor,strokeWidth:o.options.innerStrokeWidth},title:Fe,units:ut,subtitle:ht,image:{x:u.x-o.options.imageWidth/2,y:u.y-o.options.imageHeight/2,src:o.options.imageSrc,width:o.options.imageWidth,height:o.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+o._gradientUUID,colorStop1:o.options.outerStrokeColor,colorStop2:"transparent"===o.options.outerStrokeGradientStopColor?"#FFF":o.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+o._gradientUUID,colorStop1:o.options.backgroundColor,colorStop2:"transparent"===o.options.backgroundGradientStopColor?"#FFF":o.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(a,s){var u,f,h,v=o.options.startFromZero||a<0?0:a,C=s<0?0:o.min(s,o.options.maxPercent),B=Math.abs(Math.round(C-v));return B>=100?(u=100,f=o.options.animateTitle||o.options.animateSubtitle?Math.round(B/u):1):(u=B,f=1),(h=Math.round(o.options.animationDuration/u))<10&&(h=10,u=o.options.animationDuration/h,f=!o.options.animateTitle&&!o.options.animateSubtitle&&B>100?Math.round(100/u):Math.round(B/u)),f<1&&(f=1),{times:u,step:f,interval:h}},this.animate=function(a,s){o._timerSubscription&&!o._timerSubscription.closed&&o._timerSubscription.unsubscribe();var l=o.options.startFromZero?0:a,u=s,f=o.getAnimationParameters(l,u),h=f.step,v=f.interval,C=l;o._timerSubscription=l=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())}):(0,op.H)(0,v).subscribe(function(){(C-=h)>=u?!o.options.animateTitle&&!o.options.animateSubtitle&&u>=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())})},this.emitClickEvent=function(a){o.options.renderOnClick&&o.animate(0,o.options.percent),o.onClick.emit(a)},this.applyOptions=function(){for(var a=0,s=Object.keys(o.options);a0?+o.options.percent:0,o.options.maxPercent=Math.abs(+o.options.maxPercent),o.options.animationDuration=Math.abs(o.options.animationDuration),o.options.outerStrokeWidth=Math.abs(+o.options.outerStrokeWidth),o.options.innerStrokeWidth=Math.abs(+o.options.innerStrokeWidth),o.options.backgroundPadding=+o.options.backgroundPadding},this.getRelativeY=function(a,s){return(1*(a-s/2)-.18).toFixed(2)+"em"},this.min=function(a,s){return as?a:s},this.uuid=function(){var a=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var u=(a+16*Math.random())%16|0;return a=Math.floor(a/16),("x"==l?u:3&u|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var a=this.elRef.nativeElement.getElementsByTagName("svg");a.length>0&&(this.svgElement=a[0])}},this.checkViewport=function(){o.findSvgElement();var a=o.isInViewport;o.isInViewport=o.isElementInViewport(o.svgElement),a!==o.isInViewport&&o.onViewportChanged.emit({oldValue:a,newValue:o.isInViewport})},this.onScroll=function(a){o.checkViewport()},this.loadEventsForLazyMode=function(){if(o.options.lazy){o.document.addEventListener("scroll",o.onScroll,!0),o.window.addEventListener("resize",o.onScroll,!0),null===o._viewportChangedSubscriber&&(o._viewportChangedSubscriber=o.onViewportChanged.subscribe(function(s){s.oldValue;s.newValue&&o.render()}));var a=(0,op.H)(0,50).subscribe(function(){null===o.svgElement?o.checkViewport():a.unsubscribe()})}},this.unloadEventsForLazyMode=function(){o.document.removeEventListener("scroll",o.onScroll,!0),o.window.removeEventListener("resize",o.onScroll,!0),null!==o._viewportChangedSubscriber&&(o._viewportChangedSubscriber.unsubscribe(),o._viewportChangedSubscriber=null)},this.document=i,this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,V.Z)(t,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{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())}}]),t}();Zy.\u0275fac=function(r){return new(r||Zy)(n.Y36(Tx),n.Y36(n.SBq),n.Y36(Ct.K0))},Zy.\u0275cmp=n.Xpm({type:Zy,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:[n.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&&n.YNc(0,gCe,9,11,"svg",0),2&r&&n.Q6J("ngIf",e.svg)},directives:[Ct.O5,Ct.sg],encapsulation:2}),Zy.ctorParameters=function(){return[{type:Tx},{type:n.SBq},{type:void 0,decorators:[{type:n.tBr,args:[Ct.K0]}]}]},Zy.propDecorators={onClick:[{type:n.r_U}],name:[{type:n.IIB}],class:[{type:n.IIB}],backgroundGradient:[{type:n.IIB}],backgroundColor:[{type:n.IIB}],backgroundGradientStopColor:[{type:n.IIB}],backgroundOpacity:[{type:n.IIB}],backgroundStroke:[{type:n.IIB}],backgroundStrokeWidth:[{type:n.IIB}],backgroundPadding:[{type:n.IIB}],radius:[{type:n.IIB}],space:[{type:n.IIB}],percent:[{type:n.IIB}],toFixed:[{type:n.IIB}],maxPercent:[{type:n.IIB}],renderOnClick:[{type:n.IIB}],units:[{type:n.IIB}],unitsFontSize:[{type:n.IIB}],unitsFontWeight:[{type:n.IIB}],unitsColor:[{type:n.IIB}],outerStrokeGradient:[{type:n.IIB}],outerStrokeWidth:[{type:n.IIB}],outerStrokeColor:[{type:n.IIB}],outerStrokeGradientStopColor:[{type:n.IIB}],outerStrokeLinecap:[{type:n.IIB}],innerStrokeColor:[{type:n.IIB}],innerStrokeWidth:[{type:n.IIB}],titleFormat:[{type:n.IIB}],title:[{type:n.IIB}],titleColor:[{type:n.IIB}],titleFontSize:[{type:n.IIB}],titleFontWeight:[{type:n.IIB}],subtitleFormat:[{type:n.IIB}],subtitle:[{type:n.IIB}],subtitleColor:[{type:n.IIB}],subtitleFontSize:[{type:n.IIB}],subtitleFontWeight:[{type:n.IIB}],imageSrc:[{type:n.IIB}],imageHeight:[{type:n.IIB}],imageWidth:[{type:n.IIB}],animation:[{type:n.IIB}],animateTitle:[{type:n.IIB}],animateSubtitle:[{type:n.IIB}],animationDuration:[{type:n.IIB}],showTitle:[{type:n.IIB}],showSubtitle:[{type:n.IIB}],showUnits:[{type:n.IIB}],showImage:[{type:n.IIB}],showBackground:[{type:n.IIB}],showInnerStroke:[{type:n.IIB}],clockwise:[{type:n.IIB}],responsive:[{type:n.IIB}],startFromZero:[{type:n.IIB}],showZeroOuterStroke:[{type:n.IIB}],lazy:[{type:n.IIB}],templateOptions:[{type:n.IIB,args:["options"]}]};var HC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[{provide:Tx,useValue:e}]}}}]),t}();HC.\u0275fac=function(r){return new(r||HC)},HC.\u0275mod=n.oAB({type:HC}),HC.\u0275inj=n.cJS({imports:[[Ct.ez]]});var uH=function(){function t(r){(0,j.Z)(this,t),this.rawFile=r;var e=function vCe(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}(r),i=e?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,V.Z)(t,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+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}}]),t}(),yCe=function(){function t(r,e,i){(0,j.Z)(this,t),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.index=void 0,this.uploader=r,this.some=e,this.options=i,this.file=new uH(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,V.Z)(t,[{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}}]),t}(),jC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"getMimeClass",value:function(e){var i="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?i="image":e.type.match("video.*")?i="video":e.type.match("audio.*")?i="audio":"application/pdf"===e.type?i="pdf":-1!==this.mime_compress.indexOf(e.type)?i="compress":-1!==this.mime_doc.indexOf(e.type)?i="doc":-1!==this.mime_xsl.indexOf(e.type)?i="xls":-1!==this.mime_ppt.indexOf(e.type)&&(i="ppt"),"application"===i&&(i=this.fileTypeDetection(e.name)),i}},{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]}}]),t}();jC.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"],jC.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"],jC.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"],jC.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],jC.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 t(r){(0,j.Z)(this,t),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},this.setOptions(r),this.response=new n.vpe}return(0,V.Z)(t,[{key:"setOptions",value:function(e){this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;ithis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(jC.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)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(G){var q=i.options.additionalParameter[G];"string"==typeof q&&q.indexOf("{{file_name}}")>=0&&(q=q.replace("{{file_name}}",e.file.name)),s.append(G,q)}),this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(G){var q=Math.round(G.lengthComputable?100*G.loaded/G.total:0);i._onProgressItem(e,q)},a.onload=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G),ae=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+ae+"Item"](e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onerror=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onErrorItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onabort=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onCancelItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var f,u=(0,cn.Z)(this.options.headers);try{for(u.s();!(f=u.n()).done;){var h=f.value;a.setRequestHeader(h.name,h.value)}}catch(G){u.e(G)}finally{u.f()}}if(e.headers.length){var C,v=(0,cn.Z)(e.headers);try{for(v.s();!(C=v.n()).done;){var B=C.value;a.setRequestHeader(B.name,B.value)}}catch(G){v.e(G)}finally{v.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(G){return a.send(JSON.stringify(G))}):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){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){var i=e.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=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)}}]),t}(),Zc=function(){function t(r){(0,j.Z)(this,t),this.onFileSelected=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e=this.element.nativeElement.files,i=this.getOptions(),o=this.getFilters();this.uploader.addToQueue(e,i,o),this.onFileSelected.emit(e),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),t}();Zc.\u0275fac=function(r){return new(r||Zc)(n.Y36(n.SBq))},Zc.\u0275dir=n.lG2({type:Zc,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&n.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),Zc.ctorParameters=function(){return[{type:n.SBq}]},Zc.propDecorators={uploader:[{type:n.IIB}],onFileSelected:[{type:n.r_U}],onChange:[{type:n.L6J,args:["change"]}]};var zC=function(){function t(r){(0,j.Z)(this,t),this.fileOver=new n.vpe,this.onFileDrop=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"onDrop",value:function(e){var i=this._getTransfer(e);if(i){var o=this.getOptions(),a=this.getFilters();this._preventAndStop(e),this.uploader.addToQueue(i.files,o,a),this.fileOver.emit(!1),this.onFileDrop.emit(i.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"))}}]),t}();zC.\u0275fac=function(r){return new(r||zC)(n.Y36(n.SBq))},zC.\u0275dir=n.lG2({type:zC,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&n.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"}}),zC.ctorParameters=function(){return[{type:n.SBq}]},zC.propDecorators={uploader:[{type:n.IIB}],fileOver:[{type:n.r_U}],onFileDrop:[{type:n.r_U}],onDrop:[{type:n.L6J,args:["drop",["$event"]]}],onDragOver:[{type:n.L6J,args:["dragover",["$event"]]}],onDragLeave:[{type:n.L6J,args:["dragleave",["$event"]]}]};var WC=(0,V.Z)(function t(){(0,j.Z)(this,t)});WC.\u0275fac=function(r){return new(r||WC)},WC.\u0275mod=n.oAB({type:WC}),WC.\u0275inj=n.cJS({imports:[[Ct.ez]]});var cH=function(){function t(){}return Object.defineProperty(t.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(t.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),t}(),CCe=function(){var t=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}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),x$=function(t){function r(){return t.call(this)||this}return CCe(r,t),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=n.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(cH);x$.ctorParameters=function(){return[]};var D$=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:cH,useClass:x$}]}),t}();D$.ctorParameters=function(){return[]};var sl=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),Ny=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this)}return(0,V.Z)(e)}(sl);Ny.\u0275fac=function(r){return new(r||Ny)},Ny.\u0275prov=n.Yz7({token:Ny,factory:Ny.\u0275fac}),Ny.ctorParameters=function(){return[]};var VC=(0,V.Z)(function t(){(0,j.Z)(this,t)});VC.\u0275fac=function(r){return new(r||VC)},VC.\u0275mod=n.oAB({type:VC}),VC.\u0275inj=n.cJS({providers:[{provide:sl,useClass:Ny}]});var Ex=m(4942),Mx=m(7326),YC=m(1737),wCe=m(4450),A$=m(1961),H5=m(8514),By=m(8896),kCe=m(1762),O$=m(2014),Vd=m(7221),Sx=m(1406),TCe=m(8127),GC=m(7224),ECe=m(4327),I$=m(537),dH=m(9146),Lh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.id=r,this.url=e}),j5=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=l,a}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),Zh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Lh),fH=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).reason=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),P$=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).error=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Lh),MCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),SCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),xCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u}return(0,V.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}(Lh),DCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),ACe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),R$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),L$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),OCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),t}(),ICe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),t}(),PCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),t}(),RCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),t}(),Z$=function(){function t(r,e,i){(0,j.Z)(this,t),this.routerEvent=r,this.position=e,this.anchor=i}return(0,V.Z)(t,[{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,"')")}}]),t}(),Fi="primary",LCe=function(){function t(r){(0,j.Z)(this,t),this.params=r||{}}return(0,V.Z)(t,[{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)}}]),t}();function qC(t){return new LCe(t)}var N$="ngNavigationCancelingError";function pH(t){var r=Error("NavigationCancelingError: "+t);return r[N$]=!0,r}function NCe(t,r,e){var i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(r.hasChildren()||i.length0?t[t.length-1]:null}function ll(t,r){for(var e in t)t.hasOwnProperty(e)&&r(t[e],e)}function sp(t){return(0,n.CqO)(t)?t:(0,n.QGY)(t)?(0,el.D)(Promise.resolve(t)):(0,pr.of)(t)}var UCe={exact:function z$(t,r,e){if(!Uy(t.segments,r.segments)||!z5(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!t.children[i]||!z$(t.children[i],r.children[i],e))return!1;return!0},subset:W$},H$={exact:function HCe(t,r){return ap(t,r)},subset:function jCe(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(function(e){return B$(t[e],r[e])})},ignored:function(){return!0}};function j$(t,r,e){return UCe[e.paths](t.root,r.root,e.matrixParams)&&H$[e.queryParams](t.queryParams,r.queryParams)&&!("exact"===e.fragment&&t.fragment!==r.fragment)}function W$(t,r,e){return V$(t,r,r.segments,e)}function V$(t,r,e,i){if(t.segments.length>e.length){var o=t.segments.slice(0,e.length);return!(!Uy(o,e)||r.hasChildren()||!z5(o,e,i))}if(t.segments.length===e.length){if(!Uy(t.segments,e)||!z5(t.segments,e,i))return!1;for(var a in r.children)if(!t.children[a]||!W$(t.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,t.segments.length),l=e.slice(t.segments.length);return!!(Uy(t.segments,s)&&z5(t.segments,s,i)&&t.children[Fi])&&V$(t.children[Fi],r,l,i)}function z5(t,r,e){return r.every(function(i,o){return H$[e](t[o].parameters,i.parameters)})}var Fy=function(){function t(r,e,i){(0,j.Z)(this,t),this.root=r,this.queryParams=e,this.fragment=i}return(0,V.Z)(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return VCe.serialize(this)}}]),t}(),Vi=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this.segments=r,this.children=e,this.parent=null,ll(e,function(o,a){return o.parent=i})}return(0,V.Z)(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return W5(this)}}]),t}(),xx=function(){function t(r,e){(0,j.Z)(this,t),this.path=r,this.parameters=e}return(0,V.Z)(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=qC(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return J$(this)}}]),t}();function Uy(t,r){return t.length===r.length&&t.every(function(e,i){return e.path===r[i].path})}var Y$=(0,V.Z)(function t(){(0,j.Z)(this,t)}),G$=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"parse",value:function(e){var i=new ewe(e);return new Fy(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(Dx(e.root,!0)),o=function qCe(t){var r=Object.keys(t).map(function(e){var i=t[e];return Array.isArray(i)?i.map(function(o){return"".concat(V5(e),"=").concat(V5(o))}).join("&"):"".concat(V5(e),"=").concat(V5(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function YCe(t){return encodeURI(t)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),t}(),VCe=new G$;function W5(t){return t.segments.map(function(r){return J$(r)}).join("/")}function Dx(t,r){if(!t.hasChildren())return W5(t);if(r){var e=t.children[Fi]?Dx(t.children[Fi],!1):"",i=[];return ll(t.children,function(a,s){s!==Fi&&i.push("".concat(s,":").concat(Dx(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function WCe(t,r){var e=[];return ll(t.children,function(i,o){o===Fi&&(e=e.concat(r(i,o)))}),ll(t.children,function(i,o){o!==Fi&&(e=e.concat(r(i,o)))}),e}(t,function(a,s){return s===Fi?[Dx(t.children[Fi],!1)]:["".concat(s,":").concat(Dx(a,!1))]});return 1===Object.keys(t.children).length&&null!=t.children[Fi]?"".concat(W5(t),"/").concat(o[0]):"".concat(W5(t),"/(").concat(o.join("//"),")")}function q$(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function V5(t){return q$(t).replace(/%3B/gi,";")}function hH(t){return q$(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Y5(t){return decodeURIComponent(t)}function K$(t){return Y5(t.replace(/\+/g,"%20"))}function J$(t){return"".concat(hH(t.path)).concat(function GCe(t){return Object.keys(t).map(function(r){return";".concat(hH(r),"=").concat(hH(t[r]))}).join("")}(t.parameters))}var KCe=/^[^\/()?;=#]+/;function G5(t){var r=t.match(KCe);return r?r[0]:""}var JCe=/^[^=?&#]+/;var XCe=/^[^&#]+/;var ewe=function(){function t(r){(0,j.Z)(this,t),this.url=r,this.remaining=r}return(0,V.Z)(t,[{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[Fi]=new Vi(e,i)),o}},{key:"parseSegment",value:function(){var e=G5(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new xx(Y5(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=G5(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=G5(this.remaining);a&&(o=a,this.capture(o))}e[Y5(i)]=Y5(o)}}},{key:"parseQueryParam",value:function(e){var i=function QCe(t){var r=t.match(JCe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function $Ce(t){var r=t.match(XCe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=K$(i),l=K$(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=G5(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Fi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[Fi]: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 Error('Expected "'.concat(e,'".'))}}]),t}(),Q$=function(){function t(r){(0,j.Z)(this,t),this._root=r}return(0,V.Z)(t,[{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=mH(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=mH(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=_H(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 _H(e,this._root).map(function(i){return i.value})}}]),t}();function mH(t,r){if(t===r.value)return r;var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=mH(t,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function _H(t,r){if(t===r.value)return[r];var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=_H(t,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var Nh=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.children=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function KC(t){var r={};return t&&t.children.forEach(function(e){return r[e.value.outlet]=e}),r}var X$=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,i)).snapshot=o,gH((0,Mx.Z)(a),i),a}return(0,V.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(Q$);function $$(t,r){var e=function twe(t,r){var s=new q5([],{},{},"",{},Fi,r,null,t.root,-1,{});return new tee("",new Nh(s,[]))}(t,r),i=new go.X([new xx("",{})]),o=new go.X({}),a=new go.X({}),s=new go.X({}),l=new go.X(""),u=new xr(i,o,s,l,a,Fi,r,e.root);return u.snapshot=e.root,new X$(new Nh(u,[]),e)}var xr=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this._futureSnapshot=u}return(0,V.Z)(t,[{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,mr.U)(function(e){return qC(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mr.U)(function(e){return qC(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function eee(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=t.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 nwe(e.slice(i))}function nwe(t){return t.reduce(function(r,e){return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign({},r.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var q5=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=h,this._resolve=v}return(0,V.Z)(t,[{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=qC(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(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,"')")}}]),t}(),tee=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).url=i,gH((0,Mx.Z)(a),o),a}return(0,V.Z)(e,[{key:"toString",value:function(){return nee(this._root)}}]),e}(Q$);function gH(t,r){r.value._routerState=t,r.children.forEach(function(e){return gH(t,e)})}function nee(t){var r=t.children.length>0?" { ".concat(t.children.map(nee).join(", ")," } "):"";return"".concat(t.value).concat(r)}function vH(t){if(t.snapshot){var r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ap(r.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),r.fragment!==e.fragment&&t.fragment.next(e.fragment),ap(r.params,e.params)||t.params.next(e.params),function BCe(t,r){if(t.length!==r.length)return!1;for(var e=0;eo;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new CH(i,!1,o-a)}(e.snapshot._urlSegment,s,t.numberOfDoubleDots)}(a,r,t),l=s.processChildren?J5(s.segmentGroup,s.index,a.commands):oee(s.segmentGroup,s.index,a.commands);return bH(r.root,s.segmentGroup,l,i,o)}function K5(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ox(t){return"object"==typeof t&&null!=t&&t.outlets}function bH(t,r,e,i,o){var a={};if(i&&ll(i,function(l,u){a[u]=Array.isArray(l)?l.map(function(f){return"".concat(f)}):"".concat(l)}),t===r)return new Fy(e,a,o);var s=ree(t,r,e);return new Fy(s,a,o)}function ree(t,r,e){var i={};return ll(t.children,function(o,a){i[a]=o===r?e:ree(o,r,e)}),new Vi(t.segments,i)}var iee=function(){function t(r,e,i){if((0,j.Z)(this,t),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&K5(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(Ox);if(o&&o!==U$(i))throw new Error("{outlets:{}} has to be the last command")}return(0,V.Z)(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}();var CH=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.segmentGroup=r,this.processChildren=e,this.index=i});function oee(t,r,e){if(t||(t=new Vi([],{})),0===t.segments.length&&t.hasChildren())return J5(t,r,e);var i=function dwe(t,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o=e.length)return a;var s=t.segments[o],l=e[i];if(Ox(l))break;var u="".concat(l),f=i0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!see(u,f,s))return a;i+=2}else{if(!see(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",e=0;e0)?Object.assign({},cee):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||NCe)(e,t,r);if(!a)return Object.assign({},cee);var s={};ll(a.posParams,function(u,f){s[f]=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 X5(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Swe(t,e,i)){var a=new Vi(r,Mwe(t,r,i,new Vi(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&xwe(t,e,i)){var s=new Vi(t.segments,Ewe(t,r,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new Vi(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Ewe(t,r,e,i,o,a){var u,s={},l=(0,cn.Z)(i);try{for(l.s();!(u=l.n()).done;){var f=u.value;if($5(t,e,f)&&!o[Nc(f)]){var h=new Vi([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:r.length,s[Nc(f)]=h}}}catch(v){l.e(v)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function Mwe(t,r,e,i){var o={};o[Fi]=i,i._sourceSegment=t,i._segmentIndexShift=r.length;var s,a=(0,cn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&Nc(l)!==Fi){var u=new Vi([],{});u._sourceSegment=t,u._segmentIndexShift=r.length,o[Nc(l)]=u}}}catch(f){a.e(f)}finally{a.f()}return o}function Swe(t,r,e){return e.some(function(i){return $5(t,r,i)&&Nc(i)!==Fi})}function xwe(t,r,e){return e.some(function(i){return $5(t,r,i)})}function $5(t,r,e){return(!(t.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function dee(t,r,e,i){return!!(Nc(t)===i||i!==Fi&&$5(r,e,t))&&("**"===t.path||Q5(r,t,e).matched)}function fee(t,r,e){return 0===r.length&&!t.children[e]}var eZ=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.segmentGroup=r||null}),pee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.urlTree=r});function Lx(t){return(0,YC._)(new eZ(t))}function hee(t){return(0,YC._)(new pee(t))}function Dwe(t){return(0,YC._)(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}var Iwe=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(n.h0i)}return(0,V.Z)(t,[{key:"apply",value:function(){var e=this,i=X5(this.urlTree.root,[],[],this.config).segmentGroup,o=new Vi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,Fi).pipe((0,mr.U)(function(l){return e.createUrlTree(EH(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Vd.K)(function(l){if(l instanceof pee)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof eZ?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Fi).pipe((0,mr.U)(function(s){return i.createUrlTree(EH(s),e.queryParams,e.fragment)})).pipe((0,Vd.K)(function(s){throw s instanceof eZ?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,i,o){var a=e.segments.length>0?new Vi([],(0,Ex.Z)({},Fi,e)):e;return new Fy(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,mr.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);l1||!a.children[Fi])return Dwe(e.redirectTo);a=a.children[Fi]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreatreUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new Fy(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return ll(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 ll(i.children,function(f,h){u[h]=s.createSegmentGroup(e,f,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 Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,cn.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}}]),t}();function EH(t){for(var r={},e=0,i=Object.keys(t.children);e0||s.hasChildren())&&(r[o]=s)}return function Pwe(t){if(1===t.numberOfChildren&&t.children[Fi]){var r=t.children[Fi];return new Vi(t.segments.concat(r.segments),r.children)}return t}(new Vi(t.segments,r))}function Rwe(t,r,e,i){return(0,xo.w)(function(o){return function Owe(t,r,e,i,o){return new Iwe(t,r,e,i,o).apply()}(t,r,e,o.extractedUrl,i).pipe((0,mr.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var mee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.path=r,this.route=this.path[this.path.length-1]}),tZ=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.component=r,this.route=e});function Lwe(t,r,e){var i=t._root;return Zx(i,r?r._root:null,e,[i.value])}function nZ(t,r,e){var i=function Nwe(t){if(!t)return null;for(var r=t.parent;r;r=r.parent){var e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(r);return(i?i.module.injector:e).get(t)}function Zx(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=KC(r);return t.children.forEach(function(s){Bwe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),ll(a,function(s,l){return Nx(s,e.getContext(l),o)}),o}function Bwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=r?r.value:null,l=e?e.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Fwe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new mee(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?Zx(t,r,l?l.children:null,i,o):Zx(t,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new tZ(l.outlet.component,s))}else s&&Nx(r,l,o),o.canActivateChecks.push(new mee(i)),a.component?Zx(t,null,l?l.children:null,i,o):Zx(t,null,e,i,o);return o}function Fwe(t,r,e){if("function"==typeof e)return e(t,r);switch(e){case"pathParamsChange":return!Uy(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Uy(t.url,r.url)||!ap(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yH(t,r)||!ap(t.queryParams,r.queryParams);default:return!yH(t,r)}}function Nx(t,r,e){var i=KC(t),o=t.value;ll(i,function(a,s){o.component?Nx(a,r?r.children.getContext(s):null,e):Nx(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new tZ(r.outlet.component,o)):e.canDeactivateChecks.push(new tZ(null,o))}function Uwe(t,r){return(0,Ea.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,pr.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Hwe(t,r,e,i){return(0,el.D)(t).pipe((0,Ea.zg)(function(o){return function Gwe(t,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,pr.of)(!0);var s=a.map(function(l){var f,u=nZ(l,r,o);if(function bwe(t){return t&&tg(t.canDeactivate)}(u))f=sp(u.canDeactivate(t,r,e,i));else{if(!tg(u))throw new Error("Invalid CanDeactivate guard");f=sp(u(t,r,e,i))}return f.pipe((0,GC.P)())});return(0,pr.of)(s).pipe(Px())}(o.component,o.route,e,r,i)}),(0,GC.P)(function(o){return!0!==o},!0))}(l,i,o,t).pipe((0,Ea.zg)(function(u){return u&&function _we(t){return"boolean"==typeof t}(u)?function jwe(t,r,e,i){return(0,el.D)(r).pipe((0,Sx.b)(function(o){return(0,A$.z)(function Wwe(t,r){return null!==t&&r&&r(new OCe(t)),(0,pr.of)(!0)}(o.route.parent,i),function zwe(t,r){return null!==t&&r&&r(new PCe(t)),(0,pr.of)(!0)}(o.route,i),function Ywe(t,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Zwe(t){var r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,H5.P)(function(){var l=s.guards.map(function(u){var h,f=nZ(u,s.node,e);if(function ywe(t){return t&&tg(t.canActivateChild)}(f))h=sp(f.canActivateChild(i,t));else{if(!tg(f))throw new Error("Invalid CanActivateChild guard");h=sp(f(i,t))}return h.pipe((0,GC.P)())});return(0,pr.of)(l).pipe(Px())})});return(0,pr.of)(a).pipe(Px())}(t,o.path,e),function Vwe(t,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,pr.of)(!0);var o=i.map(function(a){return(0,H5.P)(function(){var l,s=nZ(a,r,e);if(function vwe(t){return t&&tg(t.canActivate)}(s))l=sp(s.canActivate(r,t));else{if(!tg(s))throw new Error("Invalid CanActivate guard");l=sp(s(r,t))}return l.pipe((0,GC.P)())})});return(0,pr.of)(o).pipe(Px())}(t,o.route,e))}),(0,GC.P)(function(o){return!0!==o},!0))}(i,s,t,r):(0,pr.of)(u)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}var qwe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function _ee(t){return new fo.y(function(r){return r.error(t)})}var Jwe=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.rootComponentType=r,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,V.Z)(t,[{key:"recognize",value:function(){var e=X5(this.urlTree.root,[],[],this.config.filter(function(l){return void 0===l.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,e,Fi);if(null===i)return null;var o=new q5([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Nh(o,i),s=new tee(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=eee(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){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,i):this.processSegment(e,i,i.segments,o)}},{key:"processChildren",value:function(e,i){for(var o=[],a=0,s=Object.keys(i.children);a0?U$(o).parameters:{};s=new q5(o,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bee(e),Nc(e),e.component,e,vee(i),yee(i)+o.length,Cee(e))}else{var h=Q5(i,e,o);if(!h.matched)return null;l=h.consumedSegments,u=h.remainingSegments,s=new q5(l,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bee(e),Nc(e),e.component,e,vee(i),yee(i)+l.length,Cee(e))}var v=function Xwe(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),C=X5(i,l,u,v.filter(function(Ye){return void 0===Ye.redirectTo}),this.relativeLinkResolution),B=C.segmentGroup,G=C.slicedSegments;if(0===G.length&&B.hasChildren()){var q=this.processChildren(v,B);return null===q?null:[new Nh(s,q)]}if(0===v.length&&0===G.length)return[new Nh(s,[])];var ae=Nc(e)===a,he=this.processSegment(v,B,G,ae?Fi:a);return null===he?null:[new Nh(s,he)]}}]),t}();function gee(t){var o,r=[],e=new Set,i=(0,cn.Z)(t);try{var a=function(){var C=o.value;if(!function $we(t){var r=t.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(C))return r.push(C),"continue";var G,B=r.find(function(q){return C.value.routeConfig===q.value.routeConfig});void 0!==B?((G=B.children).push.apply(G,(0,$t.Z)(C.children)),e.add(B)):r.push(C)};for(i.s();!(o=i.n()).done;)a()}catch(v){i.e(v)}finally{i.f()}var u,l=(0,cn.Z)(e);try{for(l.s();!(u=l.n()).done;){var f=u.value,h=gee(f.children);r.push(new Nh(f.value,h))}}catch(v){l.e(v)}finally{l.f()}return r.filter(function(v){return!e.has(v)})}function vee(t){for(var r=t;r._sourceSegment;)r=r._sourceSegment;return r}function yee(t){for(var r=t,e=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)e+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return e-1}function bee(t){return t.data||{}}function Cee(t){return t.resolve||{}}function eke(t,r,e,i,o){return(0,Ea.zg)(function(a){return function Kwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Jwe(t,r,e,i,o,a).recognize();return null===s?_ee(new qwe):(0,pr.of)(s)}catch(l){return _ee(l)}}(t,r,a.urlAfterRedirects,e(a.urlAfterRedirects),i,o).pipe((0,mr.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}function tke(t,r){return(0,Ea.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,pr.of)(e);var a=0;return(0,el.D)(o).pipe((0,Sx.b)(function(s){return function nke(t,r,e,i){return function rke(t,r,e,i){var o=wee(t);if(0===o.length)return(0,pr.of)({});var a={};return(0,el.D)(o).pipe((0,Ea.zg)(function(s){return function ike(t,r,e,i){var o=nZ(t,r,i);return o.resolve?sp(o.resolve(r,e)):sp(o(r,e))}(t[s],r,e,i).pipe((0,hs.b)(function(l){a[s]=l}))}),(0,LM.h)(1),(0,Ea.zg)(function(){return wee(a).length===o.length?(0,pr.of)(a):By.E}))}(t._resolve,t,r,i).pipe((0,mr.U)(function(a){return t._resolvedData=a,t.data=Object.assign(Object.assign({},t.data),eee(t,e).resolve),null}))}(s.route,i,t,r)}),(0,hs.b)(function(){return a++}),(0,LM.h)(1),(0,Ea.zg)(function(s){return a===o.length?(0,pr.of)(e):By.E}))})}function wee(t){return[].concat((0,$t.Z)(Object.keys(t)),(0,$t.Z)(Object.getOwnPropertySymbols(t)))}function MH(t){return(0,xo.w)(function(r){var e=t(r);return e?(0,el.D)(e).pipe((0,mr.U)(function(){return r})):(0,pr.of)(r)})}var oke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ake=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),ske=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ake),SH=new n.OlP("ROUTES"),kee=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.injector=r,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,V.Z)(t,[{key:"load",value:function(e,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,mr.U)(function(l){o.onLoadEndListener&&o.onLoadEndListener(i);var u=l.create(e);return new kH(F$(u.injector.get(SH,void 0,n.XFs.Self|n.XFs.Optional)).map(TH),u)}),(0,Vd.K)(function(l){throw i._loader$=void 0,l}));return i._loader$=new kCe.c(s,function(){return new qn.xQ}).pipe((0,ECe.x)()),i._loader$}},{key:"loadModuleFactory",value:function(e){var i=this;return sp(e()).pipe((0,Ea.zg)(function(o){return o instanceof n.YKP?(0,pr.of)(o):(0,el.D)(i.compiler.compileModuleAsync(o))}))}}]),t}(),lke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),uke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),t}();function cke(t){throw t}function dke(t,r,e){return r.parse("/")}function Tee(t,r){return(0,pr.of)(null)}var fke={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pke={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kr=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),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 qn.xQ,this.errorHandler=cke,this.malformedUriErrorHandler=dke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Tee,afterPreactivation:Tee},this.urlHandlingStrategy=new uke,this.routeReuseStrategy=new ske,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.ngModule=a.get(n.h0i),this.console=a.get(n.c2e);var v=a.get(n.R0b);this.isNgZoneEnabled=v instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function FCe(){return new Fy(new Vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kee(a,s,function(B){return u.triggerEvent(new R$(B))},function(B){return u.triggerEvent(new L$(B))}),this.routerState=$$(this.currentUrlTree,this.rootComponentType),this.transitions=new go.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,V.Z)(t,[{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,Ei.h)(function(a){return 0!==a.id}),(0,mr.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,xo.w)(function(a){var s=!1,l=!1;return(0,pr.of)(a).pipe((0,hs.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,xo.w)(function(u){var f=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==f||f!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Eee(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,pr.of)(u).pipe((0,xo.w)(function(Fe){var ft=i.transitions.getValue();return o.next(new j5(Fe.id,i.serializeUrl(Fe.extractedUrl),Fe.source,Fe.restoredState)),ft!==i.transitions.getValue()?By.E:Promise.resolve(Fe)}),Rwe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,hs.b)(function(Fe){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Fe.urlAfterRedirects})}),eke(i.rootComponentType,i.config,function(Fe){return i.serializeUrl(Fe)},i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,hs.b)(function(Fe){if("eager"===i.urlUpdateStrategy){if(!Fe.extras.skipLocationChange){var ft=i.urlHandlingStrategy.merge(Fe.urlAfterRedirects,Fe.rawUrl);i.setBrowserUrl(ft,Fe)}i.browserUrlTree=Fe.urlAfterRedirects}var ht=new MCe(Fe.id,i.serializeUrl(Fe.extractedUrl),i.serializeUrl(Fe.urlAfterRedirects),Fe.targetSnapshot);o.next(ht)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var B=u.id,G=u.extractedUrl,q=u.source,ae=u.restoredState,he=u.extras,Ye=new j5(B,i.serializeUrl(G),q,ae);o.next(Ye);var Me=$$(G,i.rootComponentType).snapshot;return(0,pr.of)(Object.assign(Object.assign({},u),{targetSnapshot:Me,urlAfterRedirects:G,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=u.rawUrl,u.resolve(null),By.E}),MH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.beforePreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,hs.b)(function(u){var f=new SCe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(f)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},u),{guards:Lwe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Uwe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,hs.b)(function(u){if(Hy(u.guardsResult)){var f=pH('Redirecting to "'.concat(i.serializeUrl(u.guardsResult),'"'));throw f.url=u.guardsResult,f}var h=new xCe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(h)}),(0,Ei.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,""),!1)}),MH(function(u){if(u.guards.canActivateChecks.length)return(0,pr.of)(u).pipe((0,hs.b)(function(f){var h=new DCe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}),(0,xo.w)(function(f){var h=!1;return(0,pr.of)(f).pipe(tke(i.paramsInheritanceStrategy,i.ngModule.injector),(0,hs.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(f),i.cancelNavigationTransition(f,"At least one route resolver didn't emit any value."))}}))}),(0,hs.b)(function(f){var h=new ACe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}))}),MH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.afterPreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,mr.U)(function(u){var f=function rwe(t,r,e){var i=Ax(t,r._root,e?e._root:void 0);return new X$(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:f})}),(0,hs.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,mr.U)(function(o){return new hwe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,hs.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,I$.x)(function(){var u;if(!s&&!l){var f="Navigation ID ".concat(a.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(a,f)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,Vd.K)(function(u){if(l=!0,function ZCe(t){return t&&t[N$]}(u)){var f=Hy(u.url);f||(i.navigated=!0,i.restoreHistory(a,!0));var h=new fH(a.id,i.serializeUrl(a.extractedUrl),u.message);o.next(h),f?setTimeout(function(){var C=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),B={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Eee(a.source)};i.scheduleNavigation(C,"imperative",null,B,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{i.restoreHistory(a,!0);var v=new P$(a.id,i.serializeUrl(a.extractedUrl),u);o.next(v);try{a.resolve(i.errorHandler(u))}catch(C){a.reject(C)}}return By.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?void 0: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 f=e.parseUrl(i.url);e.scheduleNavigation(f,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){lee(e),this.config=e.map(TH),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,f=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,v=null;switch(l){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}return null!==v&&(v=this.removeEmptyProps(v)),awe(f,this.currentUrlTree,e,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=Hy(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 hke(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({},fke):!1===i?Object.assign({},pke):i,Hy(e))return j$(this.currentUrlTree,e,o);var a=this.parseUrl(e);return j$(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){e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new Zh(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,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,f,h,v;if(this.disposed)return Promise.resolve(!1);s?(f=s.resolve,h=s.reject,v=s.promise):v=new Promise(function(q,ae){f=q,h=ae});var B,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),B=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):B=0;return this.setTransition({id:C,targetPageId:B,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:f,reject:h,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.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){var o=new fH(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),t}();function hke(t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};(0,j.Z)(this,t),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,V.Z)(t,[{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 j5?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Zh&&(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 Z$&&(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 Z$(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();zy.\u0275fac=function(r){n.$Z()},zy.\u0275prov=n.Yz7({token:zy,factory:zy.\u0275fac});var Wy=new n.OlP("ROUTER_CONFIGURATION"),xee=new n.OlP("ROUTER_FORROOT_GUARD"),gke=[Ct.Ye,{provide:Y$,useClass:G$},{provide:kr,useFactory:function wke(t,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,f=new kr(null,t,r,e,i,o,F$(a));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),kke(s,f),s.enableTracing&&f.events.subscribe(function(h){var v,C;null===(v=console.group)||void 0===v||v.call(console,"Router Event: ".concat(h.constructor.name)),console.log(h.toString()),console.log(h),null===(C=console.groupEnd)||void 0===C||C.call(console)}),f},deps:[Y$,Rx,Ct.Ye,n.zs3,n.Sil,SH,Wy,[lke,new n.FiY],[oke,new n.FiY]]},Rx,{provide:xr,useFactory:function Tke(t){return t.routerState.root},deps:[kr]},jy,See,_ke,{provide:Wy,useValue:{enableTracing:!1}}];function vke(){return new n.PXZ("Router",kr)}var Vy=function(){function t(r,e){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[gke,Dee(e),{provide:xee,useFactory:Cke,deps:[[kr,new n.FiY,new n.tp0]]},{provide:Wy,useValue:i||{}},{provide:Ct.S$,useFactory:bke,deps:[Ct.lw,[new n.tBr(Ct.mr),new n.FiY],Wy]},{provide:zy,useFactory:yke,deps:[kr,Ct.EM,Wy]},{provide:Mee,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:See},{provide:n.PXZ,multi:!0,useFactory:vke},[ng,{provide:n.ip1,multi:!0,useFactory:Eke,deps:[ng]},{provide:Aee,useFactory:Mke,deps:[ng]},{provide:n.tb,multi:!0,useExisting:Aee}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Dee(e)]}}}]),t}();function yke(t,r,e){return e.scrollOffset&&r.setOffset(e.scrollOffset),new zy(t,r,e)}function bke(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.useHash?new Ct.Do(t,r):new Ct.b0(t,r)}function Cke(t){return"guarded"}function Dee(t){return[{provide:n.deG,multi:!0,useValue:t},{provide:SH,multi:!0,useValue:t}]}function kke(t,r){t.errorHandler&&(r.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(r.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(r.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(r.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(r.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(r.canceledNavigationResolution=t.canceledNavigationResolution)}Vy.\u0275fac=function(r){return new(r||Vy)(n.LFG(xee,8),n.LFG(kr,8))},Vy.\u0275mod=n.oAB({type:Vy}),Vy.\u0275inj=n.cJS({});var ng=function(){function t(r){(0,j.Z)(this,t),this.injector=r,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qn.xQ}return(0,V.Z)(t,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Ct.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var o=null,a=new Promise(function(u){return o=u}),s=e.injector.get(kr),l=e.injector.get(Wy);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),o(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?(0,pr.of)(null):(e.initNavigation=!0,o(!0),e.resultOfPreactivationDone)},s.initialNavigation()):o(!0),a})}},{key:"bootstrapListener",value:function(e){var i=this.injector.get(Wy),o=this.injector.get(jy),a=this.injector.get(zy),s=this.injector.get(kr),l=this.injector.get(n.z2F);e===l.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),a.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();function Eke(t){return t.appInitializer.bind(t)}function Mke(t){return t.bootstrapListener.bind(t)}ng.\u0275fac=function(r){return new(r||ng)(n.LFG(n.zs3))},ng.\u0275prov=n.Yz7({token:ng,factory:ng.\u0275fac});var Aee=new n.OlP("Router Initializer");new n.GfV("13.3.11");var rZ=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Wo=m(2437),vr=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new qn.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,V.Z)(t,[{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 f=u.find(function(v){return"bundled"===v.location});if(f)f.host=e,f.port=i,f.protocol=location.protocol,o.update(f).then(function(v){s(v)},l);else{var h=new rZ;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(v){s(v)},l)}},l)})}}]),t}();vr.\u0275fac=function(r){return new(r||vr)(n.LFG(Wo.zw))},vr.\u0275prov=n.Yz7({token:vr,factory:vr.\u0275fac});var Bx=(0,V.Z)(function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.visible=r,this.error=e,this.clear=i}),ul=function(){function t(){(0,j.Z)(this,t),this.state=new go.X(new Bx(!1))}return(0,V.Z)(t,[{key:"setError",value:function(e){this.state.next(new Bx(!1,e.error))}},{key:"clear",value:function(){this.state.next(new Bx(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new Bx(!0))}},{key:"deactivate",value:function(){this.state.next(new Bx(!1))}}]),t}();function xke(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.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)),n.uIk("r",e._getCircleRadius())}}function Dke(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),n.uIk("r",e._getCircleRadius())}}ul.\u0275fac=function(r){return new(r||ul)},ul.\u0275prov=n.Yz7({token:ul,factory:ul.\u0275fac});var Oke=(0,ln.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),Ike=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Pke(){return{diameter:100}}});var ql=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;(0,j.Z)(this,e),(v=r.call(this,i))._document=a,v._diameter=100,v._value=0,v._resizeSubscription=Io.w.EMPTY,v.mode="determinate";var C=e._diameters;return v._spinnerAnimationLabel=v._getSpinnerAnimationLabel(),C.has(a.head)||C.set(a.head,new Set([100])),v._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(v.mode="indeterminate"),l&&(l.diameter&&(v.diameter=l.diameter),l.strokeWidth&&(v.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&f&&u&&h&&(v._resizeSubscription=f.change(150).subscribe(function(){"indeterminate"===v.mode&&h.run(function(){return u.markForCheck()})})),v}return(0,V.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,Un.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,Un.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,Un.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,Zi.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}(Oke);ql._diameters=new WeakMap,ql.\u0275fac=function(r){return new(r||ql)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(Ct.K0,8),n.Y36(Ta.Qb,8),n.Y36(Ike),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(n.R0b))},ql.\u0275cmp=n.Xpm({type:ql,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&&(n.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),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,xke,1,11,"circle",2),n.YNc(3,Dke,1,9,"circle",3),n.qZA()),2&r&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[Ct.RF,Ct.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@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)}}\n"],encapsulation:2,changeDetection:0});var $C=(0,V.Z)(function t(){(0,j.Z)(this,t)});$C.\u0275fac=function(r){return new(r||$C)},$C.\u0275mod=n.oAB({type:$C}),$C.\u0275inj=n.cJS({imports:[[ln.BQ,Ct.ez],ln.BQ]});var iZ,Bc=m(567);function Fx(t){var r;return(null===(r=function Zke(){if(void 0===iZ&&(iZ=null,"undefined"!=typeof window)){var t=window;void 0!==t.trustedTypes&&(iZ=t.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return iZ}())||void 0===r?void 0:r.createHTML(t))||t}function Oee(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Iee(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Pee(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var Yy=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.url=r,this.svgText=e,this.options=i}),lp=function(){function t(r,e,i,o){(0,j.Z)(this,t),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",this._document=i}return(0,V.Z)(t,[{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 Yy(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(n.q3G.HTML,o);if(!s)throw Pee(o);var l=Fx(s);return this._addSvgIconConfig(e,i,new Yy("",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 Yy(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(n.q3G.HTML,i);if(!a)throw Pee(i);var s=Fx(a);return this._addSvgIconSetConfig(e,new Yy("",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(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!o)throw Iee(e);var a=this._cachedIconsByUrl.get(o);return a?(0,pr.of)(oZ(a)):this._loadSvgIconFromConfig(new Yy(e,null)).pipe((0,hs.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,mr.U)(function(s){return oZ(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Ree(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,YC._)(Oee(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,pr.of)(oZ(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,mr.U)(function(i){return oZ(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,pr.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,Vd.K)(function(u){var f=o._sanitizer.sanitize(n.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(f," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,pr.of)(null)}))});return(0,Bc.D)(s).pipe((0,mr.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Oee(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,hs.b)(function(o){return e.svgText=o}),(0,mr.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,pr.of)(null):this._fetchIcon(e).pipe((0,hs.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(Fx(""));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(" tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(Fx("")),o=e.attributes,a=0;a*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var ig=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.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,V.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ht.Z)((0,sn.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,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(Tn);ig.\u0275fac=function(r){return new(r||ig)(n.Y36(Ai.tE),n.Y36(n.SBq),n.Y36(Ta.Qb,8),n.Y36(n.R0b,8))},ig.\u0275cmp=n.Xpm({type:ig,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&&(n.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),n.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:[n.qOj],attrs:Zee,ngContentSelectors:Nee,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&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&r&&(n.xp6(2),n.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),n.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ln.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:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var Fh=(0,V.Z)(function t(){(0,j.Z)(this,t)});Fh.\u0275fac=function(r){return new(r||Fh)},Fh.\u0275mod=n.oAB({type:Fh}),Fh.\u0275inj=n.cJS({imports:[[ln.si,ln.BQ],ln.BQ]});var Kke=m(1307),Ux=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ux.\u0275fac=function(r){return new(r||Ux)},Ux.\u0275mod=n.oAB({type:Ux}),Ux.\u0275inj=n.cJS({});var ew,Bee=new Set,tw=function(){function t(r){(0,j.Z)(this,t),this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qke}return(0,V.Z)(t,[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Jke(t){if(!Bee.has(t))try{ew||((ew=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ew)),ew.sheet&&(ew.sheet.insertRule("@media ".concat(t," {body{ }}"),0),Bee.add(t))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}]),t}();function Qke(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}tw.\u0275fac=function(r){return new(r||tw)(n.LFG(Zi.t4))},tw.\u0275prov=n.Yz7({token:tw,factory:tw.\u0275fac,providedIn:"root"});var Uh=function(){function t(r,e){(0,j.Z)(this,t),this._mediaMatcher=r,this._zone=e,this._queries=new Map,this._destroySubject=new qn.xQ}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var i=this;return Fee((0,Un.Eq)(e)).some(function(a){return i._registerQuery(a).mql.matches})}},{key:"observe",value:function(e){var i=this,a=Fee((0,Un.Eq)(e)).map(function(l){return i._registerQuery(l).observable}),s=(0,uh.aj)(a);return(s=(0,A$.z)(s.pipe((0,to.q)(1)),s.pipe((0,Kke.T)(1),(0,A6.b)(0)))).pipe((0,mr.U)(function(l){var u={matches:!1,breakpoints:{}};return l.forEach(function(f){var h=f.matches,v=f.query;u.matches=u.matches||h,u.breakpoints[v]=h}),u}))}},{key:"_registerQuery",value:function(e){var i=this;if(this._queries.has(e))return this._queries.get(e);var o=this._mediaMatcher.matchMedia(e),s={observable:new fo.y(function(l){var u=function(h){return i._zone.run(function(){return l.next(h)})};return o.addListener(u),function(){o.removeListener(u)}}).pipe((0,ua.O)(o),(0,mr.U)(function(l){var u=l.matches;return{query:e,matches:u}}),(0,Yr.R)(this._destroySubject)),mql:o};return this._queries.set(e,s),s}}]),t}();function Fee(t){return t.map(function(r){return r.split(",")}).reduce(function(r,e){return r.concat(e)}).map(function(r){return r.trim()})}Uh.\u0275fac=function(r){return new(r||Uh)(n.LFG(tw),n.LFG(n.R0b))},Uh.\u0275prov=n.Yz7({token:Uh,factory:Uh.\u0275fac,providedIn:"root"});var og_Medium="(min-width: 960px) and (max-width: 1279.98px)",og_Large="(min-width: 1280px) and (max-width: 1919.98px)",og_XLarge="(min-width: 1920px)",og_Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",og_HandsetPortrait="(max-width: 599.98px) and (orientation: portrait)",yo=m(7429),Xke=["tooltip"],Uee="tooltip-panel",Hee=(0,Zi.i$)({passive:!0});var jee=new n.OlP("mat-tooltip-scroll-strategy");var nTe={provide:jee,deps:[Ao.aV],useFactory:function tTe(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},rTe=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function iTe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var aZ=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){var B=this;(0,j.Z)(this,t),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=v,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 qn.xQ,this._scrollStrategy=f,this._document=C,v&&(v.position&&(this.position=v.position),v.touchGestures&&(this.touchGestures=v.touchGestures)),h.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){B._overlayRef&&B._updatePosition(B._overlayRef)})}return(0,V.Z)(t,[{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,Un.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Un.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Un.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,Yr.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,Ut.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,Hee)}),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 e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var o=this._createOverlay();this._detach(),this._portal=this._portal||new yo.C5(this._tooltipComponent,this._viewContainerRef);var a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{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,Yr.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(Uee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Gr.hY&&!(0,Gr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),(null===(i=this._defaultOptions)||void 0===i?void 0: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,to.q)(1),(0,Yr.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(Uee,"-");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?void 0: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,Ut.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,Hee)})}},{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"}}}]),t}();aZ.\u0275fac=function(r){n.$Z()},aZ.\u0275dir=n.lG2({type:aZ,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var vi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C,B,G){var q;return(0,j.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,f,h,v,C,B,G))._tooltipComponent=jx,q}return(0,V.Z)(e)}(aZ);vi.\u0275fac=function(r){return new(r||vi)(n.Y36(Ao.aV),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Zi.t4),n.Y36(Ai.$s),n.Y36(Ai.tE),n.Y36(jee),n.Y36(Es.Is,8),n.Y36(rTe,8),n.Y36(Ct.K0))},vi.\u0275dir=n.lG2({type:vi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]});var Hx=function(){function t(r,e){(0,j.Z)(this,t),this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qn.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,V.Z)(t,[{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(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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.hide(this._mouseLeaveHideDelay)}},{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:"_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))}}]),t}();Hx.\u0275fac=function(r){return new(r||Hx)(n.Y36(n.sBO),n.Y36(Ta.Qb,8))},Hx.\u0275dir=n.lG2({type:Hx});var jx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(og_Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,V.Z)(e)}(Hx);jx.\u0275fac=function(r){return new(r||jx)(n.Y36(n.sBO),n.Y36(Uh),n.Y36(Ta.Qb,8))},jx.\u0275cmp=n.Xpm({type:jx,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Xke,7),2&r)&&(n.iGM(i=n.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&n.Udp("zoom",e.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&r)&&(n.ekj("mat-tooltip-handset",null==(i=n.lcZ(2,4,e._isHandset))?null:i.matches),n.Q6J("ngClass",e.tooltipClass),n.xp6(3),n.Oqu(e.message))},directives:[Ct.mk],pipes:[Ct.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}\n"],encapsulation:2,changeDetection:0});var Gy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Gy.\u0275fac=function(r){return new(r||Gy)},Gy.\u0275mod=n.oAB({type:Gy}),Gy.\u0275inj=n.cJS({providers:[nTe],imports:[[Ai.rt,Ct.ez,Ao.U8,ln.BQ],ln.BQ,ka.ZD]});(0,rn.X$)("state",[(0,rn.SB)("initial, void, hidden",(0,rn.oB)({opacity:0,transform:"scale(0)"})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)"})),(0,rn.eR)("* => visible",(0,rn.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.F4)([(0,rn.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,rn.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,rn.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,rn.eR)("* => hidden",(0,rn.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({opacity:0})))]);function oTe(t,r){1&t&&(n.TgZ(0,"div",4),n._UZ(1,"mat-spinner",5),n.qZA())}function aTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),n._uU(3,"error_outline"),n.qZA()(),n.TgZ(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"div")(7,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refresh()}),n.TgZ(8,"mat-icon"),n._uU(9,"refresh"),n.qZA()(),n.TgZ(10,"button",9)(11,"mat-icon"),n._uU(12,"home"),n.qZA()()()()}if(2&t){var i=n.oxw(2);n.xp6(5),n.hij("Error occurred: ",i.error.message,"")}}function sTe(t,r){if(1&t&&(n.TgZ(0,"div",1),n.YNc(1,oTe,2,0,"div",2),n.YNc(2,aTe,13,1,"div",3),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.visible&&!e.error),n.xp6(1),n.Q6J("ngIf",e.error)}}var qy=function(){function t(r,e){(0,j.Z)(this,t),this.progressService=r,this.router=e,this.visible=!1}return(0,V.Z)(t,[{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()}}]),t}();qy.\u0275fac=function(r){return new(r||qy)(n.Y36(ul),n.Y36(kr))},qy.\u0275cmp=n.Xpm({type:qy,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&&n.YNc(0,sTe,3,2,"div",0),2&r&&n.Q6J("ngIf",e.visible||e.error)},directives:[Ct.O5,ql,Vn,Tn,vi,ta],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom: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 zx=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,V.Z)(t,[{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)}}]),t}();zx.\u0275fac=function(r){return new(r||zx)(n.Y36(kr),n.Y36(vr),n.Y36(ul),n.Y36(Ct.K0))},zx.\u0275cmp=n.Xpm({type:zx,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&n._UZ(0,"app-progress")},directives:[qy],styles:[""]});function no(t,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{f(i.next(h))}catch(v){s(v)}}function u(h){try{f(i.throw(h))}catch(v){s(v)}}function f(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)}f((i=i.apply(t,r||[])).next())})}Object.create;Object.create;var up=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{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()))}}]),t}();function cTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"button",3),n.NdJ("click",function(){return n.CHM(e),n.oxw().action()}),n._uU(2),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.action)}}function dTe(t,r){}up.\u0275fac=function(r){return new(r||up)},up.\u0275prov=n.Yz7({token:up,factory:up.\u0275fac});var AH=new n.OlP("MatSnackBarData"),lZ=(0,V.Z)(function t(){(0,j.Z)(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),fTe=Math.pow(2,31)-1,uZ=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this._overlayRef=e,this._afterDismissed=new qn.xQ,this._afterOpened=new qn.xQ,this._onAction=new qn.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,V.Z)(t,[{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,fTe))}},{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}}]),t}(),Wx=function(){function t(r,e){(0,j.Z)(this,t),this.snackBarRef=r,this.data=e}return(0,V.Z)(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();Wx.\u0275fac=function(r){return new(r||Wx)(n.Y36(uZ),n.Y36(AH))},Wx.\u0275cmp=n.Xpm({type:Wx,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&&(n.TgZ(0,"span",0),n._uU(1),n.qZA(),n.YNc(2,cTe,3,1,"div",1)),2&r&&(n.xp6(1),n.Oqu(e.data.message),n.xp6(1),n.Q6J("ngIf",e.hasAction))},directives:[Tn,Ct.O5],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}\n"],encapsulation:2,changeDetection:0});var pTe={snackBarState:(0,rn.X$)("state",[(0,rn.SB)("void, hidden",(0,rn.oB)({transform:"scale(0.8)",opacity:0})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)",opacity:1})),(0,rn.eR)("* => visible",(0,rn.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,rn.eR)("* => void, * => hidden",(0,rn.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,rn.oB)({opacity:0})))])},Vx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.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 qn.xQ,u._onExit=new qn.xQ,u._onEnter=new qn.xQ,u._animationState="void",u.attachDomPortal=function(f){return u._assertNotAttached(),u._applySnackBarClasses(),u._portalOutlet.attachDomPortal(f)},"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,V.Z)(e,[{key:"attachComponentPortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(o)}},{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,to.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_applySnackBarClasses",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)),"center"===this.snackBarConfig.horizontalPosition&&o.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&o.classList.add("mat-snack-bar-top")}},{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}(yo.en);Vx.\u0275fac=function(r){return new(r||Vx)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Zi.t4),n.Y36(lZ))},Vx.\u0275cmp=n.Xpm({type:Vx,selectors:[["snack-bar-container"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&n.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&n.d8E("@state",e._animationState)},features:[n.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n.YNc(1,dTe,0,0,"ng-template",1),n.qZA(),n._UZ(2,"div")),2&r&&(n.xp6(2),n.uIk("aria-live",e._live)("role",e._role))},directives:[yo.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%}\n"],encapsulation:2,data:{animation:[pTe.snackBarState]}});var Ky=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ky.\u0275fac=function(r){return new(r||Ky)},Ky.\u0275mod=n.oAB({type:Ky}),Ky.\u0275inj=n.cJS({imports:[[Ao.U8,yo.eL,Ct.ez,Fh,ln.BQ],ln.BQ]});var Yee=new n.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function hTe(){return new lZ}});var Jy=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,V.Z)(t,[{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=n.zs3.create({parent:o||this._injector,providers:[{provide:lZ,useValue:i}]}),s=new yo.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 lZ),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new uZ(l,s);if(e instanceof n.Rgc){var f=new yo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(f)}else{var h=this._createInjector(a,u),v=new yo.C5(e,void 0,h),C=l.attachComponentPortal(v);u.instance=C.instance}return this._breakpointObserver.observe(og_HandsetPortrait).pipe((0,Yr.R)(s.detachments())).subscribe(function(B){s.overlayElement.classList.toggle(o.handsetCssClass,B.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 Ao.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 n.zs3.create({parent:o||this._injector,providers:[{provide:uZ,useValue:i},{provide:AH,useValue:e.data}]})}}]),t}();Jy.\u0275fac=function(r){return new(r||Jy)(n.LFG(Ao.aV),n.LFG(Ai.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Jy,12),n.LFG(Yee))},Jy.\u0275prov=n.Yz7({token:Jy,factory:Jy.\u0275fac});var Fc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=Wx,f.snackBarContainerComponent=Vx,f.handsetCssClass="mat-snack-bar-handset",f}return(0,V.Z)(e)}(Jy);Fc.\u0275fac=function(r){return new(r||Fc)(n.LFG(Ao.aV),n.LFG(Ai.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Fc,12),n.LFG(Yee))},Fc.\u0275prov=n.Yz7({token:Fc,factory:Fc.\u0275fac,providedIn:Ky});var $n=function(){function t(r,e){(0,j.Z)(this,t),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,V.Z)(t,[{key:"error",value:function(e){var i=this;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)})}}]),t}();$n.\u0275fac=function(r){return new(r||$n)(n.LFG(Fc),n.LFG(n.R0b))},$n.\u0275prov=n.Yz7({token:$n,factory:$n.\u0275fac});var mTe=["*",[["mat-card-footer"]]],gTe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],yTe=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Qy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qy.\u0275fac=function(r){return new(r||Qy)},Qy.\u0275dir=n.lG2({type:Qy,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var nw=(0,V.Z)(function t(){(0,j.Z)(this,t)});nw.\u0275fac=function(r){return new(r||nw)},nw.\u0275dir=n.lG2({type:nw,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var rw=(0,V.Z)(function t(){(0,j.Z)(this,t)});rw.\u0275fac=function(r){return new(r||rw)},rw.\u0275dir=n.lG2({type:rw,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var Yx=(0,V.Z)(function t(){(0,j.Z)(this,t),this.align="start"});Yx.\u0275fac=function(r){return new(r||Yx)},Yx.\u0275dir=n.lG2({type:Yx,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var cZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});cZ.\u0275fac=function(r){return new(r||cZ)},cZ.\u0275dir=n.lG2({type:cZ,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var dZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});dZ.\u0275fac=function(r){return new(r||dZ)},dZ.\u0275dir=n.lG2({type:dZ,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var fZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});fZ.\u0275fac=function(r){return new(r||fZ)},fZ.\u0275dir=n.lG2({type:fZ,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var pZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});pZ.\u0275fac=function(r){return new(r||pZ)},pZ.\u0275dir=n.lG2({type:pZ,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var hZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});hZ.\u0275fac=function(r){return new(r||hZ)},hZ.\u0275dir=n.lG2({type:hZ,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var mZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});mZ.\u0275fac=function(r){return new(r||mZ)},mZ.\u0275dir=n.lG2({type:mZ,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var _Z=(0,V.Z)(function t(){(0,j.Z)(this,t)});_Z.\u0275fac=function(r){return new(r||_Z)},_Z.\u0275dir=n.lG2({type:_Z,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var Si=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._animationMode=r});Si.\u0275fac=function(r){return new(r||Si)(n.Y36(Ta.Qb,8))},Si.\u0275cmp=n.Xpm({type:Si,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(mTe),n.Hsn(0),n.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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0});var gZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});gZ.\u0275fac=function(r){return new(r||gZ)},gZ.\u0275cmp=n.Xpm({type:gZ,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&&(n.F$t(gTe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var vZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});vZ.\u0275fac=function(r){return new(r||vZ)},vZ.\u0275cmp=n.Xpm({type:vZ,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&&(n.F$t(yTe),n.TgZ(0,"div"),n.Hsn(1),n.qZA(),n.Hsn(2,1),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var iw=(0,V.Z)(function t(){(0,j.Z)(this,t)});iw.\u0275fac=function(r){return new(r||iw)},iw.\u0275mod=n.oAB({type:iw}),iw.\u0275inj=n.cJS({imports:[[ln.BQ],ln.BQ]});var Fn=m(7322),CTe=m(7568),Gee=(0,Zi.i$)({passive:!0}),Xy=function(){function t(r,e){(0,j.Z)(this,t),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,V.Z)(t,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return By.E;var o=(0,Un.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new qn.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,Gee),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,Gee)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Un.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)})}}]),t}();Xy.\u0275fac=function(r){return new(r||Xy)(n.LFG(Zi.t4),n.LFG(n.R0b))},Xy.\u0275prov=n.Yz7({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var yZ=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();yZ.\u0275fac=function(r){return new(r||yZ)(n.Y36(n.SBq),n.Y36(Xy))},yZ.\u0275dir=n.lG2({type:yZ,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var bZ=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new qn.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,V.Z)(t,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Un.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Un.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Un.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,Pf.R)(i,"resize").pipe((0,CTe.e)(16),(0,Yr.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)}}]),t}();bZ.\u0275fac=function(r){return new(r||bZ)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Ct.K0,8))},bZ.\u0275dir=n.lG2({type:bZ,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&n.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var $y=(0,V.Z)(function t(){(0,j.Z)(this,t)});$y.\u0275fac=function(r){return new(r||$y)},$y.\u0275mod=n.oAB({type:$y}),$y.\u0275inj=n.cJS({});var wTe=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),kTe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],TTe=0,ETe=(0,ln.FD)(function(){return(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o})}()),sr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C){var B;(0,j.Z)(this,e),(B=r.call(this,u,s,l,a))._elementRef=i,B._platform=o,B._autofillMonitor=h,B._formField=C,B._uid="mat-input-".concat(TTe++),B.focused=!1,B.stateChanges=new qn.xQ,B.controlType="mat-input",B.autofilled=!1,B._disabled=!1,B._type="text",B._readonly=!1,B._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(ae){return(0,Zi.qK)().has(ae)}),B._iOSKeyupListener=function(ae){var he=ae.target;!he.value&&0===he.selectionStart&&0===he.selectionEnd&&(he.setSelectionRange(1,1),he.setSelectionRange(0,0))};var G=B._elementRef.nativeElement,q=G.nodeName.toLowerCase();return B._inputValueAccessor=f||G,B._previousNativeValue=B.value,B.id=B.id,o.IOS&&v.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",B._iOSKeyupListener)}),B._isServer=!B._platform.isBrowser,B._isNativeSelect="select"===q,B._isTextarea="textarea"===q,B._isInFormField=!!C,B._isNativeSelect&&(B.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select"),B}return(0,V.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Un.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(ne.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Un.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Zi.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,Un.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,s=(null===(a=null===(o=this._formField)||void 0===o?void 0:o._hideControlPlaceholder)||void 0===a?void 0:a.call(o))?null:this.placeholder;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(){kTe.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}(ETe);sr.\u0275fac=function(r){return new(r||sr)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(ne.a5,10),n.Y36(ne.F,8),n.Y36(ne.sg,8),n.Y36(ln.rD),n.Y36(wTe,10),n.Y36(Xy),n.Y36(n.R0b),n.Y36(Fn.G_,8))},sr.\u0275dir=n.lG2({type:sr,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&&n.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(n.Ikx("disabled",e.disabled)("required",e.required),n.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),n.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:[n._Bn([{provide:Fn.Eo,useExisting:sr}]),n.qOj,n.TTD]});var ow=(0,V.Z)(function t(){(0,j.Z)(this,t)});ow.\u0275fac=function(r){return new(r||ow)},ow.\u0275mod=n.oAB({type:ow}),ow.\u0275inj=n.cJS({providers:[ln.rD],imports:[[$y,Fn.lN,ln.BQ],$y,Fn.lN]});var Oi=m(4107);function e0(){e0=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function MTe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function STe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}function xTe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}var Gx=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:")})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){return no(this,void 0,void 0,e0().mark(function e(){var i=this;return e0().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return no(i,void 0,void 0,e0().mark(function l(){return e0().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s&&this.getControllers();case 1:case"end":return f.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return no(this,void 0,void 0,e0().mark(function e(){var o,a,i=this;return e0().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 rZ;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")}}]),t}();Gx.\u0275fac=function(r){return new(r||Gx)(n.Y36(vr),n.Y36(up),n.Y36(xr),n.Y36(kr),n.Y36($n))},Gx.\u0275cmp=n.Xpm({type:Gx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Add new controller"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),n._UZ(9,"input",7),n.YNc(10,MTe,2,0,"mat-error",8),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",9),n.YNc(13,STe,2,2,"mat-option",10),n.qZA()(),n.TgZ(14,"mat-form-field")(15,"mat-select",11),n.YNc(16,xTe,2,2,"mat-option",10),n.qZA()()()(),n.TgZ(17,"div",12)(18,"button",13),n.NdJ("click",function(){return e.createController()}),n._uU(19,"Add controller"),n.qZA()()()()),2&r&&(n.Q6J("hidden",!e.controllerOptionsVisibility),n.xp6(7),n.Q6J("formGroup",e.controllerForm),n.xp6(3),n.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),n.xp6(3),n.Q6J("ngForOf",e.locations),n.xp6(3),n.Q6J("ngForOf",e.protocols))},directives:[Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Oi.gD,Ct.sg,ln.ey,Tn],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var DTe=0,OH=new n.OlP("CdkAccordion"),aw=function(){function t(){(0,j.Z)(this,t),this._stateChanges=new qn.xQ,this._openCloseAllActions=new qn.xQ,this.id="cdk-accordion-".concat(DTe++),this._multi=!1}return(0,V.Z)(t,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Un.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()}}]),t}();aw.\u0275fac=function(r){return new(r||aw)},aw.\u0275dir=n.lG2({type:aw,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:OH,useExisting:aw}]),n.TTD]});var ATe=0,qx=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Io.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-".concat(ATe++),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,V.Z)(t,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,Un.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,Un.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)})}}]),t}();qx.\u0275fac=function(r){return new(r||qx)(n.Y36(OH,12),n.Y36(n.sBO),n.Y36(po.A8))},qx.\u0275dir=n.lG2({type:qx,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:OH,useValue:void 0}])]});var sw=(0,V.Z)(function t(){(0,j.Z)(this,t)});sw.\u0275fac=function(r){return new(r||sw)},sw.\u0275mod=n.oAB({type:sw}),sw.\u0275inj=n.cJS({});var OTe=["body"];function ITe(t,r){}var PTe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function LTe(t,r){if(1&t&&n._UZ(0,"span",2),2&t){var e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}var ZTe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],IH=new n.OlP("MAT_ACCORDION"),qee="225ms cubic-bezier(0.4,0.0,0.2,1)",Kee={indicatorRotate:(0,rn.X$)("indicatorRotate",[(0,rn.SB)("collapsed, void",(0,rn.oB)({transform:"rotate(0deg)"})),(0,rn.SB)("expanded",(0,rn.oB)({transform:"rotate(180deg)"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(qee))]),bodyExpansion:(0,rn.X$)("bodyExpansion",[(0,rn.SB)("collapsed, void",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(qee))])},Kx=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._template=r});Kx.\u0275fac=function(r){return new(r||Kx)(n.Y36(n.Rgc))},Kx.\u0275dir=n.lG2({type:Kx,selectors:[["ng-template","matExpansionPanelContent",""]]});var BTe=0,Jee=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Kl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new n.vpe,h.afterCollapse=new n.vpe,h._inputChanges=new qn.xQ,h._headerId="mat-expansion-panel-header-".concat(BTe++),h._bodyAnimationDone=new qn.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,OM.x)(function(v,C){return v.fromState===C.fromState&&v.toState===C.toState})).subscribe(function(v){"void"!==v.fromState&&("expanded"===v.toState?h.afterExpand.emit():"collapsed"===v.toState&&h.afterCollapse.emit())}),f&&(h.hideToggle=f.hideToggle),h}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Un.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.opened.pipe((0,ua.O)(null),(0,Ei.h)(function(){return o.expanded&&!o._portal}),(0,to.q)(1)).subscribe(function(){o._portal=new yo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,sn.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}(qx);Kl.\u0275fac=function(r){return new(r||Kl)(n.Y36(IH,12),n.Y36(n.sBO),n.Y36(po.A8),n.Y36(n.s_b),n.Y36(Ct.K0),n.Y36(Ta.Qb,8),n.Y36(Jee,8))},Kl.\u0275cmp=n.Xpm({type:Kl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Kx,5),2&r)&&(n.iGM(o=n.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&n.Gf(OTe,5),2&r)&&(n.iGM(i=n.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:IH,useValue:void 0}]),n.qOj,n.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&&(n.F$t(PTe),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,ITe,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[yo.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}\n'],encapsulation:2,data:{animation:[Kee.bodyExpansion]},changeDetection:0});var CZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});CZ.\u0275fac=function(r){return new(r||CZ)},CZ.\u0275dir=n.lG2({type:CZ,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var FTe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Jl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;(0,j.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=Io.w.EMPTY;var v=i.accordion?i.accordion._stateChanges.pipe((0,Ei.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):By.E;return h.tabIndex=parseInt(f||"")||0,h._parentChangeSubscription=(0,To.T)(i.opened,i.closed,v,i._inputChanges.pipe((0,Ei.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,Ei.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,V.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 Gr.L_:case Gr.K5:(0,Gr.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,ln.sb)(FTe));Jl.\u0275fac=function(r){return new(r||Jl)(n.Y36(Kl,1),n.Y36(n.SBq),n.Y36(Ai.tE),n.Y36(n.sBO),n.Y36(Jee,8),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Jl.\u0275cmp=n.Xpm({type:Jl,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(n.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.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:[n.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(n.F$t(ZTe),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,LTe,1,1,"span",1)),2&r&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[Ct.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Kee.indicatorRotate]},changeDetection:0});var Jx=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jx.\u0275fac=function(r){return new(r||Jx)},Jx.\u0275dir=n.lG2({type:Jx,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var hu=(0,V.Z)(function t(){(0,j.Z)(this,t)});hu.\u0275fac=function(r){return new(r||hu)},hu.\u0275dir=n.lG2({type:hu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var El=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new n.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Un.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,ua.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Ai.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,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(aw);El.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(El)))(e||El)}}(),El.\u0275dir=n.lG2({type:El,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Jl,5),2&r)&&(n.iGM(o=n.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:IH,useExisting:El}]),n.qOj]});var lw=(0,V.Z)(function t(){(0,j.Z)(this,t)});lw.\u0275fac=function(r){return new(r||lw)},lw.\u0275mod=n.oAB({type:lw}),lw.\u0275inj=n.cJS({imports:[[Ct.ez,ln.BQ,sw,yo.eL]]});var t0=m(4834),PH=["*"],Qee='.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n',HTe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],zTe=["text"];function WTe(t,r){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",5),2&t){var e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var VTe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Xee=(0,ln.Id)((0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),GTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),$ee=new n.OlP("MatList"),ete=new n.OlP("MatNavList"),Vs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new qn.xQ,i}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(Xee);Vs.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Vs)))(e||Vs)}}(),Vs.\u0275cmp=n.Xpm({type:Vs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:ete,useExisting:Vs}]),n.qOj,n.TTD],ngContentSelectors:PH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0});var Hh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new qn.xQ,"action-list"===o._getListType()&&i.nativeElement.classList.add("mat-action-list"),o}return(0,V.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}(Xee);Hh.\u0275fac=function(r){return new(r||Hh)(n.Y36(n.SBq))},Hh.\u0275cmp=n.Xpm({type:Hh,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:$ee,useExisting:Hh}]),n.qOj,n.TTD],ngContentSelectors:PH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[Qee],encapsulation:2,changeDetection:0});var uw=(0,V.Z)(function t(){(0,j.Z)(this,t)});uw.\u0275fac=function(r){return new(r||uw)},uw.\u0275dir=n.lG2({type:uw,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var cw=(0,V.Z)(function t(){(0,j.Z)(this,t)});cw.\u0275fac=function(r){return new(r||cw)},cw.\u0275dir=n.lG2({type:cw,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var wZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});wZ.\u0275fac=function(r){return new(r||wZ)},wZ.\u0275dir=n.lG2({type:wZ,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var os=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;(0,j.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new qn.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,Yr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Un.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,ln.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}(GTe);os.\u0275fac=function(r){return new(r||os)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(ete,8),n.Y36($ee,8))},os.\u0275cmp=n.Xpm({type:os,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,ln.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(r,e){2&r&&n.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.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&&(n.F$t(HTe),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ln.wG],encapsulation:2,changeDetection:0});var qTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),KTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),JTe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return dw}),multi:!0},QTe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.source=r,this.option=e,this.options=i}),Qx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.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 n.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,V.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,Un.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,Un.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,ln.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}(KTe);Qx.\u0275fac=function(r){return new(r||Qx)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return dw})))},Qx.\u0275cmp=n.Xpm({type:Qx,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,ln.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(zTe,5),2&r)&&(n.iGM(i=n.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&&n.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(n.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),n.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:[n.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&&(n.F$t(VTe),n.TgZ(0,"div",0),n._UZ(1,"div",1),n.YNc(2,WTe,1,2,"mat-pseudo-checkbox",2),n.TgZ(3,"div",3,4),n.Hsn(5),n.qZA(),n.Hsn(6,1),n.qZA()),2&r&&(n.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),n.xp6(1),n.Q6J("ngIf",e.selectionList.multiple))},directives:[ln.nP,ln.wG,Ct.O5],encapsulation:2,changeDetection:0});var dw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this))._element=i,l._changeDetector=a,l._focusMonitor=s,l._multiple=!0,l._contentInitialized=!1,l.selectionChange=new n.vpe,l.tabIndex=0,l.color="accent",l.compareWith=function(u,f){return u===f},l._disabled=!1,l.selectedOptions=new po.Ov(l._multiple),l._tabIndex=-1,l._onChange=function(u){},l._destroyed=new qn.xQ,l._onTouched=function(){},l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Un.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Un.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new po.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var a,o=this;this._contentInitialized=!0,this._keyManager=new Ai.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,ua.O)(null),(0,Yr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){if(s.added){var u,l=(0,cn.Z)(s.added);try{for(l.s();!(u=l.n()).done;){u.value.selected=!0}}catch(B){l.e(B)}finally{l.f()}}if(s.removed){var v,h=(0,cn.Z)(s.removed);try{for(h.s();!(v=h.n()).done;){v.value.selected=!1}}catch(B){h.e(B)}finally{h.f()}}}),null===(a=this._focusMonitor)||void 0===a||a.monitor(this._element).pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){var l;if("keyboard"===s||"program"===s){for(var u=0,f=0;f-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,Gr.Vb)(o);switch(a){case Gr.L_:case Gr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Gr.A&&this.multiple&&(0,Gr.Vb)(o,"ctrlKey")&&!s.isTyping()){var f=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(f,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Gr.LH||a===Gr.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 QTe(this,o[0],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")},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"),"
")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),t}();Xx.\u0275fac=function(r){return new(r||Xx)(n.Y36(Hu.eN))},Xx.\u0275cmp=n.Xpm({type:Xx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Help"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),n._uU(10," Useful shortcuts "),n.qZA()(),n.TgZ(11,"mat-list")(12,"mat-list-item"),n._uU(13," ctrl + + to zoom in "),n.qZA(),n.TgZ(14,"mat-list-item"),n._uU(15," ctrl + - to zoom out "),n.qZA(),n.TgZ(16,"mat-list-item"),n._uU(17," ctrl + 0 to reset zoom "),n.qZA(),n.TgZ(18,"mat-list-item"),n._uU(19," ctrl + h to hide toolbar "),n.qZA(),n.TgZ(20,"mat-list-item"),n._uU(21," ctrl + a to select all items on map "),n.qZA(),n.TgZ(22,"mat-list-item"),n._uU(23," ctrl + shift + a to deselect all items on map "),n.qZA(),n.TgZ(24,"mat-list-item"),n._uU(25," ctrl + shift + s to go to preferences "),n.qZA()()(),n.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),n._uU(29," Third party components "),n.qZA()(),n.TgZ(30,"a",4),n._UZ(31,"div",5),n.qZA()(),n.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),n._uU(35," Release notes "),n.qZA()(),n._UZ(36,"div",5),n.qZA()()(),n.TgZ(37,"button",6),n.NdJ("click",function(){return e.goToDocumentation()}),n._uU(38,"Go to documentation"),n.qZA()()()),2&r&&(n.xp6(31),n.Q6J("innerHTML",e.thirdpartylicenses,n.oJD),n.xp6(5),n.Q6J("innerHTML",e.releasenotes,n.oJD))},directives:[El,Kl,Jl,hu,Hh,os,Tn],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 as=m(4766),n0=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{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}}]),t}();n0.\u0275fac=function(r){return new(r||n0)(n.LFG(sl))},n0.\u0275prov=n.Yz7({token:n0,factory:n0.\u0275fac});var r0=function(){function t(r){(0,j.Z)(this,t),this.platformService=r}return(0,V.Z)(t,[{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 as.N.solarputty_download_url&&(i.resource=as.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),t}();r0.\u0275fac=function(r){return new(r||r0)(n.LFG(n0))},r0.\u0275prov=n.Yz7({token:r0,factory:r0.\u0275fac});var i0=function(){function t(r,e){(0,j.Z)(this,t),this.electronService=r,this.externalSoftwareDefinition=e}return(0,V.Z)(t,[{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})}}]),t}();i0.\u0275fac=function(r){return new(r||i0)(n.LFG(sl),n.LFG(r0))},i0.\u0275prov=n.Yz7({token:i0,factory:i0.\u0275fac});var XTe=[[["caption"]],[["colgroup"],["col"]]];function eEe(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function tEe(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}var $x=(0,V.Z)(function t(){(0,j.Z)(this,t)});$x.\u0275fac=function(r){return new(r||$x)},$x.\u0275dir=n.lG2({type:$x,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var ca=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,V.Z)(e)}(Sc);ca.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(ca)))(e||ca)}}(),ca.\u0275cmp=n.Xpm({type:ca,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:po.k,useClass:po.yy},{provide:Sc,useExisting:ca},{provide:k_,useExisting:ca},{provide:P1,useClass:xf},{provide:Af,useValue:null}]),n.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(n.F$t(XTe),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Sd,oh,Of,xd],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}\n"],encapsulation:2});var da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(fu);da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(da)))(e||da)}}(),da.\u0275dir=n.lG2({type:da,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:fu,useExisting:da}]),n.qOj]});var fa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Mc);fa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(fa)))(e||fa)}}(),fa.\u0275dir=n.lG2({type:fa,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Mc,useExisting:fa}]),n.qOj]});var o0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(kd);o0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(o0)))(e||o0)}}(),o0.\u0275dir=n.lG2({type:o0,selectors:[["","matFooterCellDef",""]],features:[n._Bn([{provide:kd,useExisting:o0}]),n.qOj]});var aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(wl);aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(aa)))(e||aa)}}(),aa.\u0275dir=n.lG2({type:aa,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:wl,useExisting:aa},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:aa}]),n.qOj]});var Sa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(eh);Sa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Sa)))(e||Sa)}}(),Sa.\u0275dir=n.lG2({type:Sa,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]});var pw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(T_);pw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(pw)))(e||pw)}}(),pw.\u0275dir=n.lG2({type:pw,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.qOj]});var xa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(th);xa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xa)))(e||xa)}}(),xa.\u0275dir=n.lG2({type:xa,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]});var Da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Td);Da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Da)))(e||Da)}}(),Da.\u0275dir=n.lG2({type:Da,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:Td,useExisting:Da}]),n.qOj]});var a0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Fu);a0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(a0)))(e||a0)}}(),a0.\u0275dir=n.lG2({type:a0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n._Bn([{provide:Fu,useExisting:a0}]),n.qOj]});var Aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Ed);Aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Aa)))(e||Aa)}}(),Aa.\u0275dir=n.lG2({type:Aa,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:Ed,useExisting:Aa}]),n.qOj]});var Oa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(rh);Oa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Oa)))(e||Oa)}}(),Oa.\u0275cmp=n.Xpm({type:Oa,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:rh,useExisting:Oa}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var s0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ih);s0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(s0)))(e||s0)}}(),s0.\u0275cmp=n.Xpm({type:s0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n._Bn([{provide:ih,useExisting:s0}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Ia=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Md);Ia.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ia)))(e||Ia)}}(),Ia.\u0275cmp=n.Xpm({type:Ia,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Md,useExisting:Ia}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var l0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,V.Z)(e)}(Df);l0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(l0)))(e||l0)}}(),l0.\u0275dir=n.lG2({type:l0,selectors:[["ng-template","matNoDataRow",""]],features:[n._Bn([{provide:Df,useExisting:l0}]),n.qOj]});var hw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(If);hw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(hw)))(e||hw)}}(),hw.\u0275cmp=n.Xpm({type:hw,selectors:[["mat-text-column"]],features:[n.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&&(n.ynx(0,0),n.YNc(1,eEe,2,3,"th",1),n.YNc(2,tEe,2,3,"td",2),n.BQk())},directives:[aa,fa,Sa,da,xa],encapsulation:2});var mw=(0,V.Z)(function t(){(0,j.Z)(this,t)});mw.\u0275fac=function(r){return new(r||mw)},mw.\u0275mod=n.oAB({type:mw}),mw.\u0275inj=n.cJS({imports:[[Uu,ln.BQ],ln.BQ]});var nEe=9007199254740991,rEe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,j.Z)(this,e),(i=r.call(this))._renderData=new go.X([]),i._filter=new go.X(""),i._internalPageChanges=new qn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Un.t6)(l)){var u=Number(l);return uC?q=1:v0)){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}(po.o2),_w=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(rEe),qu=m(4068),iEe=function(r,e){return{hidden:r,lightTheme:e}},oEe=/(.*)<\/a>(.*)\s*