From 5bc030688e58f7c778ed3f3eda6cda454d9fe142 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 27 Dec 2022 13:17:12 +0800 Subject: [PATCH] Sync web-ui v3.0.0a3 --- gns3server/static/web-ui/index.html | 2 +- gns3server/static/web-ui/main.3903ccaada4e6da7.js | 1 + gns3server/static/web-ui/main.7309c0d705101a52.js | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 gns3server/static/web-ui/main.3903ccaada4e6da7.js delete mode 100644 gns3server/static/web-ui/main.7309c0d705101a52.js diff --git a/gns3server/static/web-ui/index.html b/gns3server/static/web-ui/index.html index 70846673..98fc94b4 100644 --- a/gns3server/static/web-ui/index.html +++ b/gns3server/static/web-ui/index.html @@ -46,6 +46,6 @@ gtag('config', 'G-5D6FZL9923'); - + \ No newline at end of file diff --git a/gns3server/static/web-ui/main.3903ccaada4e6da7.js b/gns3server/static/web-ui/main.3903ccaada4e6da7.js new file mode 100644 index 00000000..b7d5bef7 --- /dev/null +++ b/gns3server/static/web-ui/main.3903ccaada4e6da7.js @@ -0,0 +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),S=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new S.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(M){var O=K.findIndex(M);if(O>=0){var k=Object.assign(K.data[O],M);K.data[O]=k}else K.data.push(M)}),this.data.filter(function(M){return 0===y.filter(function(O){return K.getItemKey(O)===K.getItemKey(M)}).length}).forEach(function(M){return K.remove(M)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(M){return K.getItemKey(M)===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),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.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(O){return O.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),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.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(O){return O.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),S=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,M){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(S.N.current_version,"/").concat(F,"/images/").concat(M)}},{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 O},zw:function(){return k}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),M=function(I){(0,S.Z)(w,I);var T=(0,U.Z)(w);function w(x){return(0,z.Z)(this,w),T.call(this,x)}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)),O=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var x=w;return"HttpErrorResponse"===w.name&&0===w.status&&(x=M.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(x)}}]),I}();O.\u0275fac=function(T){return new(T||O)},O.\u0275prov=P.Yz7({token:O,factory:O.\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,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,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,x,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,x,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,x,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,x,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,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,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,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,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,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,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,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,R);return this.http.patch(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"head",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.http.head(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"options",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,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,x,N){return w&&w.host&&w.port?(w.protocol||(w.protocol=location.protocol),x="".concat(w.protocol,"//").concat(w.host,":").concat(w.port,"/").concat(D.N.current_version).concat(x)):x="/".concat(D.N.current_version).concat(x),N.headers||(N.headers={}),w&&w.authToken&&!w.tokenExpired&&(N.headers.Authorization="Bearer ".concat(w.authToken)),{url:x,options:N}}}]),I}();k.\u0275fac=function(T){return new(T||k)(P.LFG(F.eN),P.LFG(O))},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),S=m(4766),U=m(8929),L=m(5e3),P=m(2437),D=m(9449),y=m(9740),K=function(){function F(M,O,k){(0,z.Z)(this,F),this.httpController=M,this.settingsService=O,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,this.projectLockIconSubject=new U.xQ}return(0,Y.Z)(F,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(O,k){return this.httpController.getText(O,"/projects/".concat(k,"/files/README.txt"))}},{key:"postReadmeFile",value:function(O,k,I){return this.httpController.post(O,"/projects/".concat(k,"/files/README.txt"),I)}},{key:"get",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k))}},{key:"open",value:function(O,k){return this.httpController.post(O,"/projects/".concat(k,"/open"),{})}},{key:"close",value:function(O,k){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(O,"/projects/".concat(k,"/close"),{})}},{key:"list",value:function(O){return this.httpController.get(O,"/projects")}},{key:"nodes",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/nodes"))}},{key:"links",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/links"))}},{key:"drawings",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/drawings"))}},{key:"add",value:function(O,k,I){return this.httpController.post(O,"/projects",{name:k,project_id:I})}},{key:"update",value:function(O,k){return this.httpController.put(O,"/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(O,k){return this.httpController.delete(O,"/projects/".concat(k))}},{key:"getUploadPath",value:function(O,k,I){return"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k,"/import?name=").concat(I)}},{key:"getExportPath",value:function(O,k){return"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k.project_id,"/export")}},{key:"export",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/export"))}},{key:"getStatistics",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/stats"))}},{key:"duplicate",value:function(O,k,I){return this.httpController.post(O,"/projects/".concat(k,"/duplicate"),{name:I})}},{key:"isReadOnly",value:function(O){return!!O.readonly&&O.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(O,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=I.compression_level&&""!=I.compression_level?"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.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(O.authToken):"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.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(O.authToken)}},{key:"getProjectStatus",value:function(O,k){return this.get(O,"".concat(k,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),F}();K.\u0275fac=function(M){return new(M||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),S=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=S.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),S=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=S.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),S=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 S.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=S.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"}},2427:function(qe,J,m){"use strict";var z={};m.r(z),m.d(z,{active:function(){return E1e},arc:function(){return hge},area:function(){return fQ},areaRadial:function(){return _Q},ascending:function(){return Nf},axisBottom:function(){return u8},axisLeft:function(){return c8},axisRight:function(){return l8},axisTop:function(){return s8},bisect:function(){return O_},bisectLeft:function(){return Y6},bisectRight:function(){return HM},bisector:function(){return U1},brush:function(){return xse},brushSelection:function(){return Ese},brushX:function(){return Mse},brushY:function(){return Sse},chord:function(){return Ase},clientPoint:function(){return m5},cluster:function(){return ide},color:function(){return JR},contourDensity:function(){return mle},contours:function(){return EY},create:function(){return F_e},creator:function(){return p5},cross:function(){return tl},csvFormat:function(){return Tle},csvFormatRows:function(){return Ele},csvParse:function(){return wle},csvParseRows:function(){return kle},cubehelix:function(){return kY},curveBasis:function(){return Pge},curveBasisClosed:function(){return Rge},curveBasisOpen:function(){return Lge},curveBundle:function(){return Zge},curveCardinal:function(){return Nge},curveCardinalClosed:function(){return Bge},curveCardinalOpen:function(){return Fge},curveCatmullRom:function(){return Uge},curveCatmullRomClosed:function(){return Hge},curveCatmullRomOpen:function(){return jge},curveLinear:function(){return v5},curveLinearClosed:function(){return zge},curveMonotoneX:function(){return Wge},curveMonotoneY:function(){return Vge},curveNatural:function(){return Yge},curveStep:function(){return Gge},curveStepAfter:function(){return Kge},curveStepBefore:function(){return qge},customEvent:function(){return R_e},descending:function(){return I_},deviation:function(){return X4},dispatch:function(){return Ff},drag:function(){return W_},dragDisable:function(){return jf},dragEnable:function(){return X1},dsvFormat:function(){return bU},easeBack:function(){return LY},easeBackIn:function(){return Qle},easeBackInOut:function(){return LY},easeBackOut:function(){return Xle},easeBounce:function(){return TS},easeBounceIn:function(){return Kle},easeBounceInOut:function(){return Jle},easeBounceOut:function(){return TS},easeCircle:function(){return RY},easeCircleIn:function(){return Fle},easeCircleInOut:function(){return RY},easeCircleOut:function(){return Ule},easeCubic:function(){return zR},easeCubicIn:function(){return hse},easeCubicInOut:function(){return zR},easeCubicOut:function(){return mse},easeElastic:function(){return ZY},easeElasticIn:function(){return $le},easeElasticInOut:function(){return eue},easeElasticOut:function(){return ZY},easeExp:function(){return PY},easeExpIn:function(){return Nle},easeExpInOut:function(){return PY},easeExpOut:function(){return Ble},easeLinear:function(){return Ale},easePoly:function(){return DY},easePolyIn:function(){return Ple},easePolyInOut:function(){return DY},easePolyOut:function(){return Rle},easeQuad:function(){return xY},easeQuadIn:function(){return Ole},easeQuadInOut:function(){return xY},easeQuadOut:function(){return Ile},easeSin:function(){return IY},easeSinIn:function(){return Lle},easeSinInOut:function(){return IY},easeSinOut:function(){return Zle},entries:function(){return Vse},event:function(){return Ih},extent:function(){return hh},forceCenter:function(){return tue},forceCollide:function(){return bue},forceLink:function(){return wue},forceManyBody:function(){return xue},forceRadial:function(){return Due},forceSimulation:function(){return Sue},forceX:function(){return Aue},forceY:function(){return Oue},format:function(){return YY},formatDefaultLocale:function(){return qY},formatLocale:function(){return VY},formatPrefix:function(){return GY},formatSpecifier:function(){return oL},geoAlbers:function(){return sq},geoAlbersUsa:function(){return Bce},geoArea:function(){return zue},geoAzimuthalEqualArea:function(){return Fce},geoAzimuthalEqualAreaRaw:function(){return d7},geoAzimuthalEquidistant:function(){return Uce},geoAzimuthalEquidistantRaw:function(){return f7},geoBounds:function(){return Gue},geoCentroid:function(){return $ue},geoCircle:function(){return ece},geoClipAntimeridian:function(){return WU},geoClipCircle:function(){return DG},geoClipExtent:function(){return sce},geoClipRectangle:function(){return DL},geoConicConformal:function(){return jce},geoConicConformalRaw:function(){return cq},geoConicEqualArea:function(){return UL},geoConicEqualAreaRaw:function(){return aq},geoConicEquidistant:function(){return Wce},geoConicEquidistantRaw:function(){return dq},geoContains:function(){return hce},geoDistance:function(){return AS},geoEquirectangular:function(){return zce},geoEquirectangularRaw:function(){return FS},geoGnomonic:function(){return Vce},geoGnomonicRaw:function(){return p7},geoGraticule:function(){return FG},geoGraticule10:function(){return mce},geoIdentity:function(){return Yce},geoInterpolate:function(){return _ce},geoLength:function(){return AG},geoMercator:function(){return Hce},geoMercatorRaw:function(){return BS},geoNaturalEarth1:function(){return Gce},geoNaturalEarth1Raw:function(){return h7},geoOrthographic:function(){return qce},geoOrthographicRaw:function(){return m7},geoPath:function(){return xce},geoProjection:function(){return Dh},geoProjectionMutator:function(){return u7},geoRotation:function(){return CG},geoStereographic:function(){return Kce},geoStereographicRaw:function(){return _7},geoStream:function(){return Nd},geoTransform:function(){return Dce},geoTransverseMercator:function(){return Jce},geoTransverseMercatorRaw:function(){return g7},hcl:function(){return vY},hierarchy:function(){return v7},histogram:function(){return t8},hsl:function(){return uY},interpolate:function(){return O7},interpolateArray:function(){return Hq},interpolateBasis:function(){return Nq},interpolateBasisClosed:function(){return Bq},interpolateBlues:function(){return tme},interpolateBrBG:function(){return Rhe},interpolateBuGn:function(){return zhe},interpolateBuPu:function(){return Whe},interpolateCool:function(){return fme},interpolateCubehelix:function(){return Cfe},interpolateCubehelixDefault:function(){return cme},interpolateCubehelixLong:function(){return wfe},interpolateDate:function(){return jq},interpolateGnBu:function(){return Vhe},interpolateGreens:function(){return nme},interpolateGreys:function(){return rme},interpolateHcl:function(){return vfe},interpolateHclLong:function(){return yfe},interpolateHsl:function(){return hfe},interpolateHslLong:function(){return mfe},interpolateInferno:function(){return _me},interpolateLab:function(){return gfe},interpolateMagma:function(){return mme},interpolateNumber:function(){return Xf},interpolateObject:function(){return zq},interpolateOrRd:function(){return Yhe},interpolateOranges:function(){return ame},interpolatePRGn:function(){return Lhe},interpolatePiYG:function(){return Zhe},interpolatePlasma:function(){return gme},interpolatePuBu:function(){return qhe},interpolatePuBuGn:function(){return Ghe},interpolatePuOr:function(){return Nhe},interpolatePuRd:function(){return Khe},interpolatePurples:function(){return ime},interpolateRainbow:function(){return pme},interpolateRdBu:function(){return Bhe},interpolateRdGy:function(){return Fhe},interpolateRdPu:function(){return Jhe},interpolateRdYlBu:function(){return Uhe},interpolateRdYlGn:function(){return Hhe},interpolateReds:function(){return ome},interpolateRgb:function(){return x7},interpolateRgbBasis:function(){return tfe},interpolateRgbBasisClosed:function(){return nfe},interpolateRound:function(){return ofe},interpolateSpectral:function(){return jhe},interpolateString:function(){return Wq},interpolateTransformCss:function(){return lfe},interpolateTransformSvg:function(){return ufe},interpolateViridis:function(){return hme},interpolateWarm:function(){return dme},interpolateYlGn:function(){return Xhe},interpolateYlGnBu:function(){return Qhe},interpolateYlOrBr:function(){return $he},interpolateYlOrRd:function(){return eme},interpolateZoom:function(){return pfe},interrupt:function(){return qX},interval:function(){return Uye},isoFormat:function(){return Zye},isoParse:function(){return Fye},keys:function(){return zse},lab:function(){return gY},line:function(){return y5},lineRadial:function(){return mQ},linkHorizontal:function(){return kge},linkRadial:function(){return Ege},linkVertical:function(){return Tge},local:function(){return lQ},map:function(){return j_},matcher:function(){return KJ},max:function(){return Q6},mean:function(){return WM},median:function(){return VM},merge:function(){return YM},min:function(){return X6},mouse:function(){return H_e},namespace:function(){return f9},namespaces:function(){return d9},nest:function(){return Fse},now:function(){return H_},pack:function(){return Dde},packEnclose:function(){return pq},packSiblings:function(){return Mde},pairs:function(){return G6},partition:function(){return Ade},path:function(){return Zd},permute:function(){return $6},pie:function(){return gge},pointRadial:function(){return sx},polygonArea:function(){return Tfe},polygonCentroid:function(){return Efe},polygonContains:function(){return Dfe},polygonHull:function(){return xfe},polygonLength:function(){return Afe},precisionFixed:function(){return Nue},precisionPrefix:function(){return Bue},precisionRound:function(){return Fue},quadtree:function(){return rL},quantile:function(){return L_},quantize:function(){return kfe},radialArea:function(){return _Q},radialLine:function(){return mQ},randomBates:function(){return Pfe},randomExponential:function(){return Rfe},randomIrwinHall:function(){return _K},randomLogNormal:function(){return Ife},randomNormal:function(){return mK},randomUniform:function(){return Ofe},range:function(){return Bl},rgb:function(){return sY},ribbon:function(){return Bse},scaleBand:function(){return G7},scaleIdentity:function(){return DK},scaleImplicit:function(){return V7},scaleLinear:function(){return xK},scaleLog:function(){return RK},scaleOrdinal:function(){return Y7},scalePoint:function(){return Lfe},scalePow:function(){return X7},scaleQuantile:function(){return LK},scaleQuantize:function(){return ZK},scaleSequential:function(){return hJ},scaleSqrt:function(){return npe},scaleThreshold:function(){return NK},scaleTime:function(){return bhe},scaleUtc:function(){return The},scan:function(){return eR},schemeAccent:function(){return Mhe},schemeBlues:function(){return ZJ},schemeBrBG:function(){return mJ},schemeBuGn:function(){return TJ},schemeBuPu:function(){return EJ},schemeCategory10:function(){return Ehe},schemeDark2:function(){return She},schemeGnBu:function(){return MJ},schemeGreens:function(){return NJ},schemeGreys:function(){return BJ},schemeOrRd:function(){return SJ},schemeOranges:function(){return HJ},schemePRGn:function(){return _J},schemePaired:function(){return xhe},schemePastel1:function(){return Dhe},schemePastel2:function(){return Ahe},schemePiYG:function(){return gJ},schemePuBu:function(){return DJ},schemePuBuGn:function(){return xJ},schemePuOr:function(){return vJ},schemePuRd:function(){return AJ},schemePurples:function(){return FJ},schemeRdBu:function(){return yJ},schemeRdGy:function(){return bJ},schemeRdPu:function(){return OJ},schemeRdYlBu:function(){return CJ},schemeRdYlGn:function(){return wJ},schemeReds:function(){return UJ},schemeSet1:function(){return Ohe},schemeSet2:function(){return Ihe},schemeSet3:function(){return Phe},schemeSpectral:function(){return kJ},schemeYlGn:function(){return PJ},schemeYlGnBu:function(){return IJ},schemeYlOrBr:function(){return RJ},schemeYlOrRd:function(){return LJ},select:function(){return sQ},selectAll:function(){return j_e},selection:function(){return B_e},selector:function(){return p9},selectorAll:function(){return GJ},set:function(){return jse},shuffle:function(){return tR},stack:function(){return Qge},stackOffsetDiverging:function(){return $ge},stackOffsetExpand:function(){return Xge},stackOffsetNone:function(){return IC},stackOffsetSilhouette:function(){return eve},stackOffsetWiggle:function(){return tve},stackOrderAscending:function(){return FQ},stackOrderDescending:function(){return nve},stackOrderInsideOut:function(){return rve},stackOrderNone:function(){return PC},stackOrderReverse:function(){return ive},stratify:function(){return Rde},style:function(){return XJ},sum:function(){return n8},symbol:function(){return Ige},symbolCircle:function(){return E9},symbolCross:function(){return gQ},symbolDiamond:function(){return yQ},symbolSquare:function(){return wQ},symbolStar:function(){return CQ},symbolTriangle:function(){return kQ},symbolWye:function(){return TQ},symbols:function(){return Oge},thresholdFreedmanDiaconis:function(){return W1},thresholdScott:function(){return J6},thresholdSturges:function(){return z1},tickIncrement:function(){return mh},tickStep:function(){return R_},ticks:function(){return P_},timeDay:function(){return uve},timeDays:function(){return cve},timeFormat:function(){return SX},timeFormatDefaultLocale:function(){return DX},timeFormatLocale:function(){return _X},timeFriday:function(){return tX},timeFridays:function(){return mve},timeHour:function(){return sve},timeHours:function(){return lve},timeInterval:function(){return xs},timeMillisecond:function(){return HQ},timeMilliseconds:function(){return jQ},timeMinute:function(){return ove},timeMinutes:function(){return ave},timeMonday:function(){return QQ},timeMondays:function(){return dve},timeMonth:function(){return gve},timeMonths:function(){return vve},timeParse:function(){return xX},timeSaturday:function(){return nX},timeSaturdays:function(){return _ve},timeSecond:function(){return YQ},timeSeconds:function(){return GQ},timeSunday:function(){return L9},timeSundays:function(){return rX},timeThursday:function(){return eX},timeThursdays:function(){return hve},timeTuesday:function(){return XQ},timeTuesdays:function(){return fve},timeWednesday:function(){return $Q},timeWednesdays:function(){return pve},timeWeek:function(){return L9},timeWeeks:function(){return rX},timeYear:function(){return yve},timeYears:function(){return bve},timeout:function(){return gS},timer:function(){return _S},timerFlush:function(){return OV},touch:function(){return z_e},touches:function(){return W_e},transition:function(){return m$},transpose:function(){return GM},tree:function(){return Ude},treemap:function(){return Hde},treemapBinary:function(){return jde},treemapDice:function(){return HS},treemapResquarify:function(){return Wde},treemapSlice:function(){return GL},treemapSliceDice:function(){return zde},treemapSquarify:function(){return Sq},tsvFormat:function(){return xle},tsvFormatRows:function(){return Dle},tsvParse:function(){return Mle},tsvParseRows:function(){return Sle},utcDay:function(){return Eve},utcDays:function(){return Mve},utcFormat:function(){return F9},utcFriday:function(){return fX},utcFridays:function(){return Ove},utcHour:function(){return kve},utcHours:function(){return Tve},utcMillisecond:function(){return HQ},utcMilliseconds:function(){return jQ},utcMinute:function(){return Cve},utcMinutes:function(){return wve},utcMonday:function(){return lX},utcMondays:function(){return Sve},utcMonth:function(){return Pve},utcMonths:function(){return Rve},utcParse:function(){return U9},utcSaturday:function(){return pX},utcSaturdays:function(){return Ive},utcSecond:function(){return YQ},utcSeconds:function(){return GQ},utcSunday:function(){return N9},utcSundays:function(){return hX},utcThursday:function(){return dX},utcThursdays:function(){return Ave},utcTuesday:function(){return uX},utcTuesdays:function(){return xve},utcWednesday:function(){return cX},utcWednesdays:function(){return Dve},utcWeek:function(){return N9},utcWeeks:function(){return hX},utcYear:function(){return Lve},utcYears:function(){return Zve},values:function(){return Wse},variance:function(){return q6},voronoi:function(){return W1e},window:function(){return h9},zip:function(){return r8},zoom:function(){return D$},zoomIdentity:function(){return H5},zoomTransform:function(){return S$}});var Y={};m.r(Y),m.d(Y,{safe:function(){return Kte},spec:function(){return WAe}});var S={};m.r(S),m.d(S,{getTrace:function(){return Zne},isKeyword:function(){return gIe},isProperty:function(){return _Ie},isType:function(){return mIe}});var U={};m.r(U),m.d(U,{generate:function(){return IIe},name:function(){return AIe},parse:function(){return Yne},structure:function(){return OIe}});var L={};m.r(L),m.d(L,{generate:function(){return NIe},name:function(){return RIe},parse:function(){return qne},structure:function(){return ZIe},walkContext:function(){return LIe}});var P={};m.r(P),m.d(P,{generate:function(){return HIe},name:function(){return BIe},parse:function(){return Kne},structure:function(){return UIe},walkContext:function(){return FIe}});var D={};m.r(D),m.d(D,{generate:function(){return KIe},name:function(){return GIe},parse:function(){return Qne},structure:function(){return qIe}});var y={};m.r(y),m.d(y,{generate:function(){return tPe},name:function(){return XIe},parse:function(){return ere},structure:function(){return ePe},walkContext:function(){return $Ie}});var K={};m.r(K),m.d(K,{generate:function(){return iPe},name:function(){return nPe},parse:function(){return tre},structure:function(){return rPe}});var F={};m.r(F),m.d(F,{generate:function(){return sPe},name:function(){return oPe},parse:function(){return nre},structure:function(){return aPe}});var M={};m.r(M),m.d(M,{generate:function(){return cPe},name:function(){return lPe},parse:function(){return rre},structure:function(){return uPe}});var O={};m.r(O),m.d(O,{generate:function(){return hPe},name:function(){return fPe},parse:function(){return ire},structure:function(){return pPe}});var k={};m.r(k),m.d(k,{generate:function(){return bPe},name:function(){return vPe},parse:function(){return are},structure:function(){return yPe}});var I={};m.r(I),m.d(I,{generate:function(){return EPe},name:function(){return kPe},parse:function(){return sre},structure:function(){return TPe}});var T={};m.r(T),m.d(T,{generate:function(){return NPe},name:function(){return RPe},parse:function(){return cre},structure:function(){return ZPe},walkContext:function(){return LPe}});var w={};m.r(w),m.d(w,{generate:function(){return zPe},name:function(){return HPe},parse:function(){return dre},structure:function(){return jPe}});var x={};m.r(x),m.d(x,{generate:function(){return YPe},name:function(){return WPe},parse:function(){return fre},structure:function(){return VPe}});var N={};m.r(N),m.d(N,{generate:function(){return JPe},name:function(){return GPe},parse:function(){return pre},structure:function(){return KPe},walkContext:function(){return qPe}});var R={};m.r(R),m.d(R,{generate:function(){return e3e},name:function(){return XPe},parse:function(){return hre},structure:function(){return $Pe},xxx:function(){return QPe}});var W={};m.r(W),m.d(W,{generate:function(){return r3e},name:function(){return t3e},parse:function(){return mre},structure:function(){return n3e}});var $={};m.r($),m.d($,{generate:function(){return a3e},name:function(){return i3e},parse:function(){return _re},structure:function(){return o3e}});var ce={};m.r(ce),m.d(ce,{generate:function(){return u3e},name:function(){return s3e},parse:function(){return gre},structure:function(){return l3e}});var se={};m.r(se),m.d(se,{generate:function(){return f3e},name:function(){return c3e},parse:function(){return vre},structure:function(){return d3e}});var te={};m.r(te),m.d(te,{generate:function(){return m3e},name:function(){return p3e},parse:function(){return yre},structure:function(){return h3e}});var oe={};m.r(oe),m.d(oe,{generate:function(){return v3e},name:function(){return _3e},parse:function(){return bre},structure:function(){return g3e}});var ve={};m.r(ve),m.d(ve,{generate:function(){return C3e},name:function(){return y3e},parse:function(){return Cre},structure:function(){return b3e}});var Oe={};m.r(Oe),m.d(Oe,{generate:function(){return T3e},name:function(){return w3e},parse:function(){return wre},structure:function(){return k3e}});var st={};m.r(st),m.d(st,{generate:function(){return S3e},name:function(){return E3e},parse:function(){return kre},structure:function(){return M3e}});var xe={};m.r(xe),m.d(xe,{generate:function(){return A3e},name:function(){return x3e},parse:function(){return Tre},structure:function(){return D3e}});var _e={};m.r(_e),m.d(_e,{generate:function(){return R3e},name:function(){return O3e},parse:function(){return Ere},structure:function(){return P3e},walkContext:function(){return I3e}});var ke={};m.r(ke),m.d(ke,{generate:function(){return B3e},name:function(){return L3e},parse:function(){return Mre},structure:function(){return N3e},walkContext:function(){return Z3e}});var Fe={};m.r(Fe),m.d(Fe,{generate:function(){return z3e},name:function(){return H3e},parse:function(){return xre},structure:function(){return j3e}});var ct={};m.r(ct),m.d(ct,{generate:function(){return G3e},name:function(){return V3e},parse:function(){return Dre},structure:function(){return Y3e}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return X3e},name:function(){return K3e},parse:function(){return Ore},structure:function(){return Q3e},walkContext:function(){return J3e}});var Nt={};m.r(Nt),m.d(Nt,{generate:function(){return t6e},name:function(){return $3e},parse:function(){return Ire},structure:function(){return e6e}});var Xt={};m.r(Xt),m.d(Xt,{generate:function(){return o6e},name:function(){return n6e},parse:function(){return Pre},structure:function(){return i6e},walkContext:function(){return r6e}});var en={};m.r(en),m.d(en,{generate:function(){return u6e},name:function(){return s6e},parse:function(){return Nre},structure:function(){return l6e}});var qt={};m.r(qt),m.d(qt,{generate:function(){return h6e},name:function(){return d6e},parse:function(){return Fre},structure:function(){return p6e},walkContext:function(){return f6e}});var Xe={};m.r(Xe),m.d(Xe,{generate:function(){return v6e},name:function(){return _6e},parse:function(){return Hre},structure:function(){return g6e}});var jt={};m.r(jt),m.d(jt,{generate:function(){return k6e},name:function(){return C6e},parse:function(){return Wre},structure:function(){return w6e}});var it={};m.r(it),m.d(it,{generate:function(){return I6e},name:function(){return A6e},parse:function(){return Yre},structure:function(){return O6e}});var vt={};m.r(vt),m.d(vt,{generate:function(){return L6e},name:function(){return P6e},parse:function(){return Gre},structure:function(){return R6e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return F6e},name:function(){return N6e},parse:function(){return qre},structure:function(){return B6e}});var Lt={};m.r(Lt),m.d(Lt,{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 M},ClassSelector:function(){return O},Combinator:function(){return k},Comment:function(){return I},Declaration:function(){return T},DeclarationList:function(){return w},Dimension:function(){return x},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 te},Nth:function(){return oe},Number:function(){return ve},Operator:function(){return Oe},Parentheses:function(){return st},Percentage:function(){return xe},PseudoClassSelector:function(){return _e},PseudoElementSelector:function(){return ke},Ratio:function(){return Fe},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 it},Value:function(){return vt},WhiteSpace:function(){return nt}});var It={};m.r(It),m.d(It,{AtrulePrelude:function(){return Y6e},Selector:function(){return nRe},Value:function(){return oRe}});var on={};m.r(on),m.d(on,{AnPlusB:function(){return Yne},Atrule:function(){return qne},AtrulePrelude:function(){return Kne},AttributeSelector:function(){return Qne},Block:function(){return ere},Brackets:function(){return tre},CDC:function(){return nre},CDO:function(){return rre},ClassSelector:function(){return ire},Combinator:function(){return are},Comment:function(){return sre},Declaration:function(){return cre},DeclarationList:function(){return dre},Dimension:function(){return fre},Function:function(){return pre},Hash:function(){return hre},IdSelector:function(){return _re},Identifier:function(){return mre},MediaFeature:function(){return gre},MediaQuery:function(){return vre},MediaQueryList:function(){return yre},Nth:function(){return bre},Number:function(){return Cre},Operator:function(){return wre},Parentheses:function(){return kre},Percentage:function(){return Tre},PseudoClassSelector:function(){return Ere},PseudoElementSelector:function(){return Mre},Ratio:function(){return xre},Raw:function(){return Dre},Rule:function(){return Ore},Selector:function(){return Ire},SelectorList:function(){return Pre},String:function(){return Nre},StyleSheet:function(){return Fre},TypeSelector:function(){return Hre},UnicodeRange:function(){return Wre},Url:function(){return Yre},Value:function(){return Gre},WhiteSpace:function(){return qre}});var _n={};m.r(_n),m.d(_n,{Lexer:function(){return Z0},Parser:function(){return N0},Renderer:function(){return mN},Slugger:function(){return Gj},TextRenderer:function(){return Yj},Tokenizer:function(){return hN},defaults:function(){return L0},getDefaults:function(){return Vj},lexer:function(){return OLe},marked:function(){return ii},options:function(){return TLe},parse:function(){return DLe},parseInline:function(){return xLe},parser:function(){return ALe},setOptions:function(){return ELe},use:function(){return MLe},walkTokens:function(){return SLe}});var wn,t,An=m(2313),Gt=m(245),Zt=m(4506),Et=m(5647),Ut=m(7685),Ht=m(3237),ln=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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}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(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,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,lt=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 lt,tn={base:new lt({isVoid:!0}),meta:new lt({isVoid:!0}),area:new lt({isVoid:!0}),embed:new lt({isVoid:!0}),link:new lt({isVoid:!0}),img:new lt({isVoid:!0}),input:new lt({isVoid:!0}),param:new lt({isVoid:!0}),hr:new lt({isVoid:!0}),br:new lt({isVoid:!0}),source:new lt({isVoid:!0}),track:new lt({isVoid:!0}),wbr:new lt({isVoid:!0}),p:new lt({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 lt({closedByChildren:["tbody","tfoot"]}),tbody:new lt({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new lt({closedByChildren:["tbody"],closedByParent:!0}),tr:new lt({closedByChildren:["tr"],closedByParent:!0}),td:new lt({closedByChildren:["td","th"],closedByParent:!0}),th:new lt({closedByChildren:["td","th"],closedByParent:!0}),col:new lt({isVoid:!0}),svg:new lt({implicitNamespacePrefix:"svg"}),foreignObject:new lt({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new lt({implicitNamespacePrefix:"math"}),li:new lt({closedByChildren:["li"],closedByParent:!0}),dt:new lt({closedByChildren:["dt","dd"]}),dd:new lt({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new lt({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new lt({closedByChildren:["optgroup"],closedByParent:!0}),option:new lt({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new lt({ignoreFirstLf:!0}),listing:new lt({ignoreFirstLf:!0}),style:new lt({contentType:wn.RAW_TEXT}),script:new lt({contentType:wn.RAW_TEXT}),title:new lt({contentType:{default:wn.ESCAPABLE_RAW_TEXT,svg:wn.PARSABLE_DATA}}),textarea:new lt({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 ut(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 vn(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 Ln(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ln).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,$r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Hi="undefined"!=typeof global&&global||Rr||$r;var Ja=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}(),Na=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=Ja.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}(),qo=function(){function t(r){(0,j.Z)(this,t),this.base=r,this.exponents=[new Na(Ja.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 Na(o)}return this.exponents[e]}}]),t}();function Ko(t){return function lo(t){var r=vn(t),e=function Jo(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||Qa(t)}function Qa(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=vn(t),e=ei(r,0),i=ei(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=Xa(_i(e,1),i)}var o=e[0],a=e[1];return yn(2147483647&o,a)}function ei(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 Xa(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 Cn,Ba=new qo(256);function yn(t,r){var e=Ba.toThePowerOf(0).multiplyBy(r);return Ba.toThePowerOf(4).multiplyByAndAddTo(t,e),e.toString()}!function(t){t[t.None=0]="None",t[t.Const=1]="Const"}(Cn||(Cn={}));var Li,oi=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.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,Ki=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),ti=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),Ji=new Ki(Li.Dynamic),Ci=new Ki(Li.Inferred),Co=new Ki(Li.Bool),Uo=(new Ki(Li.Int),new Ki(Li.Number)),ya=new Ki(Li.String),Qi=(new Ki(Li.Function),new Ki(Li.None));function Fa(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(Ce,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),Qo=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),cs=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),Xi=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),$a=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),es=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),Ua=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.elements=r,this.expressions=e}),Mu=(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:Re(ja(r))}),Ha=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e}),Xo=(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),ja=function(r){return r.replace(/\\/g,"\\\\")},Su=function(r){return r.replace(/^:/,"\\:")},ye=function(r){return r.replace(/:/g,"\\:")},Re=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function Ge(t,r,e){return""===t?{cooked:r,raw:Re(Su(ja(r))),range:e}:{cooked:":".concat(t,":").concat(r),raw:Re(":".concat(ye(ja(t)),":").concat(ja(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)&&Fa(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),$i=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 cs(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),Di=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}(),$o=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 es(null,null,null),Ce=new es(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}(),Rt=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 Rt(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 ti(t,r,e)}function wi(t){return new Qo(t)}function pi(t,r,e){return new So(t,r,e)}function Ai(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new $o(t.map(function(e){return new Di(e.key,e.value,e.quoted)}),r,null)}function xu(t,r){return new Mn(t,r)}function ji(t,r,e,i,o){return new Or(t,r,e,i,o)}function ml(t,r,e,i,o){return new uf(t,r,e,i,o)}function ze(t,r,e,i){return new $a(t,r,e,i)}function me(t,r,e){return new es(t,r,e)}function ie(t,r,e,i,o){return new wo(t,r,e,i,o)}function fe(t){return t instanceof es&&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 es&&!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=Ai(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 Ai(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,Ji)}),[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 es&&"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 ot=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=[]}),to=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 ot(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 Rt?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?Ai(r):null}(i);return null!==o?(r=!0,o):me(null)});return r?Nn(pi(e)):Qi}(t.deps):Qi;return Nn(dr(X.FactoryDeclaration,[id(t.type.type,t.typeArgumentCount),r]))}function ea(t,r){return t.map(function(e,i){return function Au(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 Iu=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}(),ds=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}(),Pu=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}(),ov=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}(),GN=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}(),DI=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}(),av=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 OI(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 PI(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=[]}),sv=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}(),II=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}(),KN=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}(),lv=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 _l="i18n-";function Rm(t){return"i18n"===t||t.startsWith(_l)}function Lm(t){return t instanceof ld}function Db(t){return Lm(t)&&1===t.nodes.length&&t.nodes[0]instanceof II}function tB(t){return!!t.i18n}function nB(t){return t.nodes[0]}function hv(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 lv}).forEach(function(s,l){var u=hv(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 FI(t){return"".concat("MSG_").concat(t).toUpperCase()}function rB(t){return new nr(t.name,void 0,Ci,void 0,t.sourceSpan)}var iB=/[-.]/,Ob="_t",Zl="ctx",mf="rf",mv="restoredCtx",sB=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 _v(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,Ji)),e=si(r)),e}}function gv(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 vv(t,r){return Object.getOwnPropertyNames(t).length>0?function lB(t,r){return Ai(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=ut(e,[e,i]),h=(0,Ut.Z)(f,2);s=o=h[0],l=(a=h[1])!==o&&e.includes(":")}return{key:s,quoted:iB.test(s),value:r&&l?pi([Ls(a),Ls(o)]):Ls(a)}}))}(t,r):null}function rs(t){for(;fe(t[t.length-1]);)t.pop();return t}function UI(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 ps=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 Ai(this.values)}}]),t}();function Ru(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&&sB.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=_v(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 jI(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:yv(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:yv(t.type.value,t.internalType,r)};var s=t.internalType,l=new ps;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:zI(t),statements:e.statements}}function zI(t){return new ti(dr(X.InjectableDeclaration,[id(t.type.type,t.typeArgumentCount)]))}function yv(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",Ji)],[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 aP(t){return 10===t||13===t}function sP(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 uP=0;function zp(t){return t.replace(/\W/g,"_")}var Ub,cP='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',gB=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(cP,"(")),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(cP,"("));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=bB.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=bB.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}(),kv=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 $o(this._evalExportedVars.map(function(s){return new Di(s,si(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a=0?(e="anonymous_".concat(uP++),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}(gB);function Hb(t){var r=new ps;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 ti(dr(X.InjectorDeclaration,[new ti(t.type.type)]))}var dP=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 ps;if(v.set("type",r),e.length>0&&v.set("bootstrap",ns(e,l)),u)i.length>0&&v.set("declarations",ns(i,l)),o.length>0&&v.set("imports",ns(o,l)),a.length>0&&v.set("exports",ns(a,l));else{var C=function CB(t){var r=t.adjacentType,e=t.declarations,i=t.imports,o=t.exports,a=t.containsForwardDecls,s=new ps;if(e.length>0&&s.set("declarations",ns(e,a)),i.length>0&&s.set("imports",ns(i,a)),o.length>0&&s.set("exports",ns(o,a)),0===Object.keys(s.values).length)return null;var u=function Pp(t){return iv("ngJitMode",t)}(new Xi(dr(X.setNgModuleScope),[r,s.toLiteralMap()])),f=new Or([],[u.toStmt()]);return new Xi(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 ti(dr(X.NgModuleDeclaration,[new ti(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)):Qi}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([Ai(r)],void 0,!0),type:fP(t),statements:[]}}function fP(t){return new ti(dr(X.PipeDeclaration,[id(t.type.type,t.typeArgumentCount),new ti(new es(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 Va(e+this.start,e+this.end)}}]),t}(),Wa=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)}(Wa),pP=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}(Wa),vl=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}(Wa),Ev=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}(Wa),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}(Ev),Mv=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}(Wa),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}(Wa),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}(Wa),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}(Wa),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}(Wa),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),yl=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}(Wa),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}(Wa),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}(Wa),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}(Wa),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}(Wa),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 yl(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new yl(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}(Wa),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}(Wa),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}(Wa),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}(Wa),Va=(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 Va(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}(Wa),hP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),mP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),tW=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}(),Sv=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 yl(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,_P=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.stmts=r,this.currValExpr=e});function wB(t,r,e,i){t||(t=new yP);var o=new e1(t,r,i,!1),a=e.visit(o,co.Expression),s=Xb(o,i);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),new _P(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 TB(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 vP(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");vP(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,xu(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 Ev&&!(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 za(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),yP=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 vl(i,o),a,null)).converter=s,l}return(0,V.Z)(e)}(Gm),bP=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=SB(e);e=MB(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(wP,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(pt,i,o);else{var Pe=pt.replace(bf,"");if(Pe.length>0){var at=Pe.match(/([^:]*)(:*)(.*)/);at&&(ht=at[1]+l+at[2]+at[3])}}return ht},f=new CP(e),h="",v=0,B=/( |>|\+|~(?!=))\s*/g,q=!((e=f.content()).indexOf(_d)>-1);null!==(C=B.exec(e));){var ae=C[1],pe=e.slice(v,C.index).trim(),Ve=(q=q||pe.indexOf(_d)>-1)?u(pe):pe;h+="".concat(Ve," ").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(SP,r1)}}]),t}(),CP=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,wP=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,UT=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,r1="-shadowcsshost",Jm="-shadowcsscontext",HT="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",kP=new RegExp(r1+HT,"gim"),TP=new RegExp(Jm+HT,"gim"),EP=new RegExp(Jm+HT,"im"),_d=r1+"-no-combinator",jT=/-shadowcsshost-no-combinator([^\s]*)/,i1=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Av=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,MP="([>\\s~+[.,{:][\\s\\S]*)?$",bf=/-shadowcsshost/gim,SP=/:host/gim,zT=/:host-context/gim,Ov=/\/\*[\s\S]*?\*\//g;function MB(t){return t.replace(Ov,"")}var xP=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function SB(t){return t.match(xP)||[]}var WT="%BLOCK%",VT=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,AP=/%QUOTED%/g,nW=new Map([["{","}"]]),OP=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=IP(t,OP,"%QUOTED%"),i=IP(e.escapedString,nW,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(AP,function(){return e.blocks[a++]})}var xB=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.escapedString=r,this.blocks=e});function IP(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=LP(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?RP(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var v=t.substr(a).trim();r.push(l,u?RP(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 BP(t){switch(Ru(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 vl}!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 Bu=["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 Pv(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 Iv(t,r,e){return new gd(t,r,hi.Operator,0,e)}var Qm=new gd(-1,-1,hi.Character,0,""),Pv=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(Rv(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(),Iv(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),Iv(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();Lv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Bu.indexOf(i)>-1?function UP(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(),!Rv(this.peek))return this.error("Invalid character [#]",-1);for(;Lv(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(!oW(this.peek))break;if(this.advance(),IB(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 RB(t){var r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}(a):parseFloat(a);return function HP(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=PB(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 rW(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()),Iv(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function iW(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 Rv(t){return 97<=t&&t<=122||65<=t&&t<=90||95==t||36==t}function Lv(t){return kT(t)||pd(t)||95==t||36==t}function oW(t){return 101==t||69==t}function IB(t){return 45==t||43==t}function PB(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,LB=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.strings=r,this.expressions=e,this.offsets=i}),jP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.templateBindings=r,this.warnings=e,this.errors=i}),ZB=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 zP;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 Pv(t);if(!Rv(r.peek))return!1;for(r.advance();0!==r.peek;){if(!Lv(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 pP(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 Va(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?WP(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 yl(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new yl(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new yl(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new yl(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 Ev(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new yl(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new yl(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new vl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new vl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new vl(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 Ev(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 vl(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 vl(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 Va(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}(Zv),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 YP=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_,BB=/\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(BB,"\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 UB(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 YP("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 YP("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 YP(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 HB(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(qP,""===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(bl);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(bl),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(bl),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(bl);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(bl),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(bl),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 qP(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(bl);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(bl),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(bl),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(bl)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(fd).trim();this._endToken([e]),this._attemptCharCodeUntilFn(bl),this._beginToken(21),this._requireCharCode(fd),this._endToken([]),this._attemptCharCodeUntilFn(bl),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(hc),this._endToken([]),this._attemptCharCodeUntilFn(bl),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 bl(t){return!wT(t)||0===t}function qP(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 FB(t){return 59===t||0===t||!function _B(t){return t>=97&&t<=102||t>=65&&t<=70||pd(t)}(t)}function KP(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 za(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):aP(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,ln.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ht.Z)((0,ln.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 QP(a.tokens,this.getTagDefinition);return s.build(),new oE(s.rootNodes,a.errors.concat(s.errors))}}]),t}(),QP=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 za(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new za(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new aW(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(Cl.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(Cl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Cl.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 za(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(Cl.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 za(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new za(e.sourceSpan.start,h,e.sourceSpan.fullStart),B=new VP(l,s,[],v,C,void 0);this._pushElement(B),u?this._popElement(l,v):4===e.type&&(this._popElement(l,null),this.errors.push(Cl.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(Cl.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(Cl.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 za(l.start,u,l.fullStart);return new sW(i,a,new za(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 XP=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,ln.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(JP),Nv="ngPreserveWhitespaces",jB=new Set(["pre","template","textarea","script","style"]),aE=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",lW=new RegExp("[^".concat(aE,"]")),$P=new RegExp("[".concat(aE,"]{2,}"),"g");function t3(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 jB.has(e.name)||function e3(t){return t.some(function(r){return r.name===Nv})}(e.attrs)?new VP(e.name,_c(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new VP(e.name,e.attrs,function WB(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!==Nv?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(lW),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 zB(t){var r=t.type,e=t.parts,i=t.sourceSpan;return{type:r,parts:[n3(e[0])],sourceSpan:i}}(u):u}),l=n3(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 n3(t){return t3(t).replace($P," ")}function r3(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ai(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 VB=(0,V.Z)(function t(){(0,j.Z)(this,t)}),a3=["[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"},s3=Object.keys(dE).reduce(function(t,r){return t[dE[r]]=r,t},{}),l3=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={},a3.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(Be){i._schema[Be.toLowerCase()]=a,i._eventSchema[Be.toLowerCase()]=s});var ae=q&&i._schema[q.toLowerCase()];if(ae){Object.keys(ae).forEach(function(Be){a[Be]=ae[Be]});var Ve,pe=(0,cn.Z)(i._eventSchema[q.toLowerCase()]);try{for(pe.s();!(Ve=pe.n()).done;){var Me=Ve.value;s.add(Me)}}catch(Be){pe.e(Be)}finally{pe.f()}}v.forEach(function(Be){if(Be.length>0)switch(Be[0]){case"*":s.add(Be.substring(1));break;case"!":a[Be.substring(1)]="boolean";break;case"#":a[Be.substring(1)]="number";break;case"%":a[Be.substring(1)]="object";break;default:a[Be]="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=s3[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 Va(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=ut(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 vl?(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 za(t.start.moveBy(e),t.end.moveBy(i),t.fullStart.moveBy(e),t.details)}var wl,$B=/^([^:/?#]+):/;function tF(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 h3(t){return null===t||0===t.length?"*":t}(r);var s=t.name.toLowerCase(),l=wl.OTHER;return de(s)?l=wl.NG_CONTENT:"style"==s?l=wl.STYLE:"script"==s?l=wl.SCRIPT:"link"==s&&"stylesheet"==i&&(l=wl.STYLESHEET),new p3(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"}(wl||(wl={}));var p3=(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 m3=/^(?:(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 Fv(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,Fv=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=tF(e);if(a.type===wl.SCRIPT)return null;if(a.type===wl.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===wl.STYLESHEET&&function XB(t){if(null==t||0===t.length||"/"==t[0])return!1;var r=t.match($B);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Ve,l=function Te(t){return"ng-template"===Bt(t)[1]}(e.name),u=[],f=[],h=[],v=[],C=[],B={},G=[],q=[],ae=!1,pe=(0,cn.Z)(e.attrs);try{for(pe.s();!(Ve=pe.n()).done;){var Me=Ve.value,Be=!1,pt=ME(Me.name),ht=!1;if(Me.i18n&&(B[Me.name]=Me.i18n),pt.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 Pe=Me.value,at=pt.substring("*".length),Ct=[],E=Me.valueSpan?Me.valueSpan.start.offset:Me.sourceSpan.start.offset+Me.name.length;this.bindingParser.parseInlineTemplateBinding(at,Pe,Me.sourceSpan,E,[],G,Ct,!0),q.push.apply(q,(0,$t.Z)(Ct.map(function(Bn){return new DI(Bn.name,Bn.value,Bn.sourceSpan,Bn.keySpan,Bn.valueSpan)})))}else Be=this.parseAttribute(l,Me,[],u,f,h,v);!Be&&!ht&&C.push(this.visitAttribute(Me))}}catch(Bn){pe.e(Bn)}finally{pe.f()}var A,_=_c(a.nonBindable?EE:this,e.children);if(a.type===wl.NG_CONTENT){e.children&&!e.children.every(function(Bn){return function g3(t){return t instanceof $m&&0==t.value.trim().length}(Bn)||function iF(t){return t instanceof eE}(Bn)})&&this.reportError(" element cannot have content.",e.sourceSpan);var H=a.selectAttr,ee=e.attrs.map(function(Bn){return i.visitAttribute(Bn)});A=new GN(H,ee,e.sourceSpan,e.i18n),this.ngContentSelectors.push(H)}else if(l){var re=this.extractAttributes(e.name,u,B);A=new ov(e.name,C,re.bound,f,[],_,v,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var ge=this.extractAttributes(e.name,u,B);A=new sd(e.name,C,ge.bound,f,_,v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(ae){var ft=this.extractAttributes("ng-template",G,B),St=[];ft.literal.forEach(function(Bn){return St.push(Bn)}),ft.bound.forEach(function(Bn){return St.push(Bn)});var be=A instanceof sd?{attributes:A.attributes,inputs:A.inputs,outputs:A.outputs}:{attributes:[],inputs:[],outputs:[]},rt=l&&o?void 0:e.i18n,Pt=A instanceof ov?null:A.name;A=new ov(Pt,be.attributes,be.inputs,be.outputs,St,[A],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,rt)}return o&&(this.inI18nBlock=!1),A}},{key:"visitAttribute",value:function(e){return new Pu(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 ds(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 Iu(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 Pu(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(St,be,rt){var Pt=i.name.length-h.length,Bn=St.start.moveBy(be.length+Pt),er=Bn.moveBy(rt.length);return new za(Bn,er,Bn,rt)}var q=h.match(m3);if(q){if(null!=q[1]){var ae=q[7],pe=G(C,q[1],ae);this.bindingParser.parsePropertyBinding(ae,v,!1,C,B,i.valueSpan,o,a,pe)}else if(q[2])if(e){var Ve=q[7],Me=G(C,q[2],Ve);this.parseVariable(Ve,v,C,Me,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Be=q[7],pt=G(C,q[3],Be);this.parseReference(Be,v,C,pt,i.valueSpan,u)}else if(q[4]){var ht=[],Pe=q[7],at=G(C,q[4],Pe);this.bindingParser.parseEvent(Pe,v,!1,C,i.valueSpan||C,o,ht,at),h1(ht,s)}else if(q[5]){var Ct=q[7],E=G(C,q[5],Ct);this.bindingParser.parsePropertyBinding(Ct,v,!1,C,B,i.valueSpan,o,a,E),this.parseAssignmentEvent(Ct,v,C,i.valueSpan,o,s,E)}else if(q[6]){var _=G(C,"",h);this.bindingParser.parseLiteralAttr(h,v,C,B,i.valueSpan,o,a,_)}return!0}var A=null;if(h.startsWith(bc_BANANA_BOX.start)?A=bc_BANANA_BOX:h.startsWith(bc_PROPERTY.start)?A=bc_PROPERTY:h.startsWith(bc_EVENT.start)&&(A=bc_EVENT),null!==A&&h.endsWith(A.end)&&h.length>A.start.length+A.end.length){var H=h.substring(A.start.length,h.length-A.end.length),ee=G(C,A.start,H);if(A.start===bc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,ee),this.parseAssignmentEvent(H,v,C,i.valueSpan,o,s,ee);else if(A.start===bc_PROPERTY.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,ee);else{var re=[];this.bindingParser.parseEvent(H,v,!1,C,i.valueSpan||C,o,re,ee),h1(re,s)}return!0}var ge=G(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,v,C,i.valueSpan,o,a,ge,null!==(f=i.valueTokens)&&void 0!==f?f:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=t3(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new ds(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 DI(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 av(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}(),rF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=tF(e);if(i.type===wl.SCRIPT||i.type===wl.STYLE||i.type===wl.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 Pu(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 rF;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 oF(){return{getUniqueId:uT(),icus:new Map}}!function(t){t[t.ELEMENT=0]="ELEMENT",t[t.TEMPLATE=1]="TEMPLATE"}(Cc||(Cc={}));var v3=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||oF(),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(aF))}),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(y3(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(y3(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 hv("".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 y3(t,r){return function(e){return"object"==typeof e&&e.type===Cc.TEMPLATE&&e.index===r&&e.ctx===t}}function aF(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}(),sF=new o_;function b3(t){return t.visit(sF)}var C3={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"},lF=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=C3[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=C3[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 ZB(new JT);function uF(t){var r=new dF(Bs,t);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function cF(t,r){return r}var dF=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 lF,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||cF},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 KN(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 sv(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 sv(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 II(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=hF(v)||"INTERPOLATION",B=o.placeholderRegistry.getPlaceholderName(C,v);o.placeholderToContent[B]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new lv(v,B,h.sourceSpan));break;default:if(h.parts[0].length>0){var G=s[s.length-1];G instanceof sv?(G.value+=h.parts[0],G.sourceSpan=new za(G.sourceSpan.start,h.sourceSpan.end,G.sourceSpan.fullStart,G.sourceSpan.details)):s.push(new sv(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function w3(t,r){if(r instanceof ld&&(function fF(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 pW(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=uF(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 $z(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,k3)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(_l)){var h=u.name.slice(_l.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;nB(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 vF(){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=[Ko(e),Qa(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 hW(e.sourceSpan,i))}}]),t}();function xE(t,r,e,i){var o=function E3(t){return t.nodes.map(function(r){return r.visit(T3,null)}).join("")}(r),a=[me(o)];Object.keys(i).length&&a.push(r3(i,!0));var s=e.set(si("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function mW(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 yF=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 b3(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}(),T3=new yF;function gW(t,r,e){var i=function vW(t){var r=[],e=new Fu(t.placeholderToMessage,r);return t.nodes.forEach(function(i){return i.visit(e)}),function M3(t){var r=[],e=[];t[0]instanceof Xo&&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(Zl):e.getOrCreateSharedContextVar(0),v=ZT(e,h,l,"b",t.handlerSpan,f,CF),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,Ji));var ae=ji(q,C,Ci,null,G),pe=[me(B),ae];return a&&pe.push(me(!1),dr(g1.get(a))),pe}function wF(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var kF=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]:wF();(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=gv,this.visitVariable=gv,this.visitTextAttribute=gv,this.visitBoundAttribute=gv,this.visitBoundEvent=gv,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new x3(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(pe){return o.registerContextVariables(pe)});var l=this.i18nContext||Lm(s)&&!Db(s)&&!(d_(e)&&e[0].i18n===s),u=Mf(e);if(l&&this.i18nStart(null,s,u),OI(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(pe){return pe()}),0===this.level&&this._ngContentReservedSlots.length){var f=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(pe){return"*"!==pe?Yt(pe):pe});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(Zl,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(mv),s.notifyRestoredViewContextUse()):u=si(Zl):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 Ll(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(r3(f,!0)),_v(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 v3(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,pe,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();!(pe=ae.n()).done;){var Ve=pe.value,Me=Ve.name,Be=Ve.value;"ngNonBindable"===Me?u=!0:"style"===Me?l.registerStyleAttr(Be):"class"===Me?l.registerClassAttr(Be):h.push(Ve)}}catch(kn){ae.e(kn)}finally{ae.f()}var pt=[me(s)];q||pt.push(me(G));var ht=[],Pe=[];e.inputs.forEach(function(kn){l.registerBoundInput(kn)||(0===kn.type&&kn.i18n?Pe.push(kn):ht.push(kn))});var at=this.getAttributeExpressions(e.name,h,ht,e.outputs,l,[],Pe);pt.push(this.addAttrsToConsts(at));var Ct=this.prepareRefsArray(e.references);pt.push(this.addToConsts(Ct));var E=this._namespace,_=this.getNamespaceInstruction(B);_!==E&&this.addNamespaceInstruction(_,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var A=!f&&this.i18n?!Mf(e.children):e.children.length>0,H=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Pe.length&&!A,ee=!H&&Mf(e.children);if(H)this.creationInstruction(e.sourceSpan,q?X.elementContainer:X.element,rs(pt));else{if(this.creationInstruction(e.startSourceSpan,q?X.elementContainerStart:X.elementStart,rs(pt)),u&&this.creationInstruction(e.startSourceSpan,X.disableBindings),Pe.length>0&&this.i18nAttributesInstruction(s,Pe,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var ge,re=(0,cn.Z)(e.outputs);try{for(re.s();!(ge=re.n()).done;){var ft=ge.value;this.creationInstruction(ft.sourceSpan,X.listener,this.prepareListenerParameter(e.name,ft,s))}}catch(kn){re.e(kn)}finally{re.f()}}f&&this.i18nStart(e.startSourceSpan,e.i18n,ee)}for(var St=l.buildUpdateLevelInstructions(this._valueConverter),be=St.length-1,rt=0;rt<=be;rt++){var Pt=St[rt];this._bindingSlots+=this.processStylingUpdateInstruction(s,Pt)}var Bn=me(void 0),er=[],Rn=[];ht.forEach(function(kn){var Br=kn.type;if(4===Br){var qr=kn.value.visit(i._valueConverter),Go=!(qr instanceof yl)||!!qr.value;i.allocateBindingSlots(qr),er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return Go?i.convertPropertyBinding(qr):Bn},Mm(kn.name))})}else{if(kn.i18n)return;var Gi=kn.value.visit(i._valueConverter);if(void 0!==Gi){var Cs=[],YN=Bt(kn.name),Yoe=(0,Ut.Z)(YN,2),Goe=Yoe[0],xI=Yoe[1],KVe=1===Br,Yz=Kp(kn.securityContext,KVe);if(Yz&&Cs.push(Yz),Goe){var qoe=me(Goe);Yz?Cs.push(qoe):Cs.push(me(null),qoe)}if(i.allocateBindingSlots(Gi),0===Br)Gi instanceof Qs?i.interpolatedUpdateInstruction(l_(Gi),s,xI,kn,Gi,Cs):er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(Gi)},xI,Cs)});else if(1===Br)if(Gi instanceof Qs&&Ru(Gi)>1)i.interpolatedUpdateInstruction(function Fs(t){switch(Ru(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}}(Gi),s,xI,kn,Gi,Cs);else{var JVe=Gi instanceof Qs?Gi.expressions[0]:Gi;Rn.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(JVe)},xI,Cs)})}else i.updateInstructionWithAdvance(s,kn.sourceSpan,X.classProp,function(){return[me(s),me(xI),i.convertPropertyBinding(Gi)].concat(Cs)})}}});for(var gn=0,ma=er;gn0&&this.i18nAttributesInstruction(s,ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),pe.length>0&&this.templatePropertyBindings(s,pe);var Me,Ve=(0,cn.Z)(e.outputs);try{for(Ve.s();!(Me=Ve.n()).done;){var Be=Me.value;this.creationInstruction(Be.sourceSpan,X.listener,this.prepareListenerParameter("ng_template",Be,s))}}catch(pt){Ve.e(pt)}finally{Ve.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(Ru(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 _v(null,X.i18nPostprocess,[v,r3(B,!0)])};if(Db(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var f=this.i18nTranslate(l,{},void 0,u);o.appendIcu(nB(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(Zl):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=wB(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===bF&&(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(Pe){C.e(Pe)}finally{C.f()}function pe(Pe,at){"string"==typeof Pe?f.has(Pe)||(h.push.apply(h,(0,$t.Z)(a_(Pe))),void 0!==at&&h.push(at),f.add(Pe)):h.push(me(Pe))}if(v&&h.push.apply(h,(0,$t.Z)(wc(v))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Ve=h.length,Me=0;Me0?this.addToConsts(pi(e)):Ce}},{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]}))):Ce}},{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,CF);return v1(i,u,f)}}}]),t}(),x3=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 Ev(o.span,o.sourceSpan),l),h=function EF(t){var r=TF[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 yl(o.span,o.sourceSpan,s),new yl(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 D3(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=Ai(l.map(function(f,h){return{key:o.keys[h].key,value:f,quoted:o.keys[h].quoted}}));return D3(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(PT),TF=[X.pipeBind1,X.pipeBind2,X.pipeBind3,X.pipeBind4];var MF=[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 D3(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=MF[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$$",SF=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 d3(new ZB(new JT),t,Nl,[])}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(Nl.securityContext(t,r.name,!0)){case tt.HTML:return ze(dr(X.trustConstantHtml),new Ua([new Mu(r.value)],[]),void 0,r.valueSpan);case tt.RESOURCE_URL:return ze(dr(X.trustConstantResourceUrl),new Ua([new Mu(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 ds||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=[rB(r),ml(h_(),xE(r,t,e,fT(i,!0)),gW(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\.([^\]]+)/,O3="_nghost-".concat("%COMP%"),I3="_ngcontent-".concat("%COMP%");function IE(t,r,e){var i=new ps,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 xF(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)(Z3(u,r)))).toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Zl).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(Zl,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 AF(t,r,e){var i=[],o=[],a=hT(o,Ob);t.forEach(function(l){var u=dr(X.viewQuery).callFn(Z3(l,r));i.push(u.toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Zl).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(Zl,null)],[Tf(1,i),Tf(2,o)],Ci,null,s)}(t.viewQueries,r,t.name)),i.set("hostBindings",function OF(t,r,e,i,o,a,s){var l=si(Zl),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 IF(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(Ve){a.e(Ve)}finally{a.f()}for(var C=0,B=i;C-1&&St.indexOf(tt.RESOURCE_URL)>-1?dr(X.sanitizeUrlOrResourceUrl):Kp(St[0],ft));var rt=[me(re),H.currValExpr];be&&rt.push(be),G.push.apply(G,(0,$t.Z)(H.stmts)),ge===X.hostProperty?ht.push(rt):ge===X.attribute?Pe.push(rt):ge===X.syntheticHostProperty?at.push(rt):B.push({reference:ge,paramsOrFn:rt,span:null})}for(var Pt=0,Bn=ht;Pt0||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(Zl,null)],kn,Ci,null,yr)}return null}(t.host,t.typeSourceSpan,e,r,t.selector||"",t.name,i)),i.set("inputs",vv(t.inputs,!0)),i.set("outputs",vv(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 R3(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(E){return me(null!=E?E:void 0)})),!0))}var l=t.name,u=l?"".concat(l,"_Template"):null,f=t.changeDetection,h=t.template,v=new kF(r,SF.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 pe=pi(q);ae.length>0&&(pe=ji([],[].concat((0,$t.Z)(ae),[new _o(pe)]))),i.set("consts",pe)}if(i.set("template",C),t.directives.length>0){var Me=RE(pi(t.directives.map(function(E){return E.type})),t.declarationListEmitMode);i.set("directives",Me)}if(t.pipes.size>0){var pt=RE(pi(Array.from(t.pipes.values())),t.declarationListEmitMode);i.set("pipes",pt)}if(null===t.encapsulation&&(t.encapsulation=jn.Emulated),t.styles&&t.styles.length){var ht=t.encapsulation==jn.Emulated?function ZF(t,r,e){var i=new bP;return t.map(function(o){return i.shimCssText(o,r,e)})}(t.styles,I3,O3):t.styles,Pe=ht.map(function(E){return r.getConstLiteral(me(E))});i.set("styles",pi(Pe))}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",Ai([{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:L3(t),statements:[]}}function L3(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 Z3(t,r){var e=[UI(t,r),me(N3(t))];return t.read&&e.push(t.read),e}function N3(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function DF(t){return Nn(me(t))}function LE(t){return Nn(Ai(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)}))):Qi}function NE(t){var r=null!==t.selector?t.selector.replace(/\n/g,""):null;return[id(t.type.type,t.typeArgumentCount),null!==r?DF(r):Qi,null!==t.exportAs?ZE(t.exportAs):Qi,LE(t.inputs),LE(t.outputs),ZE(t.queries.map(function(e){return e.propertyName}))]}function F3(t){var r=NE(t);return Nn(dr(X.DirectiveDeclaration,r))}function U3(t,r){return wB(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 PF=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var H3=(0,V.Z)(function t(){(0,j.Z)(this,t)}),NF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new eW;(0,j.Z)(this,t),this.jitEvaluator=r,this.FactoryTarget=ur,this.ResourceLoader=H3,this.elementSchemaRegistry=new l3}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=jI({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:YE(o.providedIn),useClass:m_(o,j3),useFactory:VE(o,bd),useValue:m_(o,z3),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=jI({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,providedIn:YE(o.providedIn),useClass:m_(o,j3),useFactory:VE(o,bd),useValue:m_(o,z3),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 Tv(t){var r=new ps;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=V3(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 P3(t,r,e){var i=IE(t,r,e);return PE(i,t),{expression:dr(X.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:F3(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),V3(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 UF(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(HF),pipes:jF(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=R3(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 lP(t,r,e){var i="in ".concat(t," ").concat(r," in ").concat(e),o=new Fb("",i);return new za(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 dP(i),!0).$def}}]),t}(),j3=Object.keys({useClass:null})[0],bd=Object.keys({useFactory:null})[0],z3=Object.keys({useValue:null})[0],UE=Object.keys({useExisting:null})[0];function W3(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 V3(t){var r=G3(t.inputs||[]),e=G3(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:zF(t.propMetadata,t.typeSourceSpan,t.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:t.queries.map(W3),providers:null!=t.providers?new br(t.providers):null,viewQueries:t.viewQueries.map(W3),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:BF(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 BF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:FF(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 FF(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 XP).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 mF(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 mF(i,!1),h)));var G=TE(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=G.nodes,ae=G.errors,pe=G.styleUrls,Ve=G.styles,Me=G.ngContentSelectors,Be=G.commentNodes;ae.push.apply(ae,(0,$t.Z)(u.errors).concat((0,$t.Z)(C.errors)));var pt={interpolationConfig:i,preserveWhitespaces:o,errors:ae.length>0?ae:null,nodes:q,styleUrls:pe,styles:Ve,ngContentSelectors:Me};return e.collectCommentNodes&&(pt.commentNodes=Be),pt}(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 es(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 zF(t,r,e){var i=function RF(t){for(var r={},e={},i={},o={},a=0,s=Object.keys(t);a-1?1:1e3;return parseFloat(t)*r}function m6(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 zv(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,Hn.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,Hn.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,Hn.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,Hn.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(),h6(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,Oi.yG)(i):(0,Oi.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;h6(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=v6(l,this._document),this._previewRef=l,e.matchSize?y_(a,s):a.style.transform=Wv(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=m6(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=m6(r,"transition-duration"),s=m6(r,"transition-delay");return jv(a[o])+jv(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=v6(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=Wv(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=Wv(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)&&zv(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,Hn.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 Wv(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 v6(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=Wv(r.left,r.top)}function Yv(t,r){return Math.max(0,Math.min(r,t))}var y6=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,S4.F)(0,x4.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,Hn.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,Hn.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,Hn.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(pe){return pe.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 Vv(t,r,e){var i=Yv(r,t.length-1),o=Yv(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=b6(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,Hn.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,Hn.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,Hn.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){zv(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,Hn.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 b6(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}),Gv=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}();Gv.\u0275fac=function(r){return new(r||Gv)(n.LFG(n.R0b),n.LFG(wt.K0))},Gv.\u0275prov=n.Yz7({token:Gv,factory:Gv.\u0275fac,providedIn:"root"});var YW={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]:YW;return new D1(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new y6(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();$p.\u0275fac=function(r){return new(r||$p)(n.LFG(wt.K0),n.LFG(n.R0b),n.LFG(ka.rL),n.LFG(Gv))},$p.\u0275prov=n.Yz7({token:$p,factory:$p.\u0275fac,providedIn:"root"});var C6=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,Hn.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 w6=new n.OlP("CDK_DRAG_CONFIG");var k6=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(k6++),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,Hn.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,Hn.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,Hn.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Hn.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Hn.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(w6,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"),qv=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,Hn.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),t}();qv.\u0275fac=function(r){return new(r||qv)(n.Y36(n.SBq),n.Y36(C6,12))},qv.\u0275dir=n.lG2({type:qv,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[n._Bn([{provide:kM,useExisting:qv}])]});var T6=new n.OlP("CdkDragPlaceholder"),Kv=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});Kv.\u0275fac=function(r){return new(r||Kv)(n.Y36(n.Rgc))},Kv.\u0275dir=n.lG2({type:Kv,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[n._Bn([{provide:T6,useExisting:Kv}])]});var TM=new n.OlP("CdkDragPreview"),Jv=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,Hn.Ig)(e)}}]),t}();Jv.\u0275fac=function(r){return new(r||Jv)(n.Y36(n.Rgc))},Jv.\u0275dir=n.lG2({type:Jv,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[n._Bn([{provide:TM,useExisting:Jv}])]});var Uu=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,Hn.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,no.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,Hn.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,Hn.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,no.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,ms.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}();Uu._dragInstances=[],Uu.\u0275fac=function(r){return new(r||Uu)(n.Y36(n.SBq),n.Y36(b_,12),n.Y36(wt.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(w6,8),n.Y36(Es.Is,8),n.Y36($p),n.Y36(n.sBO),n.Y36(kM,10),n.Y36(C6,12))},Uu.\u0275dir=n.lG2({type:Uu,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,TM,5),n.Suo(i,T6,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:C6,useExisting:Uu}]),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 E6(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 M6(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 Ve,G="rtl"===a.direction,q=G?"right":"left",ae=G?"left":"right",pe=(0,cn.Z)(e);try{for(pe.s();!(Ve=pe.n()).done;)for(var Me=Ve.value,Be=0;Be1&&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"),Xv=(0,V.Z)(function t(){(0,j.Z)(this,t)});Xv.\u0275fac=function(r){return new(r||Xv)},Xv.\u0275dir=n.lG2({type:Xv,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,Hn.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,Hn.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,no.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 W4=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V4(){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:$v,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,A6.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,A6.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,Hn.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,Hn.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Hn.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,no.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(Oi.qV),n.Y36(Oi.tE),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Oi.ic),n.Y36(wt.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:$v,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,Hn.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,Hn.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,O6.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,no.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(W4),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(j4),n.YNc(0,$W,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,I6,2,0,"mat-drawer-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[Dd,wt.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:$v,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,Hn.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Hn.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Hn.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:$v,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(R6),n.YNc(0,P6,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,tV,2,0,"mat-sidenav-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[sh,wt.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:[[wt.ez,sn.BQ,ka.ZD],ka.ZD,sn.BQ]});var Z1=m(839),uh=m(6053),Ea=m(1709),ch=m(8117),LM=m(2821),Z6=m(3906),ZM=m(519);function NM(t,r){return t=function Y4(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 B6(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=N6(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 F6(t){if(t===window)return function K4(){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 J4=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=J4(t),i=0;iA.right-e.margin.right?Math.ceil(Math.min(1,(s.x-A.right)/e.margin.right+1)*e.maxSpeed.right):0,ee=s.yA.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-A.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(_,{pageX:s.pageX+H,pageY:s.pageY+ee,clientX:s.x+H,clientY:s.y+ee}),setTimeout(function(){ee&&function Ct(_,A){_===window?window.scrollTo(_.pageXOffset,_.pageYOffset+A):_.scrollTop+=A}(_,ee),H&&function E(_,A){_===window?window.scrollTo(_.pageXOffset+A,_.pageYOffset):_.scrollLeft+=A}(_,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",pt,!1),window.addEventListener("touchmove",pt,!1),window.addEventListener("mouseleave",Ve,!1),window.addEventListener("scroll",G,!0)}function H6(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],pe=q[1];return{currentDrag$:u,transformX:ae.clientX-o.clientX,transformY:ae.clientY-o.clientY,clientX:ae.clientX,clientY:ae.clientY,scrollLeft:pe.left,scrollTop:pe.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,pe=G.transformX,Ve=G.transformY;return!e.validateDrag||e.validateDrag({x:q,y:ae,transform:{x:pe,y:Ve}})}),(0,Yr.R)(h),(0,ch.B)()),C=v.pipe((0,no.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,pe=G.x,Ve=G.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:f})}),e.scroller=j6([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(),Be=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Be):e.element.nativeElement.parentNode.insertBefore(Be,e.element.nativeElement.nextSibling),e.ghostElement=Be,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Be,{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 pt=e.vcr.createEmbeddedView(e.ghostElementTemplate);Be.innerHTML="",pt.rootNodes.filter(function(ht){return ht instanceof Node}).forEach(function(ht){Be.appendChild(ht)}),B.subscribe(function(){e.vcr.remove(e.vcr.indexOf(pt))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-pe,clientY:ae-Ve,element:Be})}),B.subscribe(function(){Be.parentElement.removeChild(Be),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,Z6.Q)(),(0,no.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,pe=G.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:ae,dragCancelled:pe})}),F1(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,To.T)(h,B).pipe((0,no.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),v}),(0,ch.B)());(0,To.T)(i.pipe((0,no.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 z6(t,r,e){return t>=e.left&&t<=e.right&&r>=e.top&&r<=e.bottom}ry.\u0275fac=function(r){return new(r||ry)(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(wt.K0))},ry.\u0275dir=n.lG2({type:ry,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 iy=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=z6(v,C,o.rect),ae=!e.validateDrop||e.validateDrop({clientX:v,clientY:C,target:G,dropData:B});return o.scrollContainerRect?q&&ae&&z6(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}();iy.\u0275fac=function(r){return new(r||iy)(n.Y36(n.SBq),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(A_,8))},iy.\u0275dir=n.lG2({type:iy,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 W6(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 V6=U1(Nf),HM=V6.right,Y6=V6.left,O_=HM;function G6(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 q6(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 X4(t,r){var e=q6(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>=ay?10:a>=H1?5:a>=j1?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=ay?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>=ay?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=$4.call(t,Bf).sort(Nf),Math.ceil((e-r)/(2*(L_(t,.75)-L_(t,.25))*Math.pow(t.length,-1/3)))}function J6(t,r,e){return Math.ceil((e-r)/(3.5*X4(t)*Math.pow(t.length,-1/3)))}function Q6(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 X6(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 $6(t,r){for(var e=r.length,i=new Array(e);e--;)i[e]=t[r[e]];return i}function eR(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 sR(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",_R={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)),_R.hasOwnProperty(r)?{space:_R[r],local:t}:t}function F_(t){return function(){this.removeAttribute(t)}}function C8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w8(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 gR(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 yR(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function aV(t){return function(){this.style.removeProperty(t)}}function k8(t,r,e){return function(){this.style.setProperty(t,r,e)}}function T8(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)||yR(t).getComputedStyle(t,null).getPropertyValue(r)}function M8(t){return function(){delete this[t]}}function S8(t,r){return function(){this[t]=r}}function sV(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 bR(t)}function bR(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 gV(t,r,e){return t=L8(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function L8(t,r,e){return function(i){var o=Kn;Kn=i;try{t.call(this,this.__data__,r,e)}finally{Kn=o}}}function vV(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 yV(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function g8(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?aV:"function"==typeof r?T8:k8)(t,r,null==e?"":e)):vh(this.node(),t)},property:function nS(t,r){return arguments.length>1?this.each((null==r?M8:"function"==typeof r?sV:S8)(t,r)):this.node()[t]},classed:function wR(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=CV.exec(t))?new Ie(r[1],r[2],r[3],1):(r=B8.exec(t))?new Ie(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=wV.exec(t))?Q(r[1],r[2],r[3],r[4]):(r=kV.exec(t))?Q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=TV.exec(t))?zt(r[1],r[2]/100,r[3]/100,1):(r=EV.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 ly||(t=b(t)),t?new Ie((t=t.rgb()).r,t.g,t.b,t.opacity):new Ie}function he(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 ly||(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 Ul(t){return 1==(t=+t)?Hl:function(r,e){return e-r?function is(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 Hl(t,r){var e=r-t;return e?Po(t,e):Ni(isNaN(t)?r:t)}$1(ly,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:g,toString:g}),$1(Ie,he,RR(ly,{brighter:function(r){return r=null==r?Wu:Math.pow(Wu,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 Fn(t,r,e,i){return 1===arguments.length?hn(t):new Xn(t,r,e,null==i?1:i)},RR(ly,{brighter:function(r){return r=null==r?Wu:Math.pow(Wu,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=Ul(r);function i(o,a){var s=e((o=he(o)).r,(a=he(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Hl(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=U8.lastIndex;return e=0&&t._call.call(null,r),t=t._next;--rC}function IV(){fy=(NR=hS.now())+BR,rC=dS=0;try{OV()}finally{rC=0,function lae(){for(var t,e,r=ZR,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:ZR=e);pS=t,H8(i)}(),fy=0}}function sae(){var t=hS.now(),r=t-NR;r>1e3&&(BR-=r,NR=t)}function H8(t){rC||(dS&&(dS=clearTimeout(dS)),t-fy>24?(t<1/0&&(dS=setTimeout(IV,t-hS.now()-BR)),fS&&(fS=clearInterval(fS))):(fS||(NR=hS.now(),fS=setInterval(sae,1e3)),rC=1,AV(IV)))}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:ZR=this,pS=this),this._call=r,this._time=i,H8()},stop:function(){this._call&&(this._call=null,this._time=1/0,H8())}};var uae=Ff("start","end","cancel","interrupt"),cae=[];function HR(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function dae(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,Y8,BV,jR,ZV=180/Math.PI,V8={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function NV(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)?W8:wh;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Kae=Id.prototype.constructor;function HV(t){return function(){this.style.removeProperty(t)}}function nse(t,r,e){return function(i){this.style.setProperty(t,r.call(this,i),e)}}function rse(t,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&nse(t,s,e)),i}return a._value=r,a}function lse(t){return function(r){this.textContent=t.call(this,r)}}function use(t){var r,e;function i(){var o=t.apply(this,arguments);return o!==e&&(r=(e=o)&&lse(o)),r}return i._value=t,i}var pse=0;function kh(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function q8(t){return Id().transition(t)}function jV(){return++pse}var oC=Id.prototype;function hse(t){return t*t*t}function mse(t){return--t*t*t+1}function zR(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}kh.prototype=q8.prototype={constructor:kh,select:function Gae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=uR(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;sMath.abs(Br[1]-er[1])?Pt=!0:rt=!0),er=Br,St=!0,WR(),Wn()}function Wn(){var Br;switch(ge=er[0]-Bn[0],ft=er[1]-Bn[1],G){case J8:case VV:q&&(ge=Math.max(Be-pt,Math.min(E-_,ge)),ht=pt+ge,A=_+ge),ae&&(ft=Math.max(Pe-at,Math.min(H-ee,ft)),Ct=at+ft,re=ee+ft);break;case aC:q<0?(ge=Math.max(Be-pt,Math.min(E-pt,ge)),ht=pt+ge,A=_):q>0&&(ge=Math.max(Be-_,Math.min(E-_,ge)),ht=pt,A=_+ge),ae<0?(ft=Math.max(Pe-at,Math.min(H-at,ft)),Ct=at+ft,re=ee):ae>0&&(ft=Math.max(Pe-ee,Math.min(H-ee,ft)),Ct=at,re=ee+ft);break;case sC:q&&(ht=Math.max(Be,Math.min(E,pt-ge*q)),A=Math.max(Be,Math.min(E,_+ge*q))),ae&&(Ct=Math.max(Pe,Math.min(H,at-ft*ae)),re=Math.max(Pe,Math.min(H,ee+ft*ae)))}A0&&(pt=ht-ge),ae<0?ee=re-ft:ae>0&&(at=Ct-ft),G=J8,ma.attr("cursor",Th.selection),Wn());break;default:return}WR()}function kn(){switch(Kn.keyCode){case 16:be&&(rt=Pt=be=!1,Wn());break;case 18:G===sC&&(q<0?_=A:q>0&&(pt=ht),ae<0?ee=re:ae>0&&(at=Ct),G=aC,Wn());break;case 32:G===J8&&(Kn.altKey?(q&&(_=A-ge*q,pt=ht+ge*q),ae&&(ee=re-ft*ae,at=Ct+ft*ae),G=sC):(q<0?_=A:q>0&&(pt=ht),ae<0?ee=re:ae>0&&(at=Ct),G=aC),ma.attr("cursor",Th[B]),Wn());break;default:return}WR()}}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),pe=q.selection,Ve=t.input("function"==typeof B?B.apply(this,arguments):B,q.extent),Me=LR(pe,Ve);function Be(pt){q.selection=1===pt&&X8(Ve)?null:Me(pt),l.call(G),ae.brush()}return pe&&Ve?Be:Be(1)}):C.each(function(){var G=this,q=arguments,ae=G.__brush,pe=t.input("function"==typeof B?B.apply(G,q):B,ae.extent),Ve=u(G,q).beforestart();iC(G),ae.selection=null==pe||X8(pe)?null:pe,l.call(G),Ve.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 yse(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:zV([[+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:zV(!!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 qV=Math.cos,KV=Math.sin,JV=Math.PI,GR=JV/2,QV=2*JV,XV=Math.max;function Dse(t){return function(r,e){return t(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ase(){var t=0,r=null,e=null,i=null;function o(a){var B,G,q,ae,pe,Ve,s=a.length,l=[],u=Bl(s),f=[],h=[],v=h.groups=new Array(s),C=new Array(s*s);for(B=0,pe=-1;++pepy)if(Math.abs(v*u-f*h)>py&&a){var B=i-s,G=o-l,q=u*u+f*f,ae=B*B+G*G,pe=Math.sqrt(q),Ve=Math.sqrt(C),Me=a*Math.tan((tU-Math.acos((q+C-ae)/(2*pe*Ve)))/2),Be=Me/Ve,pt=Me/pe;Math.abs(Be-1)>py&&(this._+="L"+(r+Be*h)+","+(e+Be*v)),this._+="A"+a+","+a+",0,0,"+ +(v*B>h*G)+","+(this._x1=r+pt*u)+","+(this._y1=e+pt*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)>py||Math.abs(this._y1-h)>py)&&(this._+="L"+f+","+h),i&&(C<0&&(C=C%nU+nU),C>Ise?this._+="A"+i+","+i+",0,1,"+v+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+v+","+(this._x1=f)+","+(this._y1=h):C>py&&(this._+="A"+i+","+i+",0,"+ +(C>=tU)+","+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=$V;function Pse(t){return t.source}function Rse(t){return t.target}function Lse(t){return t.radius}function Zse(t){return t.startAngle}function Nse(t){return t.endAngle}function Bse(){var t=Pse,r=Rse,e=Lse,i=Zse,o=Nse,a=null;function s(){var l,u=Ose.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)-GR,B=o.apply(this,u)-GR,G=v*qV(C),q=v*KV(C),ae=+e.apply(this,(u[0]=h,u)),pe=i.apply(this,u)-GR,Ve=o.apply(this,u)-GR;if(a||(a=l=Zd()),a.moveTo(G,q),a.arc(0,0,v,C,B),(C!==pe||B!==Ve)&&(a.quadraticCurveTo(0,0,ae*qV(pe),ae*KV(pe)),a.arc(0,0,ae,pe,Ve)),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:eU(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:eU(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:eU(+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 qR(){}function eY(t,r){var e=new qR;if(t instanceof qR)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,pe,v=-1,C=l.length,B=t[u++],ae=j_(),Ve=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,Use,Hse)},map:function(u){return a(u,0,tY,nY)},entries:function(u){return s(a(u,0,tY,nY),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 Use(){return{}}function Hse(t,r,e){t[r]=e}function tY(){return j_()}function nY(t,r,e){t.set(r,e)}function KR(){}var hy=j_.prototype;function rY(t,r){var e=new KR;if(t instanceof KR)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=Gse.exec(t))?oY(parseInt(r[1],16)):(r=qse.exec(t))?new rl(r[1],r[2],r[3],1):(r=Kse.exec(t))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Jse.exec(t))?aY(r[1],r[2],r[3],r[4]):(r=Qse.exec(t))?aY(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xse.exec(t))?lY(r[1],r[2]/100,r[3]/100,1):(r=$se.exec(t))?lY(r[1],r[2]/100,r[3]/100,r[4]):iY.hasOwnProperty(t)?oY(iY[t]):"transparent"===t?new rl(NaN,NaN,NaN,0):null}function oY(t){return new rl(t>>16&255,t>>8&255,255&t,1)}function aY(t,r,e,i){return i<=0&&(t=r=e=NaN),new rl(t,r,e,i)}function iU(t){return t instanceof z_||(t=JR(t)),t?new rl((t=t.rgb()).r,t.g,t.b,t.opacity):new rl}function sY(t,r,e,i){return 1===arguments.length?iU(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 lY(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 ele(t){if(t instanceof Vf)return new Vf(t.h,t.s,t.l,t.opacity);if(t instanceof z_||(t=JR(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 uY(t,r,e,i){return 1===arguments.length?ele(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 oU(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_,JR,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),lC(rl,sY,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,uY,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(oU(r>=240?r-240:r+120,a,o),oU(r,a,o),oU(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 cY=Math.PI/180,dY=180/Math.PI,mY=4/29,dC=6/29,_Y=3*dC*dC;function aU(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*cY;return new Yf(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}t instanceof rl||(t=iU(t));var s,l,e=cU(t.r),i=cU(t.g),o=cU(t.b),a=sU((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=sU((.4360747*e+.3850649*i+.1430804*o)/.96422),l=sU((.0139322*e+.0971045*i+.7141733*o)/.82521)),new Yf(116*a-16,500*(s-a),200*(a-l),t.opacity)}function gY(t,r,e,i){return 1===arguments.length?aU(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 sU(t){return t>.008856451679035631?Math.pow(t,1/3):t/_Y+mY}function lU(t){return t>dC?t*t*t:_Y*(t-mY)}function uU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function cU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nle(t){if(t instanceof Eh)return new Eh(t.h,t.c,t.l,t.opacity);if(t instanceof Yf||(t=aU(t)),0===t.a&&0===t.b)return new Eh(NaN,0,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*dY;return new Eh(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function vY(t,r,e,i){return 1===arguments.length?nle(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,gY,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(uU(3.1338561*(e=.96422*lU(e))-1.6168667*(r=1*lU(r))-.4906146*(i=.82521*lU(i))),uU(-.9787684*e+1.9161415*r+.033454*i),uU(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),lC(Eh,vY,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 aU(this).rgb()}}));var dU=1.78277,fU=-.29227,XR=-.90649,wS=1.97294,bY=wS*XR,CY=wS*dU,wY=dU*fU- -.14861*XR;function rle(t){if(t instanceof _y)return new _y(t.h,t.s,t.l,t.opacity);t instanceof rl||(t=iU(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(wY*i+bY*r-CY*e)/(wY+bY-CY),a=i-o,s=(wS*(e-o)-fU*a)/XR,l=Math.sqrt(s*s+a*a)/(wS*o*(1-o)),u=l?Math.atan2(s,a)*dY-120:NaN;return new _y(u<0?u+360:u,l,o,t.opacity)}function kY(t,r,e,i){return 1===arguments.length?rle(t):new _y(t,r,e,null==i?1:i)}function _y(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}lC(_y,kY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new _y(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _y(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*cY,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+dU*a)),255*(e+i*(fU*o+XR*a)),255*(e+i*(wS*o)),this.opacity)}}));var TY=Array.prototype.slice;function ole(t,r){return t-r}function gy(t){return function(){return t}}function sle(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 ule(t,r,e){var i;return function cle(t,r,e){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])}(t,r,e)&&function dle(t,r,e){return t<=r&&r<=e||e<=r&&r<=t}(t[i=+(t[0]===r[0])],e[i],r[i])}function fle(){}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 EY(){var t=1,r=1,e=z1,i=u;function o(f){var h=e(f);if(Array.isArray(h))h=h.slice().sort(ole);else{var v=hh(f),C=v[0],B=v[1];h=R_(C,B,h),h=Bl(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,pe,Ve,Me,C=new Array,B=new Array;for(G=q=-1,pe=f[0]>=h,Mh[pe<<1].forEach(Be);++G=h,Mh[ae|pe<<1].forEach(Be);for(Mh[pe<<0].forEach(Be);++q=h,Ve=f[q*t]>=h,Mh[pe<<1|Ve<<2].forEach(Be);++G=h,Me=Ve,Ve=f[q*t+G+1]>=h,Mh[ae|pe<<1|Ve<<2|Me<<3].forEach(Be);Mh[pe|Ve<<3].forEach(Be)}for(G=-1,Ve=f[q*t]>=h,Mh[Ve<<2].forEach(Be);++G=h,Mh[Ve<<2|Me<<3].forEach(Be);function Be(pt){var E,_,ht=[pt[0][0]+G,pt[0][1]+q],Pe=[pt[1][0]+G,pt[1][1]+q],at=l(ht),Ct=l(Pe);(E=B[at])?(_=C[Ct])?(delete B[E.end],delete C[_.start],E===_?(E.ring.push(Pe),v(E.ring)):C[E.start]=B[_.end]={start:E.start,end:_.end,ring:E.ring.concat(_.ring)}):(delete B[E.end],E.ring.push(Pe),B[E.end=Ct]=E):(E=C[Ct])?(_=B[at])?(delete C[E.start],delete B[_.end],E===_?(E.ring.push(Pe),v(E.ring)):C[_.start]=B[E.end]={start:_.start,end:E.end,ring:_.ring.concat(E.ring)}):(delete C[E.start],E.ring.unshift(ht),C[E.start=at]=E):C[at]=B[Ct]={start:at,end:Ct,ring:[ht,Pe]}}Mh[Ve<<3].forEach(Be)}(f,h,function(B){i(B,f,h),function ale(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)?gy(TY.call(f)):gy(f),o):e},o.smooth=function(f){return arguments.length?(i=f?u:fle,o):i===u},o}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[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function hU(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 ple(t){return t[0]}function hle(t){return t[1]}function mle(){var t=ple,r=hle,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,f=gy(20);function h(ae){var pe=new Float32Array(l*u),Ve=new Float32Array(l*u);ae.forEach(function(pt,ht,Pe){var at=t(pt,ht,Pe)+s>>a,Ct=r(pt,ht,Pe)+s>>a;at>=0&&at=0&&Ct>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a),pU({width:l,height:u,data:pe},{width:l,height:u,data:Ve},o>>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a),pU({width:l,height:u,data:pe},{width:l,height:u,data:Ve},o>>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a);var Me=f(pe);if(!Array.isArray(Me)){var Be=Q6(pe);Me=R_(0,Be,Me),(Me=Bl(0,Math.floor(Be/Me)*Me,Me)).shift()}return EY().thresholds(Me).size([l,u])(pe).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:gy(+ae),h):t},h.y=function(ae){return arguments.length?(r="function"==typeof ae?ae:gy(+ae),h):r},h.size=function(ae){if(!arguments.length)return[e,i];var pe=Math.ceil(ae[0]),Ve=Math.ceil(ae[1]);if(!(pe>=0||pe>=0))throw new Error("invalid size");return e=pe,i=Ve,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)?gy(TY.call(ae)):gy(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 mU(t,r,e){arguments.length<3&&(e=r,r=SV().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 Pe,at,Be=Kn.changedTouches,pt=r.apply(this,arguments),ht=Be.length;for(Pe=0;Pe=C?ae=!0:10===(ht=f.charCodeAt(B++))?pe=!0:13===ht&&(pe=!0,10===f.charCodeAt(B)&&++B),f.slice(pt+1,Be-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[pe=ae<<1|q]))return o[pe]=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[pe]=s:t._root=s,t;do{o=o?o[pe]=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((pe=ae<<1|q)==(Ve=(G>=C)<<1|B>=v));return o[Ve]=a,o[pe]=s,t}function jl(t,r,e,i,o){this.node=t,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function hue(t){return t[0]}function _ue(t){return t[1]}function rL(t,r,e){var i=new MU(null==r?hue:r,null==e?_ue:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function MU(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 BY(t){for(var r={data:t.data},e=r;t=t.next;)e=e.next={data:t.data};return r}var zl=rL.prototype=MU.prototype;function vue(t){return t.x+t.vx}function yue(t){return t.y+t.vy}function bue(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+Ct||ptB+Ct||htv.index){var E=C-Pe.x-Pe.vx,_=B-Pe.y-Pe.vy,A=E*E+_*_;Au.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)=pe)<<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 Ve=t-+this._x.call(null,B.data),Me=r-+this._y.call(null,B.data),Be=Ve*Ve+Me*Me;if(Be=(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,pe=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[pe]=e:this._root=e),this):(this._root=a,this)},zl.removeAll=function uue(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,pe){var Be,pt,ht,Pe,at,Ve=0,Me=t.length;for(null==pe?pe=1/0:pe*=pe,Ve=0;Ve1?(f.on(q,ae),r):f.on(q)}}}function xue(){var t,r,e,o,i=Ms(-30),a=1,s=1/0,l=.81;function u(C){var B,G=t.length,q=rL(t,kue,Tue).visitAfter(h);for(e=C,B=0;B=s)){(C.data!==r||C.next)&&(0===ae&&(Me+=(ae=Y_())*ae),0===pe&&(Me+=(pe=Y_())*pe),Me1?i[0]+i.slice(2):i,+t.slice(e+1)]}function pC(t){return(t=iL(Math.abs(t)))?t[1]:NaN}function HY(t,r){var e=iL(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 jY={"":function Rue(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 HY(100*r,e)},r:HY,s:function Lue(t,r){var e=iL(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(UY=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")+iL(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)}},Zue=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function oL(t){return new SU(t)}function SU(t){if(!(r=Zue.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"):jY[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 zY(t){return t}oL.prototype=SU.prototype,SU.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 aL,YY,GY,WY=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function VY(t){var r=t.grouping&&t.thousands?function Iue(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):zY,e=t.currency,i=t.decimal,o=t.numerals?function Pue(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):zY,a=t.percent||"%";function s(u){var f=(u=oL(u)).fill,h=u.align,v=u.sign,C=u.symbol,B=u.zero,G=u.width,q=u.comma,ae=u.precision,pe=u.type,Ve="$"===C?e[0]:"#"===C&&/[boxX]/.test(pe)?"0"+pe.toLowerCase():"",Me="$"===C?e[1]:/[%p]/.test(pe)?a:"",Be=jY[pe],pt=!pe||/[defgprs%]/.test(pe);function ht(Pe){var E,_,A,at=Ve,Ct=Me;if("c"===pe)Ct=Be(Pe)+Ct,Pe="";else{var H=(Pe=+Pe)<0;if(Pe=Be(Math.abs(Pe),ae),H&&0==+Pe&&(H=!1),at=(H?"("===v?v:"-":"-"===v||"("===v?"":v)+at,Ct=("s"===pe?WY[8+UY/3]:"")+Ct+(H&&"("===v?")":""),pt)for(E=-1,_=Pe.length;++E<_;)if(48>(A=Pe.charCodeAt(E))||A>57){Ct=(46===A?i+Pe.slice(E+1):Pe.slice(E))+Ct,Pe=Pe.slice(0,E);break}}q&&!B&&(Pe=r(Pe,1/0));var ee=at.length+Pe.length+Ct.length,re=ee>1)+at+Pe+Ct+re.slice(ee);break;default:Pe=re+at+Pe+Ct}return o(Pe)}return ae=null==ae?pe?6:12:/[gprs]/.test(pe)?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=oL(u)).type="f",u)),v=3*Math.max(-8,Math.min(8,Math.floor(pC(f)/3))),C=Math.pow(10,-v),B=WY[8+v/3];return function(G){return h(C*G)+B}}}}function qY(t){return aL=VY(t),YY=aL.format,GY=aL.formatPrefix,aL}function Nue(t){return Math.max(0,-pC(Math.abs(t)))}function Bue(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pC(r)/3)))-pC(Math.abs(t)))}function Fue(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,pC(r)-pC(t))+1}function G_(){return new sL}function sL(){this.reset()}qY({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sL.prototype={constructor:sL,reset:function(){this.s=this.t=0},add:function(r){KY(lL,r,this.t),KY(this,lL.s,this.s),this.s?this.t+=lL.t:this.s=lL.t},valueOf:function(){return this.s}};var lL=new sL;function KY(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,Ya=oo/2,uL=oo/4,pu=2*oo,ta=180/oo,Jr=oo/180,Eo=Math.abs,hC=Math.atan,Wl=Math.atan2,Ur=Math.cos,cL=Math.ceil,QY=Math.exp,dL=(Math.floor,Math.log),xU=Math.pow,Ar=Math.sin,ES=Math.sign||function(t){return t>0?1:t<0?-1:0},Ss=Math.sqrt,DU=Math.tan;function XY(t){return t>1?0:t<-1?oo:Math.acos(t)}function Vu(t){return t>1?Ya:t<-1?-Ya:Math.asin(t)}function $Y(t){return(t=Ar(t/2))*t}function Ma(){}function fL(t,r){t&&tG.hasOwnProperty(t.type)&&tG[t.type](t,r)}var eG={Feature:function(r,e){fL(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+uL),s=Ar(r),l=PU*s,u=IU*a+l*Ur(o),f=l*i*Ar(o);pL.add(Wl(f,u)),OU=t,IU=a,PU=s}function zue(t){return hL.reset(),Nd(t,Gf),2*hL}function mL(t){return[Wl(t[1],t[0]),Vu(t[2])]}function vy(t){var r=t[0],e=t[1],i=Ur(e);return[i*Ur(r),i*Ar(r),Ar(e)]}function _L(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 RU(t,r){t[0]+=r[0],t[1]+=r[1],t[2]+=r[2]}function gL(t,r){return[t[0]*r,t[1]*r,t[2]*r]}function vL(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 Ga,Yu,os,Pc,yy,aG,sG,_C,q_,Sh,MS=G_(),xh={point:LU,lineStart:uG,lineEnd:cG,polygonStart:function(){xh.point=dG,xh.lineStart=Wue,xh.lineEnd=Vue,MS.reset(),Gf.polygonStart()},polygonEnd:function(){Gf.polygonEnd(),xh.point=LU,xh.lineStart=uG,xh.lineEnd=cG,pL<0?(Ga=-(os=180),Yu=-(Pc=90)):MS>Fr?Pc=90:MS<-Fr&&(Yu=-90),Sh[0]=Ga,Sh[1]=os}};function LU(t,r){q_.push(Sh=[Ga=t,os=t]),rPc&&(Pc=r)}function lG(t,r){var e=vy([t*Jr,r*Jr]);if(_C){var i=mC(_C,e),a=mC([i[1],-i[0],0],i);vL(a),a=mL(a);var f,s=t-yy,l=s>0?1:-1,u=a[0]*ta*l,h=Eo(s)>180;h^(l*yyPc&&(Pc=f):h^(l*yy<(u=(u+360)%360-180)&&uPc&&(Pc=r)),h?tGu(Ga,os)&&(os=t):Gu(t,os)>Gu(Ga,os)&&(Ga=t):os>=Ga?(tos&&(os=t)):t>yy?Gu(Ga,t)>Gu(Ga,os)&&(os=t):Gu(t,os)>Gu(Ga,os)&&(Ga=t)}else q_.push(Sh=[Ga=t,os=t]);rPc&&(Pc=r),_C=e,yy=t}function uG(){xh.point=lG}function cG(){Sh[0]=Ga,Sh[1]=os,xh.point=LU,_C=null}function dG(t,r){if(_C){var e=t-yy;MS.add(Eo(e)>180?e+(e>0?360:-360):e)}else aG=t,sG=r;Gf.point(t,r),lG(t,r)}function Wue(){Gf.lineStart()}function Vue(){dG(aG,sG),Gf.lineEnd(),Eo(MS)>Fr&&(Ga=-(os=180)),Sh[0]=Ga,Sh[1]=os,_C=null}function Gu(t,r){return(r-=t)<0?r+360:r}function Yue(t,r){return t[0]-r[0]}function fG(t,r){return t[0]<=t[1]?t[0]<=r&&r<=t[1]:rGu(i[0],i[1])&&(i[1]=o[1]),Gu(o[0],i[1])>Gu(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=Gu(i[1],o[0]))>s&&(s=l,Ga=o[0],os=i[1])}return q_=Sh=null,Ga===1/0||Yu===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ga,Yu],[os,Pc]]}var SS,yL,bL,CL,wL,kL,TL,EL,ZU,NU,BU,pG,hG,Vl,Yl,Gl,Bd={sphere:Ma,point:FU,lineStart:mG,lineEnd:_G,polygonStart:function(){Bd.lineStart=Jue,Bd.lineEnd=Que},polygonEnd:function(){Bd.lineStart=mG,Bd.lineEnd=_G}};function FU(t,r){t*=Jr;var e=Ur(r*=Jr);xS(e*Ur(t),e*Ar(t),Ar(r))}function xS(t,r,e){++SS,bL+=(t-bL)/SS,CL+=(r-CL)/SS,wL+=(e-wL)/SS}function mG(){Bd.point=que}function que(t,r){t*=Jr;var e=Ur(r*=Jr);Vl=e*Ur(t),Yl=e*Ar(t),Gl=Ar(r),Bd.point=Kue,xS(Vl,Yl,Gl)}function Kue(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Ar(t),a=Ar(r),s=Wl(Ss((s=Yl*a-Gl*o)*s+(s=Gl*i-Vl*a)*s+(s=Vl*o-Yl*i)*s),Vl*i+Yl*o+Gl*a);yL+=s,kL+=s*(Vl+(Vl=i)),TL+=s*(Yl+(Yl=o)),EL+=s*(Gl+(Gl=a)),xS(Vl,Yl,Gl)}function _G(){Bd.point=FU}function Jue(){Bd.point=Xue}function Que(){gG(pG,hG),Bd.point=FU}function Xue(t,r){pG=t,hG=r,t*=Jr,r*=Jr,Bd.point=gG;var e=Ur(r);Vl=e*Ur(t),Yl=e*Ar(t),Gl=Ar(r),xS(Vl,Yl,Gl)}function gG(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Ar(t),a=Ar(r),s=Yl*a-Gl*o,l=Gl*i-Vl*a,u=Vl*o-Yl*i,f=Ss(s*s+l*l+u*u),h=Vu(f),v=f&&-h/f;ZU+=v*s,NU+=v*l,BU+=v*u,yL+=h,kL+=h*(Vl+(Vl=i)),TL+=h*(Yl+(Yl=o)),EL+=h*(Gl+(Gl=a)),xS(Vl,Yl,Gl)}function $ue(t){SS=yL=bL=CL=wL=kL=TL=EL=ZU=NU=BU=0,Nd(t,Bd);var r=ZU,e=NU,i=BU,o=r*r+e*e+i*i;return o<1e-12&&(r=kL,e=TL,i=EL,yLoo?t-pu:t<-oo?t+pu:t,r]}function jU(t,r,e){return(t%=pu)?r||e?UU(yG(t),bG(r,e)):yG(t):r||e?bG(r,e):HU}function vG(t){return function(r,e){return[(r+=t)>oo?r-pu:r<-oo?r+pu:r,e]}}function yG(t){var r=vG(t);return r.invert=vG(-t),r}function bG(t,r){var e=Ur(t),i=Ar(t),o=Ur(r),a=Ar(r);function s(l,u){var f=Ur(u),h=Ur(l)*f,v=Ar(l)*f,C=Ar(u),B=C*e+h*i;return[Wl(v*o-B*a,h*e-C*i),Vu(B*o+v*a)]}return s.invert=function(l,u){var f=Ur(u),h=Ur(l)*f,v=Ar(l)*f,C=Ar(u),B=C*o-v*a;return[Wl(v*o+C*a,h*e+B*i),Vu(B*e-h*i)]},s}function CG(t){function r(e){return(e=t(e[0]*Jr,e[1]*Jr))[0]*=ta,e[1]*=ta,e}return t=jU(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]*=ta,e[1]*=ta,e},r}function wG(t,r,e,i,o,a){if(e){var s=Ur(r),l=Ar(r),u=i*e;null==o?(o=r+i*pu,a=r-u/2):(o=kG(s,o),a=kG(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 ML(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 MG(t){if(r=t.length){for(var r,o,e=0,i=t[0];++e=0?1:-1,Ct=at*Pe,E=Ct>oo,_=q*pt;if(zU.add(Wl(_*at*Ar(Ct),ae*ht+_*Ur(Ct))),s+=E?Pe+at*pu:Pe,E^B>=e^Me>=e){var A=mC(vy(C),vy(Ve));vL(A);var H=mC(a,A);vL(H);var ee=(E^Pe>=0?-1:1)*Vu(H[2]);(i>ee||i===ee&&(A[0]||A[1]))&&(l+=E^Pe>=0?1:-1)}}return(s<-Fr||s0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ht=0;ht1&&2&Be&&pt.push(pt.pop().concat(pt.shift())),h.push(pt.filter(tce))}}return C}}function tce(t){return t.length>1}function nce(t,r){return((t=t.x)[0]<0?t[1]-Ya-Fr:Ya-t[1])-((r=r.x)[0]<0?r[1]-Ya-Fr:Ya-r[1])}var WU=xG(function(){return!0},function rce(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?Ya:-Ya),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((Ar(r)*(a=Ur(i))*Ar(e)-Ar(i)*(o=Ur(r))*Ar(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 oce(t,r,e,i){var o;if(null==t)o=e*Ya,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(vy(h),vy(v)),pe=_L(ae,ae),Ve=ae[0],Me=pe-Ve*Ve;if(!Me)return!C&&h;var Be=r*pe/Me,pt=-r*Ve/Me,ht=mC(q,ae),Pe=gL(q,Be);RU(Pe,gL(ae,pt));var Ct=ht,E=_L(Pe,Ct),_=_L(Ct,Ct),A=E*E-_*(_L(Pe,Pe)-1);if(!(A<0)){var H=Ss(A),ee=gL(Ct,(-E-H)/_);if(RU(ee,Pe),ee=mL(ee),!C)return ee;var be,re=h[0],ge=v[0],ft=h[1],St=v[1];ge0^ee[1]<(Eo(ee[0]-re)oo^(re<=ee[0]&&ee[0]<=ge)){var er=gL(Ct,(-E+H)/_);return RU(er,Pe),[ee,mL(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 xG(s,function l(h){var v,C,B,G,q;return{lineStart:function(){G=B=!1,q=1},point:function(pe,Ve){var Be,Me=[pe,Ve],pt=s(pe,Ve),ht=i?pt?0:f(pe,Ve):pt?f(pe+(pe<0?oo:-oo),Ve):0;if(!v&&(G=B=pt)&&h.lineStart(),pt!==B&&((!(Be=u(v,Me))||ML(v,Be)||ML(Me,Be))&&(Me[0]+=Fr,Me[1]+=Fr,pt=s(Me[0],Me[1]))),pt!==B)q=0,pt?(h.lineStart(),Be=u(Me,v),h.point(Be[0],Be[1])):(Be=u(v,Me),h.point(Be[0],Be[1]),h.lineEnd()),v=Be;else if(o&&v&&i^pt){var Pe;!(ht&C)&&(Pe=u(Me,v,!0))&&(q=0,i?(h.lineStart(),h.point(Pe[0][0],Pe[0][1]),h.point(Pe[1][0],Pe[1][1]),h.lineEnd()):(h.point(Pe[1][0],Pe[1][1]),h.lineEnd(),h.lineStart(),h.point(Pe[0][0],Pe[0][1])))}pt&&(!v||!ML(v,Me))&&h.point(Me[0],Me[1]),v=Me,B=pt,C=ht},lineEnd:function(){B&&h.lineEnd(),v=null},clean:function(){return q|(G&&B)<<1}}},function a(h,v,C,B){wG(B,t,e,C,h,v)},i?[0,-t]:[-oo,t-oo])}var DS=1e9,xL=-DS;function DL(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,pe,Ve,Me,Be,pt,ht,h=f,v=TG(),Pe={point:at,lineStart:function A(){Pe.point=ee,B&&B.push(G=[]),pt=!0,Be=!1,Ve=Me=NaN},lineEnd:function H(){C&&(ee(q,ae),pe&&Be&&v.rejoin(),C.push(v.result())),Pe.point=at,Be&&h.lineEnd()},polygonStart:function E(){h=v,C=[],B=[],ht=!0},polygonEnd:function _(){var re=function Ct(){for(var re=0,ge=0,ft=B.length;gei&&(Rn-Bn)*(i-er)>(gn-er)*(t-Bn)&&++re:gn<=i&&(Rn-Bn)*(i-er)<(gn-er)*(t-Bn)&&--re;return re}(),ge=ht&&re,ft=(C=YM(C)).length;(ge||ft)&&(f.polygonStart(),ge&&(f.lineStart(),a(null,null,1,f),f.lineEnd()),ft&&EG(C,l,re,a,f),f.polygonEnd()),h=f,C=B=G=null}};function at(re,ge){o(re,ge)&&h.point(re,ge)}function ee(re,ge){var ft=o(re,ge);if(B&&G.push([re,ge]),pt)q=re,ae=ge,pe=ft,pt=!1,ft&&(h.lineStart(),h.point(re,ge));else if(ft&&Be)h.point(re,ge);else{var St=[Ve=Math.max(xL,Math.min(DS,Ve)),Me=Math.max(xL,Math.min(DS,Me))],be=[re=Math.max(xL,Math.min(DS,re)),ge=Math.max(xL,Math.min(DS,ge))];!function ace(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}}}}}(St,be,t,r,e,i)?ft&&(h.lineStart(),h.point(re,ge),ht=!1):(Be||(h.lineStart(),h.point(St[0],St[1])),h.point(be[0],be[1]),ft||h.lineEnd(),ht=!1)}Ve=re,Me=ge,Be=ft}return Pe}}function sce(){var o,a,s,t=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=DL(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 YU,AL,OL,VU=G_(),vC={sphere:Ma,point:Ma,lineStart:function lce(){vC.point=cce,vC.lineEnd=uce},lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma};function uce(){vC.point=vC.lineEnd=Ma}function cce(t,r){YU=t*=Jr,AL=Ar(r*=Jr),OL=Ur(r),vC.point=dce}function dce(t,r){t*=Jr;var e=Ar(r*=Jr),i=Ur(r),o=Eo(t-YU),a=Ur(o),l=i*Ar(o),u=OL*e-AL*i*a,f=AL*e+OL*i*a;VU.add(Wl(Ss(l*l+u*u),f)),YU=t,AL=e,OL=i}function AG(t){return VU.reset(),Nd(t,vC),+VU}var GU=[null,null],fce={type:"LineString",coordinates:GU};function AS(t,r){return GU[0]=t,GU[1]=r,AG(fce)}var OG={Feature:function(r,e){return IL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++oFr}).map(C)).concat(Bl(cL(a/f)*f,o,f).filter(function(Me){return Eo(Me%v)>Fr}).map(B))}return pe.lines=function(){return Ve().map(function(Me){return{type:"LineString",coordinates:Me}})},pe.outline=function(){return{type:"Polygon",coordinates:[G(i).concat(q(s).slice(1),G(e).reverse().slice(1),q(l).reverse().slice(1))]}},pe.extent=function(Me){return arguments.length?pe.extentMajor(Me).extentMinor(Me):pe.extentMinor()},pe.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),pe.precision(ae)):[[i,l],[e,s]]},pe.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),pe.precision(ae)):[[r,a],[t,o]]},pe.step=function(Me){return arguments.length?pe.stepMajor(Me).stepMinor(Me):pe.stepMinor()},pe.stepMajor=function(Me){return arguments.length?(h=+Me[0],v=+Me[1],pe):[h,v]},pe.stepMinor=function(Me){return arguments.length?(u=+Me[0],f=+Me[1],pe):[u,f]},pe.precision=function(Me){return arguments.length?(ae=+Me,C=NG(a,o,90),B=BG(r,t,ae),G=NG(l,s,90),q=BG(i,e,ae),pe):ae},pe.extentMajor([[-180,-90+Fr],[180,90-Fr]]).extentMinor([[-180,-80-Fr],[180,80+Fr]])}function mce(){return FG()()}function _ce(t,r){var e=t[0]*Jr,i=t[1]*Jr,o=r[0]*Jr,a=r[1]*Jr,s=Ur(i),l=Ar(i),u=Ur(a),f=Ar(a),h=s*Ur(e),v=s*Ar(e),C=u*Ur(o),B=u*Ar(o),G=2*Vu(Ss($Y(a-i)+s*u*$Y(o-e))),q=Ar(G),ae=G?function(pe){var Ve=Ar(pe*=G)/q,Me=Ar(G-pe)/q,Be=Me*h+Ve*C,pt=Me*v+Ve*B,ht=Me*l+Ve*f;return[Wl(pt,Be)*ta,Wl(ht,Ss(Be*Be+pt*pt))*ta]}:function(){return[e*ta,i*ta]};return ae.distance=G,ae}function by(t){return t}var UG,HG,JU,QU,qU=G_(),KU=G_(),K_={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){K_.lineStart=gce,K_.lineEnd=yce},polygonEnd:function(){K_.lineStart=K_.lineEnd=K_.point=Ma,qU.add(Eo(KU)),KU.reset()},result:function(){var r=qU/2;return qU.reset(),r}};function gce(){K_.point=vce}function vce(t,r){K_.point=jG,UG=JU=t,HG=QU=r}function jG(t,r){KU.add(QU*t-JU*r),JU=t,QU=r}function yce(){jG(UG,HG)}var zG=K_,yC=1/0,PL=yC,OS=-yC,RL=OS,bce={point:function Cce(t,r){tOS&&(OS=t),rRL&&(RL=r)},lineStart:Ma,lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma,result:function(){var r=[[yC,PL],[OS,RL]];return OS=RL=-(PL=yC=1/0),r}};var WG,VG,qf,Kf,LL=bce,XU=0,$U=0,IS=0,ZL=0,NL=0,bC=0,e7=0,t7=0,PS=0,Fd={point:Cy,lineStart:YG,lineEnd:GG,polygonStart:function(){Fd.lineStart=Tce,Fd.lineEnd=Ece},polygonEnd:function(){Fd.point=Cy,Fd.lineStart=YG,Fd.lineEnd=GG},result:function(){var r=PS?[e7/PS,t7/PS]:bC?[ZL/bC,NL/bC]:IS?[XU/IS,$U/IS]:[NaN,NaN];return XU=$U=IS=ZL=NL=bC=e7=t7=PS=0,r}};function Cy(t,r){XU+=t,$U+=r,++IS}function YG(){Fd.point=wce}function wce(t,r){Fd.point=kce,Cy(qf=t,Kf=r)}function kce(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);ZL+=o*(qf+t)/2,NL+=o*(Kf+r)/2,bC+=o,Cy(qf=t,Kf=r)}function GG(){Fd.point=Cy}function Tce(){Fd.point=Mce}function Ece(){qG(WG,VG)}function Mce(t,r){Fd.point=qG,Cy(WG=qf=t,VG=Kf=r)}function qG(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);ZL+=o*(qf+t)/2,NL+=o*(Kf+r)/2,bC+=o,e7+=(o=Kf*t-qf*r)*(qf+t),t7+=o*(Kf+r),PS+=3*o,Cy(qf=t,Kf=r)}var KG=Fd;function JG(t){this._context=t}JG.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 r7,QG,XG,RS,LS,n7=G_(),BL={point:Ma,lineStart:function(){BL.point=Sce},lineEnd:function(){r7&&$G(QG,XG),BL.point=Ma},polygonStart:function(){r7=!0},polygonEnd:function(){r7=null},result:function(){var r=+n7;return n7.reset(),r}};function Sce(t,r){BL.point=$G,QG=RS=t,XG=LS=r}function $G(t,r){RS-=t,LS-=r,n7.add(Ss(RS*RS+LS*LS)),RS=t,LS=r}var eq=BL;function tq(){this._string=[]}function nq(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function xce(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(zG)),zG.result()},a.measure=function(s){return Nd(s,i(eq)),eq.result()},a.bounds=function(s){return Nd(s,i(LL)),LL.result()},a.centroid=function(s){return Nd(s,i(KG)),KG.result()},a.projection=function(s){return arguments.length?(i=null==s?(t=null,by):(t=s).stream,a):t},a.context=function(s){return arguments.length?(o=null==s?(r=null,new tq):new JG(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 Dce(t){return{stream:ZS(t)}}function ZS(t){return function(r){var e=new i7;for(var i in t)e[i]=t[i];return e.stream=r,e}}function i7(){}function o7(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(LL)),r(LL.result()),null!=i&&t.clipExtent(i),t}function FL(t,r,e){return o7(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 a7(t,r,e){return FL(t,[[0,0],r],e)}function s7(t,r,e){return o7(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 l7(t,r,e){return o7(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)}tq.prototype={_radius:4.5,_circle:nq(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=nq(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}},i7.prototype={constructor:i7,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 Ace=Ur(30*Jr);function iq(t,r){return+r?function Ice(t,r){function e(i,o,a,s,l,u,f,h,v,C,B,G,q,ae){var pe=f-i,Ve=h-o,Me=pe*pe+Ve*Ve;if(Me>4*r&&q--){var Be=s+C,pt=l+B,ht=u+G,Pe=Ss(Be*Be+pt*pt+ht*ht),at=Vu(ht/=Pe),Ct=Eo(Eo(ht)-1)r||Eo((pe*H+Ve*ee)/Me-.5)>.3||s*C+l*B+u*G2?H[2]%360*Jr:0,_()):[l*ta,u*ta,f*ta]},Ct.angle=function(H){return arguments.length?(v=H%360*Jr,_()):v*ta},Ct.precision=function(H){return arguments.length?(Be=iq(pt,Me=H*H),A()):Ss(Me)},Ct.fitExtent=function(H,ee){return FL(Ct,H,ee)},Ct.fitSize=function(H,ee){return a7(Ct,H,ee)},Ct.fitWidth=function(H,ee){return s7(Ct,H,ee)},Ct.fitHeight=function(H,ee){return l7(Ct,H,ee)},function(){return r=t.apply(this,arguments),Ct.invert=r.invert&&E,_()}}function c7(t){var r=0,e=oo/3,i=u7(t),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Jr,e=a[1]*Jr):[r*ta,e*ta]},o}function aq(t,r){var e=Ar(t),i=(e+Ar(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 Nce(t){var r=t.length;return{point:function(i,o){for(var a=-1;++a0?l<-Ya+Fr&&(l=-Ya+Fr):l>Ya-Fr&&(l=Ya-Fr);var u=o/xU(HL(l),i);return[u*Ar(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[Wl(s,Eo(u))/i*ES(u),2*hC(xU(o/f,1/i))-Ya]},a}function jce(){return c7(cq).scale(109.5).parallels([30,30])}function FS(t,r){return[t,r]}function zce(){return Dh(FS).scale(152.63)}function dq(t,r){var e=Ur(t),i=t===r?Ar(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 Qce(t,r){return t.parent===r.parent?1:2}function $ce(t,r){return t+r.x}function tde(t,r){return Math.max(t,r.y)}function ide(){var t=Qce,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 Xce(t){return t.reduce($ce,0)/t.length}(B),C.y=function ede(t){return 1+t.reduce(tde,0)}(B)):(C.x=s?l+=t(C,s):0,C.y=0,s=C)});var u=function nde(t){for(var r;r=t.children;)t=r[0];return t}(a),f=function rde(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 ode(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 v7(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=yde);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(fq)}function yde(t){return t.children}function bde(t){t.data=t.data.data}function fq(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}f7.invert=NS(function(t){return t}),BS.invert=function(t,r){return[t,2*hC(QY(r))-Ya]},FS.invert=FS,p7.invert=NS(hC),h7.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]},m7.invert=NS(Vu),_7.invert=NS(function(t){return 2*hC(t)}),g7.invert=function(t,r){return[-r,2*hC(QY(t))-Ya]},CC.prototype=v7.prototype={constructor:CC,count:function ade(){return this.eachAfter(ode)},each:function sde(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 cde(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 dde(t){return this.eachBefore(function(r){r.children&&r.children.sort(t)})},path:function fde(t){for(var r=this,e=function pde(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 hde(){for(var t=this,r=[t];t=t.parent;)r.push(t);return r},descendants:function mde(){var t=[];return this.each(function(r){t.push(r)}),t},leaves:function _de(){var t=[];return this.eachBefore(function(r){r.children||t.push(r)}),t},links:function gde(){var t=this,r=[];return t.each(function(e){e!==t&&r.push({source:e.parent,target:e})}),r},copy:function vde(){return v7(this).eachBefore(bde)}};var Cde=Array.prototype.slice;function pq(t){for(var o,a,r=0,e=(t=function wde(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}(Cde.call(t))).length,i=[];r0&&e*e>i*i+o*o}function y7(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 gq(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 vq(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 WL(t){this._=t,this.next=null,this.previous=null}function yq(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;_q(e,r,i=t[2]),r=new WL(r),e=new WL(e),i=new WL(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=VL(i),e):t},e.parentId=function(i){return arguments.length?(r=VL(i),e):r},e}function Lde(t,r){return t.parent===r.parent?1:2}function C7(t){var r=t.children;return r?r[0]:t.t}function w7(t){var r=t.children;return r?r[r.length-1]:t.t}function Zde(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 Bde(t,r,e){return t.a.parent===r.parent?t.a:e}function YL(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 Ude(){var t=Lde,r=1,e=1,i=null;function o(f){var h=function Fde(t){for(var e,o,a,s,l,r=new YL(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 YL(a[s],s)),o.parent=e;return(r.parent=new YL(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(Ve){Ve.xC.x&&(C=Ve),Ve.depth>B.depth&&(B=Ve)});var G=v===C?1:t(v,C)/2,q=G-v.x,ae=r/(C.x+G+q),pe=e/(B.depth||1);f.eachBefore(function(Ve){Ve.x=(Ve.x+q)*ae,Ve.y=Ve.depth*pe})}return f}function a(f){var h=f.children,v=f.parent.children,C=f.i?v[f.i-1]:null;if(h){!function Nde(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 Be,C=f,B=f,G=h,q=C.parent.children[0],ae=C.m,pe=B.m,Ve=G.m,Me=q.m;G=w7(G),C=C7(C),G&&C;)q=C7(q),(B=w7(B)).a=f,(Be=G.z+Ve-C.z-ae+t(G._,C._))>0&&(Zde(Bde(G,f,v),f,Be),ae+=Be,pe+=Be),Ve+=G.m,ae+=C.m,Me+=q.m,pe+=B.m;G&&!w7(B)&&(B.t=G,B.m+=Ve-pe),C&&!C7(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 GL(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(o-e)/t.value;++lVe&&(Ve=f),ht=ae*ae*pt,(Me=Math.max(Ve/ht,ht/pe))>Be){ae-=f;break}Be=Me}s.push(u={value:ae,dice:B1?i:1)},e}(Eq);function Hde(){var t=Sq,r=!1,e=1,i=1,o=[0],a=wy,s=wy,l=wy,u=wy,f=wy;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(v),o=[0],r&&C.eachBefore(wq),C}function v(C){var B=o[C.depth],G=C.x0+B,q=C.y0+B,ae=C.x1-B,pe=C.y1-B;ae=C-1){var Ve=a[v];return Ve.x0=G,Ve.y0=q,Ve.x1=ae,void(Ve.y1=pe)}for(var Me=f[v],Be=B/2+Me,pt=v+1,ht=C-1;pt>>1;f[Pe]pe-q){var E=(G*Ct+ae*at)/B;h(v,pt,at,G,q,E,pe),h(pt,C,Ct,E,q,ae,pe)}else{var _=(q*Ct+pe*at)/B;h(v,pt,at,G,q,ae,_),h(pt,C,Ct,G,_,ae,pe)}}(0,l,t.value,r,e,i,o)}function zde(t,r,e,i,o){(1&t.depth?GL:HS)(t,r,e,i,o)}var Wde=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}(Eq);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*",Vde=/^#([0-9a-f]{3,8})$/,Yde=new RegExp("^rgb\\("+[EC,EC,EC]+"\\)$"),Gde=new RegExp("^rgb\\("+[Jf,Jf,Jf]+"\\)$"),qde=new RegExp("^rgba\\("+[EC,EC,EC,zS]+"\\)$"),Kde=new RegExp("^rgba\\("+[Jf,Jf,Jf,zS]+"\\)$"),Jde=new RegExp("^hsl\\("+[zS,Jf,Jf]+"\\)$"),Qde=new RegExp("^hsla\\("+[zS,Jf,Jf,zS]+"\\)$"),xq={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 Dq(){return this.rgb().formatHex()}function Aq(){return this.rgb().formatRgb()}function WS(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=Vde.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Oq(r):3===e?new il(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?qL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?qL(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=Yde.exec(t))?new il(r[1],r[2],r[3],1):(r=Gde.exec(t))?new il(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qde.exec(t))?qL(r[1],r[2],r[3],r[4]):(r=Kde.exec(t))?qL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jde.exec(t))?Rq(r[1],r[2]/100,r[3]/100,1):(r=Qde.exec(t))?Rq(r[1],r[2]/100,r[3]/100,r[4]):xq.hasOwnProperty(t)?Oq(xq[t]):"transparent"===t?new il(NaN,NaN,NaN,0):null}function Oq(t){return new il(t>>16&255,t>>8&255,255&t,1)}function qL(t,r,e,i){return i<=0&&(t=r=e=NaN),new il(t,r,e,i)}function k7(t){return t instanceof J_||(t=WS(t)),t?new il((t=t.rgb()).r,t.g,t.b,t.opacity):new il}function KL(t,r,e,i){return 1===arguments.length?k7(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 Iq(){return"#"+T7(this.r)+T7(this.g)+T7(this.b)}function Pq(){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 T7(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Rq(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 Lq(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 E7(t,r,e,i){return 1===arguments.length?Lq(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 M7(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 Zq(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 Nq(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):JL(isNaN(t)?r:t)}function efe(t){return 1==(t=+t)?Hs:function(r,e){return e-r?function $de(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):JL(isNaN(r)?e:r)}}function Hs(t,r){var e=r-t;return e?Fq(t,e):JL(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:Dq,formatHex:Dq,formatHsl:function Xde(){return Lq(this).formatHsl()},formatRgb:Aq,toString:Aq}),kC(il,KL,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:Iq,formatHex:Iq,formatRgb:Pq,toString:Pq})),kC(Qf,E7,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(M7(r>=240?r-240:r+120,a,o),M7(r,a,o),M7(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 x7=function t(r){var e=efe(r);function i(o,a){var s=e((o=KL(o)).r,(a=KL(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 Uq(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=A7.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/iK+rK}function N7(t){return t>MC?t*t*t:iK*(t-rK)}function B7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function F7(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function aK(t){if(t instanceof $f)return new $f(t.h,t.c,t.l,t.opacity);if(t instanceof Ud||(t=oK(t)),0===t.a&&0===t.b)return new $f(NaN,01&&Mfe(t[e[i-2]],t[e[i-1]],t[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function xfe(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 Afe(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),Ife=function t(r){function e(){var i=mK.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=t,e}(SC),_K=function t(r){function e(i){return function(){for(var o=0,a=0;a2?Ufe:Ffe,l=u=null,h}function h(v){return(l||(l=s(e,i,a?function Nfe(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,K7,a?function Bfe(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=W7.call(v,yK),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=Zfe,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 CK,Hfe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function n5(t){if(!(r=Hfe.exec(t)))throw new Error("invalid format: "+t);var r;return new J7({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 J7(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 r5(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=r5(Math.abs(t)))?t[1]:NaN}function wK(t,r){var e=r5(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")}n5.prototype=J7.prototype,J7.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 kK={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function jfe(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 wK(100*r,e)},r:wK,s:function Gfe(t,r){var e=r5(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(CK=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")+r5(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 TK(t){return t}var i5,Q7,SK,EK=Array.prototype.map,MK=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qfe(t){var r=void 0===t.grouping||void 0===t.thousands?TK:function Wfe(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)}}(EK.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?TK:function Vfe(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(EK.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=n5(v)).fill,B=v.align,G=v.sign,q=v.symbol,ae=v.zero,pe=v.width,Ve=v.comma,Me=v.precision,Be=v.trim,pt=v.type;"n"===pt?(Ve=!0,pt="g"):kK[pt]||(void 0===Me&&(Me=12),Be=!0,pt="g"),(ae||"0"===C&&"="===B)&&(ae=!0,C="0",B="=");var ht="$"===q?e:"#"===q&&/[boxX]/.test(pt)?"0"+pt.toLowerCase():"",Pe="$"===q?i:/[%p]/.test(pt)?s:"",at=kK[pt],Ct=/[defgprs%]/.test(pt);function E(_){var ee,re,ge,A=ht,H=Pe;if("c"===pt)H=at(_)+H,_="";else{var ft=(_=+_)<0||1/_<0;if(_=isNaN(_)?u:at(Math.abs(_),Me),Be&&(_=function Yfe(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}(_)),ft&&0==+_&&"+"!==G&&(ft=!1),A=(ft?"("===G?G:l:"-"===G||"("===G?"":G)+A,H=("s"===pt?MK[8+CK/3]:"")+H+(ft&&"("===G?")":""),Ct)for(ee=-1,re=_.length;++ee(ge=_.charCodeAt(ee))||ge>57){H=(46===ge?o+_.slice(ee+1):_.slice(ee))+H,_=_.slice(0,ee);break}}Ve&&!ae&&(_=r(_,1/0));var St=A.length+_.length+H.length,be=St>1)+A+_+H+be.slice(St);break;default:_=be+A+_+H}return a(_)}return Me=void 0===Me?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,Me)):Math.max(0,Math.min(20,Me)),E.toString=function(){return v+""},E}return{format:f,formatPrefix:function h(v,C){var B=f(((v=n5(v)).type="f",v)),G=3*Math.max(-8,Math.min(8,Math.floor(xC(C)/3))),q=Math.pow(10,-G),ae=MK[8+G/3];return function(pe){return B(q*pe)+ae}}}}function Xfe(t,r,e){var s,i=t[0],o=t[t.length-1],a=R_(i,o,null==r?10:r);switch((e=n5(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function zfe(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),SK(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Jfe(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 Qfe(t){return Math.max(0,-xC(Math.abs(t)))}(a))&&(e.precision=s-2*("%"===e.type))}return Q7(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 Xfe(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 xK(){var t=t5(K7,Oc);return t.copy=function(){return e5(t,xK())},qS(t)}function DK(){var t=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=W7.call(e,yK),r):t.slice()},r.copy=function(){return DK().domain(t)},qS(r)}function AK(t,r){var s,e=0,i=(t=t.slice()).length-1,o=t[e],a=t[i];return a0){for(;vf)break;pe.push(q)}}else for(;v=1;--G)if(!((q=B*G)f)break;pe.push(q)}}else pe=P_(v,C,Math.min(C-v,ae)).map(o);return h?pe.reverse():pe},t.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=Q7(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 ZK().domain([t,r]).range(o)},qS(a)}function NK(){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 NK().domain(t).range(r)},i}!function Kfe(t){return i5=qfe(t),Q7=i5.format,SK=i5.formatPrefix,i5}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var $7=new Date,e9=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 $7.setTime(+a),e9.setTime(+s),t($7),t(e9),Math.floor(e($7,e9))},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 t9=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()});t9.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=t9,BK=(t9.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()})),rpe=BK,Ey=(BK.range,6e4),a5=36e5,UK=6048e5;function My(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())*Ey)/UK})}var s5=My(0),Sy=My(1),ipe=My(2),ope=My(3),Ah=My(4),ape=My(5),spe=My(6),HK=(s5.range,Sy.range,ipe.range,ope.range,Ah.range,ape.range,spe.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())*Ey)/864e5},function(t){return t.getDate()-1})),KS=HK,jK=(HK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Ey)},function(t,r){t.setTime(+t+r*a5)},function(t,r){return(r-t)/a5},function(t){return t.getHours()})),lpe=jK,zK=(jK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Ey)},function(t,r){return(r-t)/Ey},function(t){return t.getMinutes()})),upe=zK,WK=(zK.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()})),VK=WK,l5=(WK.range,js(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t}));l5.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}):l5:null};var YK=l5;l5.range;function xy(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)/UK})}var u5=xy(0),Dy=xy(1),cpe=xy(2),dpe=xy(3),Oh=xy(4),fpe=xy(5),ppe=xy(6),GK=(u5.range,Dy.range,cpe.range,dpe.range,Oh.range,fpe.range,ppe.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=GK,n9=(GK.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()}));n9.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=n9;n9.range;function r9(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 i9(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,lJ,uJ,qK={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,mpe=/^%/,_pe=/[\\^$*+?|[\]().{}]/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 kpe(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 Tpe(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 Epe(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 QK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Mpe(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 XK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Spe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function xpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Dpe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function Ape(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 Ope(t,r,e){var i=mpe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Ipe(t,r,e){var i=zs.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Ppe(t,r,e){var i=zs.exec(r.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function $K(t,r){return vo(t.getDate(),r,2)}function Rpe(t,r){return vo(t.getHours(),r,2)}function Lpe(t,r){return vo(t.getHours()%12||12,r,2)}function Zpe(t,r){return vo(1+KS.count(Hd(t),t),r,3)}function eJ(t,r){return vo(t.getMilliseconds(),r,3)}function Npe(t,r){return eJ(t,r)+"000"}function Bpe(t,r){return vo(t.getMonth()+1,r,2)}function Fpe(t,r){return vo(t.getMinutes(),r,2)}function Upe(t,r){return vo(t.getSeconds(),r,2)}function Hpe(t){var r=t.getDay();return 0===r?7:r}function jpe(t,r){return vo(s5.count(Hd(t)-1,t),r,2)}function tJ(t){var r=t.getDay();return r>=4||0===r?Ah(t):Ah.ceil(t)}function zpe(t,r){return t=tJ(t),vo(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function Wpe(t){return t.getDay()}function Vpe(t,r){return vo(Sy.count(Hd(t)-1,t),r,2)}function Ype(t,r){return vo(t.getFullYear()%100,r,2)}function Gpe(t,r){return vo((t=tJ(t)).getFullYear()%100,r,2)}function qpe(t,r){return vo(t.getFullYear()%1e4,r,4)}function Kpe(t,r){var e=t.getDay();return vo((t=e>=4||0===e?Ah(t):Ah.ceil(t)).getFullYear()%1e4,r,4)}function Jpe(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function nJ(t,r){return vo(t.getUTCDate(),r,2)}function Qpe(t,r){return vo(t.getUTCHours(),r,2)}function Xpe(t,r){return vo(t.getUTCHours()%12||12,r,2)}function $pe(t,r){return vo(1+JS.count(jd(t),t),r,3)}function rJ(t,r){return vo(t.getUTCMilliseconds(),r,3)}function ehe(t,r){return rJ(t,r)+"000"}function the(t,r){return vo(t.getUTCMonth()+1,r,2)}function nhe(t,r){return vo(t.getUTCMinutes(),r,2)}function rhe(t,r){return vo(t.getUTCSeconds(),r,2)}function ihe(t){var r=t.getUTCDay();return 0===r?7:r}function ohe(t,r){return vo(u5.count(jd(t)-1,t),r,2)}function iJ(t){var r=t.getUTCDay();return r>=4||0===r?Oh(t):Oh.ceil(t)}function ahe(t,r){return t=iJ(t),vo(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function she(t){return t.getUTCDay()}function lhe(t,r){return vo(Dy.count(jd(t)-1,t),r,2)}function uhe(t,r){return vo(t.getUTCFullYear()%100,r,2)}function che(t,r){return vo((t=iJ(t)).getUTCFullYear()%100,r,2)}function dhe(t,r){return vo(t.getUTCFullYear()%1e4,r,4)}function fhe(t,r){var e=t.getUTCDay();return vo((t=e>=4||0===e?Oh(t):Oh.ceil(t)).getUTCFullYear()%1e4,r,4)}function phe(){return"+0000"}function oJ(){return"%"}function aJ(t){return+t}function sJ(t){return Math.floor(+t/1e3)}!function _he(t){return AC=function hpe(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),pe=XS(u),Ve=$S(u),Me={a:function ft(Wn){return s[Wn.getDay()]},A:function St(Wn){return a[Wn.getDay()]},b:function be(Wn){return u[Wn.getMonth()]},B:function rt(Wn){return l[Wn.getMonth()]},c:null,d:$K,e:$K,f:Npe,g:Gpe,G:Kpe,H:Rpe,I:Lpe,j:Zpe,L:eJ,m:Bpe,M:Fpe,p:function Pt(Wn){return o[+(Wn.getHours()>=12)]},q:function Bn(Wn){return 1+~~(Wn.getMonth()/3)},Q:aJ,s:sJ,S:Upe,u:Hpe,U:jpe,V:zpe,w:Wpe,W:Vpe,x:null,X:null,y:Ype,Y:qpe,Z:Jpe,"%":oJ},Be={a:function er(Wn){return s[Wn.getUTCDay()]},A:function Rn(Wn){return a[Wn.getUTCDay()]},b:function gn(Wn){return u[Wn.getUTCMonth()]},B:function ma(Wn){return l[Wn.getUTCMonth()]},c:null,d:nJ,e:nJ,f:ehe,g:che,G:fhe,H:Qpe,I:Xpe,j:$pe,L:rJ,m:the,M:nhe,p:function Tr(Wn){return o[+(Wn.getUTCHours()>=12)]},q:function zr(Wn){return 1+~~(Wn.getUTCMonth()/3)},Q:aJ,s:sJ,S:rhe,u:ihe,U:ohe,V:ahe,w:she,W:lhe,x:null,X:null,y:uhe,Y:dhe,Z:phe,"%":oJ},pt={a:function E(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 _(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 A(Wn,In,yr){var kn=pe.exec(In.slice(yr));return kn?(Wn.m=Ve[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 ee(Wn,In,yr){return at(Wn,r,In,yr)},d:QK,e:QK,f:Ape,g:JK,G:KK,H:XK,I:XK,j:Mpe,L:Dpe,m:Epe,M:Spe,p:function Ct(Wn,In,yr){var kn=f.exec(In.slice(yr));return kn?(Wn.p=h[kn[0].toLowerCase()],yr+kn[0].length):-1},q:Tpe,Q:Ipe,s:Ppe,S:xpe,u:ype,U:bpe,V:Cpe,w:vpe,W:wpe,x:function re(Wn,In,yr){return at(Wn,e,In,yr)},X:function ge(Wn,In,yr){return at(Wn,i,In,yr)},y:JK,Y:KK,Z:kpe,"%":Ope};function ht(Wn,In){return function(yr){var Gi,Cs,YN,kn=[],Br=-1,qr=0,Go=Wn.length;for(yr instanceof Date||(yr=new Date(+yr));++Br53)return null;"w"in kn||(kn.w=1),"Z"in kn?(Go=(qr=i9(QS(kn.y,0,1))).getUTCDay(),qr=Go>4||0===Go?Dy.ceil(qr):Dy(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):(Go=(qr=r9(QS(kn.y,0,1))).getDay(),qr=Go>4||0===Go?Sy.ceil(qr):Sy(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),Go="Z"in kn?i9(QS(kn.y,0,1)).getUTCDay():r9(QS(kn.y,0,1)).getDay(),kn.m=0,kn.d="W"in kn?(kn.w+6)%7+7*kn.W-(Go+5)%7:kn.w+7*kn.U-(Go+6)%7);return"Z"in kn?(kn.H+=kn.Z/100|0,kn.M+=kn.Z%100,i9(kn)):r9(kn)}}function at(Wn,In,yr,kn){for(var Gi,Cs,Br=0,qr=In.length,Go=yr.length;Br=Go)return-1;if(37===(Gi=In.charCodeAt(Br++))){if(Gi=In.charAt(Br++),!(Cs=pt[Gi in qK?In.charAt(Br++):Gi])||(kn=Cs(Wn,yr,kn))<0)return-1}else if(Gi!=yr.charCodeAt(kn++))return-1}return kn}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Be.x=ht(e,Be),Be.X=ht(i,Be),Be.c=ht(r,Be),{format:function(In){var yr=ht(In+="",Me);return yr.toString=function(){return In},yr},parse:function(In){var yr=Pe(In+="",!1);return yr.toString=function(){return In},yr},utcFormat:function(In){var yr=ht(In+="",Be);return yr.toString=function(){return In},yr},utcParse:function(In){var yr=Pe(In+="",!0);return yr.toString=function(){return In},yr}}}(t),lJ=AC.format,AC.parse,uJ=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,cJ=30*rx,o9=365*rx;function vhe(t){return new Date(t)}function yhe(t){return t instanceof Date?+t:+new Date(+t)}function a9(t,r,e,i,o,a,s,l,u){var f=t5(K7,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"),pe=u("%b %d"),Ve=u("%B"),Me=u("%Y"),Be=[[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,cJ],[r,3,3*cJ],[t,1,o9]];function pt(Pe){return(s(Pe)180||e<-180?e-360*Math.round(e/360):e):Ni(isNaN(t)?r:t)});var u9=YJ(Hl),cme=u9(ep(300,.5,0),ep(-240,.5,1)),dme=u9(ep(-100,.75,.35),ep(80,1.5,.8)),fme=u9(ep(260,.75,.35),ep(80,1.5,.8)),d5=ep();function pme(t){(t<0||t>1)&&(t-=Math.floor(t));var r=Math.abs(t-.5);return d5.h=360*t-100,d5.s=1.5-1.5*r,d5.l=.8-.9*r,d5+""}function f5(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var hme=f5(Mi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),mme=f5(Mi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_me=f5(Mi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gme=f5(Mi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),c9="http://www.w3.org/1999/xhtml",d9={svg:"http://www.w3.org/2000/svg",xhtml:c9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f9(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),d9.hasOwnProperty(r)?{space:d9[r],local:t}:t}function vme(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===c9&&r.documentElement.namespaceURI===c9?r.createElement(t):r.createElementNS(e,t)}}function yme(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p5(t){var r=f9(t);return(r.local?yme:vme)(r)}function bme(){}function p9(t){return null==t?bme:function(){return this.querySelector(t)}}function wme(){return[]}function GJ(t){return null==t?wme:function(){return this.querySelectorAll(t)}}var qJ=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var ox=document.documentElement;if(!ox.matches){var Tme=ox.webkitMatchesSelector||ox.msMatchesSelector||ox.mozMatchesSelector||ox.oMatchesSelector;qJ=function(r){return function(){return Tme.call(this,r)}}}}var KJ=qJ;function JJ(t){return new Array(t.length)}function h5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}h5.prototype={constructor:h5,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 xme(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;sr?1:t>=r?0:NaN}function jme(t){return function(){this.removeAttribute(t)}}function zme(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Wme(t,r){return function(){this.setAttribute(t,r)}}function Vme(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function Yme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Gme(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 h9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Kme(t){return function(){this.style.removeProperty(t)}}function Jme(t,r,e){return function(){this.style.setProperty(t,r,e)}}function Qme(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function XJ(t,r){return t.style.getPropertyValue(r)||h9(t).getComputedStyle(t,null).getPropertyValue(r)}function $me(t){return function(){delete this[t]}}function e_e(t,r){return function(){this[t]=r}}function t_e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function $J(t){return t.trim().split(/^|\s+/)}function m9(t){return t.classList||new eQ(t)}function eQ(t){this._node=t,this._names=$J(t.getAttribute("class")||"")}function tQ(t,r){for(var e=m9(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 rQ={},Ih=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(rQ={mouseenter:"mouseover",mouseleave:"mouseout"}));function D_e(t,r,e){return t=iQ(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function iQ(t,r,e){return function(i){var o=Ih;Ih=i;try{t.call(this,this.__data__,r,e)}finally{Ih=o}}}function A_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 O_e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Rme(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Lme);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Kme:"function"==typeof r?Qme:Jme)(t,r,null==e?"":e)):XJ(this.node(),t)},property:function n_e(t,r){return arguments.length>1?this.each((null==r?$me:"function"==typeof r?t_e:e_e)(t,r)):this.node()[t]},classed:function a_e(t,r){var e=$J(t+"");if(arguments.length<2){for(var i=m9(this.node()),o=-1,a=e.length;++o1?0:t<-1?Iy:Math.acos(t)}function cQ(t){return t>=1?_5:t<=-1?-_5:Math.asin(t)}function lge(t){return t.innerRadius}function uge(t){return t.outerRadius}function cge(t){return t.startAngle}function dge(t){return t.endAngle}function fge(t){return t&&t.padAngle}function pge(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*Cee*ee+re*re&&(at=E,Ct=_),{cx:at,cy:Ct,x01:-h,y01:-v,x11:at*(o/pt-1),y11:Ct*(o/pt-1)}}function hge(){var t=lge,r=uge,e=Bi(0),i=null,o=cge,a=dge,s=fge,l=null;function u(){var f,h,v=+t.apply(this,arguments),C=+r.apply(this,arguments),B=o.apply(this,arguments)-_5,G=a.apply(this,arguments)-_5,q=uQ(G-B),ae=G>B;if(l||(l=f=Zd()),Col)if(q>Ph-ol)l.moveTo(C*Oy(B),C*tp(B)),l.arc(0,0,C,B,G,!ae),v>ol&&(l.moveTo(v*Oy(G),v*tp(G)),l.arc(0,0,v,G,B,ae));else{var A,H,pe=B,Ve=G,Me=B,Be=G,pt=q,ht=q,Pe=s.apply(this,arguments)/2,at=Pe>ol&&(i?+i.apply(this,arguments):OC(v*v+C*C)),Ct=y9(uQ(C-v)/2,+e.apply(this,arguments)),E=Ct,_=Ct;if(at>ol){var ee=cQ(at/v*tp(Pe)),re=cQ(at/C*tp(Pe));(pt-=2*ee)>ol?(Me+=ee*=ae?1:-1,Be-=ee):(pt=0,Me=Be=(B+G)/2),(ht-=2*re)>ol?(pe+=re*=ae?1:-1,Ve-=re):(ht=0,pe=Ve=(B+G)/2)}var ge=C*Oy(pe),ft=C*tp(pe),St=v*Oy(Be),be=v*tp(Be);if(Ct>ol){var Rn,rt=C*Oy(Ve),Pt=C*tp(Ve),Bn=v*Oy(Me),er=v*tp(Me);if(q<=Ph-ol&&(Rn=pge(ge,ft,Bn,er,rt,Pt,St,be))){var gn=ge-Rn[0],ma=ft-Rn[1],Tr=rt-Rn[0],zr=Pt-Rn[1],Wn=1/tp(sge((gn*Tr+ma*zr)/(OC(gn*gn+ma*ma)*OC(Tr*Tr+zr*zr)))/2),In=OC(Rn[0]*Rn[0]+Rn[1]*Rn[1]);E=y9(Ct,(v-In)/(Wn-1)),_=y9(Ct,(C-In)/(Wn+1))}}ht>ol?_>ol?(A=g5(Bn,er,ge,ft,C,_,ae),H=g5(rt,Pt,St,be,C,_,ae),l.moveTo(A.cx+A.x01,A.cy+A.y01),_ol&&pt>ol?E>ol?(A=g5(St,be,rt,Pt,v,-E,ae),H=g5(ge,ft,Bn,er,v,-E,ae),l.lineTo(A.cx+A.x01,A.cy+A.y01),E=C;--B)l.point(Ve[B],Me[B]);l.lineEnd(),l.areaEnd()}ae&&(Ve[v]=+t(q,v,h),Me[v]=+e(q,v,h),l.point(r?+r(q,v,h):Ve[v],i?+i(q,v,h):Me[v]))}if(pe)return l=null,pe+""||null}function f(){return y5().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 mge(t,r){return rt?1:r>=t?0:NaN}function _ge(t){return t}function gge(){var t=_ge,r=mge,e=null,i=Bi(0),o=Bi(Ph),a=Bi(0);function s(l){var u,h,v,pe,Be,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)),Ve=Math.min(Math.abs(ae)/f,a.apply(this,arguments)),Me=Ve*(ae<0?-1:1);for(u=0;u0&&(C+=Be);for(null!=r?B.sort(function(pt,ht){return r(G[pt],G[ht])}):null!=e&&B.sort(function(pt,ht){return e(l[pt],l[ht])}),u=0,v=C?(ae-f*Me)/C:0;u0?Be*v:0)+Me,G[h]={data:l[h],index:u,value:Be,startAngle:q,endAngle:pe,padAngle:Ve};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}dQ.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 pQ=w9(v5);function hQ(t){this._curve=t}function w9(t){function r(e){return new hQ(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(w9(e)):r()._curve},t}function mQ(){return ax(y5().curve(pQ))}function _Q(){var t=fQ().curve(pQ),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(w9(s)):r()._curve},t}function sx(t,r){return[(r=+r)*Math.cos(t-=Math.PI/2),r*Math.sin(t)]}hQ.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 k9=Array.prototype.slice;function vge(t){return t.source}function yge(t){return t.target}function T9(t){var r=vge,e=yge,i=b9,o=C9,a=null;function s(){var l,u=k9.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 bge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function Cge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function wge(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 kge(){return T9(bge)}function Tge(){return T9(Cge)}function Ege(){var t=T9(wge);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var E9={draw:function(r,e){var i=Math.sqrt(e/Iy);r.moveTo(i,0),r.arc(0,0,i,0,Ph)}},gQ={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()}},vQ=Math.sqrt(1/3),Mge=2*vQ,yQ={draw:function(r,e){var i=Math.sqrt(e/Mge),o=i*vQ;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},bQ=Math.sin(Iy/10)/Math.sin(7*Iy/10),xge=Math.sin(Ph/10)*bQ,Dge=-Math.cos(Ph/10)*bQ,CQ={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=xge*i,a=Dge*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()}},wQ={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},M9=Math.sqrt(3),kQ={draw:function(r,e){var i=-Math.sqrt(e/(3*M9));r.moveTo(0,2*i),r.lineTo(-M9*i,-i),r.lineTo(M9*i,-i),r.closePath()}},Rc=-.5,Lc=Math.sqrt(3)/2,S9=1/Math.sqrt(12),Age=3*(S9/2+1),TQ={draw:function(r,e){var i=Math.sqrt(e/Age),o=i/2,a=i*S9,s=o,l=i*S9+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()}},Oge=[E9,gQ,yQ,wQ,CQ,kQ,TQ];function Ige(){var t=Bi(E9),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 b5(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 C5(t){this._context=t}function Pge(t){return new C5(t)}function EQ(t){this._context=t}function Rge(t){return new EQ(t)}function MQ(t){this._context=t}function Lge(t){return new MQ(t)}function SQ(t,r){this._basis=new C5(t),this._beta=r}C5.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:b5(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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},EQ.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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},MQ.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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},SQ.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 Zge=function t(r){function e(i){return 1===r?new C5(i):new SQ(i,r)}return e.beta=function(i){return t(+i)},e}(.85);function w5(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 x9(t,r){this._context=t,this._k=(1-r)/6}x9.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:w5(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:w5(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 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: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:w5(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 Bge=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){this._context=t,this._k=(1-r)/6}A9.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:w5(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 Fge=function t(r){function e(i){return new A9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function O9(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 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(){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:O9(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 x9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function DQ(t,r){this._context=t,this._alpha=r}DQ.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:O9(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 Hge=function t(r){function e(i){return r?new DQ(i,r):new D9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function AQ(t,r){this._context=t,this._alpha=r}AQ.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:O9(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 jge=function t(r){function e(i){return r?new AQ(i,r):new A9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function OQ(t){this._context=t}function zge(t){return new OQ(t)}function IQ(t){return t<0?-1:1}function PQ(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(IQ(a)+IQ(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function RQ(t,r){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-r)/2:r}function I9(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 k5(t){this._context=t}function LQ(t){this._context=new ZQ(t)}function ZQ(t){this._context=t}function Wge(t){return new k5(t)}function Vge(t){return new LQ(t)}function NQ(t){this._context=t}function BQ(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 Jge(t,r){return t[r]}function Qge(){var t=Bi([]),r=PC,e=IC,i=Jge;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 eve(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 P9=new Date,R9=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 P9.setTime(+a),R9.setTime(+s),t(P9),t(R9),Math.floor(e(P9,R9))},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 E5=xs(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t});E5.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}):E5:null};var HQ=E5,jQ=E5.range,Py=6e4,S5=36e5,WQ=6048e5,VQ=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()}),YQ=VQ,GQ=VQ.range,qQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Py)},function(t,r){return(r-t)/Py},function(t){return t.getMinutes()}),ove=qQ,ave=qQ.range,KQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Py)},function(t,r){t.setTime(+t+r*S5)},function(t,r){return(r-t)/S5},function(t){return t.getHours()}),sve=KQ,lve=KQ.range,JQ=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())*Py)/864e5},function(t){return t.getDate()-1}),uve=JQ,cve=JQ.range;function Ry(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())*Py)/WQ})}var L9=Ry(0),QQ=Ry(1),XQ=Ry(2),$Q=Ry(3),eX=Ry(4),tX=Ry(5),nX=Ry(6),rX=L9.range,dve=QQ.range,fve=XQ.range,pve=$Q.range,hve=eX.range,mve=tX.range,_ve=nX.range,iX=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()}),gve=iX,vve=iX.range,Z9=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()});Z9.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 yve=Z9,bve=Z9.range,oX=xs(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*Py)},function(t,r){return(r-t)/Py},function(t){return t.getUTCMinutes()}),Cve=oX,wve=oX.range,aX=xs(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*S5)},function(t,r){return(r-t)/S5},function(t){return t.getUTCHours()}),kve=aX,Tve=aX.range,sX=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}),Eve=sX,Mve=sX.range;function Ly(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)/WQ})}var N9=Ly(0),lX=Ly(1),uX=Ly(2),cX=Ly(3),dX=Ly(4),fX=Ly(5),pX=Ly(6),hX=N9.range,Sve=lX.range,xve=uX.range,Dve=cX.range,Ave=dX.range,Ove=fX.range,Ive=pX.range,mX=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()}),Pve=mX,Rve=mX.range,B9=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()});B9.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 Lve=B9,Zve=B9.range;function Nve(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 x5(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 _X(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),pe=ux(u),Ve=cx(u),Me={a:function ft(Tr){return s[Tr.getDay()]},A:function St(Tr){return a[Tr.getDay()]},b:function be(Tr){return u[Tr.getMonth()]},B:function rt(Tr){return l[Tr.getMonth()]},c:null,d:bX,e:bX,f:sye,H:iye,I:oye,j:aye,L:CX,m:lye,M:uye,p:function Pt(Tr){return o[+(Tr.getHours()>=12)]},Q:EX,s:MX,S:cye,u:dye,U:fye,V:pye,w:hye,W:mye,x:null,X:null,y:_ye,Y:gye,Z:vye,"%":TX},Be={a:function Bn(Tr){return s[Tr.getUTCDay()]},A:function er(Tr){return a[Tr.getUTCDay()]},b:function Rn(Tr){return u[Tr.getUTCMonth()]},B:function gn(Tr){return l[Tr.getUTCMonth()]},c:null,d:wX,e:wX,f:wye,H:yye,I:bye,j:Cye,L:kX,m:kye,M:Tye,p:function ma(Tr){return o[+(Tr.getUTCHours()>=12)]},Q:EX,s:MX,S:Eye,u:Mye,U:Sye,V:xye,w:Dye,W:Aye,x:null,X:null,y:Oye,Y:Iye,Z:Pye,"%":TX},pt={a:function E(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 _(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 A(Tr,zr,Wn){var In=pe.exec(zr.slice(Wn));return In?(Tr.m=Ve[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 ee(Tr,zr,Wn){return at(Tr,r,zr,Wn)},d:vX,e:vX,f:eye,H:yX,I:yX,j:Jve,L:$ve,m:Kve,M:Qve,p:function Ct(Tr,zr,Wn){var In=f.exec(zr.slice(Wn));return In?(Tr.p=h[In[0].toLowerCase()],Wn+In[0].length):-1},Q:nye,s:rye,S:Xve,u:jve,U:zve,V:Wve,w:Hve,W:Vve,x:function re(Tr,zr,Wn){return at(Tr,e,zr,Wn)},X:function ge(Tr,zr,Wn){return at(Tr,i,zr,Wn)},y:Gve,Y:Yve,Z:qve,"%":tye};function ht(Tr,zr){return function(Wn){var qr,Go,Gi,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=x5(lx(In.y))).getUTCDay(),kn=Br>4||0===Br?Dy.ceil(kn):Dy(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?Sy.ceil(kn):Sy(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?x5(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,x5(In)):zr(In)}}function at(Tr,zr,Wn,In){for(var qr,Go,yr=0,kn=zr.length,Br=Wn.length;yr=Br)return-1;if(37===(qr=zr.charCodeAt(yr++))){if(qr=zr.charAt(yr++),!(Go=pt[qr in gX?zr.charAt(yr++):qr])||(In=Go(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),Be.x=ht(e,Be),Be.X=ht(i,Be),Be.c=ht(r,Be),{format:function(zr){var Wn=ht(zr+="",Me);return Wn.toString=function(){return zr},Wn},parse:function(zr){var Wn=Pe(zr+="",Nve);return Wn.toString=function(){return zr},Wn},utcFormat:function(zr){var Wn=ht(zr+="",Be);return Wn.toString=function(){return zr},Wn},utcParse:function(zr){var Wn=Pe(zr,x5);return Wn.toString=function(){return zr},Wn}}}var RC,SX,xX,F9,U9,gX={"-":"",_:" ",0:"0"},al=/^\s*\d+/,Bve=/^%/,Fve=/[\\^$*+?|[\]().{}]/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 qve(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 Kve(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 vX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Jve(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 yX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Qve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Xve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function $ve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function eye(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 tye(t,r,e){var i=Bve.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function nye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function rye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=1e3*+i[0],e+i[0].length):-1}function bX(t,r){return Ro(t.getDate(),r,2)}function iye(t,r){return Ro(t.getHours(),r,2)}function oye(t,r){return Ro(t.getHours()%12||12,r,2)}function aye(t,r){return Ro(1+KS.count(Hd(t),t),r,3)}function CX(t,r){return Ro(t.getMilliseconds(),r,3)}function sye(t,r){return CX(t,r)+"000"}function lye(t,r){return Ro(t.getMonth()+1,r,2)}function uye(t,r){return Ro(t.getMinutes(),r,2)}function cye(t,r){return Ro(t.getSeconds(),r,2)}function dye(t){var r=t.getDay();return 0===r?7:r}function fye(t,r){return Ro(s5.count(Hd(t),t),r,2)}function pye(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 hye(t){return t.getDay()}function mye(t,r){return Ro(Sy.count(Hd(t),t),r,2)}function _ye(t,r){return Ro(t.getFullYear()%100,r,2)}function gye(t,r){return Ro(t.getFullYear()%1e4,r,4)}function vye(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ro(r/60|0,"0",2)+Ro(r%60,"0",2)}function wX(t,r){return Ro(t.getUTCDate(),r,2)}function yye(t,r){return Ro(t.getUTCHours(),r,2)}function bye(t,r){return Ro(t.getUTCHours()%12||12,r,2)}function Cye(t,r){return Ro(1+JS.count(jd(t),t),r,3)}function kX(t,r){return Ro(t.getUTCMilliseconds(),r,3)}function wye(t,r){return kX(t,r)+"000"}function kye(t,r){return Ro(t.getUTCMonth()+1,r,2)}function Tye(t,r){return Ro(t.getUTCMinutes(),r,2)}function Eye(t,r){return Ro(t.getUTCSeconds(),r,2)}function Mye(t){var r=t.getUTCDay();return 0===r?7:r}function Sye(t,r){return Ro(u5.count(jd(t),t),r,2)}function xye(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 Dye(t){return t.getUTCDay()}function Aye(t,r){return Ro(Dy.count(jd(t),t),r,2)}function Oye(t,r){return Ro(t.getUTCFullYear()%100,r,2)}function Iye(t,r){return Ro(t.getUTCFullYear()%1e4,r,4)}function Pye(){return"+0000"}function TX(){return"%"}function EX(t){return+t}function MX(t){return Math.floor(+t/1e3)}function DX(t){return RC=_X(t),SX=RC.format,xX=RC.parse,F9=RC.utcFormat,U9=RC.utcParse,RC}DX({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 AX="%Y-%m-%dT%H:%M:%S.%LZ";var Lye=Date.prototype.toISOString?function Rye(t){return t.toISOString()}:F9(AX),Zye=Lye;var Bye=+new Date("2000-01-01T00:00:00.000Z")?function Nye(t){var r=new Date(t);return isNaN(r)?null:r}:U9(AX),Fye=Bye;function Uye(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 Hye(){}function H9(t){return null==t?Hye:function(){return this.querySelector(t)}}function zye(){return[]}function OX(t){return null==t?zye:function(){return this.querySelectorAll(t)}}function IX(t){return function(){return this.matches(t)}}function PX(t){return new Array(t.length)}function D5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}D5.prototype={constructor:D5,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 qye(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;sr?1:t>=r?0:NaN}var j9="http://www.w3.org/1999/xhtml",LX={svg:"http://www.w3.org/2000/svg",xhtml:j9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function A5(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),LX.hasOwnProperty(r)?{space:LX[r],local:t}:t}function u0e(t){return function(){this.removeAttribute(t)}}function c0e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d0e(t,r){return function(){this.setAttribute(t,r)}}function f0e(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function p0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function h0e(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 ZX(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _0e(t){return function(){this.style.removeProperty(t)}}function g0e(t,r,e){return function(){this.style.setProperty(t,r,e)}}function v0e(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)||ZX(t).getComputedStyle(t,null).getPropertyValue(r)}function b0e(t){return function(){delete this[t]}}function C0e(t,r){return function(){this[t]=r}}function w0e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function NX(t){return t.trim().split(/^|\s+/)}function z9(t){return t.classList||new BX(t)}function BX(t){this._node=t,this._names=NX(t.getAttribute("class")||"")}function FX(t,r){for(var e=z9(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 jX={},Zy=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(jX={mouseenter:"mouseover",mouseleave:"mouseout"}));function X0e(t,r,e){return t=zX(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function zX(t,r,e){return function(i){var o=Zy;Zy=i;try{t.call(this,this.__data__,r,e)}finally{Zy=o}}}function $0e(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 ebe(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function t0e(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=n0e);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?_0e:"function"==typeof r?v0e:g0e)(t,r,null==e?"":e)):LC(this.node(),t)},property:function k0e(t,r){return arguments.length>1?this.each((null==r?b0e:"function"==typeof r?w0e:C0e)(t,r)):this.node()[t]},classed:function S0e(t,r){var e=NX(t+"");if(arguments.length<2){for(var i=z9(this.node()),o=-1,a=e.length;++o0)throw new Error("too late; already scheduled");return e}function Ny(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 qX(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,K9,QX,R5,KX=180/Math.PI,q9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function JX(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?Z5(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Z5(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=ybe.exec(t))?new qu(r[1],r[2],r[3],1):(r=bbe.exec(t))?new qu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Cbe.exec(t))?Z5(r[1],r[2],r[3],r[4]):(r=wbe.exec(t))?Z5(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=kbe.exec(t))?a$(r[1],r[2]/100,r[3]/100,1):(r=Tbe.exec(t))?a$(r[1],r[2]/100,r[3]/100,r[4]):e$.hasOwnProperty(t)?r$(e$[t]):"transparent"===t?new qu(NaN,NaN,NaN,0):null}function r$(t){return new qu(t>>16&255,t>>8&255,255&t,1)}function Z5(t,r,e,i){return i<=0&&(t=r=e=NaN),new qu(t,r,e,i)}function Mbe(t){return t instanceof px||(t=_x(t)),t?new qu((t=t.rgb()).r,t.g,t.b,t.opacity):new qu}function N5(t,r,e,i){return 1===arguments.length?Mbe(t):new qu(t,r,e,null==i?1:i)}function qu(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function i$(){return"#"+X9(this.r)+X9(this.g)+X9(this.b)}function o$(){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 X9(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function a$(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 s$(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 $9(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 l$(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 u$(t){return function(){return t}}function c$(t,r){return function(e){return t+e*r}}function Obe(t){return 1==(t=+t)?d$:function(r,e){return e-r?function Abe(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):u$(isNaN(r)?e:r)}}function d$(t,r){var e=r-t;return e?c$(t,e):u$(isNaN(t)?r:t)}Q9(px,_x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:t$,formatHex:t$,formatHsl:function Ebe(){return s$(this).formatHsl()},formatRgb:n$,toString:n$}),Q9(qu,N5,$X(px,{brighter:function(r){return r=null==r?L5:Math.pow(L5,r),new qu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new qu(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:i$,formatHex:i$,formatRgb:o$,toString:o$})),Q9(rp,function Sbe(t,r,e,i){return 1===arguments.length?s$(t):new rp(t,r,e,null==i?1:i)},$X(px,{brighter:function(r){return r=null==r?L5:Math.pow(L5,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 qu($9(r>=240?r-240:r+120,a,o),$9(r,a,o),$9(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 f$=function t(r){var e=Obe(r);function i(o,a){var s=e((o=N5(o)).r,(a=N5(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=d$(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 p$(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=tH.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?G9:Ny;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var l1e=dx.prototype.constructor;function m1e(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 C1e=0;function ip(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function m$(t){return dx().transition(t)}function _$(){return++C1e}var NC=dx.prototype;ip.prototype=m$.prototype={constructor:ip,select:function a1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=H9(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new ip([[t]],T1e,r,+o);return null}function g$(t){return function(){return t}}function M1e(t){return t[0]}function S1e(t){return t[1]}function rH(){this._=null}function B5(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 v$(t){for(;t.L;)t=t.L;return t}rH.prototype={constructor:rH,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=v$(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?v$(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 y$=rH;function yx(t,r,e,i){var o=[null,null],a=El.push(o)-1;return o.left=t,o.right=r,e&&F5(o,t,r,e),i&&F5(o,r,t,i),Ku[t.index].halfedges.push(a),Ku[r.index].halfedges.push(a),o}function bx(t,r,e){var i=[r,e];return i.left=t,i}function F5(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 x1e(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 D1e(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]=-H1e)){var B=u*u+f*f,G=h*h+v*v,q=(v*B-f*G)/C,ae=(u*G-h*B)/C,pe=C$.pop()||new Z1e;pe.arc=t,pe.site=o,pe.x=q+s,pe.y=(pe.cy=ae+l)+Math.sqrt(q*q+ae*ae),t.circle=pe;for(var Ve=null,Me=Cx._;Me;)if(pe.yLo)l=l.L;else{if(!((s=r-U1e(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 O1e(t){return Ku[t.index]={site:t,halfedges:[]}}(t);var u=k$(t);if(UC.insert(i,u),i||o){if(i===o)return FC(i),o=k$(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,pe=2*(C*ae-B*q),Ve=C*C+B*B,Me=q*q+ae*ae,Be=[(ae*Ve-B*Me)/pe+h,(C*Me-q*Ve)/pe+v];F5(o.edge,f,G,Be),u.edge=yx(f,t,null,Be),o.edge=yx(t,G,null,Be),BC(i),BC(o)}}function T$(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 U1e(t,r){var e=t.N;if(e)return T$(e,r);var i=t.site;return i[1]===r?i[0]:1/0}var UC,Ku,Cx,El,Lo=1e-6,H1e=1e-12;function j1e(t,r,e){return(t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1])}function z1e(t,r){return r[1]-t[1]||r[0]-t[0]}function aH(t,r){var i,o,a,e=t.sort(z1e).pop();for(El=[],Ku=new Array(t.length),UC=new y$,Cx=new y$;;)if(a=iH,e&&(!a||e[1]Lo||Math.abs(a[0][1]-a[1][1])>Lo)||delete El[o]})(s,l,u,f),function L1e(t,r,e,i){var a,s,l,u,f,h,v,C,B,G,q,ae,o=Ku.length,pe=!0;for(a=0;aLo||Math.abs(ae-B)>Lo)&&(f.splice(u,0,El.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],pe=q*q+ae*ae;pei?(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 D$(){var h,v,t=J1e,r=Q1e,e=eCe,i=X1e,o=$1e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=q1e,f=Ff("start","zoom","end"),C=500,G=0;function q(A){A.property("__zoom",x$).on("wheel.zoom",ht).on("mousedown.zoom",Pe).on("dblclick.zoom",at).filter(o).on("touchstart.zoom",Ct).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ae(A,H){return(H=Math.max(a[0],Math.min(a[1],H)))===A.k?A:new Rh(H,A.x,A.y)}function pe(A,H,ee){var re=H[0]-ee[0]*A.k,ge=H[1]-ee[1]*A.k;return re===A.x&&ge===A.y?A:new Rh(A.k,re,ge)}function Ve(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function Me(A,H,ee){A.on("start.zoom",function(){Be(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Be(this,arguments).end()}).tween("zoom",function(){var re=this,ge=arguments,ft=Be(re,ge),St=r.apply(re,ge),be=ee||Ve(St),rt=Math.max(St[1][0]-St[0][0],St[1][1]-St[0][1]),Pt=re.__zoom,Bn="function"==typeof H?H.apply(re,ge):H,er=u(Pt.invert(be).concat(rt/Pt.k),Bn.invert(be).concat(rt/Bn.k));return function(Rn){if(1===Rn)Rn=Bn;else{var gn=er(Rn),ma=rt/gn[2];Rn=new Rh(ma,be[0]-gn[0]*ma,be[1]-gn[1]*ma)}ft.zoom(null,Rn)}})}function Be(A,H,ee){return!ee&&A.__zooming||new pt(A,H)}function pt(A,H){this.that=A,this.args=H,this.active=0,this.extent=r.apply(A,H),this.taps=0}function ht(){if(t.apply(this,arguments)){var A=Be(this,arguments),H=this.__zoom,ee=Math.max(a[0],Math.min(a[1],H.k*Math.pow(2,i.apply(this,arguments)))),re=Rd(this);H.k!==ee&&(A.wheel?((A.mouse[0][0]!==re[0]||A.mouse[0][1]!==re[1])&&(A.mouse[1]=H.invert(A.mouse[0]=re)),clearTimeout(A.wheel)):(A.mouse=[re,H.invert(re)],iC(this),A.start()),kx(),A.wheel=setTimeout(ge,150),A.zoom("mouse",e(pe(ae(H,ee),A.mouse[0],A.mouse[1]),A.extent,s)))}function ge(){A.wheel=null,A.end()}}function Pe(){if(!v&&t.apply(this,arguments)){var A=Be(this,arguments,!0),H=gi(Kn.view).on("mousemove.zoom",ft,!0).on("mouseup.zoom",St,!0),ee=Rd(this),re=Kn.clientX,ge=Kn.clientY;jf(Kn.view),lH(),A.mouse=[ee,this.__zoom.invert(ee)],iC(this),A.start()}function ft(){if(kx(),!A.moved){var be=Kn.clientX-re,rt=Kn.clientY-ge;A.moved=be*be+rt*rt>G}A.zoom("mouse",e(pe(A.that.__zoom,A.mouse[0]=Rd(A.that),A.mouse[1]),A.extent,s))}function St(){H.on("mousemove.zoom mouseup.zoom",null),X1(Kn.view,A.moved),kx(),A.end()}}function at(){if(t.apply(this,arguments)){var A=this.__zoom,H=Rd(this),ee=A.invert(H),re=A.k*(Kn.shiftKey?.5:2),ge=e(pe(ae(A,re),H,ee),r.apply(this,arguments),s);kx(),l>0?gi(this).transition().duration(l).call(Me,ge,H):gi(this).call(q.transform,ge)}}function Ct(){if(t.apply(this,arguments)){var re,ge,ft,St,A=Kn.touches,H=A.length,ee=Be(this,arguments,Kn.changedTouches.length===H);for(lH(),ge=0;ge=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",[])],uH);var op=m(8723);function rCe(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 iCe(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 oCe(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 aCe(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 sCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,oCe,1,7,"circle",2),n.YNc(2,aCe,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 lCe(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 uCe(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 cCe(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 dCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,uCe,1,5,"path",2),n.YNc(2,cCe,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 fCe(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 pCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,fCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.title.tspans)}}function hCe(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 mCe(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 _Ce(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,mCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.subtitle.tspans)}}function gCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"text",7),n.YNc(1,pCe,2,1,"ng-container",2),n.YNc(2,hCe,2,4,"tspan",2),n.YNc(3,_Ce,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 vCe(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 yCe(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,rCe,3,5,"linearGradient",2),n.YNc(3,iCe,3,5,"radialGradient",2),n.qZA(),n.YNc(4,sCe,3,2,"ng-container",2),n.YNc(5,lCe,1,6,"circle",2),n.YNc(6,dCe,3,2,"ng-container",2),n.YNc(7,gCe,4,6,"text",3),n.YNc(8,vCe,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}),By=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 pe=o.options.animateTitle?a:o.options.percent,Ve=pe>o.options.maxPercent?"".concat(o.options.maxPercent.toFixed(o.options.toFixed),"+"):pe.toFixed(o.options.toFixed),Me=o.options.animateSubtitle?a:o.options.percent,Be={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 pt=o.options.titleFormat(pe);pt instanceof Array?Be.texts=(0,$t.Z)(pt):Be.texts.push(pt.toString())}else"auto"===o.options.title?Be.texts.push(Ve):o.options.title instanceof Array?Be.texts=(0,$t.Z)(o.options.title):Be.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 Pe=o.options.subtitleFormat(Me);Pe instanceof Array?ht.texts=(0,$t.Z)(Pe):ht.texts.push(Pe.toString())}else o.options.subtitle instanceof Array?ht.texts=(0,$t.Z)(o.options.subtitle):ht.texts.push(o.options.subtitle.toString());var at={text:"".concat(o.options.units),fontSize:o.options.unitsFontSize,fontWeight:o.options.unitsFontWeight,color:o.options.unitsColor},Ct=0,E=1;if(o.options.showTitle&&(Ct+=Be.texts.length),o.options.showSubtitle&&(Ct+=ht.texts.length),o.options.showTitle){var A,_=(0,cn.Z)(Be.texts);try{for(_.s();!(A=_.n()).done;){var H=A.value;Be.tspans.push({span:H,dy:o.getRelativeY(E,Ct)}),E++}}catch(ft){_.e(ft)}finally{_.f()}}if(o.options.showSubtitle){var re,ee=(0,cn.Z)(ht.texts);try{for(ee.s();!(re=ee.n()).done;){var ge=re.value;ht.tspans.push({span:ge,dy:o.getRelativeY(E,Ct)}),E++}}catch(ft){ee.e(ft)}finally{ee.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:Be,units:at,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}();By.\u0275fac=function(r){return new(r||By)(n.Y36(Tx),n.Y36(n.SBq),n.Y36(wt.K0))},By.\u0275cmp=n.Xpm({type:By,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,yCe,9,11,"svg",0),2&r&&n.Q6J("ngIf",e.svg)},directives:[wt.O5,wt.sg],encapsulation:2}),By.ctorParameters=function(){return[{type:Tx},{type:n.SBq},{type:void 0,decorators:[{type:n.tBr,args:[wt.K0]}]}]},By.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:[[wt.ez]]});var cH=function(){function t(r){(0,j.Z)(this,t),this.rawFile=r;var e=function bCe(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}(),CCe=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 cH(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:[[wt.ez]]});var dH=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}(),kCe=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)}}(),A$=function(t){function r(){return t.call(this)||this}return kCe(r,t),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=n.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(dH);A$.ctorParameters=function(){return[]};var O$=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:dH,useClass:A$}]}),t}();O$.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}(),Fy=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);Fy.\u0275fac=function(r){return new(r||Fy)},Fy.\u0275prov=n.Yz7({token:Fy,factory:Fy.\u0275fac}),Fy.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:Fy}]});var Ex=m(4942),Mx=m(7326),YC=m(1737),TCe=m(4450),I$=m(1961),j5=m(8514),Uy=m(8896),ECe=m(1762),P$=m(2014),Vd=m(7221),Sx=m(1406),MCe=m(8127),GC=m(7224),SCe=m(4327),R$=m(537),fH=m(9146),Lh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.id=r,this.url=e}),z5=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),pH=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),L$=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),xCe=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),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"GuardsCheckStart(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,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),OCe=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),ICe=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),Z$=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}(),N$=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}(),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"ChildActivationStart(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"ChildActivationEnd(path: '".concat(e,"')")}}]),t}(),LCe=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}(),ZCe=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}(),B$=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",NCe=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 NCe(t)}var F$="ngNavigationCancelingError";function hH(t){var r=Error("NavigationCancelingError: "+t);return r[F$]=!0,r}function FCe(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 jCe={exact:function V$(t,r,e){if(!jy(t.segments,r.segments)||!W5(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!t.children[i]||!V$(t.children[i],r.children[i],e))return!1;return!0},subset:Y$},z$={exact:function zCe(t,r){return ap(t,r)},subset:function WCe(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(function(e){return U$(t[e],r[e])})},ignored:function(){return!0}};function W$(t,r,e){return jCe[e.paths](t.root,r.root,e.matrixParams)&&z$[e.queryParams](t.queryParams,r.queryParams)&&!("exact"===e.fragment&&t.fragment!==r.fragment)}function Y$(t,r,e){return G$(t,r,r.segments,e)}function G$(t,r,e,i){if(t.segments.length>e.length){var o=t.segments.slice(0,e.length);return!(!jy(o,e)||r.hasChildren()||!W5(o,e,i))}if(t.segments.length===e.length){if(!jy(t.segments,e)||!W5(t.segments,e,i))return!1;for(var a in r.children)if(!t.children[a]||!Y$(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!!(jy(t.segments,s)&&W5(t.segments,s,i)&&t.children[Fi])&&G$(t.children[Fi],r,l,i)}function W5(t,r,e){return r.every(function(i,o){return z$[e](t[o].parameters,i.parameters)})}var Hy=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 GCe.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 V5(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 X$(this)}}]),t}();function jy(t,r){return t.length===r.length&&t.every(function(e,i){return e.path===r[i].path})}var q$=(0,V.Z)(function t(){(0,j.Z)(this,t)}),K$=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"parse",value:function(e){var i=new nwe(e);return new Hy(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(Dx(e.root,!0)),o=function JCe(t){var r=Object.keys(t).map(function(e){var i=t[e];return Array.isArray(i)?i.map(function(o){return"".concat(Y5(e),"=").concat(Y5(o))}).join("&"):"".concat(Y5(e),"=").concat(Y5(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function qCe(t){return encodeURI(t)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),t}(),GCe=new K$;function V5(t){return t.segments.map(function(r){return X$(r)}).join("/")}function Dx(t,r){if(!t.hasChildren())return V5(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 YCe(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(V5(t),"/").concat(o[0]):"".concat(V5(t),"/(").concat(o.join("//"),")")}function J$(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Y5(t){return J$(t).replace(/%3B/gi,";")}function mH(t){return J$(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function G5(t){return decodeURIComponent(t)}function Q$(t){return G5(t.replace(/\+/g,"%20"))}function X$(t){return"".concat(mH(t.path)).concat(function KCe(t){return Object.keys(t).map(function(r){return";".concat(mH(r),"=").concat(mH(t[r]))}).join("")}(t.parameters))}var QCe=/^[^\/()?;=#]+/;function q5(t){var r=t.match(QCe);return r?r[0]:""}var XCe=/^[^=?&#]+/;var ewe=/^[^&#]+/;var nwe=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=q5(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(G5(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=q5(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=q5(this.remaining);a&&(o=a,this.capture(o))}e[G5(i)]=G5(o)}}},{key:"parseQueryParam",value:function(e){var i=function $Ce(t){var r=t.match(XCe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function twe(t){var r=t.match(ewe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=Q$(i),l=Q$(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=q5(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}(),$$=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=_H(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=_H(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=gH(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 gH(e,this._root).map(function(i){return i.value})}}]),t}();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)return a}}catch(s){e.e(s)}finally{e.f()}return null}function gH(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=gH(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 eee=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,vH((0,Mx.Z)(a),i),a}return(0,V.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}($$);function tee(t,r){var e=function rwe(t,r){var s=new K5([],{},{},"",{},Fi,r,null,t.root,-1,{});return new ree("",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 eee(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 nee(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 iwe(e.slice(i))}function iwe(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 K5=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}(),ree=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,vH((0,Mx.Z)(a),o),a}return(0,V.Z)(e,[{key:"toString",value:function(){return iee(this._root)}}]),e}($$);function vH(t,r){r.value._routerState=t,r.children.forEach(function(e){return vH(t,e)})}function iee(t){var r=t.children.length>0?" { ".concat(t.children.map(iee).join(", ")," } "):"";return"".concat(t.value).concat(r)}function yH(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 UCe(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 wH(i,!1,o-a)}(e.snapshot._urlSegment,s,t.numberOfDoubleDots)}(a,r,t),l=s.processChildren?Q5(s.segmentGroup,s.index,a.commands):see(s.segmentGroup,s.index,a.commands);return CH(r.root,s.segmentGroup,l,i,o)}function J5(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ox(t){return"object"==typeof t&&null!=t&&t.outlets}function CH(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 Hy(e,a,o);var s=oee(t,r,e);return new Hy(s,a,o)}function oee(t,r,e){var i={};return ll(t.children,function(o,a){i[a]=o===r?e:oee(o,r,e)}),new Vi(t.segments,i)}var aee=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&&J5(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(Ox);if(o&&o!==j$(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 wH=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.segmentGroup=r,this.processChildren=e,this.index=i});function see(t,r,e){if(t||(t=new Vi([],{})),0===t.segments.length&&t.hasChildren())return Q5(t,r,e);var i=function pwe(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(!uee(u,f,s))return a;i+=2}else{if(!uee(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({},fee):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||FCe)(e,t,r);if(!a)return Object.assign({},fee);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 $5(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Dwe(t,e,i)){var a=new Vi(r,xwe(t,r,i,new Vi(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Awe(t,e,i)){var s=new Vi(t.segments,Swe(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 Swe(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(eZ(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 xwe(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 Dwe(t,r,e){return e.some(function(i){return eZ(t,r,i)&&Nc(i)!==Fi})}function Awe(t,r,e){return e.some(function(i){return eZ(t,r,i)})}function eZ(t,r,e){return(!(t.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function pee(t,r,e,i){return!!(Nc(t)===i||i!==Fi&&eZ(r,e,t))&&("**"===t.path||X5(r,t,e).matched)}function hee(t,r,e){return 0===r.length&&!t.children[e]}var tZ=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.segmentGroup=r||null}),mee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.urlTree=r});function Lx(t){return(0,YC._)(new tZ(t))}function _ee(t){return(0,YC._)(new mee(t))}function Owe(t){return(0,YC._)(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}var Rwe=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=$5(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(MH(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Vd.K)(function(l){if(l instanceof mee)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof tZ?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(MH(s),e.queryParams,e.fragment)})).pipe((0,Vd.K)(function(s){throw s instanceof tZ?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 Hy(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 Owe(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 Hy(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 MH(t){for(var r={},e=0,i=Object.keys(t.children);e0||s.hasChildren())&&(r[o]=s)}return function Lwe(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 Zwe(t,r,e,i){return(0,xo.w)(function(o){return function Pwe(t,r,e,i,o){return new Rwe(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 gee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.path=r,this.route=this.path[this.path.length-1]}),nZ=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.component=r,this.route=e});function Nwe(t,r,e){var i=t._root;return Zx(i,r?r._root:null,e,[i.value])}function rZ(t,r,e){var i=function Fwe(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){Uwe(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 Uwe(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=Hwe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new gee(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 nZ(l.outlet.component,s))}else s&&Nx(r,l,o),o.canActivateChecks.push(new gee(i)),a.component?Zx(t,null,l?l.children:null,i,o):Zx(t,null,e,i,o);return o}function Hwe(t,r,e){if("function"==typeof e)return e(t,r);switch(e){case"pathParamsChange":return!jy(t.url,r.url);case"pathParamsOrQueryParamsChange":return!jy(t.url,r.url)||!ap(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bH(t,r)||!ap(t.queryParams,r.queryParams);default:return!bH(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 nZ(r.outlet.component,o)):e.canDeactivateChecks.push(new nZ(null,o))}function jwe(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 zwe(t,r,e,i){return(0,el.D)(t).pipe((0,Ea.zg)(function(o){return function Kwe(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=rZ(l,r,o);if(function wwe(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 vwe(t){return"boolean"==typeof t}(u)?function Wwe(t,r,e,i){return(0,el.D)(r).pipe((0,Sx.b)(function(o){return(0,I$.z)(function Ywe(t,r){return null!==t&&r&&r(new PCe(t)),(0,pr.of)(!0)}(o.route.parent,i),function Vwe(t,r){return null!==t&&r&&r(new LCe(t)),(0,pr.of)(!0)}(o.route,i),function qwe(t,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Bwe(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,j5.P)(function(){var l=s.guards.map(function(u){var h,f=rZ(u,s.node,e);if(function Cwe(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 Gwe(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,j5.P)(function(){var l,s=rZ(a,r,e);if(function bwe(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 Jwe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function vee(t){return new fo.y(function(r){return r.error(t)})}var Xwe=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=$5(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 K5([],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 ree(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=nee(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?j$(o).parameters:{};s=new K5(o,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wee(e),Nc(e),e.component,e,bee(i),Cee(i)+o.length,kee(e))}else{var h=X5(i,e,o);if(!h.matched)return null;l=h.consumedSegments,u=h.remainingSegments,s=new K5(l,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wee(e),Nc(e),e.component,e,bee(i),Cee(i)+l.length,kee(e))}var v=function eke(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),C=$5(i,l,u,v.filter(function(Ve){return void 0===Ve.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,pe=this.processSegment(v,B,G,ae?Fi:a);return null===pe?null:[new Nh(s,pe)]}}]),t}();function yee(t){var o,r=[],e=new Set,i=(0,cn.Z)(t);try{var a=function(){var C=o.value;if(!function tke(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=yee(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 bee(t){for(var r=t;r._sourceSegment;)r=r._sourceSegment;return r}function Cee(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 wee(t){return t.data||{}}function kee(t){return t.resolve||{}}function nke(t,r,e,i,o){return(0,Ea.zg)(function(a){return function Qwe(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 Xwe(t,r,e,i,o,a).recognize();return null===s?vee(new Jwe):(0,pr.of)(s)}catch(l){return vee(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 rke(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 ike(t,r,e,i){return function oke(t,r,e,i){var o=Tee(t);if(0===o.length)return(0,pr.of)({});var a={};return(0,el.D)(o).pipe((0,Ea.zg)(function(s){return function ake(t,r,e,i){var o=rZ(t,r,i);return o.resolve?sp(o.resolve(r,e)):sp(o(r,e))}(t[s],r,e,i).pipe((0,ms.b)(function(l){a[s]=l}))}),(0,LM.h)(1),(0,Ea.zg)(function(){return Tee(a).length===o.length?(0,pr.of)(a):Uy.E}))}(t._resolve,t,r,i).pipe((0,mr.U)(function(a){return t._resolvedData=a,t.data=Object.assign(Object.assign({},t.data),nee(t,e).resolve),null}))}(s.route,i,t,r)}),(0,ms.b)(function(){return a++}),(0,LM.h)(1),(0,Ea.zg)(function(s){return a===o.length?(0,pr.of)(e):Uy.E}))})}function Tee(t){return[].concat((0,$t.Z)(Object.keys(t)),(0,$t.Z)(Object.getOwnPropertySymbols(t)))}function SH(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 ske=(0,V.Z)(function t(){(0,j.Z)(this,t)}),lke=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}(),uke=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)}(lke),xH=new n.OlP("ROUTES"),Eee=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 TH(H$(u.injector.get(xH,void 0,n.XFs.Self|n.XFs.Optional)).map(EH),u)}),(0,Vd.K)(function(l){throw i._loader$=void 0,l}));return i._loader$=new ECe.c(s,function(){return new qn.xQ}).pipe((0,SCe.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}(),cke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),dke=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 fke(t){throw t}function pke(t,r,e){return r.parse("/")}function Mee(t,r){return(0,pr.of)(null)}var hke={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mke={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=fke,this.malformedUriErrorHandler=pke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mee,afterPreactivation:Mee},this.urlHandlingStrategy=new dke,this.routeReuseStrategy=new uke,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 HCe(){return new Hy(new Vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Eee(a,s,function(B){return u.triggerEvent(new Z$(B))},function(B){return u.triggerEvent(new N$(B))}),this.routerState=tee(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,ms.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 See(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,pr.of)(u).pipe((0,xo.w)(function(Be){var pt=i.transitions.getValue();return o.next(new z5(Be.id,i.serializeUrl(Be.extractedUrl),Be.source,Be.restoredState)),pt!==i.transitions.getValue()?Uy.E:Promise.resolve(Be)}),Zwe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,ms.b)(function(Be){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Be.urlAfterRedirects})}),nke(i.rootComponentType,i.config,function(Be){return i.serializeUrl(Be)},i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,ms.b)(function(Be){if("eager"===i.urlUpdateStrategy){if(!Be.extras.skipLocationChange){var pt=i.urlHandlingStrategy.merge(Be.urlAfterRedirects,Be.rawUrl);i.setBrowserUrl(pt,Be)}i.browserUrlTree=Be.urlAfterRedirects}var ht=new xCe(Be.id,i.serializeUrl(Be.extractedUrl),i.serializeUrl(Be.urlAfterRedirects),Be.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,pe=u.extras,Ve=new z5(B,i.serializeUrl(G),q,ae);o.next(Ve);var Me=tee(G,i.rootComponentType).snapshot;return(0,pr.of)(Object.assign(Object.assign({},u),{targetSnapshot:Me,urlAfterRedirects:G,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=u.rawUrl,u.resolve(null),Uy.E}),SH(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,ms.b)(function(u){var f=new DCe(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:Nwe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),jwe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,ms.b)(function(u){if(zy(u.guardsResult)){var f=hH('Redirecting to "'.concat(i.serializeUrl(u.guardsResult),'"'));throw f.url=u.guardsResult,f}var h=new ACe(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)}),SH(function(u){if(u.guards.canActivateChecks.length)return(0,pr.of)(u).pipe((0,ms.b)(function(f){var h=new OCe(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(rke(i.paramsInheritanceStrategy,i.ngModule.injector),(0,ms.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,ms.b)(function(f){var h=new ICe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}))}),SH(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 owe(t,r,e){var i=Ax(t,r._root,e?e._root:void 0);return new eee(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:f})}),(0,ms.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 _we(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,ms.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,R$.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 BCe(t){return t&&t[F$]}(u)){var f=zy(u.url);f||(i.navigated=!0,i.restoreHistory(a,!0));var h=new pH(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||See(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 L$(a.id,i.serializeUrl(a.extractedUrl),u);o.next(v);try{a.resolve(i.errorHandler(u))}catch(C){a.reject(C)}}return Uy.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){cee(e),this.config=e.map(EH),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)),lwe(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=zy(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 _ke(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({},hke):!1===i?Object.assign({},mke):i,zy(e))return W$(this.currentUrlTree,e,o);var a=this.parseUrl(e);return W$(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 pH(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 _ke(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 z5?(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 B$&&(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 B$(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}();Vy.\u0275fac=function(r){n.$Z()},Vy.\u0275prov=n.Yz7({token:Vy,factory:Vy.\u0275fac});var Yy=new n.OlP("ROUTER_CONFIGURATION"),Aee=new n.OlP("ROUTER_FORROOT_GUARD"),yke=[wt.Ye,{provide:q$,useClass:K$},{provide:kr,useFactory:function Tke(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,H$(a));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),Eke(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:[q$,Rx,wt.Ye,n.zs3,n.Sil,xH,Yy,[cke,new n.FiY],[ske,new n.FiY]]},Rx,{provide:xr,useFactory:function Mke(t){return t.routerState.root},deps:[kr]},Wy,Dee,vke,{provide:Yy,useValue:{enableTracing:!1}}];function bke(){return new n.PXZ("Router",kr)}var Gy=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:[yke,Oee(e),{provide:Aee,useFactory:kke,deps:[[kr,new n.FiY,new n.tp0]]},{provide:Yy,useValue:i||{}},{provide:wt.S$,useFactory:wke,deps:[wt.lw,[new n.tBr(wt.mr),new n.FiY],Yy]},{provide:Vy,useFactory:Cke,deps:[kr,wt.EM,Yy]},{provide:xee,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Dee},{provide:n.PXZ,multi:!0,useFactory:bke},[ng,{provide:n.ip1,multi:!0,useFactory:Ske,deps:[ng]},{provide:Iee,useFactory:xke,deps:[ng]},{provide:n.tb,multi:!0,useExisting:Iee}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Oee(e)]}}}]),t}();function Cke(t,r,e){return e.scrollOffset&&r.setOffset(e.scrollOffset),new Vy(t,r,e)}function wke(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.useHash?new wt.Do(t,r):new wt.b0(t,r)}function kke(t){return"guarded"}function Oee(t){return[{provide:n.deG,multi:!0,useValue:t},{provide:xH,multi:!0,useValue:t}]}function Eke(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)}Gy.\u0275fac=function(r){return new(r||Gy)(n.LFG(Aee,8),n.LFG(kr,8))},Gy.\u0275mod=n.oAB({type:Gy}),Gy.\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(wt.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(Yy);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(Yy),o=this.injector.get(Wy),a=this.injector.get(Vy),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 Ske(t){return t.appInitializer.bind(t)}function xke(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 Iee=new n.OlP("Router Initializer");new n.GfV("13.3.11");var iZ=(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 iZ;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 Ake(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 Oke(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 Pke=(0,sn.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),Rke=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Lke(){return{diameter:100}}});var Kl=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,Hn.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,Hn.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,Hn.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}(Pke);Kl._diameters=new WeakMap,Kl.\u0275fac=function(r){return new(r||Kl)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(wt.K0,8),n.Y36(Ta.Qb,8),n.Y36(Rke),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(n.R0b))},Kl.\u0275cmp=n.Xpm({type:Kl,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,Ake,1,11,"circle",2),n.YNc(3,Oke,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:[wt.RF,wt.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:[[sn.BQ,wt.ez],sn.BQ]});var oZ,Bc=m(567);function Fx(t){var r;return(null===(r=function Bke(){if(void 0===oZ&&(oZ=null,"undefined"!=typeof window)){var t=window;void 0!==t.trustedTypes&&(oZ=t.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return oZ}())||void 0===r?void 0:r.createHTML(t))||t}function Pee(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Ree(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 Lee(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var qy=(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 qy(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 Lee(o);var l=Fx(s);return this._addSvgIconConfig(e,i,new qy("",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 qy(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(n.q3G.HTML,i);if(!a)throw Lee(i);var s=Fx(a);return this._addSvgIconSetConfig(e,new qy("",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 Ree(e);var a=this._cachedIconsByUrl.get(o);return a?(0,pr.of)(aZ(a)):this._loadSvgIconFromConfig(new qy(e,null)).pipe((0,ms.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,mr.U)(function(s){return aZ(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Zee(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._)(Pee(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)(aZ(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,mr.U)(function(i){return aZ(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 Pee(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,ms.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,ms.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,ln.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,ln.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(Oi.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:Bee,ngContentSelectors:Fee,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:[sn.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:[[sn.si,sn.BQ],sn.BQ]});var Qke=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,Uee=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):$ke}return(0,V.Z)(t,[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Xke(t){if(!Uee.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),Uee.add(t))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}]),t}();function $ke(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 Hee((0,Hn.Eq)(e)).some(function(a){return i._registerQuery(a).mql.matches})}},{key:"observe",value:function(e){var i=this,a=Hee((0,Hn.Eq)(e)).map(function(l){return i._registerQuery(l).observable}),s=(0,uh.aj)(a);return(s=(0,I$.z)(s.pipe((0,no.q)(1)),s.pipe((0,Qke.T)(1),(0,O6.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 Hee(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),eTe=["tooltip"],jee="tooltip-panel",zee=(0,Zi.i$)({passive:!0});var Wee=new n.OlP("mat-tooltip-scroll-strategy");var iTe={provide:Wee,deps:[Ao.aV],useFactory:function rTe(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},oTe=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function aTe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var sZ=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,Hn.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Hn.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Hn.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,zee)}),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(jee),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,no.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(jee,"-");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,zee)})}},{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}();sZ.\u0275fac=function(r){n.$Z()},sZ.\u0275dir=n.lG2({type:sZ,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)}(sZ);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(Oi.$s),n.Y36(Oi.tE),n.Y36(Wee),n.Y36(Es.Is,8),n.Y36(oTe,8),n.Y36(wt.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(eTe,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:[wt.mk],pipes:[wt.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 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({providers:[iTe],imports:[[Oi.rt,wt.ez,Ao.U8,sn.BQ],sn.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 sTe(t,r){1&t&&(n.TgZ(0,"div",4),n._UZ(1,"mat-spinner",5),n.qZA())}function lTe(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 uTe(t,r){if(1&t&&(n.TgZ(0,"div",1),n.YNc(1,sTe,2,0,"div",2),n.YNc(2,lTe,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 Jy=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}();Jy.\u0275fac=function(r){return new(r||Jy)(n.Y36(ul),n.Y36(kr))},Jy.\u0275cmp=n.Xpm({type:Jy,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,uTe,3,2,"div",0),2&r&&n.Q6J("ngIf",e.visible||e.error)},directives:[wt.O5,Kl,Vn,Tn,vi,na],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(wt.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:[Jy],styles:[""]});function Yi(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 fTe(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 pTe(t,r){}up.\u0275fac=function(r){return new(r||up)},up.\u0275prov=n.Yz7({token:up,factory:up.\u0275fac});var OH=new n.OlP("MatSnackBarData"),uZ=(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"}),hTe=Math.pow(2,31)-1,cZ=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,hTe))}},{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(cZ),n.Y36(OH))},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,fTe,3,1,"div",1)),2&r&&(n.xp6(1),n.Oqu(e.data.message),n.xp6(1),n.Q6J("ngIf",e.hasAction))},directives:[Tn,wt.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 mTe={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,no.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(uZ))},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,pTe,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:[mTe.snackBarState]}});var Qy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qy.\u0275fac=function(r){return new(r||Qy)},Qy.\u0275mod=n.oAB({type:Qy}),Qy.\u0275inj=n.cJS({imports:[[Ao.U8,yo.eL,wt.ez,Fh,sn.BQ],sn.BQ]});var qee=new n.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function _Te(){return new uZ}});var Xy=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:uZ,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 uZ),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new cZ(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:cZ,useValue:i},{provide:OH,useValue:e.data}]})}}]),t}();Xy.\u0275fac=function(r){return new(r||Xy)(n.LFG(Ao.aV),n.LFG(Oi.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Xy,12),n.LFG(qee))},Xy.\u0275prov=n.Yz7({token:Xy,factory:Xy.\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)}(Xy);Fc.\u0275fac=function(r){return new(r||Fc)(n.LFG(Ao.aV),n.LFG(Oi.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Fc,12),n.LFG(qee))},Fc.\u0275prov=n.Yz7({token:Fc,factory:Fc.\u0275fac,providedIn:Qy});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 gTe=["*",[["mat-card-footer"]]],yTe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],CTe=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],$y=(0,V.Z)(function t(){(0,j.Z)(this,t)});$y.\u0275fac=function(r){return new(r||$y)},$y.\u0275dir=n.lG2({type:$y,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 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-footer"]],hostAttrs:[1,"mat-card-footer"]});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-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-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-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-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-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-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-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-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-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var gZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});gZ.\u0275fac=function(r){return new(r||gZ)},gZ.\u0275dir=n.lG2({type:gZ,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(gTe),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 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-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(yTe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var yZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});yZ.\u0275fac=function(r){return new(r||yZ)},yZ.\u0275cmp=n.Xpm({type:yZ,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(CTe),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:[[sn.BQ],sn.BQ]});var Un=m(7322),kTe=m(7568),Kee=(0,Zi.i$)({passive:!0}),e0=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 Uy.E;var o=(0,Hn.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,Kee),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,Kee)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Hn.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}();e0.\u0275fac=function(r){return new(r||e0)(n.LFG(Zi.t4),n.LFG(n.R0b))},e0.\u0275prov=n.Yz7({token:e0,factory:e0.\u0275fac,providedIn:"root"});var bZ=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}();bZ.\u0275fac=function(r){return new(r||bZ)(n.Y36(n.SBq),n.Y36(e0))},bZ.\u0275dir=n.lG2({type:bZ,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var CZ=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,Hn.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Hn.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Hn.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,kTe.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}();CZ.\u0275fac=function(r){return new(r||CZ)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(wt.K0,8))},CZ.\u0275dir=n.lG2({type:CZ,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 t0=(0,V.Z)(function t(){(0,j.Z)(this,t)});t0.\u0275fac=function(r){return new(r||t0)},t0.\u0275mod=n.oAB({type:t0}),t0.\u0275inj=n.cJS({});var TTe=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),ETe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],MTe=0,STe=(0,sn.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(MTe++),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 pe=ae.target;!pe.value&&0===pe.selectionStart&&0===pe.selectionEnd&&(pe.setSelectionRange(1,1),pe.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,Hn.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,Hn.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,Hn.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(){ETe.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}(STe);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(sn.rD),n.Y36(TTe,10),n.Y36(e0),n.Y36(n.R0b),n.Y36(Un.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:Un.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:[sn.rD],imports:[[t0,Un.lN,sn.BQ],t0,Un.lN]});var xi=m(4107);function n0(){n0=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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}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(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function xTe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function DTe(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 ATe(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 Yi(this,void 0,void 0,n0().mark(function e(){var i=this;return n0().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return Yi(i,void 0,void 0,n0().mark(function l(){return n0().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 Yi(this,void 0,void 0,n0().mark(function e(){var o,a,i=this;return n0().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 iZ;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,xTe,2,0,"mat-error",8),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",9),n.YNc(13,DTe,2,2,"mat-option",10),n.qZA()(),n.TgZ(14,"mat-form-field")(15,"mat-select",11),n.YNc(16,ATe,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,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,xi.gD,wt.sg,sn.ey,Tn],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var OTe=0,IH=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(OTe++),this._multi=!1}return(0,V.Z)(t,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Hn.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:IH,useExisting:aw}]),n.TTD]});var ITe=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(ITe++),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,Hn.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,Hn.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(IH,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:IH,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 PTe=["body"];function RTe(t,r){}var LTe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function NTe(t,r){if(1&t&&n._UZ(0,"span",2),2&t){var e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}var BTe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],PH=new n.OlP("MAT_ACCORDION"),Jee="225ms cubic-bezier(0.4,0.0,0.2,1)",Qee={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)(Jee))]),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)(Jee))])},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 UTe=0,Xee=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),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;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(UTe++),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,Hn.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,no.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,ln.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);Jl.\u0275fac=function(r){return new(r||Jl)(n.Y36(PH,12),n.Y36(n.sBO),n.Y36(po.A8),n.Y36(n.s_b),n.Y36(wt.K0),n.Y36(Ta.Qb,8),n.Y36(Xee,8))},Jl.\u0275cmp=n.Xpm({type:Jl,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(PTe,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:PH,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(LTe),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,RTe,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:[Qee.bodyExpansion]},changeDetection:0});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-action-row"]],hostAttrs:[1,"mat-action-row"]});var HTe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Ql=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)})):Uy.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,sn.sb)(HTe));Ql.\u0275fac=function(r){return new(r||Ql)(n.Y36(Jl,1),n.Y36(n.SBq),n.Y36(Oi.tE),n.Y36(n.sBO),n.Y36(Xee,8),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Ql.\u0275cmp=n.Xpm({type:Ql,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(BTe),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,NTe,1,1,"span",1)),2&r&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[wt.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:[Qee.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 Ml=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,Hn.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 Oi.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,ln.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(aw);Ml.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ml)))(e||Ml)}}(),Ml.\u0275dir=n.lG2({type:Ml,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ql,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:PH,useExisting:Ml}]),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:[[wt.ez,sn.BQ,sw,yo.eL]]});var ag=m(4834),RH=["*"],$ee='.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',zTe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],VTe=["text"];function YTe(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 GTe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],ete=(0,sn.Id)((0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),KTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),tte=new n.OlP("MatList"),nte=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}(ete);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:nte,useExisting:Vs}]),n.qOj,n.TTD],ngContentSelectors:RH,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}(ete);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:tte,useExisting:Hh}]),n.qOj,n.TTD],ngContentSelectors:RH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[$ee],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 kZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});kZ.\u0275fac=function(r){return new(r||kZ)},kZ.\u0275dir=n.lG2({type:kZ,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var qa=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,Hn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,sn.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}(KTe);qa.\u0275fac=function(r){return new(r||qa)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(nte,8),n.Y36(tte,8))},qa.\u0275cmp=n.Xpm({type:qa,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,sn.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(zTe),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:[sn.wG],encapsulation:2,changeDetection:0});var JTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),QTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),XTe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return dw}),multi:!0},$Te=(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,Hn.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,Hn.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,sn.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}(QTe);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,sn.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(VTe,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(GTe),n.TgZ(0,"div",0),n._UZ(1,"div",1),n.YNc(2,YTe,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:[sn.nP,sn.wG,wt.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,Hn.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Hn.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 Oi.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 $Te(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(zu.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:[Ml,Jl,Ql,hu,Hh,qa,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),r0=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}();r0.\u0275fac=function(r){return new(r||r0)(n.LFG(sl))},r0.\u0275prov=n.Yz7({token:r0,factory:r0.\u0275fac});var i0=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}();i0.\u0275fac=function(r){return new(r||i0)(n.LFG(r0))},i0.\u0275prov=n.Yz7({token:i0,factory:i0.\u0275fac});var o0=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}();o0.\u0275fac=function(r){return new(r||o0)(n.LFG(sl),n.LFG(i0))},o0.\u0275prov=n.Yz7({token:o0,factory:o0.\u0275fac});var eEe=[[["caption"]],[["colgroup"],["col"]]];function nEe(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 rEe(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(eEe),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 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)}(kd);a0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(a0)))(e||a0)}}(),a0.\u0275dir=n.lG2({type:a0,selectors:[["","matFooterCellDef",""]],features:[n._Bn([{provide:kd,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,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(kl);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:kl,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 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)}(Hu);s0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(s0)))(e||s0)}}(),s0.\u0275dir=n.lG2({type:s0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n._Bn([{provide:Hu,useExisting:s0}]),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 l0=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);l0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(l0)))(e||l0)}}(),l0.\u0275cmp=n.Xpm({type:l0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n._Bn([{provide:ih,useExisting:l0}]),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 u0=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);u0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(u0)))(e||u0)}}(),u0.\u0275dir=n.lG2({type:u0,selectors:[["ng-template","matNoDataRow",""]],features:[n._Bn([{provide:Df,useExisting:u0}]),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,nEe,2,3,"th",1),n.YNc(2,rEe,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:[[ju,sn.BQ],sn.BQ]});var iEe=9007199254740991,oEe=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,Hn.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)}(oEe),Ju=m(4068),aEe=function(r,e){return{hidden:r,lightTheme:e}},sEe=/(.*)<\/a>(.*)\s*